Overview

Packages

  • Auth
  • Config
  • Controller
  • Date
  • Db
  • Feed
    • Abstract
    • Writers
  • File
    • Decorator
  • Form
    • Element
  • Image
  • Log
    • Writer
  • Net
    • Exception
  • None
  • PHP
  • PHPMailer
  • Session
  • Util
  • Validate
    • Validator
  • Zend
    • Registry

Classes

  • Image_Captcha
  • Image_Converter
  • Image_DegradeCouleur
  • Image_Font
  • Image_Gauge
  • Image_Image
  • Image_Traitement

Exceptions

  • Image_Exception
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Pry Framework
 4:  *
 5:  * LICENSE
 6:  *
 7:  * This source file is subject to the new BSD license that is bundled
 8:  * with this package in the file LICENSE.txt.
 9:  * 
10:  * @version $Revision: 276 $
11:  */
12: 
13: /**
14:  *
15:  * @category Pry
16:  * @package Image
17:  * @version 1.0.0 
18:  * @author Olivier ROGER <oroger.fr>
19:  *
20:  */
21: class Image_Exception extends Util_ExceptionHandler
22: {
23:     public function __construct($msg)
24:     {
25:         parent::__construct($msg);
26:     }
27:     
28:     public function getError()
29:     {
30:         header('Content-Type: text/html; charset=utf-8');
31:         $retour = '<div style="background:url('.$this->image.') right no-repeat;background-color: #FBE3E4; color: #8a1f11; border-color: #FBC2C4;">';
32:         $retour.= $this->getTime().' : Impossible d\'afficher l\'image, exception détectée :<br />';
33:         $retour.= '<strong style="color:red">'.$this->getMessage().'</strong><br />';
34:         $retour.= '<strong>Fichier : </strong> '.$this->getFile().'<br />';
35:         $retour.= '<strong>Ligne : </strong>' .$this->getLine().'<br />';
36:         $retour.= '</div>';
37:         return $retour;
38:     }
39: }
40:  ?>
Pry Framework API documentation generated by ApiGen 2.6.1