Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 526 Rev 527
Línea 93... Línea 93...
93
    public function fetchByJobDescription($job_description_id)
93
    public function fetchByJobDescription($job_description_id)
94
    {
94
    {
95
        $select = $this->sql->select(self::_TABLE);
95
        $select = $this->sql->select(self::_TABLE);
96
        $select->where->equalTo('job_description_id', $job_description_id);
96
        $select->where->equalTo('job_description_id', $job_description_id);
Línea 97... Línea 97...
97
        
97
        
98
        $prototype = new JobDescriptionCompetency();
98
        $hydrator   = new ObjectPropertyHydrator();
-
 
99
        $resultset  = new HydratingResultSet($hydrator, $prototype);
-
 
100
        
-
 
101
        $adapter = new DbSelect($select, $this->sql, $resultset);
-
 
102
        $paginator = new Paginator($adapter);
-
 
103
        $paginator->setItemCountPerPage($records_per_page);
-
 
104
        $paginator->setCurrentPageNumber($page);
-
 
105
        
-
 
106
        
99
        return $this->executeFetchOneObject($select, $prototype);
107
        return $paginator;
Línea 100... Línea 108...
100
    }
108
    }
101
 
109
 
102
    /**
110
    /**