示例#1
0
 /**
  * @inheritdoc
  */
 public function delete($name)
 {
     return $this->driver->delete($this->table, 'name=:name', ['name' => $name]);
 }
示例#2
0
 /**
  * Revoke RBAC element from user
  *
  * @access public
  *
  * @param integer $userId user id
  * @param string $name element name
  *
  * @return bool
  */
 public function revoke($userId, $name)
 {
     return $this->db->delete('rbac_user', 'name=:name AND user=:user', ['name' => $name, 'user' => $userId]);
 }