<?php /* $Id: xaradminapi.php,v 1.5 2003/06/24 20:08:10 roger Exp $ Calendar::Xaraya Events Calendar Module Copyright (C) 2003 The Xaraya Calendar Team http://www.xarcalendar.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA To read the license please read the docs/license.txt or visit http://www.gnu.org/copyleft/gpl.html */ xarMod::apiLoad('calendar', 'defines');
<?php /** * @license GPL {@link http://www.gnu.org/licenses/gpl.html} * * @subpackage Calendar module */ /** * Calendar Property * @author Marc Lutolf (mfl@netspan.ch) */ /* Include files needed */ sys::import('modules.dynamicdata.class.properties'); sys::import('xaraya.structures.query'); xarMod::apiLoad('calendar', 'user'); class CalendarDisplayProperty extends DataProperty { public $id = 30081; public $name = 'calendardisplay'; public $desc = 'Calendar Display'; public $reqmodules = array('calendar'); public $timeframe = 'week'; public $owner; function __construct(ObjectDescriptor $descriptor) { parent::__construct($descriptor); // Set for runtime $this->tplmodule = 'calendar'; $this->filepath = 'modules/calendar/xarproperties'; $this->owner = xarSession::getVar('role_id'); }