Class Enum
Represents an enumeration field.
- Object
-
ViewableData
implements
IteratorAggregate
-
DBField
-
Enum
Direct known subclasses
Methods summary
public
|
#
__construct( enum: $name,
Create a new Enum field. You should create an enum field like this: |
public
|
|
public
|
|
public
|
#
scaffoldFormField( string $title = null, mixed $params = null )
Returns a FormField instance used as a default for form scaffolding. |
public
|
#
scaffoldSearchField( string $title = null )
Returns a FormField instance used as a default for searchform scaffolding. |
public
boolean
|
|
public
|
#
enumValues( mixed $hasEmpty = false )
Return the values of this enum, suitable for insertion into a dropdown field. |
public
|
|
public
|
Methods inherited from DBField
ATT(),
HTML(),
HTMLATT(),
JS(),
LowerCase(),
RAW(),
RAWURLATT(),
URLATT(),
UpperCase(),
XML(),
addToQuery(),
create(),
debug(),
defaultSearchFilter(),
exists(),
forTemplate(),
getName(),
getValue(),
nullValue(),
prepValueForDB(),
saveInto(),
setName(),
setTable(),
setValue(),
writeToManipulation()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
createMethod(),
create_from_string(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
protected
mixed
|
$enum | |
protected
mixed
|
$default | |
public static
string
|
$default_search_filter_class |
#
Subclass of |
Properties inherited from DBField
$arrayValue,
$defaultVal,
$escape_type,
$name,
$tableName,
$value
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems