CorePlugins
[ class tree: CorePlugins ] [ index: CorePlugins ] [ all elements ]

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


Inherited Constants

Inherited Variables

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 1086]
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 1093]

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 Mon, 13 Feb 2006 11:44:15 +0100 by phpDocumentor 1.3.0RC3