Esempio n. 1
0
 /**
  * Convenience wrapper for GROUPEND messages
  * Closes a group block
  *
  * @internal param string $label Label for group (optional)
  * @return void
  */
 public static function groupEnd()
 {
     FireCake::fb(null, null, 'groupEnd');
 }
Esempio n. 2
0
 /**
  * Convenience wrapper for GROUPEND messages 
  * Closes a group block
  *
  * @param string $label Label for group (optional)
  * @access public
  * @return void
  */
 function groupEnd()
 {
     FireCake::fb(null, null, 'groupEnd');
 }
 /**
  * Test defaulting to log if incorrect message type is used
  *
  * @return void
  */
 public function testIncorrectMessageType()
 {
     FireCake::setOptions(array('includeLineNumbers' => false));
     FireCake::fb('Hello World', 'foobared');
     $this->assertEqual($this->firecake->sentHeaders['X-Wf-1-1-1-1'], '30|[{"Type":"LOG"},"Hello World"]|');
 }
Esempio n. 4
0
 /**
  * A more ajax and user friendly way to var_dump.
  * Use instead of pr()
  *
  * @param mixed $var
  * @param bool $useFireCakeOutsideViews
  */
 static function krumo($var, $options = array())
 {
     $options = array('fireCake' => true, 'debug' => true);
     if ($options['debug'] && !Configure::read()) {
         return;
     }
     if ($options['fireCake'] && empty(Sl::getInstance()->view) && class_exists('FireCake')) {
         return FireCake::fb($var);
     }
     // force Pheme to keep the whitespace and line breaks
     echo "<!--{!preserveWhitespace}-->";
     App::import('vendor', 'krumo', array('file' => 'krumo/class.krumo.php'));
     return krumo::dump($var);
 }