26 |
* |
* |
27 |
* @return XMLTagClass object |
* @return XMLTagClass object |
28 |
*/ |
*/ |
29 |
function xml_tag($name, $attributes=array()) { |
function &xml_tag($name, $attributes=array()) { |
30 |
$tag = new XMLTagClass($name, $attributes); |
$tag = new XMLTagClass($name, $attributes); |
31 |
$num_args = func_num_args(); |
$num_args = func_num_args(); |
32 |
for ($i=2;$i<$num_args;$i++) { |
for ($i=2;$i<$num_args;$i++) { |
35 |
return $tag; |
return $tag; |
36 |
} |
} |
37 |
|
|
38 |
|
/** |
39 |
|
* This builds an xml tag, just as xml_tag() does, |
40 |
|
* but turns on the auto wrapping of CDATA for the |
41 |
|
* content for the tag. |
42 |
|
* |
43 |
|
* @param string - the xml tag name |
44 |
|
* @param array - the name="value" pairs of |
45 |
|
* tag attributes |
46 |
|
* @param mixed - any content that lives in the |
47 |
|
* PCDATA portion of the XML tag |
48 |
|
* |
49 |
|
* @return XMLTagClass object |
50 |
|
*/ |
51 |
|
function &xml_ctag($name, $attributes=array()) { |
52 |
|
$args = func_get_args(); |
53 |
|
$tag =& call_user_func_array("xml_tag", $args); |
54 |
|
$tag->set_cdata_flag(TRUE); |
55 |
|
return $tag; |
56 |
|
} |
57 |
|
|
58 |
|
|
59 |
/** |
/** |
60 |
* This function is used to build a |
* This function is used to build a |