* @package tao */ class tao_models_classes_table_PropertyColumn extends tao_models_classes_table_Column { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * Short description of attribute property * * @access public * @var Property */ public $property = null; // --- OPERATIONS --- /** * Short description of method fromArray * * @access protected * @author Joel Bout, * @param array array * @return tao_models_classes_table_PropertyColumn */ protected static function fromArray($array) { $returnValue = null; $returnValue = new static(new core_kernel_classes_Property($array['prop'])); return $returnValue; } /** * Short description of method __construct * * @access public * @author Joel Bout, * @param Property property * @return mixed */ public function __construct(core_kernel_classes_Property $property) { $this->property = $property; parent::__construct($property->getLabel()); } /** * Short description of method getProperty * * @access public * @author Joel Bout, * @return core_kernel_classes_Property */ public function getProperty() { $returnValue = null; $returnValue = $this->property; return $returnValue; } /** * Short description of method getDataProvider * * @access public * @author Joel Bout, * @return tao_models_classes_table_DataProvider */ public function getDataProvider() { $returnValue = null; $returnValue = tao_models_classes_table_PropertyDP::singleton(); return $returnValue; } /** * Short description of method toArray * * @access public * @author Joel Bout, * @return array */ public function toArray() { $returnValue = []; $returnValue = parent::toArray(); $returnValue['prop'] = $this->property->getUri(); return (array) $returnValue; } }