Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/drivers/resources_driver.php
Show All 40 Lines | abstract class resources_driver | ||||
* | * | ||||
* @param string $query Search query (optional) | * @param string $query Search query (optional) | ||||
* | * | ||||
* @return array List of resource records available for booking | * @return array List of resource records available for booking | ||||
*/ | */ | ||||
abstract public function load_resources($query = null); | abstract public function load_resources($query = null); | ||||
/** | /** | ||||
* Fetch resource objects filtered by owner email addresses | |||||
* | |||||
* @param array $emails List of email addresses of the owner | |||||
* @param int $num Max size of the result | |||||
* | |||||
* @return array List of resource records | |||||
*/ | |||||
public function load_owned_resources($emails, $num = 5000) | |||||
{ | |||||
return []; | |||||
} | |||||
/** | |||||
* Return properties of a single resource | * Return properties of a single resource | ||||
* | * | ||||
* @param string $id Unique resource identifier | * @param string $id Unique resource identifier | ||||
* | * | ||||
* @return array Resource object as hash array | * @return array Resource object as hash array | ||||
*/ | */ | ||||
abstract public function get_resource($id); | abstract public function get_resource($id); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |