ModelStateUtil Class Reference

Static Public Member Functions

static resolveModuleClassNameByStateOfModel (RedBeanModel $model)

Detailed Description

Helper class to handle resolving correct information for models that have different states which determine certain characteristics about how to handle that model.

Definition at line 41 of file ModelStateUtil.php.

Member Function Documentation

static resolveModuleClassNameByStateOfModel ( RedBeanModel model  )  [static]

Special handling for modules that use 'states' for their models. Currently only the Contacts/Leads modules have this characteristic. This method will need to be expanding to dynamically inspect the modules and resolve the state information without needing a hard coded if clause asking if the module class name is 'Contacts'.

string of the module directory name.

Definition at line 50 of file ModelStateUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Nov 21 07:11:08 2019