Documentation

Kronolith_Icalendar_Storage_Sql extends Horde_Rdo_Mapper
in package
implements Kronolith_Icalendar_Storage

Simple storage for caldav related data

Interfaces, Classes, Traits and Enums

Kronolith_Icalendar_Storage

Table of Contents

$_classname  : mixed
$_table  : mixed
get()  : string
Retrieve stored item.
put()  : void
Create or update item.
remove()  : void
Remove existing item.
_getEntity()  : Kronolith_Icalendar_Storage_Entity|null
_noNullString()  : void
Filter out invalid/malicious calls, throw Exception

Properties

$_classname

protected mixed $_classname = \Kronolith_Icalendar_Storage_Entity::class

$_table

protected mixed $_table = 'kronolith_icalendar_storage'

Methods

get()

Retrieve stored item.

public get(string $calendarId, string $eventUid) : string
Parameters
$calendarId : string

The calendar ID to operate on

$eventUid : string

The Event to operate on

Tags
throws
InvalidArgumentException
Return values
string

put()

Create or update item.

public put(string $calendarId, string $eventUid, string $data) : void
Parameters
$calendarId : string

The calendar ID to operate on

$eventUid : string

The Event to operate on

$data : string

The actual icalendar data

Tags
throws
InvalidArgumentException
Return values
void

remove()

Remove existing item.

public remove(string $calendarId, string $eventUid) : void

If we wanted to name it delete, we would need to make the rdo mapper a dependency rather than inheriting from it.

Parameters
$calendarId : string

The calendar ID to operate on

$eventUid : string

The Event to operate on

Tags
throws
InvalidArgumentException
Return values
void

_getEntity()

protected _getEntity(string $calendarId, string $eventUid) : Kronolith_Icalendar_Storage_Entity|null
Parameters
$calendarId : string
$eventUid : string
Return values
Kronolith_Icalendar_Storage_Entity|null

_noNullString()

Filter out invalid/malicious calls, throw Exception

protected _noNullString(string $calendarId, string $eventUid) : void

Rdo does undesirable actions on empty string arguments, also they are not valid for our use case.

Parameters
$calendarId : string

The calendar ID to operate on

$eventUid : string

The Event to operate on

Tags
throws
InvalidArgumentException
Return values
void

Search results