src/ORM/FieldType/DBEnum.php
public function formField($title = null, $name = null, $hasEmpty = false, $value = "", $emptyString = null)
    {

        if (!$title) {
            $title = $this->getName();
        }
        if (!$name) {
            $name = $this->getName();
        }

        $field = new DropdownField($name, $title, $this->enumValues(false), $value);
        if ($hasEmpty) {
            $field->setEmptyString($emptyString);
        }

        return $field;
    }
public function formField($title = null, $name = null, $hasEmpty = false, $value = "", $emptyString = null)
    {

        if (!$title) {
            $title = $this->getName();
        }
        if (!$name) {
            $name = $this->getName();
        }

        $field = new DropdownField($name, $title, $this->enumValues(false), $value);
        if ($hasEmpty) {
            $field->setEmptyString($emptyString);
        }

        return $field;
    }
public function formField ( $ title = null , $ name = null , $ hasEmpty = false , $ value = "" , $ emptyString = null ) { if ( ! $ title ) { $ title = $ this -> getName ( ) ; } if ( ! $ name ) { $ name = $ this -> getName ( ) ; } $ field = new DropdownField ( $ name , $ title , $ this -> enumValues ( false ) , $ value ) ; if ( $ hasEmpty ) { $ field -> setEmptyString ( $ emptyString ) ; } return $ field ; }
Return a dropdown field suitable for editing this field.

@param string $title
@param string $name
@param bool $hasEmpty
@param string $value
@param string $emptyString
@return DropdownField
Return a dropdown field suitable for editing this field .