Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1308 | Rev 1325 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1308 Rev 1312
Line 242... Line 242...
242
			}
242
			}
243
			$this->donnees[$projet]['images'][$idImg] = $infosImg;
243
			$this->donnees[$projet]['images'][$idImg] = $infosImg;
244
		}
244
		}
245
	}
245
	}
Line 246... Line 246...
246
	
246
	
247
	public static function obtenirUrlImageGrandFormatCel($id, $format = "X3L") {
247
	public static function obtenirUrlImageGrandFormatCel($id, $format = "O") {
248
		$tpl = Config::get('baseUrlImageCelTpl');
248
		$tpl = Config::get('baseUrlImageCelTpl');
249
		return sprintf($tpl, str_pad($id, 9, '0', STR_PAD_LEFT).$format.'.jpg');
249
		return sprintf($tpl, str_pad($id, 9, '0', STR_PAD_LEFT).$format.'.jpg');
Line 250... Line 250...
250
	}
250
	}
251
	
251
	
252
	// XXX: public static pour être injecté dans le squelette d'entete
252
	// XXX: public static pour être injecté dans le squelette d'entete
253
	public static function obtenirTemplateUrlImageGrandFormatOrganes($format = "X3L") {
253
	public static function obtenirTemplateUrlImageGrandFormatOrganes($format = "O") {
Line 254... Line 254...
254
		return $tpl = sprintf(Config::get('baseUrlImageCelTpl').$format.'.jpg', '{id_image}');
254
		return $tpl = sprintf(Config::get('baseUrlImageCelTpl').$format.'.jpg', '{id_image}');
255
	}
255
	}