static string getSectionLabel(
atkNode
$node, string
$rawName
)
|
|
Get section label.
Parameters:
API Tags:
static string getTabLabel(
atkNode
$node, string
$tab
)
|
|
Get tab label.
Parameters:
API Tags:
Array getRecord(
[bool
$force = false]
)
|
|
Get the record to view/edit. It is cached as long as the instance exists, unless we force a reload.
Parameters:
|
bool |
$force: |
Whether or not to force the fetching of the record |
API Tags:
| Return: | The record for viewing/editting |
| Access: | public |
Get the record for the database with the current selector
API Tags:
Redefined in descendants as:
array getRecordFromSession(
)
|
|
Get the current record from the database with the current selector
API Tags:
string getSectionControl(
array
$field, string
$mode
)
|
|
Create the clickable label for the section.
Parameters:
|
array |
$field: |
|
|
string |
$mode: |
|
API Tags:
boolean isSectionInitialHidden(
string
$section, array
$fields
)
|
|
Based on the attributes that are part of this section we check if this section should initially be shown or not.
Parameters:
|
string |
$section: |
section name |
|
array |
$fields: |
edit fields |
void partial_attribute(
string
$partial
)
|
|
Attribute handler.
Parameters:
|
string |
$partial: |
full partial |
API Tags:
void partial_sectionstate(
)
|
|
Section state handler.
void _addNumbering(
&$field,
&$tplfield,
&$i, array
$field, array
$tplfield, int
$i
)
|
|
Adds numbering to the label of a field
Parameters:
|
array |
$field: |
the currently handled attribute |
|
array |
$tplfield: |
the template data for the current attribute |
|
int |
$i: |
the counter being used to loop the node for each attribute |
|
|
&$field: |
|
|
|
&$tplfield: |
|
|
|
&$i: |
|
API Tags:
array _getTabTpl(
object
$node, array
$tabs, string
$mode, array
$record
)
|
|
Get array with tab name as key and tab template as value
Parameters:
|
object |
$node: |
|
|
array |
$tabs: |
|
|
string |
$mode: |
|
|
array |
$record: |
|
API Tags:
| Return: | with tab=>template pear |
array _renderTabs(
array
$fields, array
$tabTpl
)
|
|
Render tabs using templates
Parameters:
|
array |
$fields: |
|
|
array |
$tabTpl: |
|
API Tags:
| Return: | with already rendering tabs |
Information Tags:
| Todo: | this method seems broken by design, read comments for more info! |