Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 639 Rev 640
Línea 1265... Línea 1265...
1265
        $capsuleCommentMapper = MicrolearningCapsuleCommentMapper::getInstance($this->adapter);
1265
        $capsuleCommentMapper = MicrolearningCapsuleCommentMapper::getInstance($this->adapter);
Línea 1266... Línea 1266...
1266
 
1266
 
Línea 1267... Línea 1267...
1267
        $path = $storage->getPathMicrolearningCapsule();
1267
        $path = $storage->getPathMicrolearningCapsule();
1268
 
1268
 
1269
        foreach ($topicCapsuleRelations as $relation) {
1269
        foreach ($topicCapsuleRelations as $relation) {
1270
            if(!in_array($relation->capsule_id, $accessGrantedIds->capsules)) {
1270
            if(!in_array($relation->topic_id, $accessGrantedIds->topics)) {
Línea 1271... Línea 1271...
1271
                continue;
1271
                continue;
1272
            }
1272
            }
Línea 2194... Línea 2194...
2194
    {
2194
    {
2195
        $currentUserPlugin = $this->plugin('currentUserPlugin');
2195
        $currentUserPlugin = $this->plugin('currentUserPlugin');
2196
        $currentUser = $currentUserPlugin->getUser();
2196
        $currentUser = $currentUserPlugin->getUser();
Línea 2197... Línea 2197...
2197
        
2197
        
-
 
2198
        $topicUserMapper = MicrolearningTopicUserMapper::getInstance($this->adapter);
2198
        $topicUserMapper = MicrolearningTopicUserMapper::getInstance($this->adapter);
2199
        $topicCapsuleMapper = MicrolearningTopicCapsuleMapper::getInstance($this->adapter);
Línea 2199... Línea 2200...
2199
        $now = $topicUserMapper->getDatebaseNow();
2200
        $now = $topicUserMapper->getDatebaseNow();
Línea 2200... Línea 2201...
2200
        
2201
        
Línea 2220... Línea 2221...
2220
            
2221
            
2221
            // Verificar si el tópico está en la lista de tópicos permitidos
2222
            // Verificar si el tópico está en la lista de tópicos permitidos
2222
            if(!in_array($record->topic_id, $accessGrantedIds->topics )) {
2223
            if(!in_array($record->topic_id, $accessGrantedIds->topics )) {
2223
                array_push( $accessGrantedIds->topics, $record->topic_id);
2224
                array_push( $accessGrantedIds->topics, $record->topic_id);
-
 
2225
            }
-
 
2226
 
-
 
2227
            // Verificar si la cápsula está en la lista de cápsulas permitidas
-
 
2228
            $topicCapsules = $topicCapsuleMapper->fetchAllActiveByTopicId($record->topic_id);
-
 
2229
            foreach($topicCapsules as $topicCapsule) {
-
 
2230
                if(!in_array($topicCapsule->capsule_id, $accessGrantedIds->capsules)) {
-
 
2231
                    array_push($accessGrantedIds->capsules, $topicCapsule->capsule_id);
-
 
2232
                }
2224
            }
2233
            }
Línea 2225... Línea 2234...
2225
        }
2234
        }
2226
        
2235