phpQuery::debug PHP Method

debug() public static method

public static debug ( $text )
    public static function debug($text)
    {
        if (self::$debug) {
            print var_dump($text);
        }
    }

Usage Example

Example #1
0
 /**
  * Enter description here...
  *
  * @param phpQueryObject $self
  */
 public static function script($self, $arg1)
 {
     $params = func_get_args();
     $params = array_slice($params, 2);
     $return = null;
     $config = self::$config;
     if (phpQueryPlugin_Scripts::$scriptMethods[$arg1]) {
         phpQuery::callbackRun(phpQueryPlugin_Scripts::$scriptMethods[$arg1], array($self, $params, &$return, $config));
     } elseif ($arg1 != '__config' && file_exists(dirname(__FILE__) . "/Scripts/{$arg1}.php")) {
         phpQuery::debug("Loading script '{$arg1}'");
         require dirname(__FILE__) . "/Scripts/{$arg1}.php";
     } else {
         phpQuery::debug("Requested script '{$arg1}' doesn't exist");
     }
     return $return ? $return : $self;
 }
All Usage Examples Of phpQuery::debug