/** * Add data to trace * @param string $a_data * @return Zoombi_Debug */ public static function &trace($a_data = null) { $i = self::getInstance(); foreach (func_get_args() as $a) { switch (gettype($a)) { default: $i->m_traces[] = (string) $a; break; case 'array': case 'object': $i->m_traces[] = Zoombi_Json::encode($a_data); break; } } return $i; }
public function compile() { return Zoombi_Json::encode(parent::getData()); }