ZMObject
└─ZMToolboxTool
└─ZMToolboxNet
└─ToolboxNet
public class ToolboxNet
extends ZMToolboxNet
| Method Summary | |
|---|---|
| string | absolute(string href, boolean echo, string url) Convert a given relative href/URL into an absolute one based on the current context. |
| string | ajax(string controller, string method, string params, boolean echo) Create an Ajax URL for the given controller and method. |
| string | ezpage(ZMEZPage page, boolean echo) Build an ez-page URL. |
| void | furl(mixed page, mixed params, mixed transport, mixed addSessionId, mixed seo, mixed isStatic, mixed useContext) ZenMagick implementation of zen-cart's zen_href_link function. |
| string | image(string src, boolean echo) Create an absolute image path/URL for the given image. |
| string | product(int productId, int categoryId, boolean echo) Convenience function to build a product URL. |
| string | redirect(string action, string id, boolean echo) Create an redirect URL for the given action and id. |
| string | resultListBack(ZMResultList resultList, boolean secure, boolean echo) Build a result list URL pointing to the previous page. |
| string | resultListNext(ZMResultList resultList, boolean secure, boolean echo) Build a URL pointing to the next page. |
| string | rssFeed(string channel, string key, boolean echo) Build a RSS feed URL. |
| string | staticPage(string name, boolean echo) Create a static page URL for the given static page name. |
| string | url(string page, string params, boolean secure, boolean echo, string requestId) Create a ZenMagick URL. |
| Methods inherited from org.zenmagick.mvc.utils.ZMToolboxNet | |
|---|---|
| absolute, decode, encode, url | |
| Methods inherited from org.zenmagick.toolbox.ZMToolboxTool | |
|---|---|
| getRequest, getToolbox, setRequest, setToolbox | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public string absolute(string href, boolean echo, string url)
Convert a given relative href/URL into an absolute one based on the current context.
true, the URI will be echo'ed as well as returned.public string ajax(string controller, string method, string params, boolean echo)
Create an Ajax URL for the given controller and method.
NOTE: Ampersand are not encoded in this function.
null add all current parametertrue, the URI will be echo'ed as well as returned.public string ezpage(ZMEZPage page, boolean echo)
Build an ez-page URL.
ZMEZPage instance.true, the URI will be echo'ed as well as returned.public void furl(mixed page, mixed params, mixed transport, mixed addSessionId, mixed seo, mixed isStatic, mixed useContext)
ZenMagick implementation of zen-cart's zen_href_link function.
public string image(string src, boolean echo)
Create an absolute image path/URL for the given image.
true, the URI will be echo'ed as well as returned.public string product(int productId, int categoryId, boolean echo)
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.
true, the URI will be echo'ed as well as returned.public string redirect(string action, string id, boolean echo)
Create an redirect URL for the given action and id.
All messages created up to this point during request handling will be saved and restored with the next request handling cycle.
true, the URI will be echo'ed as well as returned.public string resultListBack(ZMResultList resultList, boolean secure, boolean echo)
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.true, the URI will be echo'ed as well as returned.null.public string resultListNext(ZMResultList resultList, boolean secure, boolean echo)
Build a URL pointing to the next page.
true, the URI will be secure; default is null to use the current request state.true, the URI will be echo'ed as well as returned.null.public string rssFeed(string channel, string key, boolean echo)
Build a RSS feed URL.
true, the URI will be echo'ed as well as returned.public string staticPage(string name, boolean echo)
Create a static page URL for the given static page name.
true, the URI will be echo'ed as well as returned.public string url(string page, string params, boolean secure, boolean echo, string requestId)
Create a ZenMagick URL.
Mother of all other URL related methods in this class.
If the page parameter is null, the current page/view will be
used. The provided parameter will be merged into the current query string.
ZM_PAGE_KEY)null add all current parameterfalse.true, the URL will be echo'ed as well as returned.
Networking/URL related functions.