summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib/app.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-15 12:43:07 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-15 12:43:07 +0200
commite292b1fcdbe15d3a048c89f1825cb9ae8831edbb (patch)
treea310b840389eff1f324b68c3ed3a002b0bb963e7 /apps/calendar/lib/app.php
parente256ac8791eedcb3dcab1ade0927f1831e24d2e2 (diff)
parenta6a8e2c553bd2ba82c3d50f147a49793ed62b6f5 (diff)
downloadnextcloud-server-e292b1fcdbe15d3a048c89f1825cb9ae8831edbb.tar.gz
nextcloud-server-e292b1fcdbe15d3a048c89f1825cb9ae8831edbb.zip
fix merge conflicts
Diffstat (limited to 'apps/calendar/lib/app.php')
-rw-r--r--apps/calendar/lib/app.php24
1 files changed, 20 insertions, 4 deletions
diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php
index ee1d39bc662..3ce0d6fa1d4 100644
--- a/apps/calendar/lib/app.php
+++ b/apps/calendar/lib/app.php
@@ -17,6 +17,10 @@ class OC_Calendar_App{
* @brief language object for calendar app
*/
public static $l10n;
+
+ /*
+ * @brief categories of the user
+ */
protected static $categories = null;
/*
@@ -107,7 +111,11 @@ class OC_Calendar_App{
}
return true;
}
-
+
+ /*
+ * @brief returns the default categories of ownCloud
+ * @return (array) $categories
+ */
protected static function getDefaultCategories()
{
return array(
@@ -128,14 +136,22 @@ class OC_Calendar_App{
self::$l10n->t('Work'),
);
}
-
+
+ /*
+ * @brief returns the vcategories object of the user
+ * @return (object) $vcategories
+ */
protected static function getVCategories() {
if (is_null(self::$categories)) {
self::$categories = new OC_VCategories('calendar', null, self::getDefaultCategories());
}
return self::$categories;
}
-
+
+ /*
+ * @brief returns the categories of the vcategories object
+ * @return (array) $categories
+ */
public static function getCategoryOptions()
{
$categories = self::getVCategories()->categories();
@@ -402,4 +418,4 @@ class OC_Calendar_App{
}
return $output;
}
-} \ No newline at end of file
+}