예제 #1
0
 /**
  * Get the associated JTable
  *
  * @param   string  $name    Table name
  * @param   string  $prefix  Table prefix
  * @param   array   $config  Configuration array
  *
  * @return  JTable
  */
 public function getTable($name = 'Object', $prefix = '', $config = array())
 {
     $class = get_class($this);
     if (empty($prefix)) {
         $prefix = strstr($class, 'Model', true) . 'Table';
     }
     return parent::getTable($name, $prefix, $config);
 }
예제 #2
0
파일: config.php 프로젝트: grlf/eyedock
 /**
  * Get the associated JTable
  *
  * @param   string  $name    Table name
  * @param   string  $prefix  Table prefix
  * @param   array   $config  Configuration array
  *
  * @return  JTable
  */
 public function getTable($name = 'Extension', $prefix = 'JTable', $config = array())
 {
     return parent::getTable($name, $prefix, $config);
 }
예제 #3
0
 /**
  * Get the associated JTable
  *
  * @param   string  $name    Table name
  * @param   string  $prefix  Table prefix
  * @param   array   $config  Configuration array
  *
  * @return  JTable
  */
 public function getTable($name = null, $prefix = '', $config = array())
 {
     $name = !empty($name) ? $name : 'Extension';
     $prefix = !empty($prefix) ? $prefix : 'JTable';
     return parent::getTable($name, $prefix, $config);
 }