Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1458 Rev 5574
Línea 240... Línea 240...
240
                $topicMapper = CompanyMicrolearningTopicMapper::getInstance($this->adapter);
240
                $topicMapper = CompanyMicrolearningTopicMapper::getInstance($this->adapter);
241
                if($topicMapper->insert($topic)) {
241
                if($topicMapper->insert($topic)) {
242
                    $topic = $topicMapper->fetchOne($topic->id);
242
                    $topic = $topicMapper->fetchOne($topic->id);
Línea 243... Línea 243...
243
                    
243
                    
-
 
244
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
-
 
245
                    try {
-
 
246
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
-
 
247
                        if(!file_exists($target_path)) {
-
 
248
                            mkdir($target_path, 0755, true);
-
 
249
                        }
-
 
250
                        
-
 
251
                        list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.microlearning_image_size']);
-
 
252
 
-
 
253
                        $topic_filename = substr($topic_filename, 0, strrpos($topic_filename, '.'))  . '.png';
-
 
254
                        $crop_to_dimensions = false;
-
 
255
                        if(Image::uploadImage($topic_tmp_filename, $target_path, $topic_filename, $target_width, $target_height, $crop_to_dimensions )) {
-
 
256
                            $topic->image = basename($topic_filename);
-
 
257
                            $topicMapper->update($topic);
-
 
258
                        }
-
 
259
                    } catch(\Throwable $e) {
-
 
260
                        error_log($e->getTraceAsString());
Línea 244... Línea 261...
244
                    //leaderslinked.fullpath.recruitment_selection/uuid vacante/uuid candidato 
261
                    }
245
                    
262
                    
246
                    $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] .  $topic->uuid;
263
                  /*  $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] .  $topic->uuid;
247
                    if(!file_exists($target_path)) {
264
                    if(!file_exists($target_path)) {
Línea 264... Línea 281...
264
                            }
281
                            }
265
                        } catch(\Throwable $e) {
282
                        } catch(\Throwable $e) {
266
                            error_log($e->getTraceAsString());
283
                            error_log($e->getTraceAsString());
267
                        }
284
                        }
268
                    }
285
                    }
269
   
-
 
-
 
286
                    */
Línea 270... Línea 287...
270
       
287