src/Web2All/Table/ObjectList.class.php
public function offsetSet($offset, $value){
  
    if (is_null($this->result)) {
      $this->fetchData();
    }
    if (!$this->isFetched()) {
      trigger_error('Web2All_Table_ObjectList::offsetSet: cannot set value on unitialized list',E_USER_NOTICE);
      return false;
    }
    if (!$this->is_assoc && !is_numeric($value)) {
      trigger_error('Web2All_Table_ObjectList::offsetSet: can only set numeric keys non assoc lists',E_USER_NOTICE);
      return false;
    }
    
    if ($value instanceof $this->classname) {
      $this->result[$offset]=$value;
    }else{
      trigger_error('Web2All_Table_ObjectList::offsetSet: can only add objects of type '.$this->classname.' to the list',E_USER_NOTICE);
      return false;
    }
  }
public function offsetSet($offset, $value){
  
    if (is_null($this->result)) {
      $this->fetchData();
    }
    if (!$this->isFetched()) {
      trigger_error('Web2All_Table_ObjectList::offsetSet: cannot set value on unitialized list',E_USER_NOTICE);
      return false;
    }
    if (!$this->is_assoc && !is_numeric($value)) {
      trigger_error('Web2All_Table_ObjectList::offsetSet: can only set numeric keys non assoc lists',E_USER_NOTICE);
      return false;
    }
    
    if ($value instanceof $this->classname) {
      $this->result[$offset]=$value;
    }else{
      trigger_error('Web2All_Table_ObjectList::offsetSet: can only add objects of type '.$this->classname.' to the list',E_USER_NOTICE);
      return false;
    }
  }
Add a new element to the array

ArrayAccess implementation

@param mixed $offset
@param mixed $value
@return boolean