|
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 class ChildAssociation extends BaseObject 00028 { 00029 private $_parent; 00030 private $_child; 00031 private $_type; 00032 private $_name; 00033 private $_isPrimary; 00034 private $_nthSibling; 00035 00036 public function __construct($parent, $child, $type, $name, $isPrimary=false, $nthSibling=0) 00037 { 00038 $this->_parent = $parent; 00039 $this->_child = $child; 00040 $this->_type = $type; 00041 $this->_name = $name; 00042 $this->_isPrimary = $isPrimary; 00043 $this->_nthSibling = $nthSibling; 00044 } 00045 00046 public function getParent() 00047 { 00048 return $this->_parent; 00049 } 00050 00051 public function getChild() 00052 { 00053 return $this->_child; 00054 } 00055 00056 public function getType() 00057 { 00058 return $this->_type; 00059 } 00060 00061 public function getName() 00062 { 00063 return $this->_name; 00064 } 00065 00066 public function getIsPrimary() 00067 { 00068 return $this->_isPrimary; 00069 } 00070 00071 public function getNthSibling() 00072 { 00073 return $this->_nthSibling; 00074 } 00075 } 00076 ?>