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