public function setUrl($url) { if ($this->getDirName()) { $url = $this->getDirName() . '/' . $url; } $this->url = $url; }