Menu

## DataModel
in package

DataModel.php : 10

### Table of Contents

$_d : mixed
count() : mixed
currentDateTime() : mixed
currentTimeStamp() : mixed
delete() : mixed
find() : mixed
findAndDelete() : mixed
flush() : mixed
get() : mixed
getAll() : mixed
getClassName() : mixed
getClassNameFromTableName() : string|null
getDateTimeFromISOString() : DateTime
getIdField() : mixed
getQueryBuilder() : mixed
getRepository() : mixed
getResourceId() : string
getTop() : mixed
getVal() : mixed
getVars() : mixed
isEqualTo() : mixed
persist() : mixed
process() : mixed
query() : mixed
save() : mixed
  Convenience method for calling persist() and flush().
setDateProperty() : mixed
setIfNotImmutable() : mixed
setJsonProperty() : mixed
setVal() : mixed
sum() : mixed
toArray() : mixed
objVars() : mixed

### Properties

#### $_d

DataModel.php : 13
`protected mixed $_d`

### Methods

#### count()

DataModel.php : 109
`public static count(Criteria $criteria) : mixed`

##### Parameters

$criteria : Criteria

##### Return values

mixed —

#### currentDateTime()

DataModel.php : 193
`public static currentDateTime() : mixed`

##### Return values

mixed —

#### currentTimeStamp()

DataModel.php : 187
`public static currentTimeStamp() : mixed`

##### Return values

mixed —

#### delete()

DataModel.php : 240
`public delete() : mixed`

##### Return values

mixed —

#### find()

DataModel.php : 93
`public static find(Criteria $criteria) : mixed`

##### Parameters

$criteria : Criteria

##### Return values

mixed —

#### findAndDelete()

DataModel.php : 99
`public static findAndDelete(Criteria $criteria) : mixed`

##### Parameters

$criteria : Criteria

##### Return values

mixed —

#### flush()

DataModel.php : 247
`public flush() : mixed`

##### Return values

mixed —

#### get()

DataModel.php : 15
`public static get(mixed $id) : mixed`

##### Parameters

$id : mixed

##### Return values

mixed —

#### getAll()

DataModel.php : 121
`public static getAll() : mixed`

##### Return values

mixed —

#### getClassName()

DataModel.php : 137
`public static getClassName() : mixed`

##### Return values

mixed —

#### getClassNameFromTableName()

DataModel.php : 143
`public static getClassNameFromTableName(string $tableName) : string|null`

##### Parameters

$tableName : string

##### Return values

string|null —

#### getDateTimeFromISOString()

DataModel.php : 288
`public getDateTimeFromISOString(string $dateString) : DateTime`

##### Parameters

$dateString : string

##### Return values

DateTime —

#### getIdField()

DataModel.php : 69
`public getIdField() : mixed`

##### Return values

mixed —

#### getQueryBuilder()

DataModel.php : 215
`public static getQueryBuilder() : mixed`

##### Return values

mixed —

#### getRepository()

DataModel.php : 115
`public static getRepository() : mixed`

##### Return values

mixed —

#### getResourceId()

DataModel.php : 160
`public static getResourceId([string $separator = ' ' ][, bool $lowercase = true ]) : string`

##### Parameters

$separator : string = ' '
$lowercase : bool = true

##### Return values

string —

#### getTop()

DataModel.php : 82
`public static getTop(Criteria $criteria) : mixed`

##### Parameters

$criteria : Criteria

##### Return values

mixed —

#### getVal()

DataModel.php : 21
`public getVal(mixed $paramName) : mixed`

##### Parameters

$paramName : mixed

##### Return values

mixed —

#### getVars()

DataModel.php : 64
`public getVars() : mixed`

##### Return values

mixed —

#### isEqualTo()

DataModel.php : 275
`public isEqualTo(DataModel $dataModel) : mixed`

##### Parameters

$dataModel : DataModel

##### Return values

mixed —

#### persist()

DataModel.php : 234
`public persist() : mixed`

##### Return values

mixed —

#### process()

DataModel.php : 228
`public process([mixed $data = [] ]) : mixed`

##### Parameters

$data : mixed = []

##### Return values

mixed —

#### query()

DataModel.php : 131
`public static query(mixed $sqlQuery) : mixed`

##### Parameters

$sqlQuery : mixed

##### Return values

mixed —

#### save()

DataModel.php : 256

Convenience method for calling persist() and flush().

`public save() : mixed`

##### Return values

mixed —

#### setDateProperty()

DataModel.php : 294
`public setDateProperty(string $property, string $value) : mixed`

##### Parameters

$property : string
$value : string

##### Return values

mixed —

#### setIfNotImmutable()

DataModel.php : 41
`public setIfNotImmutable(string $property, mixed $value) : mixed`

##### Parameters

$property : string
$value : mixed

##### Return values

mixed —

#### setJsonProperty()

DataModel.php : 301
`public setJsonProperty(string $property, string $value) : mixed`

##### Parameters

$property : string
$value : string

##### Return values

mixed —

#### setVal()

DataModel.php : 30
`public setVal(mixed $paramName, mixed $val) : mixed`

##### Parameters

$paramName : mixed
$val : mixed

##### Return values

mixed —

#### sum()

DataModel.php : 200
`public static sum(mixed $field[, Criteria $criteria = null ]) : mixed`

##### Parameters

$field : mixed
$criteria : Criteria = null

##### Return values

mixed —

#### toArray()

DataModel.php : 263
`public toArray() : mixed`

##### Return values

mixed —

#### objVars()

DataModel.php : 222
`private objVars() : mixed`

##### Return values

mixed —

## Search results