public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $srcObj FeedDropFolder */ parent::doFromObject($srcObj); $this->feedItemInfo = new KalturaFeedItemInfo(); $this->feedItemInfo->fromObject($srcObj->getFeedItemInfo()); return $this; }
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); }
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; }
/** * 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; }