MagAdapter
abstract MagAdapter implements Mag
Class MagAdapter
All Implemented Interfaces:
SubTypes
- BoolMag
- ChoicesMapMag
- ClassNameMag
- DateTimeMag
- EnumArrayMag
- EnumMag
- FileMag
- MagArrayMag
- MagCollectionArrayMag
- MagCollectionMag
- MultiSelectMag
- NumericMag
- ObjectMagAdapter
- ReflectionClassMag
- ScalarMagAdapter
- SecretStringMag
- StringArrayMag
- StringMag
- ContentItemMag
- RelationFilterGroupMag
- RelationSelectorMag
- ToManyMag
- ToOneMag
- TranslationMag
Property summary
Modifier and Type | Property |
---|---|
protected | propertyName |
protected | labelLstr |
protected | helpTextLstr |
protected | attrs |
protected | value |
Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( unknown labelLstr , null value = null , array|null attrs = null ) |
public mixed | setPropertyName ( string name ) |
public string | getPropertyName ( ) |
public string | getLabel ( N2nLocale n2nLocale ) |
public | setLabelLstr ( Lstr labelL10nStr ) |
public | getHelpText ( N2nLocale n2nLocale ) |
public | setHelpTextLstr ( Lstr helpTextLstr ) |
public array | getContainerAttrs ( HtmlView view ) |
public | getAttrs ( ) |
public | setAttrs ( array attrs ) |
public | setupMappingDefinition ( MappingDefinition md ) |
public mixed | getFormValue ( ) |
public | setFormValue ( unknown formValue ) |
public mixed | getValue ( ) |
public | setValue ( mixed value ) |
public mixed | whenAssigned ( MagCollection magCollection ) |
public bool | getNature ( ) |
Properties in detail
-
propertyName
protected propertyName
-
labelLstr
protected labelLstr
-
helpTextLstr
protected helpTextLstr
-
attrs
protected attrs
-
value
protected value
Methods in detail
-
__construct
public __construct ( unknown labelLstr , null value = null , array|null attrs = null )MagAdapter constructor.param
$labelLstrnull valuearray|null attrs -
setPropertyName
mixed public setPropertyName ( string name )Specified: MagOverrides: Mag::setPropertyName() -
getPropertyName
string public getPropertyName ( )return
stringSpecified: MagOverrides: Mag::getPropertyName() -
getLabel
Specified: MagOverrides: Mag::getLabel() -
setLabelLstr
param
-
getHelpText
-
setHelpTextLstr
-
getContainerAttrs
Specified: MagOverrides: Mag::getContainerAttrs() -
getAttrs
public getAttrs ( ) -
setAttrs
public setAttrs ( array attrs ) -
setupMappingDefinition
Specified: MagOverrides: Mag::setupMappingDefinition() -
getFormValue
mixed public getFormValue ( )return
mixedSpecified: MagOverrides: Mag::getFormValue() -
setFormValue
public setFormValue ( unknown formValue )Specified: MagOverrides: Mag::setFormValue() -
getValue
mixed public getValue ( )Specified: MagOverrides: Mag::getValue() -
setValue
public setValue ( mixed value )Specified: MagOverrides: Mag::setValue() -
whenAssigned
Specified: MagOverrides: Mag::whenAssigned() -
getNature
bool public getNature ( )Specified: MagOverrides: Mag::getNature()