LinkElementCreator Class Reference

Inheritance diagram for LinkElementCreator:

ElementCreator List of all members.

Detailed Description

Helper class used by link2aXML() function.

You can use it whenever you need ElementCreator which creates links that mirrors content in the href attribute.

Definition at line 134 of file helpers.php.

Public Member Functions

 __construct ()
 create_element ($doc, $content)
 Call this to get new XML element.


Member Function Documentation

LinkElementCreator::__construct  ) 
 

Definition at line 135 of file helpers.php.

00135                            {
00136       parent::__construct('a');
00137     }

LinkElementCreator::create_element doc,
content
 

Call this to get new XML element.

By default it creates a DOMElement but descendants can return arbitrary DOMNode descendant.

Parameters:
[in] $doc DOMDocument instance.
[in] $content String with element's content or NULL.
Returns:
DOMElement instance or other DOMNode descendant in descendants of this class.

Reimplemented from ElementCreator.

Definition at line 138 of file helpers.php.

00138                                             {
00139       $this->attrs['href'] = $content;
00140       return parent::create_element($doc, $content);
00141     }


The documentation for this class was generated from the following file:
Generated on Sat Sep 24 01:26:43 2005 for Easy PHP Framework by  doxygen 1.4.2