コード例 #1
0
ファイル: BaseDmap.php プロジェクト: toastedghost/rbac
 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
ファイル: BaseDmap.php プロジェクト: toastedghost/rbac
 public function __construct($cfg, $tblName)
 {
     parent::__construct($cfg);
     $this->pfx = $cfg['pfx'];
     $this->tblName = $this->pfx . $tblName;
 }
コード例 #3
0
ファイル: UserDmap.php プロジェクト: toastedghost/rbac
 public function __construct($cfg, $tblName = 'userroles')
 {
     $this->pfx = $cfg['pfx'];
     parent::__construct($cfg);
     $this->tblName = $this->pfx . $tblName;
 }