Overview

Namespaces

  • None
  • PHP
  • Pry
    • Auth
      • Interfaces
    • Config
    • Controller
    • Date
    • Db
    • Feed
      • Abstracts
      • Writers
    • File
      • Decorator
    • Form
      • Element
    • Image
    • Log
      • Writer
    • Net
      • Exception
    • Session
    • Util
    • Validate
      • Validator
    • View

Classes

  • Captcha
  • Converter
  • DegradeCouleur
  • Font
  • Gauge
  • Image
  • Traitement

Exceptions

  • Exception
  • Overview
  • Namespace
  • 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:  */
11: 
12: namespace Pry\Image;
13: 
14: use Pry\Util\ExceptionHandler;
15: 
16: /**
17:  *
18:  * @category Pry
19:  * @package Image
20:  * @version 1.0.0 
21:  * @author Olivier ROGER <oroger.fr>
22:  *
23:  */
24: class Exception extends ExceptionHandler
25: {
26:     public function __construct($msg)
27:     {
28:         parent::__construct($msg);
29:     }
30:     
31:     public function getError($detail = false)
32:     {
33:         header('Content-Type: text/html; charset=utf-8');
34:         $retour = '<div style="background:url('.$this->image.') right no-repeat;background-color: #FBE3E4; color: #8a1f11; border-color: #FBC2C4;">';
35:         $retour.= $this->getTime().' : Impossible d\'afficher l\'image, exception détectée :<br />';
36:         $retour.= '<strong style="color:red">'.$this->getMessage().'</strong><br />';
37:         $retour.= '<strong>Fichier : </strong> '.$this->getFile().'<br />';
38:         $retour.= '<strong>Ligne : </strong>' .$this->getLine().'<br />';
39:         $retour.= '</div>';
40:         return $retour;
41:     }
42: }
43:  ?>
Pry API documentation generated by ApiGen 2.8.0