Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4776 Rev 5050
Línea 84... Línea 84...
84
    {
84
    {
85
        $prototype = new RecruitmentSelectionVacancy();
85
        $prototype = new RecruitmentSelectionVacancy();
Línea 86... Línea 86...
86
        
86
        
87
        $select = $this->sql->select(self::_TABLE);
87
        $select = $this->sql->select(self::_TABLE);
-
 
88
        $select->where->equalTo('company_id', $company_id);
-
 
89
        $select->order('name');
-
 
90
        
-
 
91
        return $this->executeFetchAllObject($select, $prototype);
-
 
92
    }
-
 
93
    
-
 
94
    /**
-
 
95
     *
-
 
96
     * @param int $company_id
-
 
97
     * @return RecruitmentSelectionVacancy
-
 
98
     */
-
 
99
    public function fetchAllActiveByCompanyId($company_id)
-
 
100
    {
-
 
101
        $prototype = new RecruitmentSelectionVacancy();
-
 
102
        
-
 
103
        $select = $this->sql->select(self::_TABLE);
88
        $select->where->equalTo('company_id', $company_id);
104
        $select->where->equalTo('company_id', $company_id);
89
        $select->where->equalTo('status', RecruitmentSelectionVacancy::STATUS_ACTIVE);
105
        $select->where->equalTo('status', RecruitmentSelectionVacancy::STATUS_ACTIVE);
Línea 90... Línea 106...
90
        $select->order('name');
106
        $select->order('name');
91
        
107
        
-
 
108
        return $this->executeFetchAllObject($select, $prototype);
Línea 92... Línea 109...
92
        return $this->executeFetchAllObject($select, $prototype);
109
    }
93
    }
110
    
94
 
111