src/wcmf/lib/persistence/impl/RemoteCapablePersistenceFacade.php
protected function registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName) {
    if ($buildDepth == 0) {
      $buildDepth=BuildDepth::SINGLE;
    }
    // save the object in the session
    $umiStr = $umi->toString();
    $objects = $this->session->get($varName);
    if (!isset($objects[$umiStr])) {
      $objects[$umiStr] = [];
    }
    $objects[$umiStr][$buildDepth] = $obj;
    $this->session->set($varName, $objects);
  }
protected function registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName) {
    if ($buildDepth == 0) {
      $buildDepth=BuildDepth::SINGLE;
    }
    // save the object in the session
    $umiStr = $umi->toString();
    $objects = $this->session->get($varName);
    if (!isset($objects[$umiStr])) {
      $objects[$umiStr] = [];
    }
    $objects[$umiStr][$buildDepth] = $obj;
    $this->session->set($varName, $objects);
  }
protected function registerObject ( ObjectId $ umi , PersistentObject $ obj , $ buildDepth , $ varName ) { if ( $ buildDepth == 0 ) { $ buildDepth = BuildDepth :: SINGLE ; } // save the object in the session $ umiStr = $ umi -> toString ( ) ; $ objects = $ this -> session -> get ( $ varName ) ; if ( ! isset ( $ objects [ $ umiStr ] ) ) { $ objects [ $ umiStr ] = [ ] ; } $ objects [ $ umiStr ] [ $ buildDepth ] = $ obj ; $ this -> session -> set ( $ varName , $ objects ) ; }
Save a object in the given session variable.
@param $umi The universal model id (oid with server prefix)
@param $obj The object to register.
@param $buildDepth The depth the object was loaded.
@param $varName The session variable name.
Save a object in the given session variable .