getCollectionsObject() публичный Метод

Return a collections singleton.
С версии: 2.4.0
public getCollectionsObject ( ) : Horde_ActiveSync_Collections
Результат Horde_ActiveSync_Collections
Пример #1
0
 /**
  * Imports a folder deletion from the PIM
  *
  * @param string $uid     The folder uid
  * @param string $parent  The folder id of the parent folder.
  */
 public function importFolderDeletion($uid, $parent = Horde_ActiveSync::FOLDER_ROOT)
 {
     $collections = $this->_as->getCollectionsObject();
     $parent_sid = !empty($parent) ? $collections->getBackendIdForFolderUid($parent) : $parent;
     $folderid = $collections->getBackendIdForFolderUid($uid);
     $change = array();
     $change['id'] = $uid;
     $this->_as->driver->deleteFolder($folderid, $parent_sid);
     $this->_state->updateState(Horde_ActiveSync::CHANGE_TYPE_DELETE, $change, Horde_ActiveSync::CHANGE_ORIGIN_NA);
 }