1: <?php
2: /**
3: * ManiaLive - TrackMania dedicated server manager in PHP
4: *
5: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
6: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
7: * @version $Revision: 280 $:
8: * @author $Author: martin.gwendal $:
9: * @date $Date: 2011-11-07 19:21:52 +0100 (lun., 07 nov. 2011) $:
10: */
11:
12: namespace ManiaLive\Gui;
13:
14: /**
15: * This will provide automatic call of the onIsAdded method
16: * when stored in an object of type Container.
17: */
18: interface Containable
19: {
20: /**
21: * This method is invoked when adding an object of this type
22: * to a Container class object.
23: * @param Container $target Reference to the target Container.
24: */
25: function onIsAdded(Container $target);
26:
27: /**
28: *
29: * Enter description here ...
30: * @param $target
31: */
32: function onIsRemoved(Container $target);
33: }
34:
35: ?>