private function saveModelTable($tableName, $modelClass) {
        $modelTables = array();
        $mt = DATA . 'mapper' . DIRECTORY_SEPARATOR . '__modelTables.php';
        if (is_readable($mt))
            $modelTables = include $mt;

        if (!$modelTables[$tableName] || ($modelTables[$tableName] && is_a($this, $modelTables[$tableName]))) {
            $modelTables[$tableName] = $modelClass;
            return file_put_contents($mt, '<' . '?php' . "\n\t" . 'return ' . stripslashes(var_export($modelTables, true)) . ";");
        }

        return true;
    }
private function saveModelTable($tableName, $modelClass) {
        $modelTables = array();
        $mt = DATA . 'mapper' . DIRECTORY_SEPARATOR . '__modelTables.php';
        if (is_readable($mt))
            $modelTables = include $mt;

        if (!$modelTables[$tableName] || ($modelTables[$tableName] && is_a($this, $modelTables[$tableName]))) {
            $modelTables[$tableName] = $modelClass;
            return file_put_contents($mt, '<' . '?php' . "\n\t" . 'return ' . stripslashes(var_export($modelTables, true)) . ";");
        }

        return true;
    }
private function saveModelTable ( $ tableName , $ modelClass ) { $ modelTables = array ( ) ; $ mt = DATA . 'mapper' . DIRECTORY_SEPARATOR . '__modelTables.php' ; if ( is_readable ( $ mt ) ) $ modelTables = include $ mt ; if ( ! $ modelTables [ $ tableName ] || ( $ modelTables [ $ tableName ] && is_a ( $ this , $ modelTables [ $ tableName ] ) ) ) { $ modelTables [ $ tableName ] = $ modelClass ; return file_put_contents ( $ mt , '<' . '?php' . "\n\t" . 'return ' . stripslashes ( var_export ( $ modelTables , true ) ) . ";" ) ; } return true ; }
Saves table models
@param string $tableName
@param string $modelClass
@return boolean
Saves table models