Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 5576 | Rev 5578 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5576 Rev 5577
Línea 216... Línea 216...
216
        $currentUserPlugin  = $this->plugin('currentUserPlugin');
216
        $currentUserPlugin  = $this->plugin('currentUserPlugin');
217
        $currentCompany     = $currentUserPlugin->getCompany(); 
217
        $currentCompany     = $currentUserPlugin->getCompany(); 
218
        $currentUser        = $currentUserPlugin->getUser();
218
        $currentUser        = $currentUserPlugin->getUser();
Línea 219... Línea 219...
219
        
219
        
-
 
220
        $request    = $this->getRequest();
-
 
221
        return new JsonModel([
-
 
222
            'success' => false,
-
 
223
            'data' => [
-
 
224
                'name'=>$this->params()->fromPost('file_base64_name'),
-
 
225
                'content'=>$this->params()->fromPost('file_base64_content'),
220
        $request    = $this->getRequest();
226
            ]
221
 
227
        ]);
222
        if($request->isPost()) {
228
        if($request->isPost()) {
223
            $form = new  TopicAddForm();
229
            $form = new  TopicAddForm();
Línea 224... Línea 230...
224
            $dataPost = array_merge($request->getPost()->toArray(), $request->getFiles()->toArray());
230
            $dataPost = array_merge($request->getPost()->toArray(), $request->getFiles()->toArray());
Línea 243... Línea 249...
243
                    
249
                    
244
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
250
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
245
                    try {
251
                    try {
246
                        $fileBase64Name = $this->params()->fromPost('file_base64_name');
252
                        $fileBase64Name = $this->params()->fromPost('file_base64_name');
-
 
253
                        $fileBase64Content = $this->params()->fromPost('file_base64_content');
247
                        $fileBase64Content = $this->params()->fromPost('file_base64_content');
254
 
248
                        $feed_filename      = $this->normalizeString($fileBase64Name);
255
                        $feed_filename      = $this->normalizeString($fileBase64Name);
249
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
256
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
250
                        if(!file_exists($target_path)) {
257
                        if(!file_exists($target_path)) {
251
                            mkdir($target_path, 0755, true);
258
                            mkdir($target_path, 0755, true);