本文整理汇总了PHP中OC_Calendar_App::tz方法的典型用法代码示例。如果您正苦于以下问题:PHP OC_Calendar_App::tz方法的具体用法?PHP OC_Calendar_App::tz怎么用?PHP OC_Calendar_App::tz使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OC_Calendar_App
的用法示例。
在下文中一共展示了OC_Calendar_App::tz方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
* Copyright (c) 2012 Georg Ehrke <georg@owncloud.com>
* 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
示例2:
<?php
/**
* Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
* Copyright (c) 2012 Georg Ehrke <georg@owncloud.com>
* 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