Class FormScaffolder
- Object
-
FormScaffolder
Uses:
DBField::scaffoldFormField() Uses:
DataObject::fieldLabels() Used by:
DataObject::scaffoldFormFields() Located at sapphire/forms/FormScaffolder.php
Methods summary
public
|
|
public
|
#
getFieldSet( )
Gets the form fields as defined through the metadata on |
protected
array
|
#
getParamsArray( )
Return an array suitable for passing on to DBField->scaffoldFormField() without tying this call to a FormScaffolder interface. |
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
defineMethods(),
exists(),
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
|
$obj |
#
$obj The object defining the fields to be scaffolded through its metadata like $db, $searchable_fields, etc. |
public
boolean
|
$tabbed |
#
$tabbed Return fields in a tabset, with all main fields in the path
"Root.Main", relation fields in "Root.<relationname>" (if |
public
boolean
|
$ajaxSafe |
#
$ajaxSafe |
public
array
|
$restrictFields |
#
$restrictFields Numeric array of a field name whitelist. If left blank, all fields from DataObject->db() will be included. |
public
array
|
$fieldClasses |
#
$fieldClasses Optional mapping of fieldnames to subclasses of |
public
boolean
|
$includeRelations |
#
$includeRelations Include has_one, has_many and many_many relations |