From e195942dd148a624c75d971e70de8a6bec2b8fe2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 18 Feb 2009 19:15:56 +0000 Subject: [PATCH] type specific button labels --- lam/lib/baseType.inc | 21 ++++++++++++++++----- lam/lib/modules.inc | 5 +++-- lam/lib/types/dhcp.inc | 11 +++++++++++ lam/lib/types/group.inc | 11 ++++++++++- lam/lib/types/host.inc | 11 ++++++++++- lam/lib/types/mailAlias.inc | 11 ++++++++++- lam/lib/types/netgroup.inc | 9 +++++++++ lam/lib/types/smbDomain.inc | 11 ++++++++++- lam/lib/types/user.inc | 11 ++++++++++- 9 files changed, 89 insertions(+), 12 deletions(-) diff --git a/lam/lib/baseType.inc b/lam/lib/baseType.inc index 5d4ea9a1..8d87f0b0 100644 --- a/lam/lib/baseType.inc +++ b/lam/lib/baseType.inc @@ -35,13 +35,24 @@ $Id$ */ class baseType { + public $LABEL_CREATE_ANOTHER_ACCOUNT; + public $LABEL_BACK_TO_ACCOUNT_LIST; + + /** + * Creates a new type object. + */ + public function __construct() { + $this->LABEL_CREATE_ANOTHER_ACCOUNT = _('Create another account'); + $this->LABEL_BACK_TO_ACCOUNT_LIST = _('Back to account list'); + } + /** * Returns the alias name of this account type. * This function must be overwritten by the child classes. * * @return string alias name */ - function getAlias() { + public function getAlias() { return "baseType"; } @@ -51,7 +62,7 @@ class baseType { * * @return string description */ - function getDescription() { + public function getDescription() { return "base type"; } @@ -60,7 +71,7 @@ class baseType { * * @return string class name */ - function getListClassName() { + public function getListClassName() { return "lamList"; } @@ -70,7 +81,7 @@ class baseType { * * @return string attribute list */ - function getDefaultListAttributes() { + public function getDefaultListAttributes() { return "dn:DN,objectClass:Object classes"; } @@ -80,7 +91,7 @@ class baseType { * * @return array list of descriptions */ - function getListAttributeDescriptions() { + public function getListAttributeDescriptions() { return array(); } diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index e1be5fef..cdda963e 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1249,8 +1249,9 @@ class accountContainer { echo "
\n"; echo "type."list\" width=\"100%\" style=\"border-width:0px;\">
\n"; - echo " \n"; - echo " \n"; + $type = new $this->type(); + echo "LABEL_CREATE_ANOTHER_ACCOUNT . "\"> \n"; + echo "LABEL_BACK_TO_ACCOUNT_LIST . "\"> \n"; echo "    "; echo "