extended htmlAccountPageButton

This commit is contained in:
Roland Gruber 2014-01-14 18:51:36 +00:00
parent 03fd7c0f96
commit 219bde94fe
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2010 - 2013 Roland Gruber Copyright (C) 2010 - 2014 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -1003,10 +1003,13 @@ class htmlAccountPageButton extends htmlButton {
* @param String $value button text or image (16x16px, relative to graphics folder) * @param String $value button text or image (16x16px, relative to graphics folder)
* @param String $isImageButton image or text button (default text) * @param String $isImageButton image or text button (default text)
*/ */
function __construct($targetModule, $targetPage, $identifier, $value, $isImageButton = false) { function __construct($targetModule, $targetPage, $identifier, $value, $isImageButton = false, $title = null) {
$this->name = htmlspecialchars('form_subpage_' . $targetModule . '_' . $targetPage . '_' . $identifier); $this->name = htmlspecialchars('form_subpage_' . $targetModule . '_' . $targetPage . '_' . $identifier);
$this->value = $value; $this->value = $value;
$this->isImageButton = $isImageButton; $this->isImageButton = $isImageButton;
if ($title != null) {
$this->setTitle($title);
}
} }
} }