Пример #1
0
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $srcObj FeedDropFolder */
     parent::doFromObject($srcObj);
     $this->feedItemInfo = new KalturaFeedItemInfo();
     $this->feedItemInfo->fromObject($srcObj->getFeedItemInfo());
     return $this;
 }
Пример #2
0
 public function toObject($dbObject = null, $skip = array())
 {
     if (!$dbObject) {
         $dbObject = new WebexDropFolder();
     }
     $this->validate();
     $dbObject->setType(WebexDropFolderPlugin::getDropFolderTypeCoreValue(WebexDropFolderType::WEBEX));
     return parent::toObject($dbObject, $skip);
 }
Пример #3
0
 public static function fromDbArray($arr, KalturaDetachedResponseProfile $responseProfile = null)
 {
     $newArr = new KalturaDropFolderArray();
     foreach ($arr as $obj) {
         $nObj = KalturaDropFolder::getInstanceByType($obj->getType());
         $nObj->fromObject($obj, $responseProfile);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 public static function fromDbArray($arr)
 {
     $newArr = new KalturaDropFolderArray();
     foreach ($arr as $obj) {
         $nObj = KalturaDropFolder::getInstanceByType($obj->getType());
         $nObj->fromObject($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 function update($dropFolderId, KalturaDropFolder $dropFolder)
 {
     $kparams = array();
     $this->client->addParam($kparams, "dropFolderId", $dropFolderId);
     $this->client->addParam($kparams, "dropFolder", $dropFolder->toParams());
     $this->client->queueServiceActionCall("dropfolder_dropfolder", "update", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaDropFolder");
     return $resultObject;
 }
Пример #6
0
 /**
  * Mark the KalturaDropFolder object as deleted
  * 
  * @action delete
  * @param int $dropFolderId 
  * @return KalturaDropFolder
  *
  * @throws KalturaErrors::INVALID_OBJECT_ID
  */
 public function deleteAction($dropFolderId)
 {
     $dbDropFolder = DropFolderPeer::retrieveByPK($dropFolderId);
     if (!$dbDropFolder) {
         throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $dropFolderId);
     }
     $dbDropFolder->setStatus(DropFolderStatus::DELETED);
     $dbDropFolder->save();
     $dropFolder = KalturaDropFolder::getInstanceByType($dbDropFolder->getType());
     $dropFolder->fromObject($dbDropFolder, $this->getResponseProfile());
     return $dropFolder;
 }