function getTimers(){ $timer = new SI_Timer(); $timers = $timer->retrieveSet("WHERE user_id = '{$this->id}' ORDER BY id"); if($timers === FALSE){ $this->error = "SI_User::getTimers(): ".$timer->getLastError(); return FALSE; } return $timers; }
function get($id = NULL){ global $db_conn; if(!isset($id)){ $id = $this->id; } if(!isset($id)){ $this->error = "SI_Timer::get() : SI_Timer id not set\n"; return FALSE; } $SI_Timer = SI_Timer::retrieveSet("WHERE id = $id", TRUE); if($SI_Timer === FALSE){ return FALSE; } if(isset($SI_Timer[0])){ $this->updateFromAssocArray($SI_Timer[0]); $this->stripSlashes(); }else{ $this->error = "SI_Timer::get() : No data retrieved from query\n"; return FALSE; } return TRUE; }