/** * Retrieve the URL of an external script file * @return string */ function getSrc() { if (zbase_view_cdn() && !is_null($this->cdn)) { return $this->cdn; } return $this->src; }
/** * @see class::$href * @return string */ public function getHref() { if (zbase_view_cdn() && !is_null($this->cdn)) { return $this->cdn; } return $this->href; }