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

ProductsDefaultController Class Reference

Inheritance diagram for ProductsDefaultController:
ZurmoModuleController ZurmoBaseController Controller ProductsDemoController

Public Member Functions

 filters ()
 actionList ()
 actionDetails ($id)
 actionCreate ()
 actionEdit ($id, $redirectUrl=null)
 actionMassEdit ()
 actionMassEditProgressSave ()
 actionMassDelete ()
 actionMassDeleteProgress ()
 actionDelete ($id)
 actionExport ()
 actionCreateFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $redirectUrl)
 actionUpdate ($attribute)
 actionCreateProductFromProductTemplate ($relationModuleId, $portletId, $uniqueLayoutId, $id, $relationModelId, $relationAttributeName, $relationModelClassName=null, $redirect=true)
 actionCopy ($id)
 actionModalList ()
 actionModalCreateFromRelation ($relationAttributeName=null, $relationModelId=null, $relationModuleId=null)
 actionModalSaveFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $id=null)
 actionModalSave ($id=null)
 actionModalEdit ($id)
 actionModalDetails ($id)

Static Public Member Functions

static getListBreadcrumbLinks ()

Data Fields

const ZERO_MODELS_CHECK_FILTER_PATH

Protected Member Functions

 actionCreateByModel (Product $product, $redirectUrl=null)
 processEdit (Product $product, $redirectUrl=null)
 processProductEdit (Product $product)
 processModalDetails (Product $product)

Static Protected Member Functions

static getZurmoControllerUtil ()
static getSearchFormClassName ()

Detailed Description

Definition at line 37 of file DefaultController.php.


Member Function Documentation

actionMassEdit (  ) 

Action for displaying a mass edit form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to update is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassEditProgressView. In the mass edit progress view, a javascript refresh will take place that will call a refresh action, usually massEditProgressSave. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the updated records.

See also:
Controler->makeMassEditProgressView
Controller->processMassEdit

Definition at line 179 of file DefaultController.php.

actionMassEditProgressSave (  ) 

Action called in the event that the mass edit quantity is larger than the pageSize. This action is called after the pageSize quantity has been updated and continues to be called until the mass edit action is complete. For example, if there are 20 records to update and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassEdit is called upon the initial form submission.

Definition at line 218 of file DefaultController.php.

actionMassDelete (  ) 

Action for displaying a mass delete form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to delete is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassDeleteProgressView. In the mass delete progress view, a javascript refresh will take place that will call a refresh action, usually makeMassDeleteProgressView. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the delete records.

See also:
Controller->makeMassDeleteProgressView
Controller->processMassDelete

Definition at line 251 of file DefaultController.php.

actionMassDeleteProgress (  ) 

Action called in the event that the mass delete quantity is larger than the pageSize. This action is called after the pageSize quantity has been delted and continues to be called until the mass delete action is complete. For example, if there are 20 records to delete and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassDelete is called upon the initial form submission.

Definition at line 296 of file DefaultController.php.

actionCreateFromRelation ( relationAttributeName,
relationModelId,
relationModuleId,
redirectUrl 
)

Override to implement.

Reimplemented from ZurmoModuleController.

Definition at line 333 of file DefaultController.php.

actionCreateProductFromProductTemplate ( relationModuleId,
portletId,
uniqueLayoutId,
id,
relationModelId,
relationAttributeName,
relationModelClassName = null,
redirect = true 
)

Create product from product template when user select a product template while adding a product in product portlet view

Parameters:
string $relationModuleId
int $portletId
string $uniqueLayoutId
int $id
int $relationModelId
string $relationAttributeName
string $relationModelClassName

Definition at line 383 of file DefaultController.php.

actionCopy ( id  ) 

Copies the product

Parameters:
int $id

Reimplemented from ZurmoModuleController.

Definition at line 432 of file DefaultController.php.

processEdit ( Product product,
redirectUrl = null 
) [protected]

Process the editing of product

Parameters:
Product $product
string $redirectUrl

Definition at line 450 of file DefaultController.php.

actionModalCreateFromRelation ( relationAttributeName = null,
relationModelId = null,
relationModuleId = null 
)

Create product from related view

Parameters:
null $relationAttributeName
null $relationModelId
null $relationModuleId

Definition at line 476 of file DefaultController.php.

actionModalSaveFromRelation ( relationAttributeName,
relationModelId,
relationModuleId,
id = null 
)

Saves product in the modal view

Parameters:
string $relationAttributeName
string $relationModelId
string $relationModuleId

Definition at line 491 of file DefaultController.php.

actionModalSave ( id = null  ) 

Saves product in the modal view

Definition at line 512 of file DefaultController.php.

actionModalEdit ( id  ) 

Edit product from related view

Parameters:
string $id

Definition at line 530 of file DefaultController.php.

processProductEdit ( Product product  )  [protected]

Process Product Edit

Parameters:
Product $product

Definition at line 541 of file DefaultController.php.

actionModalDetails ( id  ) 

Loads modal view from related view

Parameters:
string $id

Definition at line 565 of file DefaultController.php.


Field Documentation

const ZERO_MODELS_CHECK_FILTER_PATH
Initial value:
            'application.modules.products.controllers.filters.ProductCatalogRelatedModelsZeroModelsCheckControllerFilter'

Reimplemented from ZurmoModuleController.

Definition at line 39 of file DefaultController.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Apr 22 07:11:04 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