/**
 * Zikula_View function to generate a backtrace for debugging purposes.
 *
 * Available parameters:
 *   - fulltrace        include parts of stack trace after the call to the error handler -
 *                        by default these are excluded as they're not relevant.
 *
 * @param array       $params All attributes passed to this function from the template.
 * @param Zikula_View $view   Reference to the Zikula_View object.
 *
 * @return string The URL.
 */
function smarty_function_debug_backtrace($params, Zikula_View $view)
{
    if (!isset($params['fulltrace'])) {
        return prayer(array_slice(debug_backtrace(), 8));
    } else {
        return prayer(debug_backtrace());
    }
}
Ejemplo n.º 2
0
 /**
  * Print HTML-formatted debug output for the object data.
  *
  * @param boolean $print Whether to print or to return the object data debug output.
  *
  * @return string|void Debug output.
  */
 public function prayerData($print = true)
 {
     if ($print) {
         return prayer($this->_objData);
     }
     return _prayer($this->_objData);
 }
Ejemplo n.º 3
0
 /**
  * Print HTML-formatted debug output for the object data.
  *
  * @param boolean $print  Whether to print or to return the object data debug output.
  * @param integer $offset Object row offset.
  *
  * @return string|void Debug output.
  */
 public function prayerData($print = true, $offset = null)
 {
     if ($print) {
         if ($offset !== null) {
             return prayer($this->_objData[$offset]);
         }
         prayer($this->_objData);
     }
     if ($offset !== null) {
         return _prayer($this->_objData[$offset]);
     }
     return _prayer($this->_objData);
 }