/** * Zjisti ID vedouciho projektu * * @param in $idproject id projektu * @return string */ public function getLeader($idproject) { $leader = $this->_dbTable->getRow($idproject, array('iduser')); return $leader['iduser']; }
/** * Zjistuje ID a nazev uctu z DB * * @param string $account Ucet * @return int */ private function getData($account) { $where = array('url' => $account); $data = $this->_dbTable->getRow($where, array('idaccount', 'name')); return $data; }