CorePlugins

# Class: ColumnReorder Source Location: /coreplugins/tables/common/TableRulesRegistry.php
### Class Overview
    BaseRule
       |
       --GroupRule
          |
          --TableRule
             |
             --ColumnReorder
Rule to reorder the columns and theirs contents. | ### Variables $columnIds | ### Methods __construct applyRule array_swap reorder
### Inherited Constants #### Class: TableRule TableRule::WEIGHT_TABLE_GLOBAL TableRule::WEIGHT_TABLE_PARTIAL TableRule::WEIGHT_TABLE_SINGLE #### Class: GroupRule GroupRule::WEIGHT_GROUP_GLOBAL GroupRule::WEIGHT_GROUP_PARTIAL GroupRule::WEIGHT_GROUP_SINGLE #### Class: BaseRule BaseRule::WEIGHT_NO_MATCH | ### Inherited Variables #### Class: TableRule TableRule::$tableId #### Class: GroupRule GroupRule::$groupId #### Class: BaseRule BaseRule::$log | ### Inherited Methods #### Class: TableRule TableRule::applyRule() Executes a rule on a table TableRule::applyRules() Applies a set of rules on a table TableRule::checkRule() Checks a rule TableRule::getIndexes() Returns a map of index id's to their offset in the columnIds array. TableRule::getWeight() Computes weight #### Class: GroupRule GroupRule::addWeight() Stores computed weights GroupRule::applyRule() Executes a rule on a group GroupRule::applyRules() Applies a set of rules on a group GroupRule::checkRule() Checks a rule GroupRule::getWeight() Computes weight #### Class: BaseRule BaseRule::__construct() Constructor
### Class Details [line 1198] Rule to reorder the columns and theirs contents. [ Top ] ### Class Variables #### $columnIds = [line 1203] #### Tags:
access: | public
Type: | array
[ Top ] ### Class Methods ### constructor __construct [line 1211]
`ColumnReorder __construct( string $groupId, string $tableId, array $columnIds)`
Constructor #### Tags:
access: | public
Overrides BaseRule::__construct() (Constructor) #### Parameters:
string | $groupId |
string | $tableId |
array | $columnIds |
[ Top ] ### method applyRule [line 1255]
`void applyRule( Table $table, array $params)`
Executes a rule on a table #### Tags:
access: | public
Overrides TableRule::applyRule() (Executes a rule on a table) #### Parameters:
Table | $table |
array | $params |
[ Top ] ### method array_swap [line 1224]
`void array_swap( mixed $array, mixed $swaps)`
Helper function. Return a copy of $array, the cells are swapped using $swaps. For every cells in $swaps, the key give the old position in $array and the value the new position. #### Tags:
access: | protected
[ Top ] ### method reorder [line 1235]
`void reorder( mixed $table)`
#### Tags:
access: | protected
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:09 +0200 by phpDocumentor 1.3.0RC3