Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

ProductsUtil Class Reference

Static Public Member Functions

static getModalContainerId ()
static resolveModalSaveActionNameForByRelationModelId ($relationModelId)
static resolveExtraCloseScriptForModalAjaxOptions ($sourceId=null)
static getModalDetailsTitle ()
static getModalEditTitle ()
static registerProductModalEditScript ($sourceId, $routeParams)
static registerProductModalScript ($type, $url, $selector, $sourceId=null)
static resolveAjaxOptionsForModalView ($renderType, $sourceId=null)
static getModalTitleForProduct ($renderType="Create")
static resolveProductsActionsRedirectUrlForDetailsAndRelationsView ($redirectUrl)
static getModalDetailsLink (Product $product, $controllerId, $moduleId)
static registerProductModalDetailsScript ($sourceId)

Detailed Description

Helper class for working with products

Definition at line 40 of file ProductsUtil.php.


Member Function Documentation

static getModalContainerId (  )  [static]
Returns:
string

Definition at line 45 of file ProductsUtil.php.

static resolveModalSaveActionNameForByRelationModelId ( relationModelId  )  [static]
Parameters:
$relationModelId 
Returns:
string

Definition at line 54 of file ProductsUtil.php.

static getModalDetailsTitle (  )  [static]
Returns:
string

Definition at line 79 of file ProductsUtil.php.

static getModalEditTitle (  )  [static]
Returns:
string

Definition at line 89 of file ProductsUtil.php.

static registerProductModalEditScript ( sourceId,
routeParams 
) [static]

Register product modal edit script

Parameters:
string $sourceId
array $routeParams

Definition at line 101 of file ProductsUtil.php.

static registerProductModalScript ( type,
url,
selector,
sourceId = null 
) [static]

Get product modal script

Parameters:
string $type
string $url
string $selector
mixed $sourceId
Returns:
string

Definition at line 119 of file ProductsUtil.php.

static resolveAjaxOptionsForModalView ( renderType,
sourceId = null 
) [static]
Parameters:
$renderType 
string|null $sourceId
Returns:
array

Definition at line 153 of file ProductsUtil.php.

static getModalTitleForProduct ( renderType = "Create"  )  [static]

Gets modal title for create product modal window

Parameters:
string $renderType
Returns:
string

Definition at line 168 of file ProductsUtil.php.

static resolveProductsActionsRedirectUrlForDetailsAndRelationsView ( redirectUrl  )  [static]

Resolve redirect url in case of product actions on details and relations view. This is required else same params get added to create url.

Parameters:
$redirectUrl 
Returns:
string

Definition at line 192 of file ProductsUtil.php.

static getModalDetailsLink ( Product product,
controllerId,
moduleId 
) [static]
Parameters:
Product $product
$controllerId 
$moduleId 
Returns:
null|string

Definition at line 220 of file ProductsUtil.php.

static registerProductModalDetailsScript ( sourceId  )  [static]

Register script for product detail link. This would be called from related model view

Parameters:
string $sourceId

Definition at line 249 of file ProductsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Apr 19 07:10:59 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8