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

Class: Tag

Source Location: /tags.php

Class Overview


Base class for HTML tags


Author(s):

  • Dumitru Postoronca

Variables

Methods


Child classes:

EmptyTag
Empty tag
InputTag
Input tag
LabelTag
Label tag
SelectTag
Select tag
TextareaTag
Textarea tag

Class Details

[line 18]
Base class for HTML tags

Base class for HTML tags




Tags:

author:  Dumitru Postoronca
abstract:  


[ Top ]


Class Variables

$_attributes = array()

[line 27]

Holds tag attributes

Holds tag attributes



Type:   array


[ Top ]



Class Methods


method getAttrib [line 55]

string getAttrib( string $name)

Gets attribute value

Gets attribute value




Tags:

return:  Attribute value or NULL


Parameters:

string   $name   Attribute name

[ Top ]

method getHtml [line 90]

string getHtml( )

Renders the object in HTML code

Renders the object in HTML code




[ Top ]

method out [line 80]

void out( )

Outputs the Tag as XHTML

Outputs the Tag as XHTML




Tags:

abstract:  


Overridden in child classes as:

EmptyTag::out()
InputTag::out()
LabelTag::out()
SelectTag::out()
TextareaTag::out()

[ Top ]

method setAttrib [line 35]

void setAttrib( string $name, string $value)

Sets a tag attribute

Sets a tag attribute




Parameters:

string   $name   Attribute name
string   $value   Attribute value

[ Top ]

method setAttribs [line 45]

void setAttribs( array $values)

Sets multiple tag attributes

Sets multiple tag attributes




Parameters:

array   $values   Associative array of values

[ Top ]

method _parseAttrib [line 66]

string _parseAttrib( )

Parses the attributes from an array form to name="value"

Parses the attributes from an array form to name="value"




[ Top ]


Documentation generated on Fri, 16 Dec 2005 13:16:45 +0200 by phpDocumentor 1.3.0RC4