]>
git.agnieray.net Git - galette.git/blob - galette/lib/Galette/Core/PrintLogo.php
bd3b339f89fb082dee28b31aa26844381b8ea4a4
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Logo handling - for printing
10 * Copyright © 2009-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2009-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @version SVN: $Id: print_logo.class.php 546 2009-03-05 06:09:00Z trashy $
34 * @link http://galette.tuxfamily.org
35 * @since Available since 0.7dev - 2009-09-20
38 namespace Galette\Core
;
41 * This class stores a logo for printing that could be different
42 * from the default one.
43 * If no print logo is found, we take the default Logo instead.
48 * @author Johan Cwiklinski <johan@x-tnd.be>
49 * @copyright 2009-2014 The Galette Team
50 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
51 * @link http://galette.tuxfamily.org
52 * @since Available since 0.7dev - 2009-09-20
54 class PrintLogo
extends Logo
56 protected $id = 'custom_print_logo';
57 //database wants a member id (integer), not a string.
58 //Will be used to query the correct id
59 protected $db_id = 999999;
62 * Gets the default picture to show, anyways
64 * @see Logo::getDefaultPicture()
68 protected function getDefaultPicture()
70 //if we are here, we want to serve default logo
72 $this->file_path
= $pic->getPath();
73 $this->format
= $pic->getFormat();
74 $this->mime
= $pic->getMime();
75 //anyways, we have no custom print logo
76 $this->custom
= false;