suffix) && $data->suffix) { $this->name .= ' ' . $data->suffix; } if($this->recent && $this->recent) { foreach($this->recent as &$recent) { parent::ConvertToDateTime($recent->starts); parent::ConvertToDateTime($recent->ends); } } if($this->next && $this->next) { foreach($this->next as &$next) { parent::ConvertToDateTime($next->starts); parent::ConvertToDateTime($next->ends); } } if(isset($data->email) && ($mailComma = strpos($data->email, ',')) !== false) { $this->email = substr($data->email, 0, $mailComma); } if(isset($data->state)) { $this->nonstop = $data->state == 0; $this->rerun = $data->state == 3; } $this->url = "/{$this->id}/" . parent::url_slug($this->name); } public function isSpecial() { return ($this->priority < 2); } }