示例#1
0
 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();
 }
示例#2
0
 public function __construct($cfg, $tblName)
 {
     parent::__construct($cfg);
     $this->pfx = $cfg['pfx'];
     $this->tblName = $this->pfx . $tblName;
 }
示例#3
0
 public function __construct($cfg, $tblName = 'userroles')
 {
     $this->pfx = $cfg['pfx'];
     parent::__construct($cfg);
     $this->tblName = $this->pfx . $tblName;
 }