gyro/core/lib/interfaces/ihierarchic.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Interface for things that are part of a hierarhic (parent => child) relationship 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface IHierarchic { 00009 /** 00010 * Get parent for this item 00011 * 00012 * @return IHierarchic Parent item or null 00013 */ 00014 public function get_parent(); 00015 00016 /** 00017 * Get childs for this item 00018 * 00019 * @return array Array of IHierarchic items 00020 */ 00021 public function get_childs(); 00022 }