Umfragen
Main Page
Related Pages
Data Structures
Files
File List
Globals
scheduleName.class.php
Go to the documentation of this file.
1
<?php
2
$matrix_included
=
true
;
3
4
class
scheduleName
extends
widget
implements
iWidget
,
input_widget
{
5
public
$typ
=
"scheduleName"
;
6
public
$direct_result
=
true
;
7
8
9
public
function
set_value
($val){
10
$val = htmlspecialchars($val , ENT_QUOTES ,
"UTF-8"
,
true
);
11
12
$err_reason
=
""
;
13
if
( (strlen($val) > 50) ){
14
$err_reason
=
"Name in der Terminplan Abfrage ist zu lange. Es sind maximal 50 Zeichen erlaubt."
;
15
}
16
if
( (strlen($val) == 0) ){
17
$err_reason
=
"Der Name in der Terminplan Abfrage darf nicht leer sein. Bitte einen eindeutigen Namen eingeben."
;
18
}
19
20
if
(
$err_reason
==
""
){
21
$this->
value
= $val;
22
return
true
;
23
}
else
{
24
return
$err_reason
;
25
}
26
27
}
28
29
public
function
set_default_values
(
$db
){
30
31
}
32
33
34
public
function
handle_inpt
(){
35
return
true
;
36
}
37
38
public
function
display_edit
(){
39
40
}
41
42
public
function
display
(){
43
44
}
45
46
47
}
48
// ! no ending newLine
49
?>
demo
inc
scheduleName.class.php
Generated on Sat Nov 30 2013 14:28:44 for Umfragen by
1.8.1.2