[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Copyright (C) 2005-2010 Alfresco Software Limited. 4 * 5 * This file is part of Alfresco 6 * 7 * Alfresco is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * Alfresco is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 require_once $CFG->libdir.'/alfresco/Service/Store.php'; 22 require_once $CFG->libdir.'/alfresco/Service/Node.php'; 23 24 class SpacesStore extends Store 25 { 26 private $_companyHome; 27 28 public function __construct($session) 29 { 30 parent::__construct($session, "SpacesStore"); 31 } 32 33 public function __toString() 34 { 35 return $this->scheme . "://" . $this->address; 36 } 37 38 public function getCompanyHome() 39 { 40 if ($this->_companyHome == null) 41 { 42 $nodes = $this->_session->query($this, 'PATH:"app:company_home"'); 43 $this->_companyHome = $nodes[0]; 44 } 45 return $this->_companyHome; 46 } 47 } 48 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |