public function __construct($input = array()) { parent::__construct($input); $this->format = $this['format']; $this->type_id = $this['type']; $this->type = self::getTypeById($this->type_id); }
public function __construct($input = array()) { if ($input['component_id']) { $this->component_id = $input['component_id']; } parent::__construct($input); $this->available_offsets_cache = fx::getComponentById($this->component_id)->getAvailableEntityOffsets(); return $this; }