Class: Link
Source Location: /myphp-1.9/myphp-1.9-base/html/util/Link.php
Class Link
Class Overview
|
Returns a complete Link as HTML
<a class="$class" href="$href" title="$title" name="$name" target="_BLANK">$text</a> The link may be terminated by a or surronded by <li> tags as specified by the $aux parameter - Usage:
- $link = new Link($text,$href,$class,$title,$aux,$target,$name);
- print $link->getHtml();
- Or
- Link::display($text,$href,$class,$title,$aux,$target,$name);
Located in /myphp-1.9/myphp-1.9-base/html/util/Link.php [line 33]
Object
|
--Html
|
--Link
|
Properties
|
Methods
|
Direct descendents
| Links |
Returns a complete predefined Link as HTML.
|
Inherited Properties, Constants, and Methods
Method Summary
| String |
getHtml() |
Get the complete html for a link |
| String |
getParams() |
Get the complete html for a link |
Methods
Link Link(
[String
$text = ''], [String
$href = ''], [String
$class = ''], [String
$title = ''], [String
$aux = ''], [String
$target = ''], [String
$name = '']
)
|
|
Constructor
Parameters:
|
String |
$text: |
The text for the link |
|
String |
$href: |
The url for the link |
|
String |
$class: |
The css class of the link |
|
String |
$title: |
The tool tip of the link |
|
String |
$aux: |
Add 'br' or 'li' html tags, if required |
|
String |
$target: |
The target for the link I.e. _BLANK |
|
String |
$name: |
The name for the link |
void display(
[String
$text = ''], [String
$href = ''], [String
$class = ''], [String
$title = ''], [String
$aux = ''], [String
$target = ''], [String
$name = '']
)
|
|
Display html
- Usage:
- Link::display($text,$href,$class,$title,$aux,$target,$name);
Parameters:
|
String |
$text: |
The text for the link |
|
String |
$href: |
The url for the link |
|
String |
$class: |
The css class of the link |
|
String |
$title: |
The tool tip of the link |
|
String |
$aux: |
Add 'br' or 'li' html tags, if required |
|
String |
$target: |
The target for the link. I.e. _BLANK |
|
String |
$name: |
The name for the link |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Redefined in descendants as:
Get the complete html for a link
An image object may be added
API Tags:
Redefinition of:
- Html::getHtml()
- Get Html
Get the complete html for a link
API Tags:
|
|