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

Class: zogan_element

Source Location: /zogan/zogan.elements.php

Class Overview

zogan_content
   |
   --zogan_element

Base class of elements elements are different from other contents in that are possible to have some child contents.


Author(s):

Variables

Methods


Child classes:

zogan_element_root
Parser for root level of the stack
zogan_element_static
Parser for tags without variable attribute
zogan_element_variable
Parser for variable tag variable tag means the one with var attribute.

Inherited Variables

Inherited Methods

Class: zogan_content

zogan_content::zogan_content()
constructor
zogan_content::build()
returns the build PHP script
zogan_content::has_variable_content()
returns if this content has variable content for data
zogan_content::is_alternative()
returns if this class can have alternative content(s)
zogan_content::is_spaces_only()
returns if this content consites of spaces only or is empty
zogan_content::need_indent()
returns if this content needs indent and linefeed for pritty print

Class Details

[line 293]
Base class of elements elements are different from other contents in that are possible to have some child contents.



Tags:

abstract:  


[ Top ]


Class Variables

$child =  ''

[line 298]

child contents in this tag



Tags:

var:  of zogan_content

Type:   array


[ Top ]

$common =

[line 312]

common information in all level of zogan_element

'format':



Type:   array


[ Top ]

$info =

[line 305]

information about variable-data tag 'variable-data tag' is the tag with var="{foo}" attribute.


Type:   array


[ Top ]

$_indent_close_tag =  ''

[line 346]


Type:   mixed


[ Top ]



Class Methods


method close [line 368]

void close( mixed $empty_tag)

parse all the data in $this->child stack and set the compiled PHP script into $this->_content.



Tags:

access:  public


Overridden in child classes as:

zogan_element_root::close()

[ Top ]

method getNamespace [line 613]

array getNamespace( )

returns namespace information for ZOGAN



[ Top ]

method getTagname [line 622]

array getTagname( )

returns name of tag



[ Top ]

method open [line 355]

void open( mixed $name, mixed $attrs, mixed $parsed, mixed &$info)

initialization when the tag is opened



Overridden in child classes as:

zogan_element_static::open()
zogan_element_variable::open()

[ Top ]

method _build_tag_get_level [line 604]

void _build_tag_get_level( )



Overridden in child classes as:

zogan_element_variable::_build_tag_get_level()

[ Top ]

method _omit_first [line 631]

string _omit_first( mixed $built)

build when ZOGAN_OMIT=='first'



[ Top ]


Documentation generated on Tue, 19 Oct 2004 12:53:38 +0900 by phpDocumentor 1.2.3