/**
  * Answer the is authorized cache used by this manager.
  *
  * WARNING: NOT IN OSID
  * 
  * @return object IsAuthorizedCache
  * @access public
  * @since 4/21/08
  */
 public function getIsAuthorizedCache()
 {
     if (!isset($this->isAuthorizedCache)) {
         $this->isAuthorizedCache = AuthZ2_IsAuthorizedCache::initializeForManager($this);
     }
     return $this->isAuthorizedCache;
 }
 /**
  * Set up the cache instance to use a particular AuthorizationManager
  * 
  * @param object AuthorizationManager $manager
  * @return object
  * @access public
  * @since 4/22/08
  * @static
  */
 public static function initializeForManager(AuthorizationManager $manager)
 {
     if (!isset(self::$instance)) {
         self::$instance = new AuthZ2_IsAuthorizedCache($manager);
     } else {
         self::$instance->initialize($manager);
     }
     return self::$instance;
 }
 /**
  * Return the next Qualifier.
  *	
  * @return object Qualifier
  * 
  * @throws object HierarchyException An exception with one of
  *		   the following messages defined in
  *		   org.osid.hierarchy.HierarchyException may be thrown:	 {@link
  *		   org.osid.hierarchy.HierarchyException#OPERATION_FAILED
  *		   OPERATION_FAILED}, {@link
  *		   org.osid.hierarchy.HierarchyException#PERMISSION_DENIED
  *		   PERMISSION_DENIED}, {@link
  *		   org.osid.hierarchy.HierarchyException#CONFIGURATION_ERROR
  *		   CONFIGURATION_ERROR}, {@link
  *		   org.osid.hierarchy.HierarchyException#UNIMPLEMENTED
  *		   UNIMPLEMENTED}, {@link
  *		   org.osid.hierarchy.HierarchyException#NO_MORE_ITERATOR_ELEMENTS
  *		   NO_MORE_ITERATOR_ELEMENTS}
  * 
  * @access public
  */
 function next()
 {
     // If this is the first element access, inform our AZ cache that we are
     // working with this set of nodes so that it can fetch AZs for all of
     // them at once.
     if ($this->_i == -1) {
         $isAuthorizedCache = AuthZ2_IsAuthorizedCache::instance();
         $isAuthorizedCache->queueAssetArray($this->_elements);
     }
     return parent::next();
 }