ContactsContactStateApiController Class Reference

Inheritance diagram for ContactsContactStateApiController:
ZurmoModuleApiController ZurmoBaseController Controller

Public Member Functions

 getStateMetadataAdapterClassName ()
 actionCreate ()
 actionUpdate ()
 actionDelete ()
 actionListContactStates ()
 actionListLeadStates ()

Protected Member Functions

 getModelName ()
 sendStatesByLeadOrContact ($state= 'contact')

Static Protected Member Functions

static getSearchFormClassName ()

Detailed Description

Contact State API Controller

Definition at line 40 of file ContactStateApiController.php.


Member Function Documentation

getModelName (  )  [protected]

Get module primary model name

Reimplemented from ZurmoModuleApiController.

Definition at line 42 of file ContactStateApiController.php.

getStateMetadataAdapterClassName (  ) 

We cant use Module::getStateMetadataAdapterClassName() because that references to Contact model and we are using ContactState model.

Definition at line 56 of file ContactStateApiController.php.

actionCreate (  ) 

Create new model, and send response

Exceptions:
ApiException 

Reimplemented from ZurmoModuleApiController.

Definition at line 61 of file ContactStateApiController.php.

actionUpdate (  ) 

Update model and send response

Exceptions:
ApiException 

Reimplemented from ZurmoModuleApiController.

Definition at line 66 of file ContactStateApiController.php.

actionDelete (  ) 

Delete model and send response

Exceptions:
ApiException 

Reimplemented from ZurmoModuleApiController.

Definition at line 71 of file ContactStateApiController.php.

sendStatesByLeadOrContact ( state = 'contact'  )  [protected]

Get states by type.

Parameters:
string $state
Exceptions:
ApiException 

Definition at line 91 of file ContactStateApiController.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Sep 22 07:10:23 2017