class Statistic extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
int $id
string $tokenSeriesId
int $date

Methods

getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

bool|Statistic
getById(int $id)

No description

static bool
getBySeriesId($seriesId, $usagePeriod = null)

No description

static bool
increaseUsageStatistic($seriesId)

No description

static bool
cleanUpStatistics(int $duration, string|null $seriesId = null)

No description

int
getId()

No description

setId(int $id)

No description

string
getTokenSeriesId()

No description

setTokenSeriesId(string $tokenSeriesId)

No description

int
getDate()

No description

setDate(int $date)

No description

Details

AbstractDao getDao()

Return Value

AbstractDao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($method, $args)

Parameters

$method
$args

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

bool|Statistic getById(int $id)

Parameters

int $id

Return Value

bool|Statistic

static bool getBySeriesId($seriesId, $usagePeriod = null)

Parameters

$seriesId
$usagePeriod

Return Value

bool

Exceptions

Exception

static bool increaseUsageStatistic($seriesId)

Parameters

$seriesId

Return Value

bool

static bool cleanUpStatistics(int $duration, string|null $seriesId = null)

Parameters

int $duration days
string|null $seriesId

Return Value

bool

int getId()

Return Value

int

setId(int $id)

Parameters

int $id

string getTokenSeriesId()

Return Value

string

setTokenSeriesId(string $tokenSeriesId)

Parameters

string $tokenSeriesId

int getDate()

Return Value

int

setDate(int $date)

Parameters

int $date