Subversion Repositories php_users

Rev

Rev 21 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 33
Line 191... Line 191...
191
    * @parameter boolean $defaultValue The default value for the permission
191
    * @parameter boolean $defaultValue The default value for the permission
192
    */
192
    */
193
   public function addPermission ( $connection, $category, $name, $description, $defaultValue = 0 ) {
193
   public function addPermission ( $connection, $category, $name, $description, $defaultValue = 0 ) {
194
      $connection->addPermission ( $category, $name, $description, $defaultValue = 0 );
194
      $connection->addPermission ( $category, $name, $description, $defaultValue = 0 );
195
   }
195
   }
-
 
196
   
-
 
197
   /**
-
 
198
    * returns the array of permissions
-
 
199
    * 
-
 
200
    * The keys are the keyname, the value is true or false
-
 
201
    * 
-
 
202
    * @return boolean[]
-
 
203
    */
-
 
204
   
-
 
205
   public function getPermissionList() {
-
 
206
      return $this->data['permissions'] ?? array();
-
 
207
   }
196
 
208
 
197
}
209
}
198
 
210
 
199
?>
211
?>