Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 5578 Rev 5579
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();
220
        $request    = $this->getRequest();
221
        return new JsonModel([
221
      /*  return new JsonModel([
222
            'success' => false,
222
            'success' => false,
223
            'data' => [
223
            'data' => [
224
                'name'=>$this->params()->fromPost('file_base64_name'),
224
                'name'=>$this->params()->fromPost('file_base64_name'),
225
                'content'=>$this->params()->fromPost('file'),
225
                'content'=>$this->params()->fromPost('file'),
226
            ]
226
            ]
227
        ]);
227
        ]);*/
228
        if($request->isPost()) {
228
        if($request->isPost()) {
229
            $form = new  TopicAddForm();
229
            $form = new  TopicAddForm();
Línea 230... Línea 230...
230
            $dataPost = array_merge($request->getPost()->toArray(), $request->getFiles()->toArray());
230
            $dataPost = array_merge($request->getPost()->toArray(), $request->getFiles()->toArray());
Línea 247... Línea 247...
247
                if($topicMapper->insert($topic)) {
247
                if($topicMapper->insert($topic)) {
248
                    $topic = $topicMapper->fetchOne($topic->id);
248
                    $topic = $topicMapper->fetchOne($topic->id);
Línea 249... Línea 249...
249
                    
249
                    
250
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
250
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
251
                    try {
251
                    try {
252
                        $fileBase64Name = $this->params()->fromPost('file_base64_name');
252
                        $fileBase64Name = 'rodolfo';
Línea 253... Línea 253...
253
                        $fileBase64Content = $this->params()->fromPost('file_base64_content');
253
                        $fileBase64Content = $this->params()->fromPost('file');
254
 
254
 
255
                        $feed_filename      = $this->normalizeString($fileBase64Name);
255
                        $feed_filename      = $this->normalizeString($fileBase64Name);
256
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
256
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;