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))); }
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)); }