All Data Structures Functions Variables Pages
Static Public Member Functions
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:
Generated on Sun Apr 5 2020 07:11:16