74 |
|
|
75 |
/** |
/** |
76 |
* Class Constructor |
* Class Constructor |
77 |
|
* |
78 |
|
* {@source } |
79 |
|
* |
80 |
* @param array - Associative array of |
* @param array - Associative array of |
81 |
* name="value" pairs of |
* name="value" pairs of |
82 |
* tag atributes. |
* tag atributes. |
86 |
* of parameters that will |
* of parameters that will |
87 |
* be added to the content |
* be added to the content |
88 |
* of the tag automatically. |
* of the tag automatically. |
|
* |
|
|
* @access public |
|
89 |
*/ |
*/ |
90 |
function HTMLTagClass( $attributes=NULL ) { |
function HTMLTagClass( $attributes=NULL ) { |
91 |
if ( $attributes ) { |
if ( $attributes ) { |
122 |
|
|
123 |
/** |
/** |
124 |
* Renders the tag, attributes, content and close tag. |
* Renders the tag, attributes, content and close tag. |
125 |
|
* |
126 |
|
* {@source } |
127 |
|
* |
128 |
* @param int $indent_level the indentation level for this tag. |
* @param int $indent_level the indentation level for this tag. |
129 |
|
* @param boolean output in html viewable mode |
130 |
* @return string |
* @return string |
|
* @access public |
|
131 |
*/ |
*/ |
132 |
function render($indent_level=NULL, $output_debug=0) { |
function render($indent_level=NULL, $output_debug=0) { |
133 |
|
|
159 |
* This function is a shorthand helper |
* This function is a shorthand helper |
160 |
* to setting the style attribute on a |
* to setting the style attribute on a |
161 |
* tag. |
* tag. |
162 |
|
* |
163 |
|
* {@source } |
164 |
* |
* |
165 |
* @param string - the style value. |
* @param string - the style value. |
166 |
|
* @return none |
167 |
*/ |
*/ |
168 |
function set_style( $value ) { |
function set_style( $value ) { |
169 |
$this->set_tag_attribute("style", $value); |
$this->set_tag_attribute("style", $value); |
173 |
* This function is a shorthand helper |
* This function is a shorthand helper |
174 |
* to setting the class attribute on a |
* to setting the class attribute on a |
175 |
* tag. |
* tag. |
176 |
|
* |
177 |
|
* {@source } |
178 |
* |
* |
179 |
* @param string - the class value. |
* @param string - the class value. |
180 |
|
* @return none |
181 |
*/ |
*/ |
182 |
function set_class( $value ) { |
function set_class( $value ) { |
183 |
$this->set_tag_attribute("class", $value); |
$this->set_tag_attribute("class", $value); |
187 |
* This function is a shorthand helper |
* This function is a shorthand helper |
188 |
* to setting the id attribute on a |
* to setting the id attribute on a |
189 |
* tag. |
* tag. |
190 |
|
* |
191 |
|
* {@source } |
192 |
* |
* |
193 |
* @param string - the class value. |
* @param string - the class value. |
194 |
|
* @return none |
195 |
*/ |
*/ |
196 |
function set_id( $value ) { |
function set_id( $value ) { |
197 |
$this->set_tag_attribute("id", $value); |
$this->set_tag_attribute("id", $value); |
204 |
|
|
205 |
/** |
/** |
206 |
* renders the open tag. is <TABLE> |
* renders the open tag. is <TABLE> |
207 |
* @param int $indent_level the indentation level for this tag. |
* |
208 |
* @return string |
* {@source } |
209 |
* @access private |
* @access private |
210 |
|
* |
211 |
|
* @param int the indentation level for this tag. |
212 |
|
* @return string |
213 |
*/ |
*/ |
214 |
function _render_tag($indent_level, $output_debug=0) { |
function _render_tag($indent_level, $output_debug=0) { |
215 |
if ( $output_debug ) { |
if ( $output_debug ) { |
223 |
/** |
/** |
224 |
* Renders all of the content. |
* Renders all of the content. |
225 |
* Content can be raw strings, or tag objects. |
* Content can be raw strings, or tag objects. |
226 |
* @param int $indent_level the indentation level for this tag. |
* |
227 |
|
* {@source } |
228 |
|
* @access private |
229 |
|
* |
230 |
|
* @param int the indentation level for this tag. |
231 |
* @return string |
* @return string |
|
* @access private |
|
232 |
*/ |
*/ |
233 |
function _render_content($indent_level, $output_debug=0) { |
function _render_content($indent_level, $output_debug=0) { |
234 |
if ( $output_debug ) { |
if ( $output_debug ) { |
240 |
|
|
241 |
/** |
/** |
242 |
* Renders the close tag (if needed) |
* Renders the close tag (if needed) |
243 |
* @param int $indent_level the indentation level for this tag. |
* |
244 |
* @return string |
* {@source } |
245 |
* @access private |
* @access private |
246 |
|
* |
247 |
|
* @param int the indentation level for this tag. |
248 |
|
* @return string |
249 |
*/ |
*/ |
250 |
function _render_close_tag($indent_level, $output_debug=0) { |
function _render_close_tag($indent_level, $output_debug=0) { |
251 |
if ( $output_debug ) { |
if ( $output_debug ) { |
262 |
* so we can override this by the child |
* so we can override this by the child |
263 |
* tag, so it can add a link on content or |
* tag, so it can add a link on content or |
264 |
* one of the attributes. |
* one of the attributes. |
265 |
|
* |
266 |
|
* {@source } |
267 |
|
* @access private |
268 |
|
* |
269 |
|
* @param int the indentation level |
270 |
|
* @return string |
271 |
*/ |
*/ |
272 |
function _render_tag_debug($indent_level) { |
function _render_tag_debug($indent_level) { |
273 |
|
|
314 |
* so it acts like view source. |
* so it acts like view source. |
315 |
* |
* |
316 |
* Content can be raw strings, or tag objects. |
* Content can be raw strings, or tag objects. |
317 |
* @param int $indent_level the indentation level for this tag. |
* |
318 |
* @return string |
* {@source } |
319 |
* @access private |
* @access private |
320 |
|
* |
321 |
|
* @param int the indentation level for this tag. |
322 |
|
* @return string |
323 |
*/ |
*/ |
324 |
function _render_content_debug($indent_level) { |
function _render_content_debug($indent_level) { |
325 |
|
|
365 |
|
|
366 |
/** |
/** |
367 |
* this renders the close tag in debugging mode. |
* this renders the close tag in debugging mode. |
368 |
* @param int $indent_level the indentation level for this tag. |
* |
369 |
* @return string |
* {@source } |
370 |
* @access private |
* @access private |
371 |
|
* |
372 |
|
* @param int the indentation level for this tag. |
373 |
|
* @return string |
374 |
*/ |
*/ |
375 |
function _render_close_tag_debug( $indent_level ) { |
function _render_close_tag_debug( $indent_level ) { |
376 |
|
|
404 |
* that shouldn't be rendered if they |
* that shouldn't be rendered if they |
405 |
* are in the $this->_xhtml_strict_attributes |
* are in the $this->_xhtml_strict_attributes |
406 |
* array and HTML_RENDER_TYPE = XHTML STRICT |
* array and HTML_RENDER_TYPE = XHTML STRICT |
407 |
|
* |
408 |
|
* {@source } |
409 |
|
* @access private |
410 |
* |
* |
411 |
* @param string - $name attribute name |
* @param string - $name attribute name |
412 |
* @param mixed - $value attribute value |
* @param mixed - $value attribute value |
472 |
* there is only 1 content data, and |
* there is only 1 content data, and |
473 |
* its not an object, then it auto |
* its not an object, then it auto |
474 |
* sets some of the indentation flags |
* sets some of the indentation flags |
475 |
* |
* |
476 |
|
* {@source } |
477 |
|
* @access private |
478 |
|
* @return none |
479 |
*/ |
*/ |
480 |
function _prepare_flags() { |
function _prepare_flags() { |
481 |
if ($this->_flags & _CONTENTREQUIRED) { |
if ($this->_flags & _CONTENTREQUIRED) { |