<?php /** * Copyright (c) 2011 Bart Visscher <*****@*****.**> * Copyright (c) 2012 Georg Ehrke <*****@*****.**> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. * * This class manages our app actions */ OC_Calendar_App::$l10n = OCP\Util::getL10N('calendar'); OC_Calendar_App::$tz = OC_Calendar_App::getTimezone(); class OC_Calendar_App { const CALENDAR = 'calendar'; const EVENT = 'event'; /** * @brief language object for calendar app */ public static $l10n; /** * @brief categories of the user */ protected static $categories = null; /** * @brief timezone of the user */ public static $tz; /** * @brief returns informations about a calendar
<?php /** * Copyright (c) 2011 Bart Visscher <*****@*****.**> * Copyright (c) 2012 Georg Ehrke <*****@*****.**> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. * * This class manages our app actions */ OC_Calendar_App::$l10n = new OC_L10N('calendar'); OC_Calendar_App::$tz = OCP\Config::getUserValue(OCP\USER::getUser(), 'calendar', 'timezone', date_default_timezone_get()); class OC_Calendar_App { const CALENDAR = 'calendar'; const EVENT = 'event'; /* * @brief language object for calendar app */ public static $l10n; /* * @brief categories of the user */ protected static $categories = null; /* * @brief timezone of the user */ public static $tz; /* * @brief returns informations about a calendar