/** * @param string $uri * @param int $linkType * @param null $mediaType * @param int $length * * @throws InvalidURIException */ public function __construct($uri, $linkType, $mediaType = null, $length = 0) { parent::__construct($mediaType, $length); $uri = filter_var($uri, FILTER_VALIDATE_URL); if ($uri === false) { throw new InvalidURIException(); } $this->uri = $uri; $this->linkType = $linkType; }
public function __construct($id, $context_id, $name) { parent::__construct($id, $context_id, $name); }
/** * @access public * @param string $path required * @param string $cid required * @param null|string $name Should be a string, but null is acceptable if the path will be used for * the name. * @param string $encoding * @param string $mimeType */ public function __construct($cid, $path, $name = null, $encoding = Encoding::Base64, $mimeType = "") { $this->setCid($cid); parent::__construct($path, $name, $encoding, $mimeType); }