src/wcmf/lib/persistence/impl/DefaultPersistentObject.php
protected function setOIDInternal(ObjectId $oid, $triggerListeners) {
    $this->type = $oid->getType();
    $this->oid = $oid;
    // update the primary key attributes
    $ids = $oid->getId();
    $pkNames = $this->getMapper()->getPkNames();
    for ($i=0, $count=sizeof($pkNames); $i<$count; $i++) {
      if ($triggerListeners) {
        $this->setValue($pkNames[$i], $ids[$i], true);
      }
      else {
        $this->setValueInternal($pkNames[$i], $ids[$i]);
      }
    }
  }
protected function setOIDInternal(ObjectId $oid, $triggerListeners) {
    $this->type = $oid->getType();
    $this->oid = $oid;
    // update the primary key attributes
    $ids = $oid->getId();
    $pkNames = $this->getMapper()->getPkNames();
    for ($i=0, $count=sizeof($pkNames); $i<$count; $i++) {
      if ($triggerListeners) {
        $this->setValue($pkNames[$i], $ids[$i], true);
      }
      else {
        $this->setValueInternal($pkNames[$i], $ids[$i]);
      }
    }
  }
protected function setOIDInternal ( ObjectId $ oid , $ triggerListeners ) { $ this -> type = $ oid -> getType ( ) ; $ this -> oid = $ oid ; // update the primary key attributes $ ids = $ oid -> getId ( ) ; $ pkNames = $ this -> getMapper ( ) -> getPkNames ( ) ; for ( $ i = 0 , $ count = sizeof ( $ pkNames ) ; $ i < $ count ; $ i ++ ) { if ( $ triggerListeners ) { $ this -> setValue ( $ pkNames [ $ i ] , $ ids [ $ i ] , true ) ; } else { $ this -> setValueInternal ( $ pkNames [ $ i ] , $ ids [ $ i ] ) ; } } }
Set the object id of the PersistentObject.
@param $oid The PersistentObject's oid.
@param $triggerListeners Boolean, whether value CahngeListeners should be
notified or not
Set the object id of the PersistentObject .