|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 /* 00003 * Copyright (C) 2005 Alfresco, Inc. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 * As a special exception to the terms and conditions of version 2.0 of 00020 * the GPL, you may redistribute this Program in connection with Free/Libre 00021 * and Open Source Software ("FLOSS") applications as described in Alfresco's 00022 * FLOSS exception. You should have recieved a copy of the text describing 00023 * the FLOSS exception, and it is also available here: 00024 * http://www.alfresco.com/legal/licensing" 00025 */ 00026 00027 require_once 'Store.php'; 00028 require_once 'Node.php'; 00029 00030 class SpacesStore extends Store 00031 { 00032 private $_companyHome; 00033 00034 public function __construct($session) 00035 { 00036 parent::__construct($session, "SpacesStore"); 00037 } 00038 00039 public function __toString() 00040 { 00041 return $this->scheme . "://" . $this->address; 00042 } 00043 00044 public function getCompanyHome() 00045 { 00046 if ($this->_companyHome == null) 00047 { 00048 $nodes = $this->_session->query($this, 'PATH:"app:company_home"'); 00049 $this->_companyHome = $nodes[0]; 00050 } 00051 return $this->_companyHome; 00052 } 00053 } 00054 ?>