Storm\Drivers\Base\Object\Properties\Collections\Collection::offsetSet PHP Method

offsetSet() public method

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

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