src/wcmf/lib/model/PersistentIterator.php
public static function load($id, $persistenceFacade, $session) {
    // get state from session
    $state = $session->get($id);
    if ($state == null) {
      return null;
    }
    // create instance
    $instance = new PersistentIterator($id, $persistenceFacade, $session,
            $state['currentOID']);
    $instance->end = $state['end'];
    $instance->oidList = $state['oidList'];
    $instance->processedOidList = $state['processedOidList'];
    $instance->currentDepth = $state['currentDepth'];
    $instance->aggregationKinds = $state['aggregationKinds'];
    return $instance;
  }
public static function load($id, $persistenceFacade, $session) {
    // get state from session
    $state = $session->get($id);
    if ($state == null) {
      return null;
    }
    // create instance
    $instance = new PersistentIterator($id, $persistenceFacade, $session,
            $state['currentOID']);
    $instance->end = $state['end'];
    $instance->oidList = $state['oidList'];
    $instance->processedOidList = $state['processedOidList'];
    $instance->currentDepth = $state['currentDepth'];
    $instance->aggregationKinds = $state['aggregationKinds'];
    return $instance;
  }
public static function load ( $ id , $ persistenceFacade , $ session ) { // get state from session $ state = $ session -> get ( $ id ) ; if ( $ state == null ) { return null ; } // create instance $ instance = new PersistentIterator ( $ id , $ persistenceFacade , $ session , $ state [ 'currentOID' ] ) ; $ instance -> end = $ state [ 'end' ] ; $ instance -> oidList = $ state [ 'oidList' ] ; $ instance -> processedOidList = $ state [ 'processedOidList' ] ; $ instance -> currentDepth = $ state [ 'currentDepth' ] ; $ instance -> aggregationKinds = $ state [ 'aggregationKinds' ] ; return $ instance ; }
Load an iterator state from the session
@param $id  The unique iterator id used to store iterator's the state in the session
@param $persistenceFacade
@param $session
@return PersistentIterator instance holding the saved state or null if unique id is not found
Load an iterator state from the session