/**
* @return String
*/
- function __toString(){
+ function __toString() {
return $this->getName();
}
*
* @return bool
*/
- public function isAllowedAny( /*...*/ ){
+ public function isAllowedAny( /*...*/ ) {
$permissions = func_get_args();
foreach( $permissions as $permission ){
if( $this->isAllowed( $permission ) ){
* @internal param $varargs string
* @return bool True if the user is allowed to perform *all* of the given actions
*/
- public function isAllowedAll( /*...*/ ){
+ public function isAllowedAll( /*...*/ ) {
$permissions = func_get_args();
foreach( $permissions as $permission ){
if( !$this->isAllowed( $permission ) ){
* so it is still advisable to make the call conditional on isLoggedIn(),
* and to commit the transaction after calling.
*
+ * @throws MWException
* @return Status
*/
public function addToDatabase() {