/[openfoncier]/trunk/obj/om_logo.class.php
ViewVC logotype

Contents of /trunk/obj/om_logo.class.php

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:executable

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26