示例#1
0
 /**
  * Set the model to be used by the bridge.
  *
  * This method exist to allow overruling in implementation classes
  *
  * @param \MUtil_Model_ModelAbstract $model
  * @return \MUtil_Model_Bridge_TableBridge
  */
 public function setModel(\MUtil_Model_ModelAbstract $model)
 {
     $this->sortAscParam = $model->getSortParamAsc();
     $this->sortDescParam = $model->getSortParamDesc();
     if ($sort = $model->getSort()) {
         $this->setSort($sort);
     }
     return parent::setModel($model);
 }
示例#2
0
 /**
  * Returns a value for $name
  *
  * @param string $name A name indentifying a value in this stack.
  * @return A value for $name
  */
 public function lazyGet($name)
 {
     // \MUtil_Echo::track($name, isset($this->_object->$name), \MUtil_Lazy::rise($this->_object->$name), $this->_object->getLazyValue($name));
     return $this->_object->getLazyValue($name);
 }