Logidav Docs

StatisticService extends TransactionalService
in package

Class StatisticService

Table of Contents

Properties

$container  : ContainerInterface
$em  : EntityManager
$statisticRepository  : StatisticRepository|null

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
getChartDisponibilityForRange()  : array<string|int, mixed>
getDaysInRange()  : array<string|int, mixed>
getDisponibilityForRange()  : array<string|int, mixed>
getEntityManager()  : EntityManager
Getter of the Entity Manager
getGraphData()  : array<string|int, mixed>
getHomeDashbord()  : array<string|int, mixed>
getMonthBorns()  : array<string|int, mixed>
getMonthBornsForGraph()  : array<string|int, mixed>
getMonthName()  : false|string
getMonthsInRange()  : array<string|int, mixed>
getRepo()  : StatisticRepository
Get Statistic Repository
getSaleDisponibilityForRange()  : array<string|int, mixed>
getSaleGraphData()  : array<string|int, mixed>
getsaleGraphsForRange()  : array<string|int, mixed>
getSaleProductsDispinibilityByDate()  : array<string|int, mixed>
getWeekBorns()  : array<string|int, mixed>
getWeeksInRange()  : array<string|int, mixed>
setEntityManager()  : mixed
Setter of the Entity Manager

Properties

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

getChartDisponibilityForRange()

public getChartDisponibilityForRange(mixed $from, mixed $to[, mixed $step = 2 ]) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
$step : mixed = 2
Tags
throws
Exception
Return values
array<string|int, mixed>

getDaysInRange()

public getDaysInRange(mixed $from, mixed $to) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getDisponibilityForRange()

public getDisponibilityForRange(mixed $from, mixed $to) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

getGraphData()

public getGraphData(mixed $results[, int $step = 2 ]) : array<string|int, mixed>
Parameters
$results : mixed
$step : int = 2
Tags
throws
NonUniqueResultException
Return values
array<string|int, mixed>

getHomeDashbord()

public getHomeDashbord() : array<string|int, mixed>
Tags
throws
DBALException
Return values
array<string|int, mixed>

getMonthBorns()

public getMonthBorns(mixed $date) : array<string|int, mixed>
Parameters
$date : mixed
Return values
array<string|int, mixed>

getMonthBornsForGraph()

public getMonthBornsForGraph(mixed $year, mixed $month) : array<string|int, mixed>
Parameters
$year : mixed
$month : mixed
Return values
array<string|int, mixed>

getMonthName()

public getMonthName(mixed $m) : false|string
Parameters
$m : mixed
Return values
false|string

getMonthsInRange()

public getMonthsInRange(mixed $startDate, mixed $endDate) : array<string|int, mixed>
Parameters
$startDate : mixed
$endDate : mixed
Return values
array<string|int, mixed>

getSaleDisponibilityForRange()

public getSaleDisponibilityForRange(mixed $from, mixed $to) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getSaleGraphData()

public getSaleGraphData(mixed $results, mixed $step) : array<string|int, mixed>
Parameters
$results : mixed
$step : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

getsaleGraphsForRange()

public getsaleGraphsForRange(mixed $from, mixed $to[, mixed $step = 2 ]) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
$step : mixed = 2
Tags
throws
Exception
Return values
array<string|int, mixed>

getSaleProductsDispinibilityByDate()

public getSaleProductsDispinibilityByDate([null $specialDay = null ]) : array<string|int, mixed>
Parameters
$specialDay : null = null
Tags
throws
Exception
Return values
array<string|int, mixed>

getWeekBorns()

public getWeekBorns(mixed $year, mixed $week) : array<string|int, mixed>
Parameters
$year : mixed
$week : mixed
Return values
array<string|int, mixed>

getWeeksInRange()

public getWeeksInRange(mixed $from, mixed $to) : array<string|int, mixed>
Parameters
$from : mixed
$to : mixed
Tags
throws
Exception
Return values
array<string|int, mixed>

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager


        
On this page

Search results