2 /* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class Syj_Model_User extends Syj_Model_Generic
13 public function setId($id) {
14 $this->_id = (int) $id;
18 public function getId() {
22 public function setPassword($password) {
23 $this->_password = (string) $password;
27 public function getPassword() {
28 return $this->_password;
31 public function setPseudo($pseudo) {
32 $this->_pseudo = (string) $pseudo;
36 public function getPseudo() {
37 return $this->_pseudo;
40 public function setEmail($email) {
41 $this->_email = (string) $email;
45 public function getEmail() {
49 public function setLang($lang) {
50 $this->_lang = (string) $lang;
54 public function getLang() {
58 public function notifyPendings() {
59 $pendingMapper = new Syj_Model_PendingMapper();
60 $pendings = $pendingMapper->fetchForUser($this);
61 foreach ($pendings as $pending) {