本文整理汇总了PHP中JModelAdmin::getTable方法的典型用法代码示例。如果您正苦于以下问题:PHP JModelAdmin::getTable方法的具体用法?PHP JModelAdmin::getTable怎么用?PHP JModelAdmin::getTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JModelAdmin
的用法示例。
在下文中一共展示了JModelAdmin::getTable方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTable
/**
* 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())
{
$class = get_class($this);
if (empty($name)) {
$name = strstr($class, 'Model');
$name = str_replace('Model', '', $name);
}
if (empty($prefix)) {
$prefix = strstr($class, 'Model', true) . 'Table';
}
return parent::getTable($name, $prefix, $config);
}
示例2: getTable
public function getTable($name = '', $prefix = 'VideoTranslationTable', $options = array())
{
return parent::getTable($name, $prefix, $options);
}
示例3: getTable
/**
* Method to get a table object, load it if necessary.
*
* @param string $name The table name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $options Configuration array for model. Optional.
*
* @return JTable A JTable object
*
* @since 12.2
* @throws Exception
*/
public function getTable($name = 'organizationinfo', $prefix = 'OpenHrmTable', $options = array())
{
return parent::getTable($name, $prefix, $options);
}
示例4: getTable
/**
* Returns a reference to the a Table object, always creating it.
*
* @param string $type The table type to instantiate
* @param string $prefix A prefix for the table class name. Optional.
* @param array $config Configuration array for model. Optional.
*
* @return JTable A database object
*/
public function getTable($type = 'Cron', $prefix = 'FabrikTable', $config = array())
{
$config['dbo'] = FabriKWorker::getDbo(true);
return parent::getTable($type, $prefix, $config);
}
示例5: getTable
/**
* Returns a reference to the a Table object, always creating it.
*
* @param type The table type to instantiate
* @param string A prefix for the table class name. Optional.
* @param array Configuration array for model. Optional.
* @return JTable A database object
*/
public function getTable($type = null, $prefix = null, $config = array())
{
$prefix = $prefix ? $prefix : ucfirst($this->component) . 'Table';
$type = $type ? $type : $this->item_name;
return parent::getTable($type, $prefix, $config);
}
示例6: getTable
public function getTable($name = 'Objects', $prefix = 'CocoateRealEstateTable', $options = array())
{
return parent::getTable($name, $prefix, $options);
}
示例7: getTable
public function getTable($name = 'Edit', $prefix = 'Table', $options = array())
{
$tbl = parent::getTable($name, $prefix, $options);
return $tbl;
}
示例8: getTable
/**
* Override for JModel::getTable with the proper name and prefix.
* Ensures that when getTable() is called from parent models the proper
* table will be returned.
*
* @param string $name The table name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $options Configuration array for model. Optional.
* @return JTable A JTable object
*/
public function getTable($name = 'Route', $prefix = 'SimpleCustomRouterTable', $options = array())
{
return parent::getTable($name, $prefix, $options);
}
示例9: getTable
/**
* Returns a reference to the a Table object, always creating it.
*
* @param type The table type to instantiate
* @param string A prefix for the table class name. Optional.
* @param array Configuration array for model. Optional.
*
* @return JTable A database object
* @since 1.0
*/
public function getTable($type = 'Sichtweitenmeldung', $prefix = 'SichtweitenTable', $config = array())
{
return parent::getTable($type, $prefix, $config);
}
示例10: getTable
public function getTable($name = '', $prefix = 'HelloWorldTable', $options = array())
{
return parent::getTable($name, $prefix, $options);
}
示例11: getTable
public function getTable($type = 'Harvest', $prefix = 'JHarvestTable', $config = array())
{
return parent::getTable($type, $prefix, $config);
}
示例12: getTable
public function getTable($name = '', $prefix = 'Table', $options = array())
{
return parent::getTable("Rule", "SimpleloggerTable", $options);
// TODO: Change the autogenerated stub
}