public static function get($filePath) { if (!isset(self::$tables[$filePath])) { self::$tables[$filePath] = new self($filePath); } return self::$tables[$filePath]; }
/** * @param $name */ protected function setFile($name) { $file = Config::locateConfigFile($name . ".php"); $this->db = PhpArrayFileTable::get($file); }