<?php
/**
 * Clip operation attributes
 * 
 * @package api
 * @subpackage objects
 */
class KalturaClipAttributes extends KalturaOperationAttributes
{
	/**
	 * Offset in milliseconds
	 * @var int
	 */
	public $offset;
	
	/**
	 * Duration in milliseconds
	 * @var int
	 */
	public $duration;

	public function toAttributesArray()
	{
		return array(
			'ClipOffset' => $this->offset,
			'ClipDuration' => $this->duration,
		);
	}
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(is_null($object_to_fill))
			$object_to_fill = new kClipAttributes();
			
		$object_to_fill->setOffset($this->offset);
		$object_to_fill->setDuration($this->duration);
		
		return $object_to_fill;
	}
}
<?php
/**
 * Clip operation attributes
 * 
 * @package api
 * @subpackage objects
 */
class KalturaClipAttributes extends KalturaOperationAttributes
{
	/**
	 * Offset in milliseconds
	 * @var int
	 */
	public $offset;
	
	/**
	 * Duration in milliseconds
	 * @var int
	 */
	public $duration;

	public function toAttributesArray()
	{
		return array(
			'ClipOffset' => $this->offset,
			'ClipDuration' => $this->duration,
		);
	}
	
	private static $map_between_objects = array
	(
	 	"offset" , 
	 	"duration" 
	);

	public function getMapBetweenObjects ( )
	{
		return array_merge ( parent::getMapBetweenObjects() , self::$map_between_objects );
	}	
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(is_null($object_to_fill))
			$object_to_fill = new kClipAttributes();
			
		return parent::toObject($object_to_fill, $props_to_skip);
	}
}
Use standard toObject and fromObject methods
Use standard toObject and fromObject methods

git-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@64810 6b8eccd3-e8c5-4e7d-8186-e12b5326b719
