public static function buildcdrarray($cdrxml) { try { $xmlarr = xml::xmlstrtoarr($cdrxml); } catch (Exception $e) { Kohana::log('error', $e->getMessage()); return; } return arr::flatten($xmlarr); }
/** * Overloading all() to flatten our namespace to allow Requests to work * properly. This could have unintended results. * * @param bool $flatten return the array flattened or as a multi-dim * * @return null */ public static function all($flatten = true) { return $flatten ? arr::flatten(Route::$_routes) : Route::$_routes; }