Bitrix API

CounterTable extends DataManager

Class CounterTable

Table of Contents

Methods

createCollection()  : EO_Counter_Collection
createObject()  : EO_Counter
getById()  : EO_Counter_Result
getByPrimary()  : EO_Counter_Result
getEntity()  : EO_Counter_Entity
getList()  : EO_Counter_Result
getMap()  : array<string|int, mixed>
Returns entity map definition.
getTableName()  : string
Returns DB table name for entity.
getValueByCode()  : int
Get value by code.
incrementByCode()  : void
Increment value.
mergeData()  : void
Merge data.
query()  : EO_Counter_Query
resetValueByCode()  : bool
Get value by code.
wakeUpCollection()  : EO_Counter_Collection
wakeUpObject()  : EO_Counter

Methods

createCollection()

public static createCollection() : EO_Counter_Collection
Return values
EO_Counter_Collection

createObject()

public static createObject([mixed $setDefaultValues = = 'true' ]) : EO_Counter
Parameters
$setDefaultValues : mixed = = 'true'
Return values
EO_Counter

getById()

public static getById(mixed $id) : EO_Counter_Result
Parameters
$id : mixed
Return values
EO_Counter_Result

getByPrimary()

public static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_Counter_Result
Parameters
$primary : mixed
$parameters : array<string|int, mixed> = = '[]'
Return values
EO_Counter_Result

getEntity()

public static getEntity() : EO_Counter_Entity
Return values
EO_Counter_Entity

getList()

public static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_Counter_Result
Parameters
$parameters : array<string|int, mixed> = = '[]'
Return values
EO_Counter_Result

getMap()

Returns entity map definition.

public static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTableName()

Returns DB table name for entity.

public static getTableName() : string
Return values
string

getValueByCode()

Get value by code.

public static getValueByCode(string $code) : int
Parameters
$code : string

Code.

Return values
int

incrementByCode()

Increment value.

public static incrementByCode(string $code[, int $increment = 1 ]) : void
Parameters
$code : string

Code.

$increment : int = 1

Increment.

mergeData()

Merge data.

public static mergeData(array<string|int, mixed> $insert, array<string|int, mixed> $update) : void
Parameters
$insert : array<string|int, mixed>

Insert data.

$update : array<string|int, mixed>

Update data.

query()

public static query() : EO_Counter_Query
Return values
EO_Counter_Query

resetValueByCode()

Get value by code.

public static resetValueByCode(string $code) : bool
Parameters
$code : string

Code.

Return values
bool

wakeUpCollection()

public static wakeUpCollection(mixed $rows) : EO_Counter_Collection
Parameters
$rows : mixed
Return values
EO_Counter_Collection

wakeUpObject()

public static wakeUpObject(mixed $row) : EO_Counter
Parameters
$row : mixed
Return values
EO_Counter

        
On this page

Search results