2 /* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class Syj_Model_User extends Syj_Model_Generic
12 protected $_creation_addr;
14 public function setId($id) {
15 $this->_id = (int) $id;
19 public function getId() {
23 public function setPassword($password) {
24 $this->_password = (string) $password;
28 public function getPassword() {
29 return $this->_password;
32 public function setPseudo($pseudo) {
33 $this->_pseudo = (string) $pseudo;
37 public function getPseudo() {
38 return $this->_pseudo;
41 public function setEmail($email) {
42 $this->_email = (string) $email;
46 public function getEmail() {
50 public function setLang($lang) {
51 $this->_lang = (string) $lang;
55 public function getLang() {
59 public function setCreationAddr($creation_addr) {
60 $this->_creation_addr = (string) $creation_addr;
64 public function getCreationAddr() {
65 return $this->_creation_addr;
68 public function notifyPendings() {
69 $pendingMapper = new Syj_Model_PendingMapper();
70 $pendings = $pendingMapper->fetchForUser($this);
71 foreach ($pendings as $pending) {