HTML_Table_Matrix
[ class tree: HTML_Table_Matrix ] [ index: HTML_Table_Matrix ] [ all elements ]

Class: HTML_Table_Matrix_Filler

Source Location: /HTML_Table_Matrix-1.0.7/Matrix/Filler.php

Class Overview


Base class common to all Fillers


Author(s):

Variables

Methods


Child classes:

HTML_Table_Matrix_Filler_LRTB
Fill left-to-right, top-to-bottom.
HTML_Table_Matrix_Filler_RLTB
Fill left-to-right, top-to-bottom.

Inherited Variables

Inherited Methods


Class Details

[line 28]
Base class common to all Fillers


[ Top ]


Class Variables

$col =  0

[line 65]

Current column to fill

Type:   mixed


[ Top ]

$matrix =  ''

[line 51]

Reference to the HTML_Table_Matrix instance we will be Filling for

Type:   mixed


[ Top ]

$options =  ''

[line 44]

Filler options

Type:   mixed


[ Top ]

$row =  0

[line 58]

Current row to fill

Type:   mixed


[ Top ]

$_defaultOptions = array()

[line 36]

Default filler options

Type:   mixed


[ Top ]



Method Detail

factory   [line 76]

mixed &factory( string $type, &$matrix, [array $options = array()], Object $matrix)

Create an instance of a Filler
  • Return: Filler instance on success, PEAR_Error otherwise

Parameters:

string   $type   —  Type of filler to instantiate
Object   $matrix   —  Reference to the HTML_Table_Matrix instance the Filler will work with
array   $options   —  Filler options
   &$matrix   — 

[ Top ]

isValid   [line 105]

boolean isValid( &$object, mixed $object)

Determine if a given object is a valid H_T_M Filler
  • Return: true if valid, false otherwise

Parameters:

mixed   $object   —  Object to check
   &$object   — 

[ Top ]

next   [line 120]

array next( int $index)

Get the next cell.
  • Return: 1-dimensional array in the form of (row, col) containing the coordinates to put the data for this loop iteration

Overridden in child classes as:

HTML_Table_Matrix_Filler_LRTB::next()
Get the next cell.
HTML_Table_Matrix_Filler_RLTB::next()
Get the next cell.

Parameters:

int   $index   —  Where we're at in the data-set

[ Top ]

setOptions   [line 94]

void setOptions( [array $options = array()])

Set options for this Filler

Parameters:

array   $options   —  Options to set

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:23:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.