/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/tag_utils/xml_utils.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/tag_utils/xml_utils.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jonen, Sat Feb 22 21:08:09 2003 UTC revision 1.3 by jonen, Sat Sep 20 00:15:57 2003 UTC
# Line 26  Line 26 
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++) {
# Line 35  function xml_tag($name, $attributes=arra Line 35  function xml_tag($name, $attributes=arra
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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed