๐Ÿ“ฆ 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.