original_string: public function setUrl($date, $urlFormat = ':year/:month/:date/:title')
  	{
  		// $this->url = '/' . implode('/', explode('-', $this->getFileName(), 4)) . '.html';
  
  		$year = date('Y', strtotime($date));
  		$month = date('m', strtotime($date));
  		$day = date('d', strtotime($date));
  		$title = explode('-', $this->getFileName(), 4);
  
  		// replacing variable in the comment above with proper value
  		$this->url = '/' . str_replace(array(':date', ':month', ':year', ':title'), array($day, $month, $year, $title[3] . '.html'), $urlFormat);
  	}
code: public function setUrl($date, $urlFormat = ':year/:month/:date/:title')
  	{
  		// $this->url = '/' . implode('/', explode('-', $this->getFileName(), 4)) . '.html';
  
  		$year = date('Y', strtotime($date));
  		$month = date('m', strtotime($date));
  		$day = date('d', strtotime($date));
  		$title = explode('-', $this->getFileName(), 4);
  
  		// replacing variable in the comment above with proper value
  		$this->url = '/' . str_replace(array(':date', ':month', ':year', ':title'), array($day, $month, $year, $title[3] . '.html'), $urlFormat);
  	}
code_tokens: public function setUrl ( $ date , $ urlFormat = ':year/:month/:date/:title' ) { // $this->url = '/' . implode('/', explode('-', $this->getFileName(), 4)) . '.html'; $ year = date ( 'Y' , strtotime ( $ date ) ) ; $ month = date ( 'm' , strtotime ( $ date ) ) ; $ day = date ( 'd' , strtotime ( $ date ) ) ; $ title = explode ( '-' , $ this -> getFileName ( ) , 4 ) ; // replacing variable in the comment above with proper value $ this -> url = '/' . str_replace ( array ( ':date' , ':month' , ':year' , ':title' ) , array ( $ day , $ month , $ year , $ title [ 3 ] . '.html' ) , $ urlFormat ) ; }
docstring: Set URL to Post
  
  URL format is set in post file, with such variable that can be used
  :date, :month, :year -> taken from date section
  :title -> title of file, taken from filename
  
  @param string $urlFormat
  @param string $date
  @return void
docstring_tokens: Set URL to Post