Zend_Db_Table_Abstract::_setupTableName PHP Method

_setupTableName() protected method

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.
protected _setupTableName ( ) : void
return void
    protected function _setupTableName()
    {
        if (!$this->_name) {
            $this->_name = get_class($this);
        } else {
            if (strpos($this->_name, '.')) {
                list($this->_schema, $this->_name) = explode('.', $this->_name);
            }
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Set name of table
  *
  */
 protected function _setupTableName()
 {
     if ($this->getRowClass()) {
         $this->_name = $this->getRowClass();
     }
     parent::_setupTableName();
 }
All Usage Examples Of Zend_Db_Table_Abstract::_setupTableName