Пример #1
0
 /**
  *	Inits object for cell
  *
  * 	@param 		RM_List_Row
  *	@return object
  **/
 protected function _initObject(RM_List_Row $row)
 {
     if (!$this->_column->init_object) {
         throw new RM_Base_Exception_BadUsage("No method for the object initiation has given in column `" . $this->_column->header() . "'");
     }
     return M('Tools')->handler()->execute($this->_column->init_object, $this->_simple->code($row));
 }
Пример #2
0
 /**
  *	Shows code of the column
  *
  *	@return void
  **/
 public function code(RM_List_Row $row)
 {
     return $this->_strategy->code($row);
 }