private static function map($action, $params) { CMap::$error = array(); switch ($action) { default: $result = call_user_func(array('CMap', $action), $params); } self::$result = $result; }