logfileResult
in package
Log file result object
Tags
Table of Contents
- $colsCallback : callable
- Cols callback function
- $items : array<string|int, mixed>
- Logfile items
- $itemsCount : int
- Item count
- $object : bool
- Return logfile content as object/ dataview
- $rowCallback : callable
- Row callback function
- $size : int
- Logfile size
- __construct() : mixed
- Constructor
- asObject() : bool
- Check if logfile content is to be displayed as data view
- colsCallback() : callable
- Return cal callback function
- fetchData() : array<string|int, mixed>
- Fetch log data
- getItemsCount() : int
- Fetch number of items
- getSize() : int
- Get logfile size
- rowCallback() : callable
- Return row callback function
Properties
$colsCallback
Cols callback function
private
callable
$colsCallback
$items
Logfile items
private
array<string|int, mixed>
$items
$itemsCount
Item count
private
int
$itemsCount
$object
Return logfile content as object/ dataview
private
bool
$object
$rowCallback
Row callback function
private
callable
$rowCallback
$size
Logfile size
private
int
$size
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $items, int $itemsCount, int $size, callable $colsCallback, callable $rowCallback[, bool $object = true ]) : mixed
Parameters
- $items : array<string|int, mixed>
- $itemsCount : int
- $size : int
- $colsCallback : callable
- $rowCallback : callable
- $object : bool = true
Return values
mixed —asObject()
Check if logfile content is to be displayed as data view
public
asObject() : bool
Return values
bool —colsCallback()
Return cal callback function
public
colsCallback() : callable
Return values
callable —fetchData()
Fetch log data
public
fetchData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getItemsCount()
Fetch number of items
public
getItemsCount() : int
Return values
int —getSize()
Get logfile size
public
getSize() : int
Return values
int —rowCallback()
Return row callback function
public
rowCallback() : callable