@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - header ( 'Content-type: text/plain'); |
|
4 | - echo " |
|
3 | + header ( 'Content-type: text/plain'); |
|
4 | + echo " |
|
5 | 5 | Now see here, you will see the output of the param most |
6 | 6 | interesting to PHP. \$_POST. |
7 | 7 | |
@@ -13,4 +13,4 @@ discard block |
||
13 | 13 | |
14 | 14 | print_r(\$_POST); |
15 | 15 | "; |
16 | - print_r($_POST); |
|
17 | 16 | \ No newline at end of file |
17 | + print_r($_POST); |
|
18 | 18 | \ No newline at end of file |
@@ -155,9 +155,9 @@ |
||
155 | 155 | <table align="center" border="0" cellpadding="0" cellspacing="0"> |
156 | 156 | <tr><td> |
157 | 157 | <? |
158 | - if(isset($_REQUEST['issubmit'])){ |
|
159 | - echo "<strong>form is sumbitted</strong>"; |
|
160 | - } |
|
158 | + if(isset($_REQUEST['issubmit'])){ |
|
159 | + echo "<strong>form is sumbitted</strong>"; |
|
160 | + } |
|
161 | 161 | |
162 | 162 | ?> |
163 | 163 |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <? |
2 | - $action = $_REQUEST["action"]; |
|
3 | - switch($action){ |
|
4 | - case "1": |
|
2 | + $action = $_REQUEST["action"]; |
|
3 | + switch($action){ |
|
4 | + case "1": |
|
5 | 5 | getContent(); |
6 | 6 | break; |
7 | - default: |
|
7 | + default: |
|
8 | 8 | break; |
9 | - } |
|
9 | + } |
|
10 | 10 | |
11 | - function getContent(){ |
|
12 | - //sleep(1); |
|
13 | - $step_number = $_REQUEST["step_number"]; |
|
14 | - $html = '<h2 class="StepTitle">Step '.$step_number.' Content</h2>'; |
|
15 | - if($step_number == 1){ |
|
16 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
11 | + function getContent(){ |
|
12 | + //sleep(1); |
|
13 | + $step_number = $_REQUEST["step_number"]; |
|
14 | + $html = '<h2 class="StepTitle">Step '.$step_number.' Content</h2>'; |
|
15 | + if($step_number == 1){ |
|
16 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
17 | 17 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, |
18 | 18 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
19 | 19 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
20 | 20 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
21 | 21 | </p>'; |
22 | - }elseif($step_number == 2){ |
|
23 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
22 | + }elseif($step_number == 2){ |
|
23 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
24 | 24 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, |
25 | 25 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
26 | 26 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
33 | 33 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
34 | 34 | </p>'; |
35 | - }elseif($step_number == 3){ |
|
36 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
35 | + }elseif($step_number == 3){ |
|
36 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
37 | 37 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, |
38 | 38 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
39 | 39 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
52 | 52 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
53 | 53 | </p>'; |
54 | - }else{ |
|
55 | - $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
54 | + }else{ |
|
55 | + $html .='<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, |
|
56 | 56 | sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, |
57 | 57 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
58 | 58 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. |
59 | 59 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
60 | 60 | </p>'; |
61 | - } |
|
62 | - echo $html; |
|
63 | - } |
|
61 | + } |
|
62 | + echo $html; |
|
63 | + } |
|
64 | 64 | |
65 | 65 | ?> |
66 | 66 | \ No newline at end of file |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return $this->getPagination($select, $page, $limit); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $limit |
|
68 | + */ |
|
66 | 69 | public function fetchLatest($limit) |
67 | 70 | { |
68 | 71 | return $this->articleEventsMapper->getLatest($limit); |
@@ -203,6 +203,9 @@ |
||
203 | 203 | return $this->articleMapper->getCategories($articleId); |
204 | 204 | } |
205 | 205 | |
206 | + /** |
|
207 | + * @param integer $limit |
|
208 | + */ |
|
206 | 209 | public function getLatestWeb($limit) |
207 | 210 | { |
208 | 211 | return $this->articlePostsMapper->getLatest($limit); |
@@ -91,6 +91,9 @@ |
||
91 | 91 | return $this->getPagination($select, $page, $limit); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param integer $limit |
|
96 | + */ |
|
94 | 97 | public function fetchLatest($limit) |
95 | 98 | { |
96 | 99 | return $this->articleVideosMapper->getLatest($limit); |
@@ -44,6 +44,9 @@ |
||
44 | 44 | return $select; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param integer $limit |
|
49 | + */ |
|
47 | 50 | public function getCategoryPostsSelect($categoryId = null, $limit = null) |
48 | 51 | { |
49 | 52 | $select = $this->getSql()->select() |
@@ -22,6 +22,9 @@ |
||
22 | 22 | return $this; |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @return boolean |
|
27 | + */ |
|
25 | 28 | public function current() |
26 | 29 | { |
27 | 30 | return $this->session->getStorage()->user; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | /** |
150 | 150 | * |
151 | 151 | * |
152 | - * @var \Zend\Diactoros\Response $returnedResponse |
|
152 | + * @var \Zend\Diactoros\Response $returnedResponse |
|
153 | 153 | */ |
154 | 154 | $returnedResponse = $eventController($request, $response); |
155 | 155 | static::assertSame(302, $returnedResponse->getStatusCode()); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * |
196 | 196 | * |
197 | - * @var \Zend\Diactoros\Response $returnedResponse |
|
197 | + * @var \Zend\Diactoros\Response $returnedResponse |
|
198 | 198 | */ |
199 | 199 | $returnedResponse = $eventController($request, $response); |
200 | 200 | static::assertSame(302, $returnedResponse->getStatusCode()); |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | /** |
243 | 243 | * |
244 | 244 | * |
245 | - * @var \Zend\Diactoros\Response $returnedResponse |
|
245 | + * @var \Zend\Diactoros\Response $returnedResponse |
|
246 | 246 | */ |
247 | 247 | $returnedResponse = $eventController($request, $response); |
248 | 248 | static::assertSame(200, $returnedResponse->getStatusCode()); |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | /** |
331 | 331 | * |
332 | 332 | * |
333 | - * @var \Zend\Diactoros\Response $returnedResponse |
|
333 | + * @var \Zend\Diactoros\Response $returnedResponse |
|
334 | 334 | */ |
335 | 335 | $returnedResponse = $eventController($request, $response); |
336 | 336 | static::assertSame(302, $returnedResponse->getStatusCode()); |