Class TranslatedPortlet

Description

This is a base class for Portlets that use a ResourceBundle.

For each parameter, you have to give a key.

For example, you have the PortletParameter "foo", you should have a tranlation entry called "param_name_foo".

  • author: Kevin Papst
  • version: $Id: TranslatedPortlet.php,v 1.1 2007/04/23 13:02:36 kpapst Exp $
  • copyright: Copyright (C) Kevin Papst
  • license: GNU Public License
Portlet
   |
   --TranslatedPortlet
Direct descendents
Class Description
LastEditedItemsPortlet Shows a configurable amount of Items that were last edited in the System.
LoginMaskPortlet This portlets shows a Login Form.
NavigationPortlet Shows a Navigation of one Level.
QuickSearchPortlet This portlets displas a Quick Serach Formular.
ToolPortlet This portlets shows the Application Links in a List.
Method Summary
void getParameterName ( $key)
String getTranslation ( $key, [ $fallback = null])
boolean loadBundle ( $name)
Methods
getParameterName (line 72)
void getParameterName ( $key)
  • $key

Redefinition of:
Portlet::getParameterName()
Returns the Name of the given Parameter.
getTranslation (line 64)

Gets the Translation fo the given key.

If this is not found or the Bundle is null, it returns fallback.

  • return: the Translation or fallback
String getTranslation ( $key, [ $fallback = null])
  • $key
  • $fallback
loadBundle (line 53)

Loads the given ResourceBundle for this Portlet.

  • return: whether the Bundle could be loaded or not
boolean loadBundle ( $name)
  • $name

Inherited Methods

Inherited From Portlet

Portlet::Portlet()
Portlet::displayPortlet()
Portlet::getAllParameter()
Portlet::getHtml()
Portlet::getIdentifier()
Portlet::getJavascript()
Portlet::getParameter()
Portlet::getParameterName()
Portlet::getParameterType()
Portlet::getTitle()
Portlet::needsJavascript()
Portlet::setParameter()

Documentation generated by phpDocumentor 1.4.0