Methods summary
public
array|null
|
#
getById( integer|array $value )
Returns data from table record with specified value in id field
($this->id).
Returns data from table record with specified value in id field
($this->id).
Parameters
- $value
integer|array $value Field value or array of values
Returns
array|null
Overrides
|
public
boolean
|
#
deleteById( integer|array $value )
Parameters
- $value
integer|array $value
Returns
boolean
Overrides
|
public
boolean|null|waDbResultUpdate
|
#
updateById( string $id, array $data, string $options = null, boolean $return_object = false )
Updates table record with specified value of model's id field value.
Updates table record with specified value of model's id field value.
Parameters
- $id
string $id The value of model's id field, which is searched for across all table
records to replace values of fields specified in $data parameter in the found
record.
- $data
array $data Associative array of new values for specified fields of the found record.
- $options
string $options Optional key words for SQL query UPDATE: LOW_PRIORITY or IGNORE.
- $return_object
boolean $return_object Flag requiring to return an instance of class waDbResultUpdate to
enable you to call its public methods to access response received from database
server. By default (false) method returns a Boolean value identifying the
successful query result, or null if incorrect parameters have been passed.
Returns
Overrides
|
public
boolean|integer
|
#
add( array $data )
Parameters
Returns
boolean|integer
|
public
boolean
|
#
move( integer $id, integer $sort )
Parameters
- $id
integer $id
- $sort
integer $sort
Returns
boolean
|