Source for file Filler.php
Documentation is available at Filler.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Ian Eure <ieure@php.net> |
// +----------------------------------------------------------------------+
// $Id: Filler.php 286815 2009-08-04 19:59:06Z cweiske $
* Base class common to all Fillers
* @author Ian Eure <ieure@php.net>
* @package HTML_Table_Matrix
* Reference to the HTML_Table_Matrix instance we will be Filling for
* Callback function applied to _data
* Create an instance of a Filler
* @param string $type Type of filler to instantiate
* @param Object $matrix Reference to the HTML_Table_Matrix instance
* the Filler will work with
* @param array $options Filler options
* @return mixed Filler instance on success, PEAR_Error otherwise
function &factory($type, &$matrix, $options = array ())
$class = 'HTML_Table_Matrix_Filler_'. $type;
return PEAR ::raiseError (" Filler \"$type\" does not exist." );
$instance = new $class($matrix, $options);
* Set options for this Filler
* @param array $options Options to set
* Determine if a given object is a valid H_T_M Filler
* @param mixed $object Object to check
* @return boolean true if valid, false otherwise
if (!is_a($object, 'HTML_Table_Matrix_Filler')) {
* @param int $index Where we're at in the data-set
* @return array 1-dimensional array in the form of (row, col) containing the
* coordinates to put the data for this loop iteration
return PEAR ::raiseError ("Function not implemented.");
Documentation generated on Mon, 11 Mar 2019 15:32:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|