public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     if ($this->shouldGet('updateParams', $responseProfile)) {
         $this->updateParams = KalturaStringArray::fromStringArray($source_object->getUpdateParams());
     }
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $key = $source_object->getSyncKey(genericSyndicationFeed::FILE_SYNC_SYNDICATION_FEED_XSLT);
     $this->xslt = kFileSyncUtils::file_get_contents($key, true, false);
     $mrssParams = $source_object->getMrssParameters();
     if ($mrssParams) {
         $this->itemXpathsToExtend = KalturaStringArray::fromStringArray($mrssParams->getItemXpathsToExtend());
     } else {
         $this->itemXpathsToExtend = new KalturaStringArray();
     }
 }
 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     $this->seriesAdditionalCategories = KalturaStringArray::fromStringArray($source_object->getSeriesAdditionalCategories());
 }
예제 #4
0
 /**
  * @action getParameters
  * @param int $id
  * @return KalturaStringArray
  */
 function getParametersAction($id)
 {
     $dbReport = ReportPeer::retrieveByPK($id);
     if (is_null($dbReport)) {
         throw new KalturaAPIException(KalturaErrors::REPORT_NOT_FOUND, $id);
     }
     return KalturaStringArray::fromStringArray($dbReport->getParameters());
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $this->fieldConfigArray = KalturaDistributionFieldConfigArray::fromDbArray($source_object->getFieldConfigArray());
     $this->itemXpathsToExtend = KalturaStringArray::fromStringArray($source_object->getItemXpathsToExtend());
 }
예제 #6
0
 public function fromObject($source_object)
 {
     $this->requiredPermissions = KalturaStringArray::fromStringArray($source_object->getRequiredPermissions());
     return parent::fromObject($source_object);
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $this->seriesAdditionalCategories = KalturaStringArray::fromStringArray($source_object->getSeriesAdditionalCategories());
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $this->updateParams = KalturaStringArray::fromStringArray($source_object->getUpdateParams());
 }
예제 #9
0
 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $source_object assetParams */
     if ($this->shouldGet('requiredPermissions', $responseProfile)) {
         $this->requiredPermissions = KalturaStringArray::fromStringArray($source_object->getRequiredPermissions());
     }
     return parent::doFromObject($source_object, $responseProfile);
 }