comparison controllers/extractapp.php @ 89:e681d693240e extractapp

new: generated regex to SmartRegex
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 03 Jun 2015 16:54:09 +0200
parents fb5049fc5dd7
children 3e11a9c5a672
comparison
equal deleted inserted replaced
88:61593b047289 89:e681d693240e
160 */ 160 */
161 $viewmodel = $this->viewmodel; 161 $viewmodel = $this->viewmodel;
162 162
163 if (isset($this->postdata['func'])) { 163 if (isset($this->postdata['func'])) {
164 $func = $this->postdata['func']; 164 $func = $this->postdata['func'];
165 } else {
166 $func = "";
165 } 167 }
166 switch ($func) { 168 switch ($func) {
167 case 'exportFromExtractionInterface': 169 case 'exportFromExtractionInterface':
168 $this->ReturnView($viewmodel->ExportTable($this->postdata, false), true); 170 $this->ReturnView($viewmodel->ExportTable($this->postdata, false), true);
169 break; 171 break;
185 */ 187 */
186 188
187 $viewmodel = $this->viewmodel; 189 $viewmodel = $this->viewmodel;
188 if (isset($this->postdata['func'])) { 190 if (isset($this->postdata['func'])) {
189 $func = $this->postdata['func']; 191 $func = $this->postdata['func'];
192 } else {
193 $func = "";
190 } 194 }
191 switch ($func) { 195 switch ($func) {
192 case 'AddNewList': 196 case 'AddNewList':
193 $this->ReturnView($viewmodel->AddNewList($this->postdata), true); 197 $this->ReturnView($viewmodel->AddNewList($this->postdata), true);
194 break; 198 break;
209 */ 213 */
210 214
211 $viewmodel = $this->viewmodel; 215 $viewmodel = $this->viewmodel;
212 if (isset($this->postdata['func'])) { 216 if (isset($this->postdata['func'])) {
213 $func = $this->postdata['func']; 217 $func = $this->postdata['func'];
218 } else {
219 $func = "";
214 } 220 }
215 switch ($func) { 221 switch ($func) {
216 case 'NewTagElement': 222 case 'NewTagElement':
217 $this->ReturnView($viewmodel->NewTagElement($this->postdata), true); 223 $this->ReturnView($viewmodel->NewTagElement($this->postdata), true);
218 break; 224 break;
236 */ 242 */
237 243
238 $viewmodel = $this->viewmodel; 244 $viewmodel = $this->viewmodel;
239 if (isset($this->postdata['func'])) { 245 if (isset($this->postdata['func'])) {
240 $func = $this->postdata['func']; 246 $func = $this->postdata['func'];
247 } else {
248 $func = "";
241 } 249 }
242 switch ($func) { 250 switch ($func) {
243 case 'Update': 251 case 'Update':
244 $viewmodel->UpdateTagsInTopic($this->postdata); 252 $viewmodel->UpdateTagsInTopic($this->postdata);
245 break; 253 break;