Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Entity;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\ORM\Mapping as ORM;
- use Kdyby\Doctrine;
- use Nette\Security\Passwords;
- /**
- * @ORM\Entity
- * @ORM\Table(name="users")
- *
- */
- class User extends Doctrine\Entities\BaseEntity
- {
- const ROLE_ADMIN = 'admin';
- const ROLE_GUEST = 'guest';
- use Doctrine\Entities\Attributes\Identifier;
- public $user;
- /** @ORM\Column(type="string", length=100) */
- protected $password;
- /** @ORM\Column(unique=TRUE, type="string", length=100) */
- protected $email;
- /** @ORM\Column(type="enum", columnDefinition="enum('admin','guest') NOT NULL") */
- protected $role;
- /** @ORM\Column(unique=TRUE, type="string", length=100, nullable=true) */
- protected $username;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $name;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $lastname;
- /** @ORM\Column(type="integer", nullable=true) */
- public $realname_showed;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $avatar;
- /** @ORM\Column(type="integer", nullable=true) */
- public $gender;
- /** @ORM\Column(type="integer", nullable=true) */
- public $gender_showed;
- /** @ORM\Column(type="datetime") */
- public $registered;
- /** @ORM\Column(type="datetime", nullable=true) */
- public $last_login;
- /** @ORM\Column(type="integer", nullable=true) */
- public $activated;
- /** @ORM\Column(type="datetime", nullable=true) */
- public $birthday;
- /** @ORM\Column(type="integer", nullable=true) */
- public $birthday_showed;
- /** @ORM\Column(type="integer", nullable=true) */
- public $age_showed;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $state;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $city;
- /** @ORM\Column(type="integer", nullable=true) */
- public $address_showed;
- /** @ORM\Column(type="string", length=250, nullable=true) */
- public $about_me;
- /** @ORM\Column(type="string", length=64, nullable=true) */
- public $token;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $mb;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $cpu;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $gpu;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $rams;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $monitors;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $keyboard;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $mouse;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $headset;
- /** @ORM\Column(type="string", length=100, nullable=true) */
- public $os;
- /**
- * @ORM\OneToMany(targetEntity="UserYoutubeVideo", mappedBy="user", orphanRemoval=true, cascade={"persist", "remove"})
- */
- public $video;
- /**
- * @ORM\OneToMany(targetEntity="UserImage", mappedBy="user")
- */
- public $image;
- /** @ORM\Column(type="integer", nullable=true) */
- public $images_showed;
- /** @ORM\Column(type="integer", nullable=true) */
- public $videos_showed;
- /** @ORM\Column(type="integer", nullable=true) */
- public $rating;
- /**
- * @ORM\OneToMany(targetEntity="Friend", mappedBy="user", orphanRemoval=true, cascade={"persist", "remove"})
- */
- public $friendUser;
- /**
- * @ORM\OneToMany(targetEntity="Friend", mappedBy="user", orphanRemoval=true, cascade={"persist", "remove"})
- */
- public $friendUserFriend;
- /**
- * @ORM\OneToMany(targetEntity="Guestbook", mappedBy="user", orphanRemoval=true, cascade={"persist", "remove"})
- */
- public $from;
- /**
- * @ORM\OneToMany(targetEntity="Guestbook", mappedBy="user", orphanRemoval=true, cascade={"persist", "remove"})
- */
- public $for;
- /** @ORM\Column(type="string", length=500, nullable=true) */
- public $forum_sign;
- /**
- * @return mixed
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * @param mixed $user
- */
- public function setUser($user)
- {
- $this->user = $user;
- }
- /**
- * @return mixed
- */
- public function getPassword()
- {
- return $this->password;
- }
- /**
- * @param mixed $password
- */
- public function setPassword($password)
- {
- $this->password = $password;
- }
- /**
- * @return mixed
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * @param mixed $email
- */
- public function setEmail($email)
- {
- $this->email = $email;
- }
- /**
- * @return mixed
- */
- public function getRole()
- {
- return $this->role;
- }
- /**
- * @param mixed $role
- */
- public function setRole($role)
- {
- $this->role = $role;
- }
- /**
- * @return mixed
- */
- public function getUsername()
- {
- return $this->username;
- }
- /**
- * @param mixed $username
- */
- public function setUsername($username)
- {
- $this->username = $username;
- }
- /**
- * @return mixed
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @param mixed $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return mixed
- */
- public function getLastname()
- {
- return $this->lastname;
- }
- /**
- * @param mixed $lastname
- */
- public function setLastname($lastname)
- {
- $this->lastname = $lastname;
- }
- /**
- * @return mixed
- */
- public function getRealnameShowed()
- {
- return $this->realname_showed;
- }
- /**
- * @param mixed $realname_showed
- */
- public function setRealnameShowed($realname_showed)
- {
- $this->realname_showed = $realname_showed;
- }
- /**
- * @return mixed
- */
- public function getAvatar()
- {
- return $this->avatar;
- }
- /**
- * @param mixed $avatar
- */
- public function setAvatar($avatar)
- {
- $this->avatar = $avatar;
- }
- /**
- * @return mixed
- */
- public function getGender()
- {
- return $this->gender;
- }
- /**
- * @param mixed $gender
- */
- public function setGender($gender)
- {
- $this->gender = $gender;
- }
- /**
- * @return mixed
- */
- public function getGenderShowed()
- {
- return $this->gender_showed;
- }
- /**
- * @param mixed $gender_showed
- */
- public function setGenderShowed($gender_showed)
- {
- $this->gender_showed = $gender_showed;
- }
- /**
- * @return mixed
- */
- public function getRegistered()
- {
- return $this->registered;
- }
- /**
- * @param mixed $registered
- */
- public function setRegistered($registered)
- {
- $this->registered = $registered;
- }
- /**
- * @return mixed
- */
- public function getLastLogin()
- {
- return $this->last_login;
- }
- /**
- * @param mixed $last_login
- */
- public function setLastLogin($last_login)
- {
- $this->last_login = $last_login;
- }
- /**
- * @return mixed
- */
- public function getActivated()
- {
- return $this->activated;
- }
- /**
- * @param mixed $activated
- */
- public function setActivated($activated)
- {
- $this->activated = $activated;
- }
- /**
- * @return mixed
- */
- public function getBirthday()
- {
- return $this->birthday;
- }
- /**
- * @param mixed $birthday
- */
- public function setBirthday($birthday)
- {
- $this->birthday = $birthday;
- }
- /**
- * @return mixed
- */
- public function getBirthdayShowed()
- {
- return $this->birthday_showed;
- }
- /**
- * @param mixed $birthday_showed
- */
- public function setBirthdayShowed($birthday_showed)
- {
- $this->birthday_showed = $birthday_showed;
- }
- /**
- * @return mixed
- */
- public function getAgeShowed()
- {
- return $this->age_showed;
- }
- /**
- * @param mixed $age_showed
- */
- public function setAgeShowed($age_showed)
- {
- $this->age_showed = $age_showed;
- }
- /**
- * @return mixed
- */
- public function getState()
- {
- return $this->state;
- }
- /**
- * @param mixed $state
- */
- public function setState($state)
- {
- $this->state = $state;
- }
- /**
- * @return mixed
- */
- public function getCity()
- {
- return $this->city;
- }
- /**
- * @param mixed $city
- */
- public function setCity($city)
- {
- $this->city = $city;
- }
- /**
- * @return mixed
- */
- public function getAddressShowed()
- {
- return $this->address_showed;
- }
- /**
- * @param mixed $address_showed
- */
- public function setAddressShowed($address_showed)
- {
- $this->address_showed = $address_showed;
- }
- /**
- * @return mixed
- */
- public function getAboutMe()
- {
- return $this->about_me;
- }
- /**
- * @param mixed $about_me
- */
- public function setAboutMe($about_me)
- {
- $this->about_me = $about_me;
- }
- /**
- * @return mixed
- */
- public function getToken()
- {
- return $this->token;
- }
- /**
- * @param mixed $token
- */
- public function setToken($token)
- {
- $this->token = $token;
- }
- /**
- * @return mixed
- */
- public function getMb()
- {
- return $this->mb;
- }
- /**
- * @param mixed $mb
- */
- public function setMb($mb)
- {
- $this->mb = $mb;
- }
- /**
- * @return mixed
- */
- public function getCpu()
- {
- return $this->cpu;
- }
- /**
- * @param mixed $cpu
- */
- public function setCpu($cpu)
- {
- $this->cpu = $cpu;
- }
- /**
- * @return mixed
- */
- public function getGpu()
- {
- return $this->gpu;
- }
- /**
- * @param mixed $gpu
- */
- public function setGpu($gpu)
- {
- $this->gpu = $gpu;
- }
- /**
- * @return mixed
- */
- public function getRams()
- {
- return $this->rams;
- }
- /**
- * @param mixed $rams
- */
- public function setRams($rams)
- {
- $this->rams = $rams;
- }
- /**
- * @return mixed
- */
- public function getMonitors()
- {
- return $this->monitors;
- }
- /**
- * @param mixed $monitors
- */
- public function setMonitors($monitors)
- {
- $this->monitors = $monitors;
- }
- /**
- * @return mixed
- */
- public function getKeyboard()
- {
- return $this->keyboard;
- }
- /**
- * @param mixed $keyboard
- */
- public function setKeyboard($keyboard)
- {
- $this->keyboard = $keyboard;
- }
- /**
- * @return mixed
- */
- public function getMouse()
- {
- return $this->mouse;
- }
- /**
- * @param mixed $mouse
- */
- public function setMouse($mouse)
- {
- $this->mouse = $mouse;
- }
- /**
- * @return mixed
- */
- public function getHeadset()
- {
- return $this->headset;
- }
- /**
- * @param mixed $headset
- */
- public function setHeadset($headset)
- {
- $this->headset = $headset;
- }
- /**
- * @return mixed
- */
- public function getOs()
- {
- return $this->os;
- }
- /**
- * @param mixed $os
- */
- public function setOs($os)
- {
- $this->os = $os;
- }
- /**
- * @return mixed
- */
- public function getVideo()
- {
- return $this->video;
- }
- /**
- * @param mixed $video
- */
- public function setVideo($video)
- {
- $this->video = $video;
- }
- /**
- * @return mixed
- */
- public function getImage()
- {
- return $this->image;
- }
- /**
- * @param mixed $image
- */
- public function setImage($image)
- {
- $this->image = $image;
- }
- /**
- * @return mixed
- */
- public function getImagesShowed()
- {
- return $this->images_showed;
- }
- /**
- * @param mixed $images_showed
- */
- public function setImagesShowed($images_showed)
- {
- $this->images_showed = $images_showed;
- }
- /**
- * @return mixed
- */
- public function getVideosShowed()
- {
- return $this->videos_showed;
- }
- /**
- * @param mixed $videos_showed
- */
- public function setVideosShowed($videos_showed)
- {
- $this->videos_showed = $videos_showed;
- }
- /**
- * @return mixed
- */
- public function getRating()
- {
- return $this->rating;
- }
- /**
- * @param mixed $rating
- */
- public function setRating($rating)
- {
- $this->rating = $rating;
- }
- /**
- * @return mixed
- */
- public function getFriendUser()
- {
- return $this->friendUser;
- }
- /**
- * @param mixed $friendUser
- */
- public function setFriendUser($friendUser)
- {
- $this->friendUser = $friendUser;
- }
- /**
- * @return mixed
- */
- public function getFriendUserFriend()
- {
- return $this->friendUserFriend;
- }
- /**
- * @param mixed $friendUserFriend
- */
- public function setFriendUserFriend($friendUserFriend)
- {
- $this->friendUserFriend = $friendUserFriend;
- }
- /**
- * @return mixed
- */
- public function getFrom()
- {
- return $this->from;
- }
- /**
- * @param mixed $from
- */
- public function setFrom($from)
- {
- $this->from = $from;
- }
- /**
- * @return mixed
- */
- public function getFor()
- {
- return $this->for;
- }
- /**
- * @param mixed $for
- */
- public function setFor($for)
- {
- $this->for = $for;
- }
- /**
- * @return mixed
- */
- public function getForumSign()
- {
- return $this->forum_sign;
- }
- /**
- * @param mixed $forum_sign
- */
- public function setForumSign($forum_sign)
- {
- $this->forum_sign = $forum_sign;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement