Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
BodyCopy_Table_Cell Class Reference
Inheritance diagram for BodyCopy_Table_Cell:
MySource_Object

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='')
 

Detailed Description

Definition at line 29 of file bodycopy_table_cell.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 43 of file bodycopy_table_cell.inc.

Member Function Documentation

_updateCellType ( Bodycopy_Table  $table,
  $new_type = '' 
)
protected

Change the type of this cell to the passed content type

Parameters
object&$tablethe table object
string$new_typethe name of the new cell type
Returns
boolean private

Definition at line 397 of file bodycopy_table_cell.inc.

colspan ( )

How many columns does this cell span ??

Returns
int public

Definition at line 160 of file bodycopy_table_cell.inc.

delete ( Bodycopy_Table  $table)

Delete this table cell

Parameters
Bopycopy_Table$tablethe table object
Returns
boolean public

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

Parameters
Bopycopy_Table$tablethe table object
string$prefixprefix for form elements
boolean$editingare we printing an editing interface
boolean$generatingare we generating the content file
Returns
void public

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

Parameters
Bodycopy_Table$tablethe table object
string$prefixprefix for form elements
int$tableidthe id of the table this cell is in
int$rowidthe id of the row this cell is in
int$cellidthe id of this cell
Returns
boolean public

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

Parameters
Bodycopy_Table$tablethe table object
string$prefixprefix for form elements
int$tableidthe id of the table this cell is in
int$rowidthe id of the row this cell is in
int$cellidthe id of this cell
Returns
boolean public

Definition at line 321 of file bodycopy_table_cell.inc.

printBackendJsData (   $cellid)

Prints the JavaScript needed by the backend functions for this cell

Parameters
int$cellidthe id of this cell
Returns
boolean public

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

Parameters
Bodycopy_Table$tablethe table object
string$prefixprefix for form elements
int$tableidthe id of the table this cell is in
int$rowidthe id of the row this cell is in
int$cellidthe id of this cell
array$bc_savedany saved changes that were performed without committing
Returns
boolean public

Definition at line 354 of file bodycopy_table_cell.inc.

rowspan ( )

How many rows does this cell span ??

Returns
int public

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

Parameters
string$namethe name of the attribute
string$valuethe value of the attribute
Returns
boolean public

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

Parameters
Bodycopy_Table$tablethe table object
string$typethe type of the cells content
int$rowidthe row the cell is in
int$cellidthe id of the cell
Returns
boolean public

Definition at line 84 of file bodycopy_table_cell.inc.

setDirAttr (   $dir_attribute)

Sets the tmp var for dir attribute

Parameters
string$prefixprefix for form elements
Returns
void public

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.

Parameters
Bodycopy_Table$tablethe table object
int$new_rowidthe row the cell is going in
int$new_cellidthe column the cell is going in
Returns
boolean public

Definition at line 112 of file bodycopy_table_cell.inc.


The documentation for this class was generated from the following file: