Exemplo n.º 1
0
 public function event_groups($reload = false)
 {
     if ($reload or !$this->event_groups_cache) {
         $id = mysql_real_escape_string($this->id);
         $this->event_groups_cache = EventGroup::find_all("event_groups.event_id = '{$id}'");
     }
     return $this->event_groups_cache;
 }
Exemplo n.º 2
0
 public function event_groups($sort = "", $reload = false)
 {
     if ($reload or !$this->event_groups_cache) {
         $this->event_groups_cache = array();
         $id = mysql_real_escape_string($this->id);
         $this->event_groups_cache = EventGroup::find_all("groups.id = '{$id}'", $sort);
     }
     return $this->event_groups_cache;
 }