コード例 #1
0
ファイル: object.php プロジェクト: kylephp/com_dummy
 /**
  * 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
ファイル: config.php プロジェクト: thangredweb/redCORE
 /**
  * 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);
 }