TITAN Library for PHP5  5.1.0
Web Software Development Kit for PHP5
link Class Reference

Titan Link Class. More...

Public Member Functions

link ($location, $text, $url)
 
handler ($state, $handler)
 
states ()
 
renderer (&$object, $renderer)
 

Data Fields

 $states = array()
 Array of states in which the link should appear.
 
 $location = ''
 Page location in which the link should appear.
 
 $text = ''
 Link text.
 
 $url = ''
 Link URL.
 
 $handlers = array()
 Array of link handlers.
 
 $object = false
 Object containing link renderer method.
 
 $renderer = false
 Link renderer method.
 

Detailed Description

Titan Link Class.

Class: \tl\format\html\link

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.1.0

Member Function Documentation

& link (   $location,
  $text,
  $url 
)

Setup the link properties

Parameters
string$locationEither 'header' or 'inline'
string$textDisplay text
string$urlURL
Returns
object $this
& handler (   $state,
  $handler 
)

Setup the handler properties

Parameters
string$stateThe state to handle
string$handlerHandler method $this->{$handler}
Returns
object $this
& states ( )

Setup the appearance states

Any number of strings in the format "action/type" may be passed as parameters; each represents a state in which to show this link

Returns
object $this
& renderer ( $object,
  $renderer 
)

Setup the renderer

Parameters
object$objectThe object to use
string$rendererThe renderer method to use
Returns
object $this

The documentation for this class was generated from the following file: