Example #1
0
 public function getTable($name = '', $prefix = '', $options = array())
 {
     if (empty($name)) {
         $name = $this->getName();
     }
     if (empty($prefix)) {
         $prefix = $this->getNamePrefix() . 'Table';
     }
     return parent::getTable($name, $prefix, $options);
 }
Example #2
0
 /**
  * get the form row
  *
  * @return object form row
  */
 function &getTable()
 {
     if (is_null($this->_form)) {
         $this->_form = parent::getTable();
         $this->_form->load($this->getId());
     }
     return $this->_form;
 }
 /**
  * Override the default method to make sure we always get the right table
  *
  * @access public
  * @subpackage Yireo
  * @param string $name
  * @param string $prefix
  * @param array $options
  * @return mixed
  */
 public function getTable($name = '', $prefix = 'Table', $options = array())
 {
     if (empty($name)) {
         $name = $this->_tbl_alias;
     }
     return parent::getTable($name, $prefix, $options);
 }