Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

Abstract Class JPathway

Description

Class to maintain a pathway.

Main example of use so far is the mod_breadcrumbs module that keeps track of the user's navigated path within the Joomla application.

Located in /joomla/application/pathway.php (line 30)

Class JObject   (Subpackage Base)

Abstract class JPathway   (Subpackage Application)
Method Summary
Constructor JPathway __construct ([ $options = array()])
Method boolean addItem (string $name, [string $link = ''])
Method JPathway &getInstance (string $client, [array $options = array()])
Method array getPathway ()
Method array getPathwayNames ()
Method boolean setItemName (integer $id, string $name)
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 47)

Class constructor

JPathway __construct ([ $options = array()])
  • $options

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
addItem (line 144)

Create and add an item to the pathway.

  • return: True on success
  • since: 1.5
  • access: public
boolean addItem (string $name, [string $link = ''])
  • string $name
  • string $link
getInstance (line 65)

Returns a reference a JPathway object

This method must be invoked as:

  $menu = &JPathway::getInstance();

  • return: A pathway object.
  • since: 1.5
  • access: public
JPathway &getInstance (string $client, [array $options = array()])
  • string $client: The name of the client
  • array $options: An associative array of options
getPathway (line 106)

Return the JPathWay items array

  • return: Array of pathway items
  • since: 1.5
  • access: public
array getPathway ()
getPathwayNames (line 121)

Create and return an array of the pathway names.

  • return: Array of names of pathway items
  • since: 1.5
  • access: public
array getPathwayNames ()
setItemName (line 166)

Set item name.

  • return: True on success
  • since: 1.5
  • access: public
boolean setItemName (integer $id, string $name)
  • integer $id
  • string $name

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()

Documentation generated on Tue, 29 Jan 2008 18:49:02 +0000 by phpDocumentor 1.3.1