PendingRequest
extends BaseModel
in package
Base model methods
Table of Contents
- $completed_at : datetime
- Completed at timestamp
- $created_at : datetime
- Created timestamp
- $found : bool
- Found
- $id : int
- internal id
- $item_id : int
- Item ID
- $item_type : string
- Item Type
- $pending : bool
- Pending
- $uri : string
- Original Uri
- $uuid : string
- UUID
- afterFetch() : mixed
- afterSave() : mixed
- beforeSave() : mixed
- find() : ResultSet
- Allows to query a set of records that match the specified conditions
- findFirst() : ResultSet
- Allows to query the first record that match the specified conditions
- getMetadata() : mixed
- getResultsetClass() : mixed
- getSource() : mixed
- hasProperty() : bool
- Determine if the model has a public property.
- initialize() : mixed
- markFailed() : mixed
- markFound() : mixed
- setRelated() : self
- Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.
- toCompat() : object
- Returns a base CEO model as a Gryphon compatible one.
- toArrayRelated() : mixed
Properties
$completed_at
Completed at timestamp
public
datetime
$completed_at
$created_at
Created timestamp
public
datetime
$created_at
$found
Found
public
bool
$found
$id
internal id
public
int
$id
$item_id
Item ID
public
int
$item_id
$item_type
Item Type
public
string
$item_type
$pending
Pending
public
bool
$pending
$uri
Original Uri
public
string
$uri
$uuid
UUID
public
string
$uuid
Methods
afterFetch()
public
afterFetch() : mixed
Return values
mixed —afterSave()
public
afterSave() : mixed
Return values
mixed —beforeSave()
public
beforeSave() : mixed
Return values
mixed —find()
Allows to query a set of records that match the specified conditions
public
static find([mixed $parameters = null ]) : ResultSet
Parameters
- $parameters : mixed = null
Return values
ResultSet —findFirst()
Allows to query the first record that match the specified conditions
public
static findFirst([mixed $parameters = null ]) : ResultSet
Parameters
- $parameters : mixed = null
Return values
ResultSet —getMetadata()
public
getMetadata(mixed $k) : mixed
Parameters
- $k : mixed
Return values
mixed —getResultsetClass()
public
getResultsetClass() : mixed
Return values
mixed —getSource()
public
getSource() : mixed
Return values
mixed —hasProperty()
Determine if the model has a public property.
public
hasProperty(string $str) : bool
Useful in determining valid sorting options on the front end.
Parameters
- $str : string
-
Property
Return values
bool —initialize()
public
initialize() : mixed
Return values
mixed —markFailed()
public
markFailed() : mixed
Return values
mixed —markFound()
public
markFound() : mixed
Return values
mixed —setRelated()
Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.
public
setRelated(string $relation[, mixed $value = [] ]) : self
I think it has something to do with implicit transactions, but I'm not entirely sure...
Parameters
- $relation : string
- $value : mixed = []
Return values
self —toCompat()
Returns a base CEO model as a Gryphon compatible one.
public
toCompat([mixed $useKlass = null ]) : object
{% set article = fetch('article').order('published_at desc').find() %} {{ article[0].toCompat().url }}
Parameters
- $useKlass : mixed = null
Return values
object —toArrayRelated()
protected
toArrayRelated(mixed $ops, mixed $array) : mixed
Parameters
- $ops : mixed
- $array : mixed