Pimcore\Db\PhpArrayFileTable::get PHP Метод

get() публичный статический Метод

public static get ( $filePath ) : self
$filePath
Результат self
    public static function get($filePath)
    {
        if (!isset(self::$tables[$filePath])) {
            self::$tables[$filePath] = new self($filePath);
        }
        return self::$tables[$filePath];
    }

Usage Example

Пример #1
0
 /**
  * @param $name
  */
 protected function setFile($name)
 {
     $file = Config::locateConfigFile($name . ".php");
     $this->db = PhpArrayFileTable::get($file);
 }