ZMObject
└─ZMViewUtils
public class ZMViewUtils
extends ZMObject
| Constant Summary | |
|---|---|
| final static str | |
| final static str | |
| final static str | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(ZMView view) Create new instance. |
| void | cssFile(string filename, boolean inline, array attr) Add link to the given CSS file or create inline CSS in the head element of the response. |
| array | Process all resources. |
| ZMView | getView() Get the associated view. |
| string | handleResourceGroup(mixed files, string group, string location, array Resource) Handle all resources of a given group and location. |
| void | jsFile(string filename, string position, boolean inline) Add the given JavaScript file to the final contents or create script reference (default). |
| string | resolveResource(string filename, ZMView view) Resolve resource path. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public final static str FOOTER = 'footer'
public final static str HEADER = 'header'
public final static str NOW = 'now'
public void __construct(ZMView view)
Create new instance.
public void cssFile(string filename, boolean inline, array attr)
Add link to the given CSS file or create inline CSS in the head element of the response.
false to link.public array getResourceContents()
Process all resources.
null.public ZMView getView()
Get the associated view.
public string handleResourceGroup(mixed files, string group, string location, array Resource)
Handle all resources of a given group and location.
css or js.ZMViewUtils::HEADER or ZMViewUtils::FOOTER.public void jsFile(string filename, string position, boolean inline)
Add the given JavaScript file to the final contents or create script reference (default).
false to link.HEADER (default), FOOTER or NOW.public string resolveResource(string filename, ZMView view)
Resolve resource path.
This default implementation does nothing but return the result of: $view->asUrl($request, $filename, ZMView::RESOURCE);.
View utils.