public function offsetGet($field)
    {
        if ($this->getState() == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }

        if (!array_key_exists($field, $this->_securedFieldForArrayAccess['data'])) {
            throw new Exception\FieldNotFoundException(__METHOD__ . ": Cannot get field value, field '$field' does not exists in record.");
        }

        return  $this->_securedFieldForArrayAccess['data'][$field];
    }
public function offsetGet($field)
    {
        if ($this->getState() == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }

        if (!array_key_exists($field, $this->_securedFieldForArrayAccess['data'])) {
            throw new Exception\FieldNotFoundException(__METHOD__ . ": Cannot get field value, field '$field' does not exists in record.");
        }

        return  $this->_securedFieldForArrayAccess['data'][$field];
    }
public function offsetGet ( $ field ) { if ( $ this -> getState ( ) == self :: STATE_DELETED ) { throw new Exception \ LogicException ( __METHOD__ . ": Logic exception, cannot operate on record that was deleted" ) ; } if ( ! array_key_exists ( $ field , $ this -> _securedFieldForArrayAccess [ 'data' ] ) ) { throw new Exception \ FieldNotFoundException ( __METHOD__ . ": Cannot get field value, field '$field' does not exists in record." ) ; } return $ this -> _securedFieldForArrayAccess [ 'data' ] [ $ field ] ; }
Get field value
@param string $field
@return mixed
@throws Exception\FieldNotFoundException
Get field value