forms
[
class tree: forms
] [
index: forms
] [
all elements
]
changelog
install
readme
Todo List
Packages:
core
communication
databases
data_structures
filesystem
forms
GilliGan
html
Services_JSON
Source for file HTMLButton.class.php
Documentation is available at
HTMLButton.class.php
<?php
/**
* For including this file you have to define the constant "CLASSPATH".
* Because every include in the framework depends on the CLASSPATH definition.
* The CLASSPATH means the relative path to the folder that contains the
* framework GilliGan.
*
*
@package
forms
*
@subpackage
items
*/
if
(
!
defined
(
"CLASSPATH"
) )
{
echo
"<h3>You have to define the constant CLASSPATH!</h3>\n"
;
echo
"Example: define( 'CLASSPATH', '../path/to/classes/' );\n"
;
exit
(
)
;
}
/**
*
*/
require_once
(
CLASSPATH
.
"forms/items/ABSTHTMLFormItem.class.php"
)
;
/**
* Creating HTML-Buttons
*
*
@package
forms
*
@subpackage
items
*
@version
0.1.62
*
@author
Daniel Plücken <daniel@debakel.net>
*
@license
http://www.gnu.org/copyleft/lesser.html
* GNU Lesser General Public License
*
@copyright
Copyright (C) 2004 Daniel Plücken <daniel@debakel.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
*/
class
HTMLButton
extends
ABSTHTMLFormItem
{
/**
*
@var
string
$mouseup
*
@access
public
*/
var
$mouseup
;
/**
* Constructor.
*
*
@version
1.1
*
@since
0.1.0
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@param
string
$name
The value of the name-attribute of this button.
*
@param
string
$value
The label of this buton.
*
@param
string
$onMouseup
The value of the onMouseup-attribute of this
* button.
*
@return
void
*/
function
HTMLButton
(
$name
=
""
,
$value
=
""
,
$onMouseup
=
""
)
{
$this
->
name
=
$name
;
$this
->
id
=
$name
;
$this
->
value
=
$value
;
$this
->
mouseup
=
$onMouseup
;
}
/**
* Blind method cause other objects will invoke it.
*
*
@version
1.0
*
@since
0.1.2
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@param
string
$formname
*
@return
boolean
(false)
*/
function
getCheckOrder
(
$formname
)
{
return
false
;
}
/**
* Blind method cause other objects will invoke it.
*
*
@version
1.0
*
@since
0.1.2
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@param
string
$formname
*
@return
boolean
(false)
*/
function
getValidationOrder
(
$formname
)
{
return
false
;
}
/**
* Returns a generated string based on the attributes of this object.
*
*
@version
1.22
*
@since
0.1.0
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@return
string
*/
function
get
(
)
{
$this
->
idExists
(
$this
->
id
,
true
)
;
$out
=
"<!--\r\n"
.
"--><input type=\"button\"\r\n"
.
" name=\""
.
$this
->
name
.
"\"\r\n"
.
" id=\""
.
$this
->
id
.
"\"\r\n"
;
$out
.=
!
empty
(
$this
->
style_class
)
?
" class=\""
.
$this
->
style_class
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
freestyle
)
?
" style=\""
.
$this
->
freestyle
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
blur
)
?
" onBlur=\""
.
$this
->
blur
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
focus
)
?
" onFocus=\""
.
$this
->
focus
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
click
)
?
" onClick=\""
.
$this
->
click
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
mouseup
)
?
" onMouseup=\""
.
$this
->
mouseup
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
mouseover
)
?
" onMouseover=\""
.
$this
->
mouseover
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
mouseout
)
?
" onMouseout=\""
.
$this
->
mouseout
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
mousemove
)
?
" onMousemove=\""
.
$this
->
mousemove
.
"\"\r\n"
:
""
;
$out
.=
!
empty
(
$this
->
value
)
?
" value=\""
.
$this
->
value
.
"\""
:
""
;
$out
.=
$this
->
enabled
?
""
:
" disabled=\"disabled\""
;
$out
.=
" />"
;
return
$out
;
}
}
// END of class HTMLButton
?>
Documentation generated on Thu, 05 Jun 2008 19:11:56 +0200 by
phpDocumentor 1.4.1