コード例 #1
0
ファイル: FireCake.php プロジェクト: cc2i/calibrephp
 /**
  * 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');
 }
コード例 #2
0
ファイル: fire_cake.php プロジェクト: TomMaher/umambo
 /**
  * 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"]|');
 }
コード例 #4
0
ファイル: sl.php プロジェクト: sandulungu/StarLight
 /**
  * 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);
 }