public function offsetSet($offset, $value)
    {
        !is_int($offset) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Only accepts integer offsets',
            E_USER_WARNING
        );
        ($this->_count >= $this->_nbByPage) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Max number of elements by page reached',
            E_USER_ERROR
        );
        if (is_int($offset) and ($this->hasLimit() && ($this->_count >= $this->_nbByPage))) {
            $this->_elements[$offset] = $value;
            $this->_count = count($this->_elements);
        }
    }
public function offsetSet($offset, $value)
    {
        !is_int($offset) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Only accepts integer offsets',
            E_USER_WARNING
        );
        ($this->_count >= $this->_nbByPage) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Max number of elements by page reached',
            E_USER_ERROR
        );
        if (is_int($offset) and ($this->hasLimit() && ($this->_count >= $this->_nbByPage))) {
            $this->_elements[$offset] = $value;
            $this->_count = count($this->_elements);
        }
    }
public function offsetSet ( $ offset , $ value ) { ! is_int ( $ offset ) and trigger_error ( __CLASS__ . '::' . __FUNCTION__ . '() : Only accepts integer offsets' , E_USER_WARNING ) ; ( $ this -> _count >= $ this -> _nbByPage ) and trigger_error ( __CLASS__ . '::' . __FUNCTION__ . '() : Max number of elements by page reached' , E_USER_ERROR ) ; if ( is_int ( $ offset ) and ( $ this -> hasLimit ( ) && ( $ this -> _count >= $ this -> _nbByPage ) ) ) { $ this -> _elements [ $ offset ] = $ value ; $ this -> _count = count ( $ this -> _elements ) ; } }
sets an offset

@param int $offset
@param mixed $value
sets an offset