Class Model
Description of generic Model
-
Eloquent
-
Model
Methods summary
public static
|
#
getInstance( )
A way to overload the constructor. Use this to instantiate the class.
A way to overload the constructor. Use this to instantiate the class.
|
public
|
#
__construct( )
Create a new Eloquent model instance.
Create a new Eloquent model instance.
|
public
string
|
#
getTable( )
Get the table associated with the model.
Get the table associated with the model.
Returns
string
|
public
type
|
#
setHasOne( type $table, type $customKey )
Parameters
- $table
type $table
- $customKey
type $customKey
Returns
type
|
public
type
|
#
setHasMany( type $table, type $customKey )
Parameters
- $table
type $table
- $customKey
type $customKey
Returns
type
|
public
type
|
#
setBelongsTo( type $table, type $customKey )
Parameters
- $table
type $table
- $customKey
type $customKey
Returns
type
|
public
type
|
#
setBelongsToMany( type $table, type $pivotTable, type $remoteId, type $localId )
Parameters
- $table
type $table
- $pivotTable
type $pivotTable
- $remoteId
type $remoteId
- $localId
type $localId
Returns
type
|
public
|
|
public
|
|
public
|
|
public
Model
|
#
editRec( type $pkValue, mixed $json = null )
Update a record
Parameters
- $pkValue
type $pkValue
- $json
Returns
|
public
|
#
setTable( type $tableName )
Setter for table
Parameters
- $tableName
type $tableName
|
public
|
#
setMetaData( type $tableName )
Setter for metaData
Parameters
- $tableName
type $tableName
|
public
type
|
|