Resources
public class Resources
| Constant Summary | |
|---|---|
| final static str | |
| final static str | |
| final static str | |
| Field Summary | |
|---|---|
| protected static mixed | |
| protected static array predefined aliases | |
| protected static mixed | |
| protected static mixed | |
| protected static string $dir Resources cache dir | |
| protected static array footer Resources Registry | |
| protected static bool header.php executed? | |
| protected static array header Resources Registry | |
| protected static mixed | |
| protected static mixed | |
| protected static array Resources Registry | |
| protected static mixed | |
| Method Summary | |
|---|---|
| static void | __init() | 
| static bool | addFile(string path, string type, int order, string scope) Puts a JS/CSS file into the header resource registry to be consolidated with other such resources and stored in cache. | 
| protected static void | additionalFiles(mixed file) | 
| static bool | addEmbed(string identifier, string code, string scope, string type, int order) Puts a portion of embedded code into the header CSS/JS resource registry. | 
| static void | render() | 
| protected static void | Consolidate all resources and make single file | 
| static void | Render footer resources | 
| static bool | linkFile(string path, string type, int order) A shortcut for plain output of a link to a CSS/JS file in the header of the page | 
| static bool | linkFileFooter(string path, string type, int order) A shortcut to append a JavaScript or CSS file to the footer | 
| static void | embed(string code, int order, string type) A shortcut for plain output of an embedded stylesheet/javascript in the header of the page Example: Resources::embed(" alert('ssssss') "); Resources::embed(" .blablabla {color: #000000} ", 'css'); | 
| static void | embedFooter(string code, string type, int order) A shortcut for plain output of an embedded stylesheet/javascript in the footer of the page Example: Resources::embedFooter(" alert('ssssss') "); | 
| static string | minify(string code, string type) JS/CSS minification function | 
| static bool | setAlias(string newAlias, string value, bool canReWrite) Set Resource alias | 
| static void | getAlias(mixed aliasName) | 
public final static  str bootstrap = '@bootstrap.js'
public final static  str ckeditor = '@ckeditor'
public final static  str jQuery = '@jQuery'
protected static  mixed $addedFiles = array()
protected static  array predefined aliases $alias = array(...)
protected static  mixed $cacheOn = false
protected static  mixed $consolidate = false
protected static  string $dir Resources cache dir $dir = ''
protected static  array footer Resources Registry $footerRc = array()
protected static  bool header.php executed? $headerComplete = false
protected static  array header Resources Registry $headerRc = array()
protected static  mixed $isAdmin = false
protected static  mixed $minify = false
protected static  array Resources Registry $registry = array()
protected static  mixed $skip_minification = false
public static  void __init()
public static  bool addFile(string path, string type, int order, string scope)
protected static  void additionalFiles(mixed file)
public static  bool addEmbed(string identifier, string code, string scope, string type, int order)
public static  void render()
protected static  void consolidate()
public static  void renderFooter()
public static  bool linkFile(string path, string type, int order)
public static  bool linkFileFooter(string path, string type, int order)
public static  void embed(string code, int order, string type)
public static  void embedFooter(string code, string type, int order)
public static  string minify(string code, string type)
public static  bool setAlias(string newAlias, string value, bool canReWrite)
public static  void getAlias(mixed aliasName)