# DataModel

class DataModel extends Model

DataModel Class

## Properties

protected array | $fields |  |

## Methods

__construct(stdClass $object = null)

Constructor

from Model
multitype:
getProperties()

Get the Model Properties

from Model
Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

from Model
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

from Model
toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

validate()

Object Validation

mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

## Details

###
in Model at line 23
`__construct(stdClass $object = null)`

Constructor

#### Parameters

stdClass | $object |

###
in Model at line 33
`multitype: getProperties()`

Get the Model Properties

#### Return Value

multitype: | string

###
in Model at line 45
`Model setOptions(stdClass $object = null, array $options = null)`

Sets Properties with matching Array Values

#### Parameters

stdClass | $object |
array | $options |

#### Return Value

Model |

###
in Model at line 82
`stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))`

Convert the Model into stdClass Object

#### Parameters

array | $publics |

#### Return Value

stdClass | $object

###
in Model at line 115
`toJson()`

###
at line 35
`mixed:string getFields()`

Fields Getter

#### Return Value

mixed:string |

###
at line 45
`validate()`

Object Validation

#### Exceptions

SchemaException |

###
at line 59
`mixed:string|NULL getField(boolean $toWawi = false, string $key)`

Get a Model Member Name

#### Parameters

boolean | $toWawi |
string | $key |

#### Return Value

mixed:string|NULL |

###
at line 81
`map(boolean $toWawi = false, stdClass $obj = null)`

Object Mapping

#### Parameters

boolean | $toWawi |
stdClass | $obj | Object to map