Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 647 Rev 650
Línea 3... Línea 3...
3
 
3
 
Línea 4... Línea 4...
4
namespace LeadersLinked\Mapper;
4
namespace LeadersLinked\Mapper;
5
 
5
 
6
use LeadersLinked\Mapper\Common\MapperCommon;
6
use LeadersLinked\Mapper\Common\MapperCommon;
7
use Laminas\Db\Adapter\AdapterInterface;
7
use Laminas\Db\Adapter\AdapterInterface;
8
use LeadersLinked\Model\RecruitmentSelectionSelection;
8
use LeadersLinked\Model\RecruitmentSelectionVacancy;
9
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
9
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
10
use Laminas\Paginator\Paginator;
10
use Laminas\Paginator\Paginator;
Línea 45... Línea 45...
45
    }
45
    }
Línea 46... Línea 46...
46
    
46
    
47
    /**
47
    /**
48
     * 
48
     * 
49
     * @param int $id
49
     * @param int $id
50
     * @return RecruitmentSelectionSelection
50
     * @return RecruitmentSelectionVacancy()
51
     */
51
     */
52
    public function fetchOne($id)
52
    public function fetchOne($id)
53
    {
53
    {
Línea 54... Línea 54...
54
        $prototype = new RecruitmentSelectionSelection();
54
        $prototype = new RecruitmentSelectionVacancy();
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 RecruitmentSelectionSelection
66
     * @return RecruitmentSelectionVacancy()
67
     */
67
     */
68
    public function fetchOneByUuid($uuid)
68
    public function fetchOneByUuid($uuid)
69
    {
69
    {
70
        $prototype = new RecruitmentSelectionSelection();
70
        $prototype = new RecruitmentSelectionVacancy();
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 RecruitmentSelectionSelection
81
     * @return RecruitmentSelectionVacancy()
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
     * 
96
     * 
97
     * @param RecruitmentSelectionSelection $form
97
     * @param RecruitmentSelectionVacancy() $form
98
     * @return boolean
98
     * @return boolean
99
     */
99
     */
100
    public function insert($form)
100
    public function insert($form)
Línea 113... Línea 113...
113
        return $result;
113
        return $result;
114
    }
114
    }
Línea 115... Línea 115...
115
    
115
    
116
    /**
116
    /**
117
     *
117
     *
118
     * @param RecruitmentSelectionSelection $form
118
     * @param RecruitmentSelectionVacancy() $form
119
     * @return boolean
119
     * @return boolean
120
     */
120
     */
121
    public function update($form)
121
    public function update($form)
122
    {
122
    {
Línea 155... Línea 155...
155
     * @param string $order_direction
155
     * @param string $order_direction
156
     * @return Paginator
156
     * @return Paginator
157
     */
157
     */
158
    public function fetchAllDataTableByCompanyId($company_id, $search, $page = 1, $records_per_page = 10, $order_field= 'name', $order_direction = 'ASC')
158
    public function fetchAllDataTableByCompanyId($company_id, $search, $page = 1, $records_per_page = 10, $order_field= 'name', $order_direction = 'ASC')
159
    {
159
    {
160
        $prototype = new RecruitmentSelectionSelection();
160
        $prototype = new RecruitmentSelectionVacancy();
161
        $select = $this->sql->select(self::_TABLE);
161
        $select = $this->sql->select(self::_TABLE);
162
        $select->where->equalTo('company_id', $company_id);
162
        $select->where->equalTo('company_id', $company_id);
Línea 163... Línea 163...
163
        
163
        
164
        if($search) {
164
        if($search) {