Class Cell

Description

Class for creating cells of tables.

Located in /Cell.php (line 6)

Container
   |
   --Cell
Variable Summary
mixed $alignment
mixed $backColor
mixed $bordered
mixed $column
mixed $direction
mixed $elements
mixed $font
mixed $horMerged
mixed $pard
mixed $row
mixed $table
mixed $text
mixed $verMerged
mixed $verStart
mixed $width
Method Summary
Cell Cell (Table &$table, int $row, int $column)
void &addTable ([ $alignment = 'left'])
string getContent ()
void rotate ([$direction $direction = 'right'])
void setBackGround (string $backColor)
void setBorders ( &$borderFormat, [boolean $left = true], [boolean $top = true], [boolean $right = true], [boolean $bottom = true], BorderFormat $borderFormat)
void setDefaultAlignment ([string $alignment = 'left'])
void setDefaultFont ($font &$font)
void setVerticalAlignment ([$verticalAlignment $verticalAlignment = 'top'])
Variables
mixed $alignment (line 20)

Internal use.

  • access: public
mixed $backColor (line 28)

Internal use.

  • access: public
mixed $bordered (line 30)

Internal use.

  • access: public
mixed $column (line 16)

Internal use.

  • access: public
mixed $direction (line 26)

Internal use.

  • access: public
mixed $elements = array() (line 18)

Internal use.

  • access: public

Redefinition of:
Container::$elements
Internal use.
mixed $font (line 24)

Internal use.

  • access: public
mixed $horMerged (line 34)

Internal use.

  • access: public
mixed $pard = '\pard \intbl ' (line 40)

Internal use.

  • access: public

Redefinition of:
Container::$pard
Internal use.
mixed $row (line 14)

Internal use.

  • access: public
mixed $table (line 12)

Internal use.

  • access: public
mixed $text (line 22)

Internal use.

  • access: public
mixed $verMerged (line 36)

Internal use.

  • access: public
mixed $verStart (line 38)

Internal use.

  • access: public
mixed $width (line 32)

Internal use.

  • access: public

Inherited Variables

Inherited from Container

Container::$emptyPar
Container::$rtf
Methods
Constructor Cell (line 49)

Constructor of cell.

Cell Cell (Table &$table, int $row, int $column)
  • Table &$table: Table
  • int $row: Row number
  • int $column: Column number
addTable (line 61)

Overriden. Does nothing. Nesting cells are not suported in current version.

void &addTable ([ $alignment = 'left'])
  • $alignment

Redefinition of:
Container::addTable()
Adds table to element container.
getContent (line 218)

Gets rtf code of Cell object. Internal use.

  • access: public
string getContent ()

Redefinition of:
Container::getContent()
Gets rtf code of Container. Internal use.
rotate (line 133)

Rotates cell.

  • access: public
void rotate ([$direction $direction = 'right'])
  • $direction $direction: Direction of rotation. Possible values:
    'right' => right;
    'left' => left.
setBackGround (line 150)

Sets background color.

  • access: public
void setBackGround (string $backColor)
  • string $backColor: Background color
setBorders (line 165)

Sets borders of element.

  • access: public
void setBorders ( &$borderFormat, [boolean $left = true], [boolean $top = true], [boolean $right = true], [boolean $bottom = true], BorderFormat $borderFormat)
  • BorderFormat $borderFormat
  • boolean $left: If false, left border is not set (default true)
  • boolean $top: If false, top border is not set (default true)
  • boolean $right: If false, right border is not set (default true)
  • boolean $bottom: If false, bottom border is not set (default true)
  • &$borderFormat
setDefaultAlignment (line 73)

Sets alignment of empty cell. The method writeToCell overrides it with ParFormat alignment.

void setDefaultAlignment ([string $alignment = 'left'])
  • string $alignment: Alignment of cell. Possible values:
    'left' => left alignment
    'center' => center alignment
    'right' => right alignment
    'justify' => justify alignment
setDefaultFont (line 98)

Sets font of empty cell. The method writeToCell overrides it with another Font.

  • access: public
void setDefaultFont ($font &$font)
  • $font &$font: Font
setVerticalAlignment (line 110)

Sets vertical alignment of cell

  • access: public
void setVerticalAlignment ([$verticalAlignment $verticalAlignment = 'top'])
  • $verticalAlignment $verticalAlignment: Vertical alignment of cell (default top). Possible values:
    'top' => top alignment;
    'center' => center alignment;
    'bottom' => bottom alignment.

Inherited Methods

Inherited From Container

Container::Container()
Container::addImage()
Container::addTable()
Container::emptyParagraph()
Container::getContent()
Container::writeHyperLink()
Container::writeRtfCode()
Container::writeText()

Documentation generated on Fri, 25 Jan 2008 23:10:49 +0200 by phpDocumentor 1.3.1