[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/alfresco/Service/ -> ChildAssociation.php (source)

   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  class ChildAssociation extends BaseObject
  22  {
  23      private $_parent;
  24      private $_child;
  25      private $_type;
  26      private $_name;
  27      private $_isPrimary;
  28      private $_nthSibling;
  29      
  30  	public function __construct($parent, $child, $type, $name, $isPrimary=false, $nthSibling=0)
  31      {
  32          $this->_parent = $parent;
  33          $this->_child = $child;
  34          $this->_type = $type;
  35          $this->_name = $name;
  36          $this->_isPrimary = $isPrimary;
  37          $this->_nthSibling = $nthSibling;
  38      }
  39      
  40  	public function getParent()
  41      {
  42          return $this->_parent;
  43      }
  44      
  45  	public function getChild()
  46      {
  47          return $this->_child;
  48      }
  49      
  50  	public function getType()
  51      {
  52          return $this->_type;
  53      }
  54      
  55  	public function getName()
  56      {
  57          return $this->_name;
  58      }
  59      
  60  	public function getIsPrimary()
  61      {
  62          return $this->_isPrimary;
  63      }
  64      
  65  	public function getNthSibling()
  66      {
  67          return $this->_nthSibling;
  68      }
  69  }
  70  ?>


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1