/** * @description get where-config and call parent::__construct(...) * @param string $type table name * @param null $id * @param string $pathToConfig * @author Se# * @version 0.0.1 */ public function __construct($type, $id = null, $pathToConfig = '') { $path = empty($pathToConfig) ? __DIR__ . '/nestedSets.json' : $pathToConfig; if (is_file($path)) { self::$_whereConfig = json_decode(file_get_contents($path), true); } return parent::__construct($type, $id); }