code/extensions/CDNFile.php
public function getSecureURL($expires = 60) {
		if($this->owner instanceof \Image_Cached || $this->owner instanceof \CdnImage_Cached) {
			return;
		}

		/** @var \FileContent $pointer */
		$pointer = $this->owner->obj('CDNFile');

		if($pointer->exists()) {
			$reader = $this->reader();
			if ($reader && $this->owner->canView() && method_exists($reader, 'getSecureURL')) {
				return $reader->getSecureURL($expires);
			}
		}
	}
public function getSecureURL($expires = 60) {
		if($this->owner instanceof \Image_Cached || $this->owner instanceof \CdnImage_Cached) {
			return;
		}

		/** @var \FileContent $pointer */
		$pointer = $this->owner->obj('CDNFile');

		if($pointer->exists()) {
			$reader = $this->reader();
			if ($reader && $this->owner->canView() && method_exists($reader, 'getSecureURL')) {
				return $reader->getSecureURL($expires);
			}
		}
	}
public function getSecureURL ( $ expires = 60 ) { if ( $ this -> owner instanceof \ Image_Cached || $ this -> owner instanceof \ CdnImage_Cached ) { return ; } /** @var \FileContent $pointer */ $ pointer = $ this -> owner -> obj ( 'CDNFile' ) ; if ( $ pointer -> exists ( ) ) { $ reader = $ this -> reader ( ) ; if ( $ reader && $ this -> owner -> canView ( ) && method_exists ( $ reader , 'getSecureURL' ) ) { return $ reader -> getSecureURL ( $ expires ) ; } } }
Return a secure url for the file. Currently we expect all secure urls are time limited but other limiting methods
nay be supported in the future

@param Int $expires number of second the URL will remain valid
@return String URL pointing the the resource
Return a secure url for the file . Currently we expect all secure urls are time limited but other limiting methods nay be supported in the future