Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5205 Rev 7159
Línea 46... Línea 46...
46
        }
46
        }
47
        return self::$_instance;
47
        return self::$_instance;
48
    }
48
    }
Línea 49... Línea 49...
49
    
49
    
-
 
50
    /**
-
 
51
     *
-
 
52
     * @param int $company_id
-
 
53
     * @param int $user_ids
-
 
54
     * @return CompanyUser[]
-
 
55
     */
-
 
56
    public function fetchAllActivesByCompanyIdAndUserIds($company_id, $user_ids)
-
 
57
    {
-
 
58
        $prototype = new CompanyUser();
-
 
59
        $select = $this->sql->select(self::_TABLE);
-
 
60
        $select->where->equalTo('company_id', $company_id);
-
 
61
        $select->where->in('user_id', $user_ids);
-
 
62
        $select->where->in('status',[
-
 
63
            CompanyUser::STATUS_ACCEPTED,
-
 
64
            CompanyUser::STATUS_ADMIN_WILL_ADD
-
 
65
        ]);
-
 
66
        
-
 
67
        return $this->executeFetchAllObject($select, $prototype);
-
 
68
    }
-
 
69
    
-
 
70
    
-
 
71
    
50
    /**
72
    /**
51
     * 
73
     * 
52
     * @param int $company_id
74
     * @param int $company_id
53
     * @return CompanyUser[]
75
     * @return CompanyUser[]
54
     */
76
     */