Logidav Docs

StatisticRepository extends BaseRepository
in package

This class import all generic methods of repository class type

Table of Contents

Constants

PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION  = '23000'
PDO Exception Integrity constraint violation
PDO_EXCEPTION_UNIQUE_VIOLATION  = '23505'
PDO Exception Unique violation

Methods

delete()  : mixed
Removes an entity
findAll()  : Collection
Find all
findById()  : Entity
Finds an entity by the identifier(s)
getCountByModel()  : int|mixed|string
getProductCountByDisponibility()  : mixed
getSaleByAvailabilityInRange()  : mixed
getSaleProductAsirGroup()  : array<string|int, mixed>|float|int|string
getSalesWithExpeditionProblem()  : int|mixed|string
getSalesWithExportedButNotShipped()  : int|mixed|string
getSalesWithImportionProblem()  : int|mixed|string
getSaleTotalInRange()  : mixed
getStockByAvailabilityInRange()  : mixed
getStockTotalInRange()  : mixed
getTotalProductCount()  : mixed
insert()  : mixed
Inserts an entity
queryFindAll()  : QueryBuilder
Find all in query
save()  : void
Save an entity
update()  : mixed
Updates an entity

Constants

PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION

PDO Exception Integrity constraint violation

public mixed PDO_EXCEPTION_INTEGRITY_CONSTRAINT_VIOLATION = '23000'

PDO_EXCEPTION_UNIQUE_VIOLATION

PDO Exception Unique violation

public mixed PDO_EXCEPTION_UNIQUE_VIOLATION = '23505'

Methods

delete()

Removes an entity

public delete(Entity $entity) : mixed
Parameters
$entity : Entity

The entity to remove

Tags
throws
NonExistingObjectException

An NonExistingObjectException if the entity does not exist

findAll()

Find all

public findAll([array<string|int, mixed> $parameters = array() ]) : Collection
Parameters
$parameters : array<string|int, mixed> = array()

Parameters

Return values
Collection

findById()

Finds an entity by the identifier(s)

public findById(Entity $entity) : Entity
Parameters
$entity : Entity

The entity to find

Return values
Entity

The entity

getCountByModel()

public getCountByModel(mixed $model) : int|mixed|string
Parameters
$model : mixed
Tags
throws
DBALException
Return values
int|mixed|string

getProductCountByDisponibility()

public getProductCountByDisponibility(mixed $dispo) : mixed
Parameters
$dispo : mixed
Tags
throws
NonUniqueResultException

getSaleByAvailabilityInRange()

public getSaleByAvailabilityInRange(mixed $from, mixed $to, mixed $dispo) : mixed
Parameters
$from : mixed
$to : mixed
$dispo : mixed
Tags
throws
NonUniqueResultException

getSaleProductAsirGroup()

public getSaleProductAsirGroup() : array<string|int, mixed>|float|int|string
Return values
array<string|int, mixed>|float|int|string

getSalesWithExpeditionProblem()

public getSalesWithExpeditionProblem() : int|mixed|string
Return values
int|mixed|string

getSalesWithExportedButNotShipped()

public getSalesWithExportedButNotShipped() : int|mixed|string
Tags
throws
DBALException
Return values
int|mixed|string

getSalesWithImportionProblem()

public getSalesWithImportionProblem() : int|mixed|string
Return values
int|mixed|string

getSaleTotalInRange()

public getSaleTotalInRange(mixed $from, mixed $to) : mixed
Parameters
$from : mixed
$to : mixed
Tags
throws
NonUniqueResultException

getStockByAvailabilityInRange()

public getStockByAvailabilityInRange(mixed $from, mixed $to, mixed $dispo) : mixed
Parameters
$from : mixed
$to : mixed
$dispo : mixed
Tags
throws
NonUniqueResultException

getStockTotalInRange()

public getStockTotalInRange(mixed $from, mixed $to, mixed $target) : mixed
Parameters
$from : mixed
$to : mixed
$target : mixed
Tags
throws
NonUniqueResultException

getTotalProductCount()

public getTotalProductCount() : mixed
Tags
throws
NonUniqueResultException

insert()

Inserts an entity

public insert(Entity $entity) : mixed
Parameters
$entity : Entity

The entity to insert

Tags
throws
ExistingObjectException

An ExistingObjectException if the entity already exists

throws
PDOException

PDO Exception

queryFindAll()

Find all in query

public queryFindAll([array<string|int, mixed> $parameters = array() ]) : QueryBuilder
Parameters
$parameters : array<string|int, mixed> = array()

Parameters

Return values
QueryBuilder

save()

Save an entity

public save(Entity $entity) : void
Parameters
$entity : Entity

An entity that i want saved

update()

Updates an entity

public update(Entity $entity) : mixed
Parameters
$entity : Entity

The entity to update

Tags
throws
NonExistingObjectException

An NonExistingObjectException if the entity does not exist

throws
ExistingObjectException

An ExistingObjectException if the entity is already exist in database


        
On this page

Search results