本文整理汇总了PHP中Zend_Db_Table_Abstract::_setupTableName方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Db_Table_Abstract::_setupTableName方法的具体用法?PHP Zend_Db_Table_Abstract::_setupTableName怎么用?PHP Zend_Db_Table_Abstract::_setupTableName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Db_Table_Abstract
的用法示例。
在下文中一共展示了Zend_Db_Table_Abstract::_setupTableName方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _setupTableName
/**
* Set name of table
*
*/
protected function _setupTableName()
{
if ($this->getRowClass()) {
$this->_name = $this->getRowClass();
}
parent::_setupTableName();
}
示例2: _setupTableName
/**
* This will automatically set table name with prefix from bootstrap file
* @return void
*/
protected function _setupTableName()
{
parent::_setupTableName();
if (Zend_Registry::isRegistered('tbl_prefix')) {
$this->_name = Zend_Registry::get('tbl_prefix') . $this->_name;
}
}
示例3: _setupTableName
protected function _setupTableName()
{
if (defined('T_PREFIX')) {
$this->_name = T_PREFIX . $this->_name;
}
parent::_setupTableName();
}
示例4: _setupTableName
protected function _setupTableName()
{
if (is_null($this->_name)) {
$this->_name = strtolower(str_replace('Model', '', get_class($this)));
}
parent::_setupTableName();
}
示例5: _setupTableName
protected function _setupTableName()
{
if (empty($this->_name)) {
$className = get_class($this);
if (strncmp(self::PREFIX, $className, self::PREFIX_LEN) == 0) {
$this->_name = strtolower(substr($className, self::PREFIX_LEN));
} else {
$this->_name = strtolower($className);
}
}
parent::_setupTableName();
}
示例6: _setupTableName
/**
*
* @return void
*/
protected function _setupTableName()
{
parent::_setupTableName();
$this->_name = Fox::getTablePrefix() . $this->_name;
}
示例7: _setupTableName
/**
* @throws \Exception
*/
protected function _setupTableName()
{
$this->_config = Cunity::get("config");
if ($this->_config->db->params->table_prefix !== '') {
$this->_dbprefix = $this->_config->db->params->table_prefix . '_';
}
$this->_name = $this->_dbprefix . $this->_name;
parent::_setupTableName();
}
示例8: _setupTableName
/**
* Initialize table and schema names.
*
* If the table name is not set in the class definition,
* use the class name itself as the table name.
*
* A schema name provided with the table name (e.g., "schema.table") overrides
* any existing value for $this->_schema.
*
* @return void
*/
protected function _setupTableName()
{
parent::_setupTableName();
$this->_prefix = Axis::config()->db->prefix;
$this->_name = $this->_prefix . $this->_name;
}
示例9: _setupTableName
/**
* Translate our class name to a table name and setup it.
* See Naming Conventions for more information.
*
* @return void
*/
protected function _setupTableName()
{
$this->_name = $this->getTableName();
parent::_setupTableName();
}