source/Core/Model/BaseModel.php
public function init($tableName = null, $forceAllFields = false)
    {
        if ($tableName) {
            $this->_sCoreTable = $tableName;
        }

        // reset view table
        $this->_sViewTable = false;

        if (count($this->_aFieldNames) <= 1) {
            $this->_initDataStructure($forceAllFields);
        }
    }
public function init($tableName = null, $forceAllFields = false)
    {
        if ($tableName) {
            $this->_sCoreTable = $tableName;
        }

        // reset view table
        $this->_sViewTable = false;

        if (count($this->_aFieldNames) <= 1) {
            $this->_initDataStructure($forceAllFields);
        }
    }
public function init ( $ tableName = null , $ forceAllFields = false ) { if ( $ tableName ) { $ this -> _sCoreTable = $ tableName ; } // reset view table $ this -> _sViewTable = false ; if ( count ( $ this -> _aFieldNames ) <= 1 ) { $ this -> _initDataStructure ( $ forceAllFields ) ; } }
Sets the names to main and view tables, loads metadata of each table.

@param string $tableName      Name of DB object table
@param bool   $forceAllFields Forces initialisation of all fields overriding lazy loading functionality
Sets the names to main and view tables loads metadata of each table .