| @@ -36,10 +36,8 @@ | ||
| 36 | 36 | $this->registryAction('getAPOP'); |
| 37 | 37 | $this->registryAction('loadUrl'); |
| 38 | 38 | $this->registryAction('getCode'); |
| 39 | 39 | $this->registryAction('downloadCodeFile'); |
| 40 | - $this->registryAction('getAllAssignment'); | |
| 41 | - $this->registryAction('getCodeFilesCount'); | |
| 42 | 40 | } |
| 43 | 41 | |
| 44 | 42 | /** |
| 45 | 43 | * put your comment there... |
| @@ -76,37 +74,8 @@ | ||
| 76 | 74 | // Output code. |
| 77 | 75 | $this->response = $codeFile->code; |
| 78 | 76 | } |
| 79 | 77 | |
| 80 | - | |
| 81 | - /** | |
| 82 | - * put your comment there... | |
| 83 | - * | |
| 84 | - */ | |
| 85 | - public function getAllAssignmentAction() { | |
| 86 | - | |
| 87 | - $blockId = isset($_GET['blockId']) ? $_GET['blockId'] : null; | |
| 88 | - | |
| 89 | - try { | |
| 90 | - | |
| 91 | - if (!$blockId) { | |
| 92 | - | |
| 93 | - throw new Exception('Invalid Request parameters'); | |
| 94 | - } | |
| 95 | - | |
| 96 | - $blocks = new CJTBlocksModel(); | |
| 97 | - | |
| 98 | - $block = $blocks->getBlock($blockId); | |
| 99 | - | |
| 100 | - $this->response = count(CJTBlocksModel::getAllAssignments($block)); | |
| 101 | - } | |
| 102 | - catch (Exception $exception) { | |
| 103 | - | |
| 104 | - | |
| 105 | - } | |
| 106 | - | |
| 107 | - } | |
| 108 | - | |
| 109 | 78 | /** |
| 110 | 79 | * Query single block based on the provided criteria! |
| 111 | 80 | * |
| 112 | 81 | */ |
| @@ -119,34 +88,8 @@ | ||
| 119 | 88 | // Query Block. |
| 120 | 89 | $this->response = array_intersect_key((array) $this->model->getBlockBy(), $returns); |
| 121 | 90 | } |
| 122 | 91 | |
| 123 | - /** | |
| 124 | - * put your comment there... | |
| 125 | - * | |
| 126 | - */ | |
| 127 | - protected function getCodeFilesCountAction() { | |
| 128 | - | |
| 129 | - | |
| 130 | - $blockId = isset($_GET['blockId']) ? $_GET['blockId'] : null; | |
| 131 | - | |
| 132 | - try { | |
| 133 | - | |
| 134 | - if (!$blockId) { | |
| 135 | - | |
| 136 | - throw new Exception('Invalid Request parameters'); | |
| 137 | - } | |
| 138 | - | |
| 139 | - $this->response = count(CJTBlocksModel::getCodeFilesCount($blockId)); | |
| 140 | - } | |
| 141 | - catch (Exception $exception) { | |
| 142 | - | |
| 143 | - | |
| 144 | - } | |
| 145 | - | |
| 146 | - | |
| 147 | - } | |
| 148 | - | |
| 149 | 92 | /** |
| 150 | 93 | * Get assigment panel objects page. |
| 151 | 94 | * |
| 152 | 95 | */ |