Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1064 Rev 1065
Línea 37... Línea 37...
37
     * @return RecruitmentSelectionInterviewMapper
37
     * @return RecruitmentSelectionInterviewMapper
38
     */
38
     */
39
    public static function getInstance($adapter)
39
    public static function getInstance($adapter)
40
    {
40
    {
41
        if(self::$_instance == null) {
41
        if(self::$_instance == null) {
42
            self::$_instance = new RecruitInterviewMapper($adapter);
42
            self::$_instance = new RecruitmentSelectionInterviewMapper($adapter);
43
        }
43
        }
44
        return self::$_instance;
44
        return self::$_instance;
45
    }
45
    }
Línea 46... Línea 46...
46
    
46
    
47
    /**
47
    /**
48
     * 
48
     * 
49
     * @param int $id
49
     * @param int $id
50
     * @return RecruitmentInterview
50
     * @return RecruitmentSelectionInterview
51
     */
51
     */
52
    public function fetchOne($id)
52
    public function fetchOne($id)
53
    {
53
    {
Línea 54... Línea 54...
54
        $prototype = new RecruitmentInterview();
54
        $prototype = new RecruitmentSelectionInterview();
55
        
55
        
Línea 56... Línea 56...
56
        $select = $this->sql->select(self::_TABLE);
56
        $select = $this->sql->select(self::_TABLE);
Línea 61... Línea 61...
61
    
61
    
62
    
62
    
63
    /**
63
    /**
64
     *
64
     *
65
     * @param int $uuid
65
     * @param int $uuid
66
     * @return RecruitmentInterview
66
     * @return RecruitmentSelectionInterview
67
     */
67
     */
68
    public function fetchOneByUuid($uuid)
68
    public function fetchOneByUuid($uuid)
69
    {
69
    {
70
        $prototype = new RecruitmentInterview();
70
        $prototype = new RecruitmentSelectionInterview();
Línea 71... Línea 71...
71
        $select = $this->sql->select(self::_TABLE);
71
        $select = $this->sql->select(self::_TABLE);
72
        $select->where->equalTo('uuid', $uuid);
72
        $select->where->equalTo('uuid', $uuid);
Línea 73... Línea 73...
73
        
73
        
74
        return $this->executeFetchOneObject($select, $prototype);
74
        return $this->executeFetchOneObject($select, $prototype);
75
    }
75
    }
76
   
76
   
77
    
77
    
78
    /**
78
    /**
79
     *
79
     *
80
     * @param int $company_id
80
     * @param int $company_id
Línea 81... Línea 81...
81
     * @return RecruitmentInterview
81
     * @return RecruitmentSelectionInterview
82
     */
82
     */
83
    public function fetchAllByCompanyId($company_id)
83
    public function fetchAllByCompanyId($company_id)
Línea 92... Línea 92...
92
    }
92
    }
Línea 93... Línea 93...
93
 
93
 
94
     /**
94
     /**
95
     *
95
     *
96
     * @param int $company_id
96
     * @param int $company_id
97
     * @return RecruitmentInterview
97
     * @return RecruitmentSelectionInterview
98
     */
98
     */
99
    public function fetchOneByCompanyId($company_id)
99
    public function fetchOneByCompanyId($company_id)
100
    {
100
    {
Línea 101... Línea 101...
101
        $prototype = new RecruitmentInterview();
101
        $prototype = new RecruitmentSelectionInterview();
102
        
102
        
103
        $select = $this->sql->select(self::_TABLE);
103
        $select = $this->sql->select(self::_TABLE);
Línea 128... Línea 128...
128
    }
128
    }
Línea 129... Línea 129...
129
    
129
    
130
    
130
    
131
    /**
131
    /**
132
     * 
132
     * 
133
     * @param RecruitmentInterview $form
133
     * @param RecruitmentSelectionInterview $form
134
     * @return boolean
134
     * @return boolean
135
     */
135
     */
136
    public function insert($form)
136
    public function insert($form)
Línea 193... Línea 193...
193
     * @param string $order_direction
193
     * @param string $order_direction
194
     * @return Paginator
194
     * @return Paginator
195
     */
195
     */
196
    public function fetchAllDataTableByCompanyId($companyId, $search, $page = 1, $records_per_page = 10, $order_field= 'name', $order_direction = 'ASC')
196
    public function fetchAllDataTableByCompanyId($companyId, $search, $page = 1, $records_per_page = 10, $order_field= 'name', $order_direction = 'ASC')
197
    {
197
    {
198
        $prototype = new RecruitmentInterview();
198
        $prototype = new RecruitmentSelectionInterview();
199
        $select = $this->sql->select(self::_TABLE);
199
        $select = $this->sql->select(self::_TABLE);
200
        $select->where->equalTo('company_id', $companyId);
200
        $select->where->equalTo('company_id', $companyId);
Línea 201... Línea 201...
201
        
201
        
202
        if($search) {
202
        if($search) {