Exemple #1
0
 /**
  * Sets default ACL role(s) to use when iterating pages if not explicitly
  * set later with {@link setRole()}
  *
  * @param  midex $role               [optional] role to set. Expects null,
  *                                   string, or an instance of
  *                                   {@link IfwPsn_Vendor_Zend_Acl_Role_Interface}.
  *                                   Default is null, which sets no default
  *                                   role.
  * @throws IfwPsn_Vendor_Zend_View_Exception       if role is invalid
  * @return void
  */
 public static function setDefaultRole($role = null)
 {
     if (null === $role || is_string($role) || $role instanceof IfwPsn_Vendor_Zend_Acl_Role_Interface) {
         self::$_defaultRole = $role;
     } else {
         require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/View/Exception.php';
         throw new IfwPsn_Vendor_Zend_View_Exception('$role must be null|string|IfwPsn_Vendor_Zend_Acl_Role_Interface');
     }
 }