public function __construct($cfg, $tblName) { parent::__construct($cfg); $this->pfx = $cfg['pfx']; $this->tblName = $this->pfx . $tblName; $this->nst = new \PhpRbac\utils\FullNestedSet($this->tblName, 'id', 'lft', 'rgt'); // legacy: MySQL data mappers user the Jf utility class to run queries // That (singleton) static class needs configuration: \PhpRbac\utils\Jf::setTablePrefix($this->pfx); \PhpRbac\utils\Jf::$Db = $this->getDBH(); }
public function __construct($cfg, $tblName) { parent::__construct($cfg); $this->pfx = $cfg['pfx']; $this->tblName = $this->pfx . $tblName; }
public function __construct($cfg, $tblName = 'userroles') { $this->pfx = $cfg['pfx']; parent::__construct($cfg); $this->tblName = $this->pfx . $tblName; }