ModelToArrayAdapter Class Reference

Inheritance diagram for ModelToArrayAdapter:
ModelToExportAdapter RedBeanModelToApiDataUtil RedBeanModelToApiDataWithPermissionsUtil

Public Member Functions

 __construct ($model)
 getData ()

Static Protected Member Functions

static resolveRetrievableAttributesByModel ($model)

Protected Attributes

 $model

Detailed Description

Helper class used to convert models into arrays

Definition at line 40 of file ModelToArrayAdapter.php.


Member Function Documentation

getData (  ) 

Get model properties as array. return array

Reimplemented in RedBeanModelToApiDataWithPermissionsUtil, and ModelToExportAdapter.

Definition at line 58 of file ModelToArrayAdapter.php.

static resolveRetrievableAttributesByModel ( model  )  [static, protected]

Return array of retrievable model attributes

Returns:
array

Reimplemented in RedBeanModelToApiDataUtil.

Definition at line 111 of file ModelToArrayAdapter.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Mar 28 07:10:26 2017