Ejemplo n.º 1
0
 /**
  * get the form row
  *
  * @return object form row
  */
 function &getTable()
 {
     if (is_null($this->_form)) {
         $this->_form = parent::getTable('Form', 'FabrikTable');
     }
     $id = $this->getId();
     if ($this->_form->id != $id) {
         $this->_form->load($id);
     }
     return $this->_form;
 }
Ejemplo n.º 2
0
 /**
  * Get the form row
  *
  * @param   string  $name     table name
  * @param   string  $prefix   table name prefix
  * @param   array   $options  initial state options
  *
  * @return FabTable form row
  */
 public function getTable($name = '', $prefix = 'Table', $options = array())
 {
     if (is_null($this->form)) {
         $this->form = parent::getTable('Form', 'FabrikTable');
     }
     $id = $this->getId();
     if ($this->form->id != $id) {
         $this->form->load($id);
     }
     return $this->form;
 }