Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Method.TST_GETSEARCHMETHODS_OVERRIDE.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package Dcp\Pu
5
*/
6
/**
7
* @begin-method-ignore
8
* this part will be deleted when construct document class until end-method-ignore
9
*/
10
class
TST_GETSEARCHMETHODS_OVERRIDE
extends
Doc
11
{
12
/**
13
* @end-method-ignore
14
*/
15
/**
16
* @param string $attrId
17
* @param string $attrType
18
* @return array
19
*/
20
public
function
getSearchMethods
($attrId, $attrType =
''
)
21
{
22
$methodList = parent::getSearchMethods($attrId, $attrType);
23
24
$methodList = array_merge($methodList, array(
25
array(
26
'label'
=>
'One year later'
,
27
'method'
=>
'::getDate(365)'
28
) ,
29
array(
30
'label'
=>
'One year earlier'
,
31
'method'
=>
'::getDate(-365)'
32
) ,
33
array(
34
'label'
=>
'InvalidSearchMethod'
,
35
'method'
=>
'InvalidSearchMethod'
36
)
37
));
38
39
return
$methodList;
40
}
41
/**
42
* Foo
43
*
44
* @searchLabel The "Foo" string
45
* @searchType text
46
*
47
* @return string
48
*/
49
public
function
getFoo
()
50
{
51
return
"Foo"
;
52
}
53
/**
54
* The usual two cents advice...
55
*
56
* @searchLabel Two cents
57
* @searchType double
58
*
59
* @param int $plus
60
* @return float
61
*/
62
public
function
getTwoCents
($plus = 0)
63
{
64
return
0.02;
65
}
66
/**
67
* Invalid search method
68
* @return null
69
*/
70
public
function
getInvalidSearchMethod
() {
71
return
null;
72
}
73
/**
74
* @begin-method-ignore
75
* this part will be deleted when construct document class until end-method-ignore
76
*/
77
}
78
/**
79
* @end-method-ignore
80
*/
TST_GETSEARCHMETHODS_OVERRIDE\getTwoCents
getTwoCents($plus=0)
Definition:
Method.TST_GETSEARCHMETHODS_OVERRIDE.php:62
TST_GETSEARCHMETHODS_OVERRIDE\getFoo
getFoo()
Definition:
Method.TST_GETSEARCHMETHODS_OVERRIDE.php:49
Doc
Definition:
Class.Doc.php:58
TST_GETSEARCHMETHODS_OVERRIDE\getSearchMethods
getSearchMethods($attrId, $attrType= '')
Definition:
Method.TST_GETSEARCHMETHODS_OVERRIDE.php:20
TST_GETSEARCHMETHODS_OVERRIDE
Definition:
Method.TST_GETSEARCHMETHODS_OVERRIDE.php:10
TST_GETSEARCHMETHODS_OVERRIDE\getInvalidSearchMethod
getInvalidSearchMethod()
Definition:
Method.TST_GETSEARCHMETHODS_OVERRIDE.php:70
← centre documentaire
© anakeen