ZMObject
└─ZMToolboxTool
└─ZMToolboxNet
public class ZMToolboxNet
extends ZMToolboxTool
| Fields inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool | |
|---|---|
| request_, toolbox_ | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| string | ajax(string controller, string method, string params) Create an Ajax URL for the given controller and method. |
| static string | decode(string url) Decode a HTML encoded URL. |
| static string | encode(string url) Encode a given URL to valid HTML. |
| string | Build an ez-page URL. |
| string | image(string src) Create an absolute image path/URL for the given image. |
| string | product(int productId, int categoryId) Convenience function to build a product URL. |
| string | resultListBack(ZMResultList resultList, boolean secure, array keep) Build a result list URL pointing to the previous page. |
| string | resultListNext(ZMResultList resultList, boolean secure, array keep) Build a URL pointing to the next page. |
| string | rssFeed(string channel, string key) Build a RSS feed URL. |
| string | staticPage(string name) Create a static page URL for the given static page name. |
| string | trackLink(string action, string id) Create an redirecting URL for the given action and id that is trackable. |
| string | url(string requestId, string params, boolean secure) Create a URL. |
| Methods inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool | |
|---|---|
| __construct, getRequest, getToolbox, setRequest, setToolbox | |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public string ajax(string controller, string method, string params)
Create an Ajax URL for the given controller and method.
NOTE: Ampersand are not encoded in this function.
null add all current parameterpublic static string decode(string url)
Decode a HTML encoded URL.
public static string encode(string url)
Encode a given URL to valid HTML.
public string ezPage(ZMEZPage page)
Build an ez-page URL.
ZMEZPage instance.public string image(string src)
Create an absolute image path/URL for the given image.
public string product(int productId, int categoryId)
Convenience function to build a product URL.
Please note that in ZenMagick all product URLs use the same view name. The actual view name gets resolved only when the href is used.
public string resultListBack(ZMResultList resultList, boolean secure, array keep)
Build a result list URL pointing to the previous page.
true, the URI will be secure; default is null to use the current request state.null.public string resultListNext(ZMResultList resultList, boolean secure, array keep)
Build a URL pointing to the next page.
true, the URI will be secure; default is null to use the current request state.null.public string rssFeed(string channel, string key)
Build a RSS feed URL.
public string staticPage(string name)
Create a static page URL for the given static page name.
public string trackLink(string action, string id)
Create an redirecting URL for the given action and id that is trackable.
All messages created up to this point during request handling will be saved and restored with the next request handling cycle.
public string url(string requestId, string params, boolean secure)
Create a URL.
Convenience/compatibility method calling url() on ZMRequest.
null add all current parameterfalse.
Networking/URL related functions.