Squiz Matrix
4.12.2
|
Public Member Functions | |
__construct () | |
setAttribute ($name, $value) | |
setContentType (Bodycopy_Table $table, $type, $rowid, $cellid) | |
updateContentType (Bodycopy_Table $table, $new_rowid, $new_cellid) | |
delete (Bodycopy_Table $table) | |
colspan () | |
rowspan () | |
paint (Bodycopy_Table $table, $prefix='', $editing=FALSE, $generating=FALSE) | |
paintCell (Bodycopy_Table $table, $prefix, $tableid, $rowid, $cellid) | |
paintCellBackendStatusIcons (Bodycopy_Table $table, $prefix, $tableid, $rowid, $cellid) | |
processCell (Bodycopy_Table $table, $prefix, $tableid, $rowid, $cellid, Array $bc_saved) | |
printBackendJsData ($cellid) | |
setDirAttr ($dir_attribute) | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Data Fields | |
$attributes = Array() | |
Data Fields inherited from MySource_Object | |
$_tmp | |
Protected Member Functions | |
_updateCellType (Bodycopy_Table $table, $new_type='') | |
Definition at line 29 of file bodycopy_table_cell.inc.
__construct | ( | ) |
Constructor
Definition at line 43 of file bodycopy_table_cell.inc.
|
protected |
Change the type of this cell to the passed content type
object | &$table | the table object |
string | $new_type | the name of the new cell type |
Definition at line 397 of file bodycopy_table_cell.inc.
colspan | ( | ) |
How many columns does this cell span ??
Definition at line 160 of file bodycopy_table_cell.inc.
delete | ( | Bodycopy_Table | $table | ) |
Delete this table cell
Bopycopy_Table | $table | the table object |
Definition at line 138 of file bodycopy_table_cell.inc.
paint | ( | Bodycopy_Table | $table, |
$prefix = '' , |
|||
$editing = FALSE , |
|||
$generating = FALSE |
|||
) |
Prints the content of this cell complete with TD tag
Bopycopy_Table | $table | the table object |
string | $prefix | prefix for form elements |
boolean | $editing | are we printing an editing interface |
boolean | $generating | are we generating the content file |
Definition at line 193 of file bodycopy_table_cell.inc.
paintCell | ( | Bodycopy_Table | $table, |
$prefix, | |||
$tableid, | |||
$rowid, | |||
$cellid | |||
) |
Prints the backend interface for this table cell
Bodycopy_Table | $table | the table object |
string | $prefix | prefix for form elements |
int | $tableid | the id of the table this cell is in |
int | $rowid | the id of the row this cell is in |
int | $cellid | the id of this cell |
Definition at line 261 of file bodycopy_table_cell.inc.
paintCellBackendStatusIcons | ( | Bodycopy_Table | $table, |
$prefix, | |||
$tableid, | |||
$rowid, | |||
$cellid | |||
) |
Prints the backend status icons, e.g. htmltidy status
Bodycopy_Table | $table | the table object |
string | $prefix | prefix for form elements |
int | $tableid | the id of the table this cell is in |
int | $rowid | the id of the row this cell is in |
int | $cellid | the id of this cell |
Definition at line 321 of file bodycopy_table_cell.inc.
printBackendJsData | ( | $cellid | ) |
Prints the JavaScript needed by the backend functions for this cell
int | $cellid | the id of this cell |
Definition at line 437 of file bodycopy_table_cell.inc.
processCell | ( | Bodycopy_Table | $table, |
$prefix, | |||
$tableid, | |||
$rowid, | |||
$cellid, | |||
Array | $bc_saved | ||
) |
Process the backend interface for this table cell
Bodycopy_Table | $table | the table object |
string | $prefix | prefix for form elements |
int | $tableid | the id of the table this cell is in |
int | $rowid | the id of the row this cell is in |
int | $cellid | the id of this cell |
array | $bc_saved | any saved changes that were performed without committing |
Definition at line 354 of file bodycopy_table_cell.inc.
rowspan | ( | ) |
How many rows does this cell span ??
Definition at line 174 of file bodycopy_table_cell.inc.
setAttribute | ( | $name, | |
$value | |||
) |
Sets an attribute value in the attributes var Internal checking of these attributes goes here
string | $name | the name of the attribute |
string | $value | the value of the attribute |
Definition at line 60 of file bodycopy_table_cell.inc.
setContentType | ( | Bodycopy_Table | $table, |
$type, | |||
$rowid, | |||
$cellid | |||
) |
Sets the type of the cells content for editing
Bodycopy_Table | $table | the table object |
string | $type | the type of the cells content |
int | $rowid | the row the cell is in |
int | $cellid | the id of the cell |
Definition at line 84 of file bodycopy_table_cell.inc.
setDirAttr | ( | $dir_attribute | ) |
Sets the tmp var for dir attribute
string | $prefix | prefix for form elements |
Definition at line 457 of file bodycopy_table_cell.inc.
updateContentType | ( | Bodycopy_Table | $table, |
$new_rowid, | |||
$new_cellid | |||
) |
Update the link between the cells contentType and the table
From time to time it may be nescessary to add or remove rows or columns. We need to make sure when any change happens in the table that the name remains relevant to where the cell is in the table.
Bodycopy_Table | $table | the table object |
int | $new_rowid | the row the cell is going in |
int | $new_cellid | the column the cell is going in |
Definition at line 112 of file bodycopy_table_cell.inc.