some changes in calendar repeat class
This commit is contained in:
parent
f7366de673
commit
7d49bf7f6e
|
@ -12,12 +12,28 @@
|
||||||
class OC_Calendar_Repeat{
|
class OC_Calendar_Repeat{
|
||||||
/*
|
/*
|
||||||
* @brief returns the cache of an event
|
* @brief returns the cache of an event
|
||||||
|
* @param (int) $id - id of the event
|
||||||
|
* @return (array)
|
||||||
*/
|
*/
|
||||||
public static function get();
|
public static function get($id){
|
||||||
|
$stmt = OCP\DB::prepare('SELECT * FROM *PREFIX*calendar_repeat WHERE eventid = ?');
|
||||||
|
$result = $stmt->execute(array($id));
|
||||||
|
$return = array();
|
||||||
|
while($row = $result->fetchRow()){
|
||||||
|
$return[] = $row;
|
||||||
|
}
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* @brief returns the cache of an event in a specific peroid
|
* @brief returns the cache of an event in a specific peroid
|
||||||
|
* @param (int) $id - id of the event
|
||||||
|
* @param (string) $from - start for period in UTC
|
||||||
|
* @param (string) $until - end for period in UTC
|
||||||
|
* @return (array)
|
||||||
*/
|
*/
|
||||||
public static function get_inperiod();
|
public static function get_inperiod($id, $from, $until){
|
||||||
|
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* @brief returns the cache of all repeating events of a calendar
|
* @brief returns the cache of all repeating events of a calendar
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue