public function getValue($field) {
        if (is_array($this->values)) {
            return isset($this->values[$field]) ? $this->values[$field] : null;
        }
        if (is_object($this->values)) {
            return $this->values->$field;
        }
        return null;
    }
public function getValue($field) {
        if (is_array($this->values)) {
            return isset($this->values[$field]) ? $this->values[$field] : null;
        }
        if (is_object($this->values)) {
            return $this->values->$field;
        }
        return null;
    }
public function getValue ( $ field ) { if ( is_array ( $ this -> values ) ) { return isset ( $ this -> values [ $ field ] ) ? $ this -> values [ $ field ] : null ; } if ( is_object ( $ this -> values ) ) { return $ this -> values -> $ field ; } return null ; }
Get value of selected field or null if it doesn't exists
@param $field
@return null|mixed
Get value of selected field or null if it doesn t exists