code/extensions/CDNFile.php
public function updateURL(&$url) {
		if($this->owner instanceof \Image_Cached || $this->owner instanceof \CdnImage_Cached) {
			return; /** handled in @link ImageCachedExtension */
		}

        // in the CMS, we do _not_ change the asset
        $controller = Controller::has_curr() ? Controller::curr() : null;
        if ($controller instanceof LeftAndMain) {
            return;
        }

        if ($this->owner->CanViewType && $this->owner->getViewType() != CDNFile::ANYONE_PERM) {
            return;
        }

        $cdnLink = $this->getCdnLink();
        if ($cdnLink) {
            $url = $cdnLink;
        }
	}
public function updateURL(&$url) {
		if($this->owner instanceof \Image_Cached || $this->owner instanceof \CdnImage_Cached) {
			return; /** handled in @link ImageCachedExtension */
		}

        // in the CMS, we do _not_ change the asset
        $controller = Controller::has_curr() ? Controller::curr() : null;
        if ($controller instanceof LeftAndMain) {
            return;
        }

        if ($this->owner->CanViewType && $this->owner->getViewType() != CDNFile::ANYONE_PERM) {
            return;
        }

        $cdnLink = $this->getCdnLink();
        if ($cdnLink) {
            $url = $cdnLink;
        }
	}
public function updateURL ( & $ url ) { if ( $ this -> owner instanceof \ Image_Cached || $ this -> owner instanceof \ CdnImage_Cached ) { return ; /** handled in @link ImageCachedExtension */ } // in the CMS, we do _not_ change the asset $ controller = Controller :: has_curr ( ) ? Controller :: curr ( ) : null ; if ( $ controller instanceof LeftAndMain ) { return ; } if ( $ this -> owner -> CanViewType && $ this -> owner -> getViewType ( ) != CDNFile :: ANYONE_PERM ) { return ; } $ cdnLink = $ this -> getCdnLink ( ) ; if ( $ cdnLink ) { $ url = $ cdnLink ; } }
Update the URL used for a file in various locations

@param type $url
@return null
Update the URL used for a file in various locations