コード例 #1
0
 /**
  * Public getter and setter for hasPermission
  * @param boolean $hasPerm
  * @return boolean
  */
 public static function has_permission($hasPerm = -1)
 {
     if ($hasPerm == -1) {
         return self::$hasPermission;
     } else {
         self::$hasPermission = $hasPerm;
     }
 }