jablonka.czprosek.czf

freenet-router

Subversion Repositories:
[/] [trunk/] [freenet-router/] [var/] [www/] [freenet-router/] [Framework/] [Libraries/] [Security/] [Model/] [MySQL/] [User.php] - Blame information for rev 2

 

Line No. Rev Author Line
12simandl<?php
2 
3namespace Phem\Libraries\Security\Model\MySQL;
4 
5use Doctrine\ORM\Mapping\JoinColumn;
6use Doctrine\ORM\Mapping\JoinTable;
7use Doctrine\ORM\Mapping\ManyToMany;
8use Phem\Libraries\Security\Model\Common\User as CommonUser;
9 
10/**
11 * @Entity @Table(name="admin_user")
12 */
13class User extends CommonUser
14{
15 
16 /** @Id @Column(type="integer") @GeneratedValue */
17 protected $id;
18 
19 /** @Column(type="string") */
20 protected $username;
21 
22 /** @Column(type="string") */
23 protected $name;
24 
25 /** @Column(type="string") */
26 protected $surname;
27 
28 /** @Column(type="string") */
29 protected $password;
30 
31 /** @Column(type="string") */
32 protected $email;
33 
34 /** @Column(type="blob") */
35 protected $photo;
36 
37 /**
38 * @ManyToMany(targetEntity="Group")
39 * @JoinTable(name="admin_membership",
40 * joinColumns={@JoinColumn(name="user", referencedColumnName="id")},
41 * inverseJoinColumns={@JoinColumn(name="groupId", referencedColumnName="id")}
42 * )
43 */
44 protected $groups;
45 
46 public function getGroups()
47 {
48 return $this->groups;
49 }
50 
51 public function setGroups($groups)
52 {
53 $this->groups = $groups;
54 }
55 
56 public function getPhoto()
57 {
58 return $this->photo;
59 }
60 
61 public function setPhoto($photo)
62 {
63 $this->photo = $photo;
64 }
65 
66 public function getId()
67 {
68 return $this->id;
69 }
70 
71 public function setId($id)
72 {
73 $this->id = $id;
74 }
75 
76 public function getUsername()
77 {
78 return $this->username;
79 }
80 
81 public function setUsername($username)
82 {
83 $this->username = $username;
84 }
85 
86 public function getName()
87 {
88 return $this->name;
89 }
90 
91 public function setName($name)
92 {
93 $this->name = $name;
94 }
95 
96 public function getSurname()
97 {
98 return $this->surname;
99 }
100 
101 public function setSurname($surname)
102 {
103 $this->surname = $surname;
104 }
105 
106 public function getPassword()
107 {
108 return $this->password;
109 }
110 
111 public function setPassword($password)
112 {
113 $this->password = $password;
114 }
115 
116 public function getEmail()
117 {
118 return $this->email;
119 }
120 
121 public function setEmail($email)
122 {
123 $this->email = $email;
124 }
125 
126}

Powered by WebSVN 2.2.1