]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/Link.php
expandible
[mecon/meconlib.git] / lib / MECON / HTML / Link.php
index 31e22bd9a538870d85c54e28a92a437e1c61962a..c33269a3bcb9f8727285e2d09c5e6c260f2c62ff 100644 (file)
@@ -24,7 +24,9 @@ Autor:  @@author <@@email>
 $Id$
 -----------------------------------------------------------------------------*/
 
 $Id$
 -----------------------------------------------------------------------------*/
 
-
+// +X2C includes
+require_once 'HTML/Common.php';
+// ~X2C
 
 // +X2C Class 892 :MECON_HTML_Link
 /**
 
 // +X2C Class 892 :MECON_HTML_Link
 /**
@@ -224,13 +226,9 @@ If they doesn't exists, they are added, if they exists, they are updated.
      * @return void
      * @access public
      */
      * @return void
      * @access public
      */
-    function addContents(&$contents) // ~X2C
+    function addContents($contents) // ~X2C
     {
     {
-        if (is_object($contents)) {
-            $this->_contents[] =& $contents;
-        } else {
-            $this->_contents[] = $contents;
-        }
+        $this->_contents[] = $contents;
     }
     // -X2C
 
     }
     // -X2C
 
@@ -262,9 +260,10 @@ If they doesn't exists, they are added, if they exists, they are updated.
      */
     function setContents($contents) // ~X2C
     {
      */
     function setContents($contents) // ~X2C
     {
-        $this->_contents = $contents;
+        $this->_contents = array($contents);
     }
     // -X2C
 
 } // -X2C Class :MECON_HTML_Link
     }
     // -X2C
 
 } // -X2C Class :MECON_HTML_Link
+
 ?>
\ No newline at end of file
 ?>
\ No newline at end of file