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

Class: ColumnReorder

Source Location: /coreplugins/tables/common/TableRulesRegistry.php

Class Overview

BaseRule
   |
   --GroupRule
      |
      --TableRule
         |
         --ColumnReorder

Rule to reorder the columns and theirs contents.


Variables

Methods


Inherited Constants

Inherited Variables

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 1143]
Rule to reorder the columns and theirs contents.



[ Top ]


Class Variables

$columnIds =

[line 1148]



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor __construct [line 1156]

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 1200]

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 1169]

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 1180]

void reorder( mixed $table)



Tags:

access:  protected


[ Top ]


Documentation generated on Mon, 13 Feb 2006 11:44:16 +0100 by phpDocumentor 1.3.0RC3