Exemple #1
0
 /**
  * Loads the dompdf options from the Kohana config system
  *
  * @return void
  */
 public static function load_default_options()
 {
     // Only if not initialised
     if (self::$_dompdf_initialised) {
         throw new Exception_DOMPDF_Initialised("Could not load DOMPDF options as DOMPDF has already been initialised");
     }
     if (method_exists('Kohana', 'config')) {
         // Handle KO 3.0 - 3.1
         $options = Kohana::config('dompdf.options');
     } else {
         // Handle KO 3.2 style
         $options = Kohana::$config->load('dompdf.options');
     }
     self::$_options = $options;
 }