Changeset 20

Show
Ignore:
Timestamp:
06/22/06 10:42:13 (3 years ago)
Author:
richard
Message:

Added ability to load group array

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Zend/Perms.php

    r19 r20  
    111111         * Assign the array you wish to use for verification 
    112112         */ 
    113         public static function load($perm_array) { 
    114                 self::$_perm_array = $perm_array; 
     113        public static function load($array, $group = 0) { 
     114    if($group) { 
     115                self::$_perm_array = $array; 
     116    } else { 
     117      self::$_group_array = $array; 
     118     } 
    115119        } 
    116120