public function setId($id = FALSE) { if (!$id) { $this->id = $this->tour->TextId or $this->id = str_replace('.txt', '', $this->tour->FileName); } else { parent::setId($id); } }