You are here

function Net_URL::setProtocol in Flickr API 5

Forces the URL to a particular protocol

Parameters

string $protocol Protocol to force the URL to:

integer $port Optional port (standard port is used by default):

File

phpFlickr/PEAR/Net/URL.php, line 402

Class

Net_URL

Code

function setProtocol($protocol, $port = null) {
  $this->protocol = $protocol;
  $this->port = is_null($port) ? $this
    ->getStandardPort() : $port;
}