Storm\Drivers\Base\Object\Properties\Collections\Collection::offsetSet PHP Méthode

offsetSet() public méthode

public offsetSet ( $Index, $Entity )
    public function offsetSet($Index, $Entity)
    {
        $this->VerifyEntity(__METHOD__, $Entity);
        if (isset($this[$Index])) {
            if ($this[$Index] === $Entity) {
                return;
            }
        }
        $this->IsAltered = true;
        return parent::offsetSet($Index, $Entity);
    }

Usage Example

 public function offsetSet($index, $newval)
 {
     $this->Load();
     return parent::offsetSet($index, $newval);
 }