Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 119
Línea 71... Línea 71...
71
        
71
        
72
        return $this->executeFetchOneObject($select, $prototype);
72
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 73...
-
 
73
    }
-
 
74
    
-
 
75
    
-
 
76
    
-
 
77
    /**
-
 
78
     *
-
 
79
     * @param int $company_id
-
 
80
     * @param int[] $ids
-
 
81
     * @return CompanyMicrolearningTopic[]
-
 
82
     */
-
 
83
    public function fetchAllActiveByCompanyIdAndIds($company_id, $ids)
-
 
84
    {
-
 
85
        $ids = empty($ids) ? [0] : $ids;
-
 
86
        
-
 
87
        
-
 
88
        $prototype = new CompanyMicrolearningTopic();
-
 
89
        
-
 
90
        $select = $this->sql->select(self::_TABLE);
-
 
91
        $select->where->equalTo('company_id', $company_id);
-
 
92
        $select->where->in('id', $ids);
-
 
93
        $select->where->equalTo('status', CompanyMicrolearningTopic::STATUS_ACTIVE);
-
 
94
        $select->order(['order', 'name']);
-
 
95
        
73
    }
96
        return $this->executeFetchAllObject($select, $prototype);
74
    
97
    }
75
    
98
    
76
    /**
99
    /**
77
     * 
100
     *