1: <?php
2: /**
3: * ManiaLib - Lightweight PHP framework for Manialinks
4: *
5: * @see http://code.google.com/p/manialib/
6: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
7: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
8: * @version $Revision: 652 $:
9: * @author $Author: melot.philippe $:
10: * @date $Date: 2012-01-27 16:51:57 +0100 (ven., 27 janv. 2012) $:
11: */
12:
13: namespace ManiaLib\Gui\Maniacode\Elements;
14:
15: class InviteBuddy extends \ManiaLib\Gui\Maniacode\Component
16: {
17:
18: protected $xmlTagName = 'invite_buddy';
19: protected $email;
20:
21: function __construct($email = '')
22: {
23: $this->email = $email;
24: }
25:
26: function setEmail($email)
27: {
28: $this->email = $email;
29: }
30:
31: function getEmail()
32: {
33: return $this->email;
34: }
35:
36: protected function postFilter()
37: {
38: if(isset($this->email))
39: {
40: $elem = \ManiaLib\Gui\Maniacode\Maniacode::$domDocument->createElement('email');
41: $value = \ManiaLib\Gui\Maniacode\Maniacode::$domDocument->createTextNode($this->email);
42: $elem->appendChild($value);
43: $this->xml->appendChild($elem);
44: }
45: }
46:
47: }
48:
49: ?>