public function getField($id, $field)
    {
        if (!in_array($field, static::$fields)) {
            throw new InvalidArgumentException(sprintf('There is no field named %s.', $field));
        }

        $response = $this->get($this->path.'/'.rawurlencode($id).'/'.rawurlencode($field));

        return isset($response['_value']) ? $response['_value'] : $response;
    }
public function getField($id, $field)
    {
        if (!in_array($field, static::$fields)) {
            throw new InvalidArgumentException(sprintf('There is no field named %s.', $field));
        }

        $response = $this->get($this->path.'/'.rawurlencode($id).'/'.rawurlencode($field));

        return isset($response['_value']) ? $response['_value'] : $response;
    }
public function getField ( $ id , $ field ) { if ( ! in_array ( $ field , static :: $ fields ) ) { throw new InvalidArgumentException ( sprintf ( 'There is no field named %s.' , $ field ) ) ; } $ response = $ this -> get ( $ this -> path . '/' . rawurlencode ( $ id ) . '/' . rawurlencode ( $ field ) ) ; return isset ( $ response [ '_value' ] ) ? $ response [ '_value' ] : $ response ; }
Get a field value by field name

@param string $id    the board's id
@param string $field the field

@return mixed field value

@throws InvalidArgumentException If the field does not exist
Get a field value by field name