Class: atkColumnConfig
Source Location: /recordlist/class.atkcolumnconfig.inc
Class atkColumnConfig
Method Summary
| bool |
isFirst() |
Is this attribute first? |
| bool |
isLast() |
Is this attribute last? |
Methods
void addOrderByField(
string
$field, string
$direction, [string
$extra = ""], [string
$sortorder = NULL]
)
|
|
Add orderby field
Parameters:
|
string |
$field: |
|
|
string |
$direction: |
|
|
string |
$extra: |
|
|
string |
$sortorder: |
|
void doUrlCommand(
array
$cmd
)
|
|
Do url command
Parameters:
Get attribute by order
Parameters:
Get an instance of the columnconfig class
Parameters:
|
atkNode |
$node: |
|
|
string |
$id: |
|
|
boolean |
$forceNew: |
force new instance? |
|
|
&$node: |
|
API Tags:
| Return: | An instance of the columnconfig class |
string getDirection(
string
$attribute
)
|
|
Get direction
Parameters:
string getDirectionByOrder(
int
$order
)
|
|
Get direction by order
Parameters:
string getOrder(
string
$attribute
)
|
|
Get order
Parameters:
string getOrderByStatement(
)
|
|
Get orderby statement
API Tags:
| Return: | Orderby statement |
string getSortDirection(
string
$attribute
)
|
|
Get sort direction
Parameters:
API Tags:
| Return: | The sort direction |
string getUrlCommand(
string
$attribute, string
$command
)
|
|
Get url command
Parameters:
|
string |
$attribute: |
|
|
string |
$command: |
|
string getUrlCommandParams(
string
$attribute, string
$command
)
|
|
Get url command params
Parameters:
|
string |
$attribute: |
|
|
string |
$command: |
|
bool hasSubTotal(
string
$attribute
)
|
|
Has subtotal?
Parameters:
API Tags:
bool hasSubTotalByOrder(
int
$order
)
|
|
Has subtotal by order?
Parameters:
API Tags:
void hideCol(
string
$attribute
)
|
|
Hide a column
Parameters:
bool isFirst(
string
$attribute
)
|
|
Is this attribute first?
Parameters:
API Tags:
bool isLast(
string
$attribute
)
|
|
Is this attribute last?
Parameters:
API Tags:
void moveLeft(
string
$attribute
)
|
|
Move left
Parameters:
void moveRight(
string
$attribute
)
|
|
Move right
Parameters:
void setNode(
&$node, atkNode
$node
)
|
|
Set the node
Parameters:
void setSortDirection(
string
$attribute, string
$direction
)
|
|
Set sort direction
Parameters:
|
string |
$attribute: |
|
|
string |
$direction: |
|
void setSortOrder(
string
$attribute, string
$value
)
|
|
Set sort order
Parameters:
|
string |
$attribute: |
|
|
string |
$value: |
|
void setSubTotal(
string
$attribute, bool
$active
)
|
|
Set subtotal
Parameters:
|
string |
$attribute: |
|
|
bool |
$active: |
|
void showCol(
string
$attribute
)
|
|
Show a column
Parameters:
array totalizableColumns(
)
|
|
Get the totalizable columns
void _addOrderByStatement(
string
$orderby
)
|
|
Add orderby statement
Parameters:
int _compareSortAttrs(
array
$a, array
$b
)
|
|
Compare sortorder of two attributes
Parameters: