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

Class: Cnz_Html_Table_Csv

Source Location: /Html/Table/Csv.php

Class Overview

Cnz_Html_Element
   |
   --Cnz_Html_Table
      |
      --Cnz_Html_Table_Csv

HTML Table Csv class


Author(s):

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 46]
HTML Table Csv class

The data file is name.csv. The file is searched for first in the current directory, then in $_SERVER['DOCUMENT_ROOT'] . '/../dat/table/'




Tags:

todo:  Add limit/offset functionality.


[ Top ]


Class Methods


constructor __construct [line 69]

Cnz_Html_Table_Csv __construct( [ $options = array()], Zend_Config $config)

Option fields: none

Configuration fields: action Form action for button press label Button label method Form method for button press param Parameter to pass with button press




Tags:

access:  public


Overrides Cnz_Html_Table::__construct() (Option fields: none)

Parameters:

array   $options   Options
Zend_Config   $config   Configuration

[ Top ]

method readData [line 125]

boolean readData( )

Read table head and data from a CSV file into an array of table items. The column delimiter must be a comma, and the column enclosure character a double quotation mark.



Tags:

return:  Success
access:  protected


Overrides Cnz_Html_Table::readData() (parent method not documented)

[ Top ]

method sortCallback [line 87]

int sortCallback( mixed $v1, mixed $v2)



Tags:

return:  <, =, > 0 if $v1 <, =, > $v2
access:  public


Parameters:

mixed   $v1   Value 1
mixed   $v2   Value 2

[ Top ]


Class Constants

FILE_EXT =  'csv'

[line 48]


[ Top ]



Documentation generated on Thu, 19 Jul 2007 15:01:58 -0400 by phpDocumentor 1.4.0RC2