Пример #1
0
        // echo "table cnt:  ".count(self::$tables)."<br><br>";
    }
    function info()
    {
        echo "<br>********* read tables cnt:" . count(self::$tables) . "  ********<br><br>";
    }
    function readAll()
    {
        if (count(self::$tables) <= 0) {
            # code...
            $tables = array();
            $this->read('activity');
            $this->read('item');
            //$this->info();
        } else {
            echo "has read tables";
        }
    }
    function get($name)
    {
        if (count(self::$tables) <= 0) {
            $this->readAll();
        }
        return self::$tables[$name];
    }
    function getv($name, $key)
    {
    }
}
$Tables = Tables::getInstance();