source: cpc/trunk/project/lib/model/doctrine/Citoyen.class.php @ 1319

Last change on this file since 1319 was 1319, checked in by teymour, 11 years ago

Indexation des commentaires
+ amélioration de la tache d'indexation

File size: 409 bytes
Line 
1<?php
2
3/**
4 * This class has been auto-generated by the Doctrine ORM Framework
5 */
6class Citoyen extends BaseCitoyen
7{
8  public function __toString() {
9    return $this->getLogin();
10  }
11
12  public function isPasswordCorrect($password) {
13    return ($this->password == sha1($password));
14  }
15  public function setPassword($password) {
16    return $this->_set('password', sha1($password));
17  }
18}
Note: See TracBrowser for help on using the repository browser.