src/pages/MediaPage.php
public function AbsoluteLink($action = null) {

		$parent = $this->getParent();
		if(!$parent) {
			return null;
		}
		$date = ($parent->URLFormatting !== '-') ? $this->dbObject('Date')->Format($parent->URLFormatting ?: 'y/MM/dd/') : '';
		$link = $parent->AbsoluteLink() . "{$date}{$this->URLSegment}/";
		if($action) {
			$link .= "{$action}/";
		}
		return $link;
	}
public function AbsoluteLink($action = null) {

		$parent = $this->getParent();
		if(!$parent) {
			return null;
		}
		$date = ($parent->URLFormatting !== '-') ? $this->dbObject('Date')->Format($parent->URLFormatting ?: 'y/MM/dd/') : '';
		$link = $parent->AbsoluteLink() . "{$date}{$this->URLSegment}/";
		if($action) {
			$link .= "{$action}/";
		}
		return $link;
	}
public function AbsoluteLink ( $ action = null ) { $ parent = $ this -> getParent ( ) ; if ( ! $ parent ) { return null ; } $ date = ( $ parent -> URLFormatting !== '-' ) ? $ this -> dbObject ( 'Date' ) -> Format ( $ parent -> URLFormatting ? : 'y/MM/dd/' ) : '' ; $ link = $ parent -> AbsoluteLink ( ) . "{$date}{$this->URLSegment}/" ; if ( $ action ) { $ link .= "{$action}/" ; } return $ link ; }
Determine the absolute URL by using the media holder's defined URL format.
Determine the absolute URL by using the media holder s defined URL format .