public function offsetGet($offset)
    {
        if (!is_int($offset)) {
            throw new \Erebot\InvalidValueException('An integer was expected');
        }

        $this->getQuery->execute(array(':offset' => $offset));
        $res = $this->getQuery->fetchColumn();
        $this->getQuery->closeCursor();

        if ($res == '' || $res === null || $res === false) {
            return null;
        }
        return $res;
    }
public function offsetGet($offset)
    {
        if (!is_int($offset)) {
            throw new \Erebot\InvalidValueException('An integer was expected');
        }

        $this->getQuery->execute(array(':offset' => $offset));
        $res = $this->getQuery->fetchColumn();
        $this->getQuery->closeCursor();

        if ($res == '' || $res === null || $res === false) {
            return null;
        }
        return $res;
    }
public function offsetGet ( $ offset ) { if ( ! is_int ( $ offset ) ) { throw new \ Erebot \ InvalidValueException ( 'An integer was expected' ) ; } $ this -> getQuery -> execute ( array ( ':offset' => $ offset ) ) ; $ res = $ this -> getQuery -> fetchColumn ( ) ; $ this -> getQuery -> closeCursor ( ) ; if ( $ res == '' || $ res === null || $ res === false ) { return null ; } return $ res ; }
Returns the word at the given offset.

\param int $offset
Offset of the word to retrieve.

\retval string
The word at the given $offset.

\throw Erebot::InvalidValueException
The given offset is not an integer.
Returns the word at the given offset .