public function fromObject($sourceObject) { if (!$sourceObject) { return; } parent::fromObject($sourceObject); $data = $sourceObject->getData(); $matches = null; if (preg_match('/(\\d+)x(\\d+)/', $data, $matches)) { $this->dimensions = new KalturaDistributionThumbDimensions(); $this->dimensions->width = $matches[1]; $this->dimensions->height = $matches[2]; } }
public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null) { if (!$sourceObject) { return; } parent::doFromObject($sourceObject, $responseProfile); if ($this->shouldGet('dimensions', $responseProfile)) { $data = $sourceObject->getData(); $matches = null; if (preg_match('/(\\d+)x(\\d+)/', $data, $matches)) { $this->dimensions = new KalturaDistributionThumbDimensions(); $this->dimensions->width = $matches[1]; $this->dimensions->height = $matches[2]; } } }
public function getMapBetweenObjects() { return array_merge(parent::getMapBetweenObjects(), self::$map_between_objects); }