Class Sylar_SimpleTableRow

Description

Sylar_SimpleTableRow

it define the structure and methods of a simple row of Sylar_SimpleTable container. the row must be an array indexed whit same header. For example

Table name: test TbHeader: name surname phone email TbRow 0 Nik Mallet 090909 nik@nik.ir TbRow 1 Bob Bruk 0877689 bon@bob.com TbRow ... TbRow n Tim Ork 078 778 tim@tim.xx

Header info must be specified only one time and every row must be a Sylar_SimpleTableRow with an array

Located in /sylar/classes/common/data/SimpleTableRow.php (line 54)

Sylar_DataContainer
   |
   --Sylar_SimpleTableRow
Method Summary
 Sylar_SimpleTableRow __construct (array $arrayDataRow, [int $columns = false])
 void __destruct ()
 boolean fillRowData (array $arrayDataRow)
 void getColumns ()
 mixed getColumnValue (int $columnId)
 array getData ()
 boolean hasData ()
 void setColumns (mixed $iColumns)
Methods
Constructor __construct (line 68)

Constructor reset data and set the number of columns defined

Sylar_SimpleTableRow __construct (array $arrayDataRow, [int $columns = false])
  • array $arrayDataRow
  • int $columns: specify number of columns of the row, if false then it calculates it from dataArray

Redefinition of:
Sylar_DataContainer::__construct()
Destructor __destruct (line 79)
void __destruct ()

Redefinition of:
Sylar_DataContainer::__destruct()
fillRowData (line 145)

fill data into the row it also compares the lenght of array with the number of column declared into the table, if needed.

return true if all is ok, false on error

boolean fillRowData (array $arrayDataRow)
  • array $arrayDataRow
getColumns (line 89)
  • access: public
void getColumns ()
getColumnValue (line 172)

it returns the value at column $columnId of the TableRow

mixed getColumnValue (int $columnId)
  • int $columnId
getData (line 111)

Get data from Row Return the array that contains data

array getData ()
hasData (line 125)

Check data Return tru if row contains data, false otherwise

boolean hasData ()
setColumns (line 86)
  • access: public
void setColumns (mixed $iColumns)

Inherited Methods

Inherited From Sylar_DataContainer

 Sylar_DataContainer::__construct()
 Sylar_DataContainer::__destruct()

Documentation generated on Thu, 24 Apr 2008 16:14:21 +0200 by phpDocumentor 1.3.0RC3