* @package tao */ class tao_models_classes_table_PropertyDP implements tao_models_classes_table_DataProvider { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * Short description of attribute singleton * * @access public * @var PropertyDP */ public static $singleton = null; /** * Short description of attribute cache * * @access public * @var array */ public $cache = []; // --- OPERATIONS --- /** * Short description of method prepare * * @access public * @author Joel Bout, * @param array resources * @param array columns * @return mixed */ public function prepare($resources, $columns) { } /** * Short description of method getValue * * @access public * @author Joel Bout, * @param Resource resource * @param Column column * @return string */ public function getValue(core_kernel_classes_Resource $resource, tao_models_classes_table_Column $column) { $returnValue = (string) ''; $result = $resource->getOnePropertyValue($column->getProperty()); $returnValue = $result instanceof core_kernel_classes_Resource ? $result->getLabel() : (string)$result; return (string) $returnValue; } /** * Short description of method singleton * * @access public * @author Joel Bout, * @return tao_models_classes_table_PropertyDP */ public static function singleton() { $returnValue = null; if (is_null(self::$singleton)) { self::$singleton = new self(); } $returnValue = self::$singleton; return $returnValue; } }