cvs: pear /Structures_DataGrid/DataGrid Column.php

From: Date: Mon, 16 Aug 2004 15:42:24 +0000
Subject: cvs: pear /Structures_DataGrid/DataGrid Column.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-22978@lists.php.net to get a copy of this message
asnagy Mon Aug 16 11:42:24 2004 EDT Modified files: /pear/Structures_DataGrid/DataGrid Column.php Log: Cleaned up documentaion http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Column.php?r1=1.6&r2=1.7&ty=u Index: pear/Structures_DataGrid/DataGrid/Column.php diff -u pear/Structures_DataGrid/DataGrid/Column.php:1.6 pear/Structures_DataGrid/DataGrid/Column.php:1.7 --- pear/Structures_DataGrid/DataGrid/Column.php:1.6 Tue Aug 10 09:06:00 2004 +++ pear/Structures_DataGrid/DataGrid/Column.php Mon Aug 16 11:42:24 2004 @@ -16,14 +16,14 @@ // | Author: Andrew Nagy <asnagy@webitecture.org> | // +----------------------------------------------------------------------+ // -// $Id: Column.php,v 1.6 2004/08/10 13:06:00 asnagy Exp $ +// $Id: Column.php,v 1.7 2004/08/16 15:42:24 asnagy Exp $ /** * Structures_DataGrid_Column Class * * This class represents a single column for the DataGrid. * - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @author Andrew S. Nagy <asnagy@webitecture.org> * @access public * @package Structures_DataGrid @@ -78,15 +78,20 @@ * * Creates default table style settings * - * @param string $columnName The name of the column to br printed - * @param string $fieldName The name of the field for the column to - * be mapped to - * @param string $orderBy Whether or not to use the autoFill - * @param string $attribs Whether or not to use the autoFill - * @param boolean $autoFill Whether or not to use the autoFill - * @param string $autoFillValue Whether or not to use the autoFill - * @param string $formatter Whether or not to use the autoFill - * @access public + * @param string $columnName The name of the column to be printed + * @param string $fieldName The name of the field for the column + * to be mapped to + * @param string $orderBy The field to order the data by + * @param string $attribs The HTML attributes for the TR tag + * @param boolean $autoFill Whether or not to use the autoFill + * @param string $autoFillValue The value to use for the autoFill + * @param string $formatter A defined function to call upon + * rendering to allow for special + * formatting. This allows for + * call-back function to print out a + * link or a form element, or whatever + * you can possibly think of. + * @access public */ function Structures_DataGrid_Column($columnName, $fieldName = null, $orderBy = null, $attribs = array(), @@ -107,8 +112,8 @@ * * Defines a value to be printed if a cell in the column is null. * - * @param boolean $bool Whether or not to use the autoFill - * @access public + * @param boolean $bool Whether or not to use the autoFill + * @access public */ function setAutoFill($bool) { @@ -124,8 +129,8 @@ * * Defines a value to be printed if a cell in the column is null. * - * @param string $str The value to use for the autoFill - * @access public + * @param string $str The value to use for the autoFill + * @access public */ function setAutoFillValue($str) { @@ -137,7 +142,7 @@ * * Defines the function and paramters to be called by the formatter method. * - * @access public + * @access public */ function setFormatter($str) { @@ -154,6 +159,7 @@ * function will be in one array. * * Example: + * <code> * <?php * ... * $linkTitle = 'Edit'; @@ -166,10 +172,11 @@ * '</a>'; * } * ?> + * </code> * - * @access public - * @todo This method needs to be intuituve and more flexible, - * possibly a seperate column object? + * @access public + * @todo This method needs to be intuituve and more flexible, + * possibly a seperate column object? */ function formatter($record) {

« previous php.pear.cvs (#22978) next »