FieldManager implements IErrorable
FinalYes
Table of Contents
Interfaces
Methods
- getErrorByCode() : Error
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- getInstance() : FieldManager
- Returns Singleton of FieldManager
- getMapFieldsByModel() : mixed
- getReferenceFieldByName() : mixed
- getReferenceFields() : mixed
- getReferenceFieldsByModel() : mixed
Methods
getErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(string $code) : Error
Parameters
- $code : string
-
Code of error.
Return values
ErrorgetErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(string $code) : array<string|int, Error>
Parameters
- $code : string
-
Code of error.
Return values
array<string|int, Error>getInstance()
Returns Singleton of FieldManager
public
static getInstance() : FieldManager
Return values
FieldManagergetMapFieldsByModel()
public
getMapFieldsByModel(Model $model) : mixed
Parameters
- $model : Model
getReferenceFieldByName()
public
getReferenceFieldByName(mixed $modelClassName, mixed $name) : mixed
Parameters
- $modelClassName : mixed
- $name : mixed
getReferenceFields()
public
getReferenceFields(mixed $modelClassName) : mixed
Parameters
- $modelClassName : mixed
getReferenceFieldsByModel()
public
getReferenceFieldsByModel(Model $model) : mixed
Parameters
- $model : Model