Sitellite Application Framework
Class Tree         Index         All Elements

Class: HtmlCell

Source Location: Program_Root/GUI/Cell.php

Class Overview


HtmlCell is the individual cell class for the HtmlLayout grid class.


Author(s)

Version

  • 1.0, 2002-08-17, $Id: Cell.php,v 1.2 2005/07/06 15:30:56 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 53]
HtmlCell is the individual cell class for the HtmlLayout grid class.

Note: In addition to requiring the HtmlLayout class to really do anything useful, HtmlCell also requires a global saf.Template.Simple object called $simple be defined.


1 <?php
2
3 $cell = new HtmlCell ('some_template.spt');
4
5 $cell->set ('border', '2');
6
7 echo $cell->render ($fill_object);
8
9 ?>




Tags:

access:  public
version:  1.0, 2002-08-17, $Id: Cell.php,v 1.2 2005/07/06 15:30:56 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Variables

$attrs = array ()

[line 87]

Contains all HTML <td> properties for the current object.



Tags:

access:  public

Type:   mixed


[ Top ]

$default =

[line 96]

$default is an optional default value to place in cells whose templates result in no output.



Tags:

access:  public

Type:   mixed


[ Top ]

$fill =

[line 69]

The object or associative array to use to fill the template with upon calling render().



Tags:

access:  public

Type:   mixed


[ Top ]

$span =

[line 79]

The span of this cell. Set to -1 and the cell will disappear. Use $this->attrs['colspan'] or ['rowspan'] to set these properties in the corresponding HTML <td> tag.



Tags:

access:  public

Type:   mixed


[ Top ]

$template =

[line 60]

Contains the template to use to fill this cell with upon calling render().



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor HtmlCell [line 105]

HtmlCell HtmlCell( [string $template = ''])

Constructor method.



Tags:

access:  public


Parameters:

string   $template  

[ Top ]

method render [line 138]

string render( [object $object = ''], [associative $properties = array ()], [string $default = ' '])

Renders this cell into an HTML <td> tag filled with

the output of the specified template. $object may replace the $fill property if specified. $properties is a list of properties of the <td> tag, and $default is an optional default value to place in cells whose templates result in no output.




Tags:

access:  public


Parameters:

object   $object  
string   $default  
associative   $properties   array $properties

[ Top ]

method set [line 120]

void set( string $property, string $value)

Sets the appropriate key/value pair in $attrs.



Tags:

access:  public


Parameters:

string   $property  
string   $value  

[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:17:03 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2