Class: atkMetaAttributeModifier
Source Location: /meta/class.atkmetaattributemodifier.inc
Class atkMetaAttributeModifier
Properties
Attribute names.
API Tags:
Methods
Add flag(s) .
Parameters:
API Tags:
Add flag(s) .
Parameters:
API Tags:
atkMetaAttributeModifier __construct(
atkMetaPolicy
$policy, array
$attrs
)
|
|
Cosntructor.
Parameters:
API Tags:
Enable/disable force insert.
Parameters:
API Tags:
Enable/disable force update.
Parameters:
API Tags:
Returns the attribute names.
API Tags:
Returns the meta policy.
API Tags:
void insert(
int
$position, [string
$attr = null]
)
|
|
Insert.
Parameters:
|
int |
$position: |
position |
|
string |
$attr: |
relative to attribute (optional) |
API Tags:
Insert attribute(s) after the given attribute.
Parameters:
|
string |
$attr: |
attribute name |
API Tags:
Insert attribute(s) at the bottom.
API Tags:
Insert attribute(s) at the top.
API Tags:
Insert attribute(s) before the given attribute.
Parameters:
|
string |
$attr: |
attribute name |
API Tags:
Remove flag(s).
Parameters:
API Tags:
Remove flag(s).
Parameters:
API Tags:
Set the column.
Parameters:
|
array|string |
$column: |
colum name |
API Tags:
Set the default value.
Parameters:
|
mixed |
$value: |
default value |
API Tags:
Add or remove attributes to/from the excludes list.
Parameters:
|
boolean |
$exclude: |
exclude? |
API Tags:
Set flag(s).
NOTE: this method will overwrite all currently set flags, including automatically detected flags!
Parameters:
API Tags:
Set flag(s).
NOTE: this method will overwrite all currently set flags, including automatically detected flags!
Parameters:
API Tags:
Add or remove attributes to/from the includes list.
The order of the attributes doesn't change!
Parameters:
|
boolean |
$include: |
include? |
API Tags:
Set the sections/tabs.
Parameters:
|
array|string |
$sections: |
section name(s) |
API Tags:
Set the sections/tabs.
Parameters:
|
array|string |
$tabs: |
tab name(s) |
API Tags:
Sets the type. All extra arguments after the type argument will be treated as parameters for the attribute(s).
If you need to pass arguments by reference you can better use the setTypeAndParams method.
Parameters:
|
string |
$type: |
full ATK attribute class (e.g. atk.attributes.atkboolattribute) |
|
mixed |
1: |
... all other arguments will be treated as parameters |
API Tags:
Sets the type and parameters.
Parameters:
|
string |
$type: |
full ATK attribute class (e.g. atk.attributes.atkboolattribute) |
|
array |
$params: |
parameters for the attribute (optional) |
API Tags: