VPEStorage

Implements \VPEStorageInterface

Class VPEStorage

category

System

package

VPE

subpackage

Repositories

Methods

__construct

__construct(\CI_DB_query_builder $queryBuilder, \LanguageProvider $languageProvider) 

Arguments

$queryBuilder

\CI_DB_query_builder

$languageProvider

\LanguageProvider

Checks if the vpe entity of given id is shops default.

_isDefault(\IdType $vpeId) : boolean

Arguments

$vpeId

\IdType

Id of expected vpe default entity.

Response

boolean

True if entity is default, false otherwise.

Checks if vpe entity is default. If true, the id will set to the vpe default value in the configuration table.

_updateDefault(\VPEInterface $vpe) : \VPEStorageInterface

Arguments

$vpe

\VPEInterface

Vpe entity to check and set as shops default.

Response

\VPEStorageInterface

Same instance for chained method calls.

Deletes VPE entity data in database.

delete(\VPEInterface $vpe) : \VPEStorageInterface

Arguments

$vpe

\VPEInterface

VPE entity to be delete.

Response

\VPEStorageInterface

Same instance for chained method calls.

Returns all VPE entities data as array.

getAll() : array

Response

array

Returns VPE entity data by the given id.

getById(\IdType $vpeId) : array

Arguments

$vpeId

\IdType

Response

array

Saves VPE entity data in database.

save(\VPEInterface $vpe) : \VPEStorageInterface

Arguments

$vpe

\VPEInterface

VPE entity to be saved.

Response

\VPEStorageInterface

Same instance for chained method calls.

Updates VPE entity data in database.

update(\VPEInterface $vpe) : \VPEStorageInterface

Arguments

$vpe

\VPEInterface

VPE entity to be updated.

Response

\VPEStorageInterface

Same instance for chained method calls.

Properties

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

languageProvider

languageProvider : \LanguageProvider
var

Type(s)

\LanguageProvider