示例#1
0
 public function reduce(array $params = array(), $cache = true)
 {
     $uuid = Registry::set($this, null, true);
     return array_merge(parent::reduce($params), array('uuid' => $uuid, 'obj' => $this->_collection->reduce($params, $cache)));
 }
示例#2
0
 /**
  * Table constructor
  * 
  * @param string $id
  * @param integer $disposition
  * @param array $params
  */
 public function __construct($id, $disposition = self::DISP_COLS, $params = array())
 {
     $this->_disposition = $disposition;
     parent::__construct($id, $params);
 }
示例#3
0
 public function __construct($id = null, array $params = null)
 {
     $this->_setParameterObjects(array('open_default' => new Parameter(Parameter::BOOLEAN, true), 'columns' => new Parameter(Parameter::BOOLEAN, false), 'locked' => new Parameter(Parameter::BOOLEAN, false)));
     parent::__construct($id, $params);
 }
示例#4
0
 public function __construct($id = null, array $params = null)
 {
     parent::__construct($id, $params);
 }
示例#5
0
 public function register($placeHolder = View::PH_DEFAULT, array $params = null, $clone = false)
 {
     $res = parent::register($placeHolder, $params, $clone);
     if ($res !== false) {
         $this->_context['rid'] = $res;
     }
     return $res;
 }
示例#6
0
 public function reduce(array $params = array())
 {
     $type = get_class($this);
     $type = lcfirst(substr($type, strrpos($type, '\\') + 1));
     $array = array('type' => $type, 'label' => $this->_title, 'value' => is_object($this->_value) && $this->_value->getIdentifier() ? $this->_value->getIdentifier() : null, 'constraints' => $this->_is);
     return array_merge($array, parent::reduce($params));
 }