/** * 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); }
/** * 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); }
/** * 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); }