1 | <?php |
||
20 | class RPED { |
||
21 | |||
22 | /** |
||
23 | * Wiki class |
||
24 | * |
||
25 | * @var Wiki |
||
26 | * @access private |
||
27 | */ |
||
28 | private $wiki; |
||
29 | |||
30 | /** |
||
31 | * maxURLLength |
||
32 | * Default maximum length of the URL to be posted |
||
33 | * |
||
34 | * @var int |
||
35 | * @access private |
||
36 | */ |
||
37 | private $defaultMaxURLLength; |
||
38 | |||
39 | /** |
||
40 | * Construction method for the RPED class |
||
41 | * |
||
42 | * @access public |
||
43 | * @param Wiki &$wikiClass The Wiki class object |
||
44 | */ |
||
45 | function __construct( Wiki &$wikiClass ) { |
||
50 | |||
51 | /** |
||
52 | * Insert a page title into the rped_page table |
||
53 | * |
||
54 | * @static |
||
55 | * @access public |
||
56 | * @param string $page |
||
57 | * @return void |
||
58 | */ |
||
59 | public function insert( $page ) { |
||
67 | |||
68 | /** |
||
69 | * Delete a page title from the rped_page table |
||
70 | * |
||
71 | * @static |
||
72 | * @access public |
||
73 | * @param string $page |
||
74 | * @return void |
||
75 | */ |
||
76 | public function delete( $page ) { |
||
84 | |||
85 | /** |
||
86 | * Insert/delete an array of page titles into/from the rped_page table |
||
87 | * |
||
88 | * @static |
||
89 | * @access public |
||
90 | * @param string $command Either 'insert' or 'delete' |
||
91 | * @param array $pageArray The array of page title to insert |
||
92 | * @param int $maxURLLength The maximum length of the url to be POSTed |
||
93 | * @return void |
||
94 | */ |
||
95 | public function insertOrDeleteArray( $command, $pageArray, $maxURLLength = 0 ) { |
||
124 | |||
125 | /** |
||
126 | * Insert an array of page titles into/from the rped_page table |
||
127 | * |
||
128 | * @static |
||
129 | * @access public |
||
130 | * @param array $pageArray The array of page title to insert |
||
131 | * @param int $maxURLLength The maximum length of the url to be POSTed |
||
132 | * @return void |
||
133 | */ |
||
134 | public function insertArray( $pageArray, $maxURLLength = 0 ) { |
||
137 | |||
138 | /** |
||
139 | * Delete an array of page titles from the rped_page table |
||
140 | * |
||
141 | * @static |
||
142 | * @access public |
||
143 | * @param array $pageArray The array of page title to insert |
||
144 | * @param int $maxURLLength The maximum length of the url to be POSTed |
||
145 | * @return void |
||
146 | */ |
||
147 | public function deleteArray( $pageArray, $maxURLLength = 0 ) { |
||
150 | } |
||
151 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.