/[openfoncier]/branches/3.34.2/obj/om_logo.class.php
ViewVC logotype

Annotation of /branches/3.34.2/obj/om_logo.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5288 - (hide annotations)
Tue Nov 29 08:51:18 2016 UTC (8 years, 2 months ago) by softime
File size: 3809 byte(s)
* Branche pour la 3.34.2

1 mbroquet 3730 <?php
2     /**
3 fmichon 4479 * OM_LOGO - Surcharge du core
4 mbroquet 3730 *
5 fmichon 4479 * @package openads
6     * @version SVN : $Id$
7 mbroquet 3730 */
8    
9     require_once "../core/obj/om_logo.class.php";
10    
11     class om_logo extends om_logo_core {
12 fmichon 4479
13     /**
14     * Constructeur.
15     */
16     function __construct($id, &$dnu1 = null, $dnu2 = null) {
17     $this->constructeur($id);
18     }
19    
20 mbroquet 3730 var $metadata = array(
21     "fichier" => array(
22     "filename" => "getFichierFilename",
23     "dossier" => "getDossier",
24     "dossier_version" => "getDossierVersion",
25     "numDemandeAutor" => "getNumDemandeAutor",
26     "anneemoisDemandeAutor" => "getAnneemoisDemandeAutor",
27     "typeInstruction" => "getTypeInstruction",
28     "statutAutorisation" => "getStatutAutorisation",
29     "typeAutorisation" => "getTypeAutorisation",
30     "dateEvenementDocument" => "getDateEvenementDocument",
31     "groupeInstruction" => 'getGroupeInstruction',
32     "title" => 'getTitle',
33     ),
34     );
35    
36     /**
37     * Création du nom de fichier
38     * @return string numéro de dossier d'instruction
39     */
40     protected function getFichierFilename() {
41     // Récupération de l'uid temporaire
42     $uid = explode("|", $this->valF["fichier"]);
43     // Récupération de l'extension
44     $userfile_extn = substr(
45     $this->f->storage->getFilename_temporary($uid[1]),
46     strrpos(
47     $this->f->storage->getFilename_temporary($uid[1]),
48     '.'
49     )
50     );
51     return "om_logo_".$this->valF[$this->clePrimaire].$userfile_extn;
52     }
53    
54     // {{{
55     // Méthodes de récupération des métadonnées document
56     /**
57     * Récupération du numéro de dossier d'instruction à ajouter aux métadonnées
58     * @return [type] [description]
59     */
60     protected function getDossier() {
61     return '';
62     }
63     /**
64     * Récupération la version du dossier d'instruction à ajouter aux métadonnées
65     * @return int Version
66     */
67     protected function getDossierVersion() {
68     return '';
69     }
70     /**
71     * Récupération du numéro de dossier d'autorisation à ajouter aux métadonnées
72     * @return [type] [description]
73     */
74     protected function getNumDemandeAutor() {
75     return '';
76     }
77     /**
78     * Récupération de la date de demande initiale du dossier à ajouter aux métadonnées
79     * @return [type] [description]
80     */
81     protected function getAnneemoisDemandeAutor() {
82     return '';
83     }
84     /**
85     * Récupération du type de dossier d'instruction à ajouter aux métadonnées
86     * @return [type] [description]
87     */
88     protected function getTypeInstruction() {
89     return '';
90     }
91     /**
92     * Récupération du statut du dossier d'autorisation à ajouter aux métadonnées
93     * @return [type] [description]
94     */
95     protected function getStatutAutorisation() {
96     return '';
97     }
98     /**
99     * Récupération du type de dossier d'autorisation à ajouter aux métadonnées
100     * @return [type] [description]
101     */
102     protected function getTypeAutorisation() {
103     return '';
104     }
105     /**
106     * Récupération de la date d'ajout de document à ajouter aux métadonnées
107     * @return [type] [description]
108     */
109     protected function getDateEvenementDocument() {
110     return date("Y-m-d");
111     }
112     /**
113     * Récupération du groupe d'instruction à ajouter aux métadonnées
114     * @return string Groupe d'instruction
115     */
116     protected function getGroupeInstruction() {
117     return 'ADS';
118     }
119     /**
120     * Récupération du libellé du type du document à ajouter aux métadonnées
121     * @return string Groupe d'instruction
122     */
123     protected function getTitle() {
124     return 'Logo';
125     }
126     // Fin des méthodes de récupération des métadonnées
127     // }}}
128    
129     }
130    
131     ?>

Properties

Name Value
svn:executable

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26