Table of Contents
๐ฆ Class \simpleRrd
/**
* simple storages to keep last N items of an object
*
* @author hahn
*
* 2024-07-23 axel.hahn@unibe.ch php 8 only: use typed variables
*/
๐ถ Properties
(none)
๐ท Methods
๐น public __construct()
Constructor
Return: ``
Parameters: 1
Parameter | Type | Description |
---|---|---|
<optional> string $sId = โโ | string |
optional id to set |
๐น public add()
Add data item. This action will limit the count of max items and save it to cache. It returns the success of save action.
Return: bool
Parameters: 1
Parameter | Type | Description |
---|---|---|
<required> $aDataItem | dataitem * |
dataitem |
๐น public delete()
Delete current application
Return: bool
Parameters: 0
๐น public get()
Get array with stored items
Return: array
Parameters: 1
Parameter | Type | Description |
---|---|---|
<optional> int $iMax = 0 | int |
optional: limit |
๐น public setId()
Set id for this rrd value store
Return: bool
Parameters: 1
Parameter | Type | Description |
---|---|---|
<required> string $sId | string |
Generated with Axels PHP class doc parser.