ConsoleTools: ezcConsoleTableOptions
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcConsoleTableOptions
|
Struct class to store the options of the ezcConsoleTable class. [
source]
Parents
ezcBaseOptions
|
--ezcConsoleTableOptions
Properties
|
string |
read/write
|
$colPadding
Padding characters for side padding between data and lines. |
|
mixed |
read/write
|
$colWidth
Either 'auto' for automatic selection of column widths, or an array of column widths like array( 10, 30, 10 ). |
|
int |
read/write
|
$colWrap
|
|
string |
read/write
|
$corner
Character to use for drawing line corners. Null to switch off. |
|
int |
read/write
|
$defaultAlign
|
|
string |
read/write
|
$defaultBorderFormat
Standard border format, applied to rows that have 'default' as the border format. |
|
string |
read/write
|
$defaultFormat
Standard column content format, applied to cells that have "default" as the content format. |
|
string |
read/write
|
$lineHorizontal
Character to use for drawing horizontal lines. Null to switch off. |
|
string |
read/write
|
$lineVertical
Character to use for drawing vertical lines. Null to switch off. |
|
int |
read/write
|
$widthType
Type of the given table width (fixed or maximal value). |
Member Variables
|
protected mixed |
$properties
= array( 'colWidth' => 'auto', 'colWrap' => ezcConsoleTable::WRAP_AUTO, 'defaultAlign' => ezcConsoleTable::ALIGN_LEFT, 'colPadding' => ' ', 'widthType' => ezcConsoleTable::WIDTH_MAX, 'lineVertical' => '-', 'lineHorizontal' => '|', 'corner' => '+', 'defaultFormat' => 'default', 'defaultBorderFormat' => 'default', )
|
Method Summary
|
public void |
__construct(
$options )
Construct a new options object. |
Inherited Methods
From
ezcBaseOptions :
Methods
__construct
void __construct(
array(string=>mixed)
$options )
Construct a new options object.
NOTE: For backwards compatibility reasons the old method of instantiating this class is kept, but the usage of the new version (providing an option array) is highly encouraged.
Parameters
| Name |
Type |
Description |
$options |
array(string=>mixed) |
The initial options to set. |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
If the value for the property options is not an instance of |
ezcBaseValueException |
If the value for a property is out of range. |
Redefinition of
Last updated: Thu, 31 Jan 2008