phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
CDNCoreCss.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\lib
;
4
5
6
use
Ajax\service\JString
;
7
use
Ajax\common\html\html5\HtmlUtils
;
8
9
class
CDNCoreCss
extends
CDNBase
{
10
protected
$cssUrl
;
11
protected
$localCss
;
12
protected
$framework
;
13
14
public
function
__construct
(
$framework
,
$version
,
$provider
=
"MaxCDN"
) {
15
parent::__construct(
$version
,
$provider
);
16
$this->framework=
$framework
;
17
$this->data=$this->data [
$framework
];
18
}
19
20
public
function
getUrl
() {
21
return
$this->
getUrlOrCss
($this->jsUrl,
"core"
);
22
}
23
24
public
function
getCss
() {
25
return
$this->
getUrlOrCss
($this->cssUrl,
"css"
);
26
}
27
28
public
function
__toString
() {
29
$url=$this->
getUrl
();
30
$css=$this->
getCss
();
31
return
HtmlUtils::javascriptInclude($url).
"\n"
.HtmlUtils::stylesheetInclude($css);
32
}
33
34
public
function
setCssUrl
(
$cssUrl
,
$local
=
null
) {
35
$this->cssUrl=
$cssUrl
;
36
if
(isset(
$local
)===
false
) {
37
$local
=JString::startsWith(
$cssUrl
,
"http"
)===
false
;
38
}
39
$this->
setLocalCss
(
$local
);
40
return
$this;
41
}
42
43
public
function
getLocalCss
() {
44
return
$this->localCss
;
45
}
46
47
public
function
setLocalCss
(
$localCss
) {
48
$this->localCss=
$localCss
;
49
return
$this;
50
}
51
52
public
function
getFramework
() {
53
return
$this->framework
;
54
}
55
56
}
Ajax\common\html\html5\HtmlUtils
Definition
HtmlUtils.php:5
Ajax\lib\CDNBase
Definition
CDNBase.php:8
Ajax\lib\CDNBase\$version
$version
Definition
CDNBase.php:9
Ajax\lib\CDNBase\getUrlOrCss
getUrlOrCss($element, $key)
Definition
CDNBase.php:36
Ajax\lib\CDNBase\$local
$local
Definition
CDNBase.php:12
Ajax\lib\CDNBase\$provider
$provider
Definition
CDNBase.php:10
Ajax\lib\CDNCoreCss
Definition
CDNCoreCss.php:9
Ajax\lib\CDNCoreCss\setCssUrl
setCssUrl($cssUrl, $local=null)
Definition
CDNCoreCss.php:34
Ajax\lib\CDNCoreCss\__toString
__toString()
Definition
CDNCoreCss.php:28
Ajax\lib\CDNCoreCss\getFramework
getFramework()
Definition
CDNCoreCss.php:52
Ajax\lib\CDNCoreCss\getLocalCss
getLocalCss()
Definition
CDNCoreCss.php:43
Ajax\lib\CDNCoreCss\$cssUrl
$cssUrl
Definition
CDNCoreCss.php:10
Ajax\lib\CDNCoreCss\$framework
$framework
Definition
CDNCoreCss.php:12
Ajax\lib\CDNCoreCss\getUrl
getUrl()
Definition
CDNCoreCss.php:20
Ajax\lib\CDNCoreCss\getCss
getCss()
Definition
CDNCoreCss.php:24
Ajax\lib\CDNCoreCss\setLocalCss
setLocalCss($localCss)
Definition
CDNCoreCss.php:47
Ajax\lib\CDNCoreCss\$localCss
$localCss
Definition
CDNCoreCss.php:11
Ajax\lib\CDNCoreCss\__construct
__construct($framework, $version, $provider="MaxCDN")
Definition
CDNCoreCss.php:14
Ajax\service\JString
Definition
JString.php:4
Ajax\lib
Definition
CDNBase.php:3
Ajax
lib
CDNCoreCss.php
Generated on Sun Dec 10 2023 16:15:58 for
phpMv-UI
by
doxygen
1.9.8