Last change
on this file since 1407 was
1407,
checked in by teymour, 11 years ago
|
Encore une correction des photos des parlementaires (même si changement de schema, la suppression du champ photo ne devrait pas avoir d'impact sur les installes locales pour le moment : je fais un mail sinon)
|
File size:
575 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * ParlementairePhoto |
---|
5 | * |
---|
6 | * This class has been auto-generated by the Doctrine ORM Framework |
---|
7 | * |
---|
8 | * @package cpc |
---|
9 | * @subpackage model |
---|
10 | * @author Your name here |
---|
11 | * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ |
---|
12 | */ |
---|
13 | class ParlementairePhoto extends BaseParlementairePhoto |
---|
14 | { |
---|
15 | public function setPhoto($p) { |
---|
16 | return $this->_set('photo', base64_encode($p)); |
---|
17 | } |
---|
18 | public function getPhoto() { |
---|
19 | return base64_decode($this->_get('photo')); |
---|
20 | } |
---|
21 | public function save(Doctrine_Connection $c = null) { |
---|
22 | return parent::save($c); |
---|
23 | } |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.