The basic shape element class to handle inheritance
The htmlElement class which handles the HTML compilation etc
htmlElement::__construct |
( |
| ) |
|
Constructor for HTMLElement
htmlElement::__toString |
( |
| ) |
|
Make HTML from the Object
- Returns
- String HTML returned from the compile
htmlElement::addAttribute |
( |
|
$keyName, |
|
|
|
$keyValue |
|
) |
| |
Add Attributes to the Element
- Parameters
-
type | $keyName | |
type | $keyValue | |
htmlElement::addContent |
( |
|
$value | ) |
|
Adding Content
- Parameters
-
htmlElement::addDataSource |
( |
|
$name, |
|
|
|
$object |
|
) |
| |
Add a datasource to the shape object for templating
- Parameters
-
htmlElement::byClass |
( |
|
$keyName | ) |
|
Find and Element by Its HTML Class Example: p(["clas" => "Test"])
- Parameters
-
- Returns
htmlElement::byFor |
( |
|
$keyName | ) |
|
htmlElement::byId |
( |
|
$keyName | ) |
|
Find and Element by Its HTML Id Example: p(["id" => "Test"])
- Parameters
-
- Returns
htmlElement::bySearch |
( |
|
$keyName, |
|
|
|
$keyIndex |
|
) |
| |
BySearch - internal function to find elements
htmlElement::cloneAttribute |
( |
|
$attribute | ) |
|
Clones a new attribute onto the child
- Parameters
-
htmlElement::cloneChildren |
( |
|
$element | ) |
|
Clone All the Children
- Parameters
-
htmlElement::cloneContent |
( |
|
$content | ) |
|
Clones content
- Parameters
-
htmlElement::compileAttributes |
( |
| ) |
|
Compile all the Attributes
- Returns
- string
htmlElement::compileContent |
( |
|
$acontent = null | ) |
|
Compile the content for the Element
- Parameters
-
- Returns
- type
htmlElement::compileHTML |
( |
| ) |
|
Compiling HTML
- Returns
- type
htmlElement::getContent |
( |
| ) |
|
Getting the content for the Element
- Returns
- type
htmlElement::is_assoc |
( |
|
$array | ) |
|
Function to check is an array is an associative or not
- Parameters
-
- Returns
- type
htmlElement::parseArgument |
( |
|
$arg | ) |
|
Parse all the Arguments passed to the class, see if they are content or attributes
- Parameters
-
htmlElement::setAttribute |
( |
|
$keyName, |
|
|
|
$keyValue |
|
) |
| |
Set attributes to the Element
- Parameters
-
type | $keyName | |
type | $keyValue | |
htmlElement::setContent |
( |
|
$value | ) |
|
Setting Content
- Parameters
-
htmlElement::setInherited |
( |
| ) |
|
htmlElement::setTags |
( |
|
$openingTag, |
|
|
|
$closingTag, |
|
|
|
$compress = false |
|
) |
| |
Add Opening and Closing Tags
- Parameters
-
type | $openingTag | |
type | $closingTag | |
htmlElement::templateHTML |
( |
|
$content, |
|
|
|
$object |
|
) |
| |
htmlElement::whenAnd |
( |
|
$args | ) |
|
Function to evaluate a key value pair for any valid boolean expression, all evaluations should be true
- Parameters
-
- Returns
htmlElement::whenEqual |
( |
|
$args | ) |
|
Function to evaluate a key value pair for a IDENTICAL MATCH - if it is true it returns the current object
- Parameters
-
- Returns
htmlElement::whenLike |
( |
|
$args | ) |
|
Function to evaluate a key value pair for a LIKE MATCH - if it is true it returns the current object
- Parameters
-
- Returns
htmlElement::whenOr |
( |
|
$args | ) |
|
Function to evaluate a key value pair for any valid boolean expression, all evaluations should be true
- Parameters
-
- Returns
The documentation for this class was generated from the following file: