\Hubleto\Framework\Interfaces\ModelInterface
Methods
ƒ initRecordManager
public initRecordManager(): null|object
ƒ isDatabaseConnected
public isDatabaseConnected(): bool
ƒ getConfigFullPath
public getConfigFullPath(string $configName): string
Parameters
| Parameter |
Type |
Description |
$configName |
string |
|
ƒ configAsString
public configAsString(string $configName): string
Parameters
| Parameter |
Type |
Description |
$configName |
string |
|
ƒ configAsInteger
public configAsInteger(string $configName): int
Parameters
| Parameter |
Type |
Description |
$configName |
string |
|
ƒ configAsArray
public configAsArray(string $configName): array
Parameters
| Parameter |
Type |
Description |
$configName |
string |
|
ƒ getSqlCreateTableCommands
public getSqlCreateTableCommands(): array
ƒ createSqlTable
public createSqlTable(): mixed
ƒ install
public install(): mixed
ƒ dropTableIfExists
public dropTableIfExists(): \Hubleto\Framework\Interfaces\ModelInterface
ƒ createSqlForeignKeys
public createSqlForeignKeys(): mixed
ƒ getFullTableSqlName
public getFullTableSqlName(): mixed
ƒ hasColumn
public hasColumn(string $column): bool
Parameters
| Parameter |
Type |
Description |
$column |
string |
|
ƒ getColumns
public getColumns(): array
ƒ getColumn
public getColumn(string $column): \Hubleto\Framework\Interfaces\ColumnInterface
Parameters
| Parameter |
Type |
Description |
$column |
string |
|
ƒ columnNames
public columnNames(): array
ƒ indexes
public indexes(array $indexes = []): array
Parameters
| Parameter |
Type |
Description |
$indexes |
array |
|
ƒ indexNames
public indexNames(): array
ƒ upgrades
public upgrades(): array
ƒ describeColumns
public describeColumns(): array
ƒ describeInput
public describeInput(string $columnName): \Hubleto\Framework\Description\Input
Parameters
| Parameter |
Type |
Description |
$columnName |
string |
|
ƒ describeForm
public describeForm(): \Hubleto\Framework\Description\Form
ƒ describeTable
public describeTable(): \Hubleto\Framework\Description\Table
ƒ loadTableData
public loadTableData(string $fulltextSearch = '', array $columnSearch = [], array $orderBy = [], int $itemsPerPage = 15, int $page, string $dataView = ''): array
Parameters
| Parameter |
Type |
Description |
$fulltextSearch |
string |
|
$columnSearch |
array |
|
$orderBy |
array |
|
$itemsPerPage |
int |
|
$page |
int |
|
$dataView |
string |
|
ƒ diffRecords
public diffRecords(array $record1, array $record2): array
Parameters
| Parameter |
Type |
Description |
$record1 |
array |
|
$record2 |
array |
|
ƒ getById
public getById(int $id): mixed
Parameters
| Parameter |
Type |
Description |
$id |
int |
|
ƒ getLookupSqlValue
public getLookupSqlValue(string $tableAlias = ''): string
Parameters
| Parameter |
Type |
Description |
$tableAlias |
string |
|
ƒ encryptPassword
public encryptPassword(string $original): string
Parameters
| Parameter |
Type |
Description |
$original |
string |
|
ƒ onBeforeCreate
public onBeforeCreate(array $record): array
Parameters
| Parameter |
Type |
Description |
$record |
array |
|
ƒ onBeforeUpdate
public onBeforeUpdate(array $record): array
Parameters
| Parameter |
Type |
Description |
$record |
array |
|
ƒ onAfterCreate
public onAfterCreate(array $savedRecord): array
Parameters
| Parameter |
Type |
Description |
$savedRecord |
array |
|
ƒ onAfterUpdate
public onAfterUpdate(array $originalRecord, array $savedRecord): array
Parameters
| Parameter |
Type |
Description |
$originalRecord |
array |
|
$savedRecord |
array |
|
ƒ onBeforeDelete
public onBeforeDelete(int $id): int
Parameters
| Parameter |
Type |
Description |
$id |
int |
|
ƒ onAfterDelete
public onAfterDelete(int $id): int
Parameters
| Parameter |
Type |
Description |
$id |
int |
|
ƒ onAfterLoadRecord
public onAfterLoadRecord(array $record): array
Parameters
| Parameter |
Type |
Description |
$record |
array |
|
ƒ onAfterLoadRecords
public onAfterLoadRecords(array $records): array
Parameters
| Parameter |
Type |
Description |
$records |
array |
|