CorePlugins

# Class: ColumnAdderBatch Source Location: /coreplugins/tables/common/TableRulesRegistry.php
### Class Overview
    BaseRule
       |
       --GroupRule
          |
          --TableRule
             |
             --TableFilter
                |
                --ColumnAdder
                   |
                   --ColumnAdderBatch
Rule to add one or more columns and compute content of all cells #### Author(s): | ### Methods applyRule
### 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: ColumnAdder ColumnAdder::$columnPosition ColumnAdder::$currentTableId ColumnAdder::$inputColumnIds ColumnAdder::$newColumnIds ColumnAdder::$useAllFields #### Class: TableFilter TableFilter::$callback #### Class: TableRule TableRule::$tableId #### Class: GroupRule GroupRule::$groupId #### Class: BaseRule BaseRule::$log | ### Inherited Methods #### Class: ColumnAdder ColumnAdder::__construct() Constructor ColumnAdder::addNewColumns() Adds new columns into table definition of columns ColumnAdder::addWeight() Stores computed weights ColumnAdder::applyRule() Execute a rule on table #### Class: TableFilter TableFilter::__construct() Constructor TableFilter::applyRule() Execute a rule on a table #### 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 1141] Rule to add one or more columns and compute content of all cells Callback method should have the following signature:
     static function myCallbackMethod('table_id',
                                      array (
                                      '0' => array (
                                             'column_1' => 'value_1_row_1',
                                             'column_2' => 'value_2_row_1'),
                                      '1' => array (
                                             'column_1' => 'value_1_row_2',
                                             'column_2' => 'value_2_row_2') ) )
       return array (
              '0' => array (
                     'new_column_1' => 'cell_value_1_row_1',
                     'new_column_2' => 'cell_value_2_row_1'),
              '1' => array (
                     'new_column_1' => 'cell_value_1_row_2',
                     'new_column_2' => 'cell_value_2_row_2') ) )
#### Tags:
see: | CellFilter
[ Top ] ### Class Methods ### method applyRule [line 1148]
`void applyRule( Table $table, array $params)`
Execute a rule on table #### Tags:
access: | public
Overrides ColumnAdder::applyRule() (Execute a rule on table) #### Parameters:
Table | $table |
array | $params |
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:08 +0200 by phpDocumentor 1.3.0RC3