Core  3.2
PHP API documentation
 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  */
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  */
← centre documentaire © anakeen