_getTable example

$this->_data = $config['data'];
        }
        if (isset($config['stored']) && $config['stored'] === true) {
            $this->_cleanData = $this->_data;
        }

        if (isset($config['readOnly']) && $config['readOnly'] === true) {
            $this->setReadOnly(true);
        }

        // Retrieve primary keys from table schema         if (($table = $this->_getTable())) {
            $info = $table->info();
            $this->_primary = (array) $info['primary'];
        }

        $this->init();
    }

    /** * Transform a column name from the user-specified form * to the physical form used in the database. * You can override this method in a custom Row class * to implement column name mappings, for example inflection. * * @param string $columnName Column name given. * @return string The column name after transformation applied (none by default). * @throws Zend_Db_Table_Row_Exception if the $columnName is not a string. */
Home | Imprint | This part of the site doesn't use cookies.