CImage.php
public function setRemoteDownload($allow, $cache, $pattern = null)
    {
        $this->allowRemote = $allow;
        $this->remoteCache = $cache;
        $this->remotePattern = is_null($pattern) ? $this->remotePattern : $pattern;

        $this->log(
            "Set remote download to: "
            . ($this->allowRemote ? "true" : "false")
            . " using pattern "
            . $this->remotePattern
        );

        return $this;
    }
public function setRemoteDownload($allow, $cache, $pattern = null)
    {
        $this->allowRemote = $allow;
        $this->remoteCache = $cache;
        $this->remotePattern = is_null($pattern) ? $this->remotePattern : $pattern;

        $this->log(
            "Set remote download to: "
            . ($this->allowRemote ? "true" : "false")
            . " using pattern "
            . $this->remotePattern
        );

        return $this;
    }
public function setRemoteDownload ( $ allow , $ cache , $ pattern = null ) { $ this -> allowRemote = $ allow ; $ this -> remoteCache = $ cache ; $ this -> remotePattern = is_null ( $ pattern ) ? $ this -> remotePattern : $ pattern ; $ this -> log ( "Set remote download to: " . ( $ this -> allowRemote ? "true" : "false" ) . " using pattern " . $ this -> remotePattern ) ; return $ this ; }
Allow or disallow remote image download.

@param boolean $allow   true or false to enable and disable.
@param string  $cache   path to cache dir.
@param string  $pattern to use to detect if its a remote file.

@return $this
Allow or disallow remote image download .