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 HTMLFileInput.class.php
Documentation is available at
HTMLFileInput.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/HTMLTextInput.class.php"
)
;
/**
* A class to generate a input to uploading files.
*
*
@package
forms
*
@subpackage
items
*
@version
0.1.0
*
@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
HTMLFileInput
extends
HTMLTextInput
{
/**
* Constructor
*
*
@version
1.0
*
@since
0.1.0
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@param
string
$name
*
@param
string
$value
*/
function
HTMLFileInput
(
$name
,
$value
=
""
,
$style_class
=
""
)
{
$this
->
HTMLTextInput
(
$name
,
$value
,
$size
=
0
,
$maxchars
=
0
,
$style_class
)
;
}
/**
* Generates the sourcecode to build this object and returns it.
*
*
@version
1.0
*
@since
0.1.0
*
@author
Daniel Plücken <daniel@debakel.net>
*
@access
public
*
@return
string
*/
function
getPHPSource
(
)
{
return
parent
::
getPHPSource
(
"HTMLFileInput"
)
;
}
/**
* Returns a generated string based on the attributes of this object.
*
*
@version
1.0
*
@since
0.1.0
*
@author
Daniel Plücken <daniel@debakel.net>
*
@param
string
$type
*
@access
public
*
@return
string
*/
function
get
(
)
{
return
parent
::
get
(
"file"
)
;
}
}
// End of HTMLFileInput
?>
Documentation generated on Thu, 05 Jun 2008 19:12:11 +0200 by
phpDocumentor 1.4.1