Property | Type | Description | |
---|---|---|---|
$builder | The Builder which called us | ||
$model | The Model attached to the view we're building | ||
$viewName | string | The name of our view | |
$xml | SimpleXMLElement | The XML document we're constructing |
Method | Description | |
---|---|---|
__construct ( |
Construct the erector object | |
build ( ) : void | Erects a scaffold. It then uses the parent's setXml and setStrings to assign the erected scaffold and the additional language strings to the parent which will decide what to do with that. | |
getFieldType ( string $type ) : array | Convert the database type into something we can use |
Method | Description | |
---|---|---|
addString ( string $key, string $value ) | Adds a language string definition as long as it doesn't exist in the existing language file. | |
getFieldLabel ( string $fieldName ) : array | Returns the language definition for a field. The hashed array has two keys, label and desc, each one containing the language definition for the label and description of the field. Each definition has the keys key and value with the language key and actual language string. | |
getLangKeyPrefix ( ) : string | Returns the common language key prefix, something like "COM_EXAMPLE_MYVIEW_" | |
pushResults ( ) | Push the form and strings to the builder |
public __construct ( |
||
$parent | The parent builder | |
$model | The model we're erecting a scaffold against | |
$viewName | string | The view name for this model |
protected getFieldLabel ( string $fieldName ) : array | ||
$fieldName | string | |
return | array |
public static getFieldType ( string $type ) : array | ||
$type | string | The type of the database field |
return | array |
protected getLangKeyPrefix ( ) : string | ||
return | string |
protected Builder,FOF30\Factory\Scaffolding\Layout $builder | ||
return |
protected DataModel,FOF30\Model $model | ||
return |