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

Class: zogan_content

Source Location: /zogan/zogan.elements.php

Class Overview


Base class of template builder for each contents of tag This class and its sub classes are accessed only by zogan_parser class.


Author(s):

Variables

Methods


Child classes:

zogan_content_null
null object
zogan_content_cdata
for charactor data
zogan_content_default
default content returns data without modified
zogan_content_escape
content for escape ( <! > )
zogan_content_pi
content for pi ( <?[target] ... ?> )
zogan_content_removed
content for removed data
zogan_element
Base class of elements elements are different from other contents in that are possible to have some child contents.

Inherited Variables

Inherited Methods


Class Details

[line 35]
Base class of template builder for each contents of tag This class and its sub classes are accessed only by zogan_parser class.



Tags:

abstract:  
see:  zogan_parser


[ Top ]


Class Variables

$indent =  ''

[line 40]

indent string at the beginning of the content


Type:   string


[ Top ]

$linefeed =  ''

[line 46]

line feed at the end of the content


Type:   string


[ Top ]



Class Methods


constructor zogan_content [line 51]

zogan_content zogan_content( [mixed $data = ''])

constructor



[ Top ]

method build [line 57]


method has_variable_content [line 84]

array|false has_variable_content( )

returns if this content has variable content for data



Overridden in child classes as:

zogan_element_variable::has_variable_content()

[ Top ]

method is_alternative [line 93]

array|false is_alternative( )

returns if this class can have alternative content(s)



Overridden in child classes as:

zogan_element_variable::is_alternative()

[ Top ]

method is_spaces_only [line 75]

string is_spaces_only( )

returns if this content consites of spaces only or is empty



Overridden in child classes as:

zogan_content_null::is_spaces_only()
zogan_content_cdata::is_spaces_only()
zogan_content_linefeed::is_spaces_only()
zogan_content_removed::is_spaces_only()
zogan_element_omit::is_spaces_only()

[ Top ]

method need_indent [line 66]

string need_indent( )

returns if this content needs indent and linefeed for pritty print



Overridden in child classes as:

zogan_content_pi::need_indent()
zogan_content_removed::need_indent()
zogan_element_static::need_indent()
zogan_element_omit::need_indent()
zogan_element_variable::need_indent()

[ Top ]


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