MR HTML Tag
This class is designed to generate HTML tags with attributes.
The class relies on the fluent interface in order to build html tags with their attributes.
The first call is always a call to a function whose name is the name of the HTML tag you want to create.
Example:
Also, there is a static interface.
Example (this is equivalent to the above example):
There are a couple of ways to modify attributes. Review the rest of the class methods and see example code for recommended ways to call it.
Located in /html/tag.php (line 69)
Constructor
Get an attribute
Recommended way to call:
Bulk add attributes
Append an attribute
Recommended way to call:
Bulk append attributes
Render the HTML tag
This method will render the tag with all of its attributes and content. You can pass additional strings to this method to add more content to the tag.
Example code:
Get an attribute
Recommended way to call:
Init routine
This is protected because it should only be called by this class itself through mr_html_tag::__call()
Prepend an attribute
Recommended way to call:
Bulk prepend attributes
Remove an attribute
Recommended way to call:
Bulk remove attributes
This is where all of the real work is done.
Special method calls include:
How to use:
Convert this object to it's HTML string equivalent
Documentation generated on Thu, 28 Jun 2012 16:33:52 -0700 by phpDocumentor 1.4.3