Exemplo n.º 1
0
 public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($sourceObject, $responseProfile);
     if ($this->shouldGet('xslTransformation', $responseProfile)) {
         $this->xslTransformation = $sourceObject->getXsl();
     }
     if ($this->shouldGet('cropDimensions', $responseProfile)) {
         $this->cropDimensions = new KalturaCropDimensions();
         $this->cropDimensions->fromObject($sourceObject);
     }
 }
Exemplo n.º 2
0
 public function fromObject($sourceObject)
 {
     parent::fromObject($sourceObject);
     $this->cropDimensions = new KalturaCropDimensions();
     $this->cropDimensions->fromObject($sourceObject);
 }
 public function fromObject($sourceObject)
 {
     parent::fromObject($sourceObject);
     $this->xslTransformation = $sourceObject->getXsl();
     $this->cropDimensions = new KalturaCropDimensions();
     $this->cropDimensions->fromObject($sourceObject);
     $this->isPartnerDefault = false;
     if ($this->partnerId) {
         $partner = PartnerPeer::retrieveByPK($this->partnerId);
         if ($partner && $this->id == $partner->getDefaultConversionProfileId()) {
             $this->isPartnerDefault = true;
         }
     }
 }