\Ceo\Connect\ModelsSocketToken

Base model methods

Summary

Methods
Properties
Constants
getResultsetClass()
hasProperty()
setRelated()
initialize()
getSource()
find()
findFirst()
$id
$uuid
$user
$client_code
$created_at
$last_seen_at
No constants found
toArrayRelated()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

Type

integer

$uuid

$uuid : string

Type

string

$user

$user : string

User SRN

Type

string

$client_code

$client_code : string

Client code

Type

string

$created_at

$created_at : \Ceo\Connect\Models\datetime

Created timestamp

Type

\Ceo\Connect\Models\datetime

$last_seen_at

$last_seen_at : \Ceo\Connect\Models\datetime

Last seen timestamp

Type

\Ceo\Connect\Models\datetime

Methods

getResultsetClass()

getResultsetClass() 

hasProperty()

hasProperty(string  $str) : boolean

Determine if the model has a public property.

Useful in determining valid sorting options on the front end.

Parameters

string $str

Property

Returns

boolean

setRelated()

setRelated(string  $relation, mixed  $value = array()) : self

Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.

I think it has something to do with implicit transactions, but I'm not entirely sure...

Parameters

string $relation
mixed $value

Returns

self

initialize()

initialize() 

Initializer

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

find(mixed  $parameters = null) : array<mixed,\Ceo\Connect\Models\Attachments>

Allows to query a set of records that match the specified conditions

Parameters

mixed $parameters

Returns

array<mixed,\Ceo\Connect\Models\Attachments>

findFirst()

findFirst(mixed  $parameters = null) : \Ceo\Connect\Models\Attachments

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Connect\Models\Attachments

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array