public function getFieldDescription($field)
    {
        $item = $this->fields->find('Name', $field);

        if (!$item) {
            throw new Exception(
                sprintf(
                    'Tried to get field description for %s, but it has not been added to %s',
                    $field,
                    $this->getDataObjectClass()
                )
            );
        }

        return $item->Description;
    }
public function getFieldDescription($field)
    {
        $item = $this->fields->find('Name', $field);

        if (!$item) {
            throw new Exception(
                sprintf(
                    'Tried to get field description for %s, but it has not been added to %s',
                    $field,
                    $this->getDataObjectClass()
                )
            );
        }

        return $item->Description;
    }
public function getFieldDescription ( $ field ) { $ item = $ this -> fields -> find ( 'Name' , $ field ) ; if ( ! $ item ) { throw new Exception ( sprintf ( 'Tried to get field description for %s, but it has not been added to %s' , $ field , $ this -> getDataObjectClass ( ) ) ) ; } return $ item -> Description ; }
Gets the Description property from a field, given a name

@param  string $field
@return string
@throws Exception
Gets the Description property from a field given a name