@@ -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 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use MysqlUuid\Formats\Binary; |
5 | 5 | use MysqlUuid\Uuid; |
6 | 6 | use Core\Entity\ArticleType; |
7 | -use MysqlUuid\Formats\PlainString; |
|
8 | 7 | |
9 | 8 | class ArticleDiscussions extends AbstractMigration |
10 | 9 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Zend\Db\Adapter\AdapterAwareInterface; |
8 | 8 | use Zend\Db\TableGateway\AbstractTableGateway; |
9 | 9 | use Zend\Db\Sql\Delete; |
10 | -use Zend\Db\Sql\Insert; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Class ArticleMapper. |
@@ -22,49 +22,49 @@ |
||
22 | 22 | /** |
23 | 23 | * |
24 | 24 | * |
25 | - * @var ArticleMapper |
|
25 | + * @var ArticleMapper |
|
26 | 26 | */ |
27 | 27 | private $articleMapper; |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * |
31 | 31 | * |
32 | - * @var ArticleVideosMapper |
|
32 | + * @var ArticleVideosMapper |
|
33 | 33 | */ |
34 | 34 | private $articleVideosMapper; |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * |
38 | 38 | * |
39 | - * @var ArticleFilter |
|
39 | + * @var ArticleFilter |
|
40 | 40 | */ |
41 | 41 | private $articleFilter; |
42 | 42 | |
43 | 43 | /** |
44 | 44 | * |
45 | 45 | * |
46 | - * @var VideoFilter |
|
46 | + * @var VideoFilter |
|
47 | 47 | */ |
48 | 48 | private $videosFilter; |
49 | 49 | |
50 | 50 | /** |
51 | 51 | * |
52 | 52 | * |
53 | - * @var CategoryMapper |
|
53 | + * @var CategoryMapper |
|
54 | 54 | */ |
55 | 55 | private $categoryMapper; |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * |
59 | 59 | * |
60 | - * @var Upload |
|
60 | + * @var Upload |
|
61 | 61 | */ |
62 | 62 | private $upload; |
63 | 63 | |
64 | 64 | /** |
65 | 65 | * |
66 | 66 | * |
67 | - * @var AdminUsersMapper |
|
67 | + * @var AdminUsersMapper |
|
68 | 68 | */ |
69 | 69 | private $adminUsersMapper; |
70 | 70 |
@@ -23,49 +23,49 @@ |
||
23 | 23 | /** |
24 | 24 | * |
25 | 25 | * |
26 | - * @var ArticleMapper |
|
26 | + * @var ArticleMapper |
|
27 | 27 | */ |
28 | 28 | private $articleMapper; |
29 | 29 | |
30 | 30 | /** |
31 | 31 | * |
32 | 32 | * |
33 | - * @var ArticlePostsMapper |
|
33 | + * @var ArticlePostsMapper |
|
34 | 34 | */ |
35 | 35 | private $articlePostsMapper; |
36 | 36 | |
37 | 37 | /** |
38 | 38 | * |
39 | 39 | * |
40 | - * @var ArticleFilter |
|
40 | + * @var ArticleFilter |
|
41 | 41 | */ |
42 | 42 | private $articleFilter; |
43 | 43 | |
44 | 44 | /** |
45 | 45 | * |
46 | 46 | * |
47 | - * @var PostFilter |
|
47 | + * @var PostFilter |
|
48 | 48 | */ |
49 | 49 | private $postFilter; |
50 | 50 | |
51 | 51 | /** |
52 | 52 | * |
53 | 53 | * |
54 | - * @var CategoryMapper |
|
54 | + * @var CategoryMapper |
|
55 | 55 | */ |
56 | 56 | private $categoryMapper; |
57 | 57 | |
58 | 58 | /** |
59 | 59 | * |
60 | 60 | * |
61 | - * @var Upload |
|
61 | + * @var Upload |
|
62 | 62 | */ |
63 | 63 | private $upload; |
64 | 64 | |
65 | 65 | /** |
66 | 66 | * |
67 | 67 | * |
68 | - * @var AdminUsersMapper |
|
68 | + * @var AdminUsersMapper |
|
69 | 69 | */ |
70 | 70 | private $adminUsersMapper; |
71 | 71 |
@@ -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()); |
@@ -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 = $postController($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 = $postController($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 = $postController($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 = $postController($request, $response); |
336 | 336 | static::assertSame(302, $returnedResponse->getStatusCode()); |