當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。