ZMObject
└─ZMRequest
└─Request
public class Request
extends ZMRequest
| Fields inherited from org.zenmagick.mvc.ZMRequest | |
|---|---|
| REQUEST_ID, SESSION_TOKEN_NAME | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Request(array parameter) Create new instance. |
|
| Method Summary | |
|---|---|
| ZMAccount | Get the account. |
| int | Get the account id. |
| int | Get the current category id. |
| string | Get the current category path. |
| array | Get the category path arry. |
| string | {@inheritDoc} |
| string | Get the currency code. |
| string | Get the language code. |
| int | Get the manufacturer id. |
| string | getModel() Get the request model number. |
| int | Get the current order id. |
| string | Get the page base url. |
| int | Get the current page index (if available). |
| int | Get the product id. |
| string | {@inheritDoc} |
| int | Get the current review id. |
| ZMShoppingCart | Get the current shopping cart. |
| string | Get the current sort id. |
| string | getSticky(boolean clear) {@inheritDoc} |
| strin | Get the sub page name; this is the contents name for static pages. |
| boolean | isAdmin() Check if we are running as admin. |
| boolean | Returns true if the user is not logged in at all. |
| boolean | isCheckout(boolean includeCart) Checks, if the current page is a checkout page. |
| boolean | isGuest() Returns true if the user is a guest user. |
| boolean | Returns true if the user is fully registered and logged in. |
| void | {@inheritDoc} |
| void | redirect(string url, int status) Save messages in session before redirect. |
| void | setCategoryPathArray(array cPath) Set the category path arry. |
| void | setRequestId(string requestId) {@inheritDoc} |
| Methods inherited from org.zenmagick.mvc.ZMRequest | |
|---|---|
| getContext, getController, getHostname, getMethod, getParameter, getParameterMap, getQueryString, getRequestId, getSession, getSticky, getTemplatePath, getToolbox, instance, isSecure, markSticky, redirect, setController, setMethod, setParameter, setParameterMap, setRequestId, setSession, validateSessionToken | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public Request(array parameter)
Create new instance.
null, $_GET and $_POST will be used.public ZMAccount getAccount()
Get the account.
null.public int getAccountId()
Get the account id.
0.public int getCategoryId()
Get the current category id.
0.public string getCategoryPath()
Get the current category path.
cPath) or null.public array getCategoryPathArray()
Get the category path arry.
public string getContext()
public string getCurrencyCode()
Get the currency code.
NOTE: This will return the currency code as found in the request. If not set,
the session currency code will be returned instead. To access the session currency code directly, use
$request->getSession()->getCurrencyCode().
null.public string getLanguageCode()
Get the language code.
NOTE: This will return only the language code as found in the request. If you
want to find out the session language (ie the language for the current request), use Runtime::getLanguageId()
or Runtime::getLanguage().
null.public int getManufacturerId()
Get the manufacturer id.
0.public string getModel()
Get the request model number.
null.public int getOrderId()
Get the current order id.
0.public string getPageBase()
Get the page base url.
public int getPageIndex()
Get the current page index (if available).
public int getProductId()
Get the product id.
0.public string getRequestId()
self::REQUEST_ID query parameter.public int getReviewId()
Get the current review id.
0.public ZMShoppingCart getShoppingCart()
Get the current shopping cart.
public string getSortId()
Get the current sort id.
public string getSticky(boolean clear)
true to clear.null.public strin getSubPageName()
Get the sub page name; this is the contents name for static pages.
public boolean isAdmin()
Check if we are running as admin.
true if code execution is in the context of an admin page, false if not.public boolean isAnonymous()
Returns true if the user is not logged in at all.
true if the current user is guest, false if not.public boolean isCheckout(boolean includeCart)
Checks, if the current page is a checkout page.
true, the shopping cart is considered a checkout page, too; (defaults to true)true if the current page is a checkout page.public boolean isGuest()
Returns true if the user is a guest user.
true if the current user is guest, false if not.public boolean isRegistered()
Returns true if the user is fully registered and logged in.
true if the current user is fully registered and logged in, false if not.public void markSticky()
public void redirect(string url, int status)
Save messages in session before redirect.
public void setCategoryPathArray(array cPath)
Set the category path arry.
public void setRequestId(string requestId)
Store request wrapper.
NOTE: For the time of transition between static and instance usage of request methods this will have a temp. name of
ZMRequest.