当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Db_Table_Abstract::_setupTableName方法代码示例

本文整理汇总了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();
 }
开发者ID:BGCX261,项目名称:zoocms-svn-to-git,代码行数:11,代码来源:Table.php

示例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;
     }
 }
开发者ID:CalhounGaming,项目名称:simpleinvoices,代码行数:11,代码来源:Abstract.php

示例3: _setupTableName

 protected function _setupTableName()
 {
     if (defined('T_PREFIX')) {
         $this->_name = T_PREFIX . $this->_name;
     }
     parent::_setupTableName();
 }
开发者ID:ankuradhey,项目名称:laundry,代码行数:7,代码来源:Abstract.php

示例4: _setupTableName

 protected function _setupTableName()
 {
     if (is_null($this->_name)) {
         $this->_name = strtolower(str_replace('Model', '', get_class($this)));
     }
     parent::_setupTableName();
 }
开发者ID:html,项目名称:PI,代码行数:7,代码来源:Table.php

示例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();
 }
开发者ID:juancarlosjco,项目名称:yaz,代码行数:12,代码来源:Abstract.php

示例6: _setupTableName

 /**
  * 
  * @return void
  */
 protected function _setupTableName()
 {
     parent::_setupTableName();
     $this->_name = Fox::getTablePrefix() . $this->_name;
 }
开发者ID:UnicodeSystems-PrivateLimited,项目名称:Zendfox,代码行数:9,代码来源:Model.php

示例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();
 }
开发者ID:rcrrich,项目名称:cunity,代码行数:12,代码来源:Table.php

示例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;
 }
开发者ID:baisoo,项目名称:axiscommerce,代码行数:17,代码来源:Abstract.php

示例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();
 }
开发者ID:RainyBlueSky,项目名称:PHProjekt,代码行数:11,代码来源:Abstract.php


注:本文中的Zend_Db_Table_Abstract::_setupTableName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。