phpDocumentor base
[ class tree: base ] [ index: base ] [ all elements ]

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

  1. Usage:
  2. $link = new Link($text,$href,$class,$title,$aux,$target,$name);
  3. print $link->getHtml();
  4. Or
  5. 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

[ Top ]
Direct descendents
Child Class Description
Links Returns a complete predefined Link as HTML.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

Object::$cachefile
Object::$html
Object::$sql

Inherited From Html

Html::Html()
Constructor
Html::add()
Add an element, the number of elements are stored internally in an array.
Html::content()
Read the content of the specified filename
Html::display()
Display the html
Html::get()
Get the complete html for a key
Html::getAttribute()
Get the complete html for an attribute, i.e. <a class="myclass" ...
Html::getElement()
Get the element at position $i in array
Html::getElements()
Get all the elements as html
Html::getHtml()
Get Html
Html::getHtmlHelp()
Get html help
Html::getSizeof()
Get the number of elements added
Html::getTag()
Get the complete html for a html tag, i.e. <p>My paragraph</p>
Html::read()
Read the content of the specified filename and language
Html::set()
Set the named attribute (key) of a class to specified value
Html::setObject()
Set the named object to the class attribute (key), with same name
Html::showsource()
Show source
Html::update()
Save the content of the specified filename and language

Inherited From Object

Object::Object()
Constructor
Object::addHtml()
Add the current html to the SourceCode object
Object::getCacheFileName()
Returns the name of the cache file name
Object::getClassName()
Returns the name of the instanciated class
Object::getHtml()
Returns the html for the element
Object::getMsg()
Get the formatted message and debug level and Log to file ?
Object::save()
Save the SQL cache file
Object::setCacheFileName()
Set the path/name of the cache file
Object::toString()
Returns the information for this class
Object::write()
Write the content to the file opened by fp

[ Top ]
Property Summary
String   $aux  
String   $class  
String   $href  
String   $name  
String   $target  
String   $text  
String   $title  

[ Top ]
Method Summary
Link   Link()   Constructor
void   display()   Display html
String   getHtml()   Get the complete html for a link
String   getParams()   Get the complete html for a link

[ Top ]
Properties
String   $aux = '' [line 62]

[ Top ]
String   $class = '' [line 52]

[ Top ]
String   $href = '' [line 42]

[ Top ]
String   $name = '' [line 47]

[ Top ]
String   $target = '' [line 67]

[ Top ]
String   $text = '' [line 37]

[ Top ]
String   $title = '' [line 57]

[ Top ]
Methods
Constructor Link  [line 79]

  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


[ Top ]
display  [line 278]

  void display( [String $text = ''], [String $href = ''], [String $class = ''], [String $title = ''], [String $aux = ''], [String $target = ''], [String $name = '']  )

Display html

  1. Usage:
  2. 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:
Static:  


Redefinition of:
Html::display()
Display the html

Redefined in descendants as:

[ Top ]
getHtml  [line 211]

  String getHtml( )

Get the complete html for a link

An image object may be added


API Tags:
Return:  the html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]
getParams  [line 116]

  String getParams( )

Get the complete html for a link


API Tags:
Return:  the html


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:12:51 +0100 by phpDocumentor 1.3.0RC3