PluginProbe
CSS & JavaScript Toolbox / 8.1
CSS & JavaScript Toolbox v8.1
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | controllers/code-files.php +11 -11 11.48.1 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 -*
3 +*
4 4 */
5 5
6 6 // Disallow direct access.
7 7 defined('ABSPATH') or die("Access denied");
@@ -11,9 +11,9 @@
11 11
12 12 /**
13 13 * This class should replace any other controllers that
14 14 * has methods for interacting with a single Block (e.g block-ajax!)
15 -*
15 +*
16 16 * All single Block actions (e.g edit, new and save) should be placed/moved here
17 17 * in the future!
18 18 */
19 19 class CJTCodeFilesController extends CJTAjaxController {
@@ -19,16 +19,16 @@
19 19 class CJTCodeFilesController extends CJTAjaxController {
20 20
21 21 /**
22 22 * put your comment there...
23 - *
23 + *
24 24 * @var mixed
25 25 */
26 26 protected $controllerInfo = array();
27 -
27 +
28 28 /**
29 29 * put your comment there...
30 - *
30 + *
31 31 */
32 32 public function __construct() {
33 33 parent::__construct();
34 34 // Actions!
@@ -39,14 +39,14 @@
39 39 }
40 40
41 41 /**
42 42 * put your comment there...
43 - *
43 + *
44 44 */
45 45 public function deleteAction() {
46 46 // Block id.
47 47 $blockId = (int) $_GET['blockId'];
48 - $ids = (array) $_GET['ids'];
48 + $ids = $_GET['ids'];
49 49 // Fetch code Blocks list.
50 50 $tblCodeFiles = new CJTBlockFilesTable(cssJSToolbox::getInstance()->getDBDriver());
51 51 // Delete all
52 52 foreach ($ids as $id) {
@@ -60,9 +60,9 @@
60 60 }
61 61
62 62 /**
63 63 * put your comment there...
64 - *
64 + *
65 65 */
66 66 public function getListAction() {
67 67 // Block id.
68 68 $blockId = (int) $_GET['blockId'];
@@ -85,9 +85,9 @@
85 85 }
86 86
87 87 /**
88 88 * put your comment there...
89 - *
89 + *
90 90 */
91 91 public function saveAction() {
92 92 // Block id.
93 93 $blockId = (int) $_POST['blockId'];
@@ -102,12 +102,12 @@
102 102 ->save(false, true);
103 103 // Return New CodeFile Data.
104 104 $this->response = (array) $tblCodeFiles->getData();
105 105 }
106 -
106 +
107 107 /**
108 108 * put your comment there...
109 - *
109 + *
110 110 */
111 111 public function switchAction() {
112 112 // Block id.
113 113 $blockId = (int) $_GET['blockId'];