Xyndravandria Averazain
Alpha 0.0.0
|
Static Public Member Functions | |
static | ArgumentListing (array $Arguments) |
static | Form ($IndexFile, $Class, $Method, $InnerHTML, array $AdditionalArguments=array(), array $Assigments=array()) |
static | Hyperlink ($IndexFile, $Class, $Method, $Arguments=array(), $InnerHTML= '', array $Assigment=array()) |
Static Private Member Functions | |
static | AssigmentListing (array $Assigments) |
|
static |
Creates two argument listing for the hash and JavaScript method.
array | $Arguments,: | The arguments to be parsed. |
|
staticprivate |
Creates an assigment listing used within a HTML tag.
array | $Assigments,: | The assigments as an array. |
|
static |
Generates a form tag.
string | $IndexPage,: | The index file of your website. |
string | $Class,: | The class whose method the form data is to be passed. |
string | $Method,: | The method of the class the form data is to be passed to. |
array | $AdditionalArguments,: | Additional Arguments to be passed to the method. |
string | $InnerHTML,: | The inner HTML of the form tag. |
array | $Assigments,: | Further assigments within the form tag, for instance used to set a class attribute. The indexes of the array refer to the attributes of the HTML tag. |
|
static |
Generates an anchor tag.
string | $IndexFile,: | The index file of your website. |
string | $Class,: | The class whose method is to be called. |
string | $Method,: | The method to be called. |
array | $Arguments,: | Arguments to be passed to the method. |
string | $InnerHTML,: | The inner HTML of the anchor tag. |
array | $Assigments,: | Further assigments within the anchor tag, for instance used to set a class attribute. The indexes of the array refer to the attributes of the HTML tag. |
HTMLBuilder::HyperLink( 'Index.php', 'Class', 'Method', array( ), 'Inner HTML' ) == HTMLBuilder::Hyperlink( 'Index.php', 'Class', 'Method', 'Inner HTML' )Lastly, if you would like to pass a JavaScript expression (function call, attribute, ...) on client level as an (additional) parameter - which should therefore not be put between string quotes -, pass it as an array. Since the expression will logically not be added to the GET arguments of the file assigned to the target attribute of the form tag, you have to pass another value which should be passed as a GET argument. This is relevant when it comes to JavaScript disabled clients. To sum up, the array structure has to be: ( [0] => [JavaScript expression] ; [1] => [GET argument] )