\Ceo\Core\ModelsWebcron

Webcron Task Model We use cron-expression for parsing: <pre> * * * * * * - - - - - - | | | | | | | | | | | + year [optional] | | | | +----- day of week (0 - 7) (Sunday=0 or 7) | | | +---------- month (1 - 12) | | +--------------- day of month (1 - 31) | +-------------------- hour (0 - 23) +------------------------- min (0 - 59) </pre>

Summary

Methods
Properties
Constants
getSrn()
findFirstBySrn()
getResultsetClass()
hasProperty()
setRelated()
initialize()
getSource()
find()
findFirst()
toArray()
$id
$uuid
$label
$schedule
$status
$task
No constants found
toArrayRelated()
$srn_name
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

ID

Type

integer

$uuid

$uuid : string

UUID

Type

string

$label

$label : \Ceo\Core\Models\string;

Issue text label

Type

\Ceo\Core\Models\string;

$schedule

$schedule : \Ceo\Core\Models\string;

Schedule

Type

\Ceo\Core\Models\string;

$status

$status : \Ceo\Core\Models\string;

Open = 1, closed = 0 Default is open

Type

\Ceo\Core\Models\string;

$task

$task : \Ceo\Core\Models\string;

The task class

Type

\Ceo\Core\Models\string;

$srn_name

$srn_name : 

Type

Methods

getSrn()

getSrn() : string

Return model's SRN. Model should implement a 'srn_name' protected value.

Otherwise, this will pull from the 'getSource' method

Returns

string —

SRN

findFirstBySrn()

findFirstBySrn(string  $srn) : object

Find model by SRN

Parameters

string $srn

complete SRN

Returns

object —

Model object

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\Core\Models\Issues>

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

Parameters

mixed $parameters

Returns

array<mixed,\Ceo\Core\Models\Issues>

findFirst()

findFirst(mixed  $parameters = null) : \Ceo\Core\Models\Issue

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Issue

toArray()

toArray(  $columns = NULL) 

Parameters

$columns

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array