ソースを参照

tmx: Update doku

Update doku for t_is_request_route() config function.
Stefan Mititelu 9 年 前
コミット
af0cc3c6a9
1 ファイル変更25 行追加0 行削除
  1. 25 0
      modules/tmx/doc/tmx_admin.xml

+ 25 - 0
modules/tmx/doc/tmx_admin.xml

@@ -298,6 +298,31 @@ route[abc] {
     if(t_is_reply_route()) { ... }
 }
 ...
+</programlisting>
+		</example>
+	</section>
+	<section id="tmx.f.t_is_request_route">
+		<title>
+		<function moreinfo="none">t_is_request_route()</function>
+		</title>
+		<para>
+		Returns true if the top-executed route block is request_route.
+		</para>
+		<para>
+		This function can be used from ANY_ROUTE .
+		</para>
+		<example>
+		<title><function>t_is_request_route</function> usage</title>
+		<programlisting format="linespecific">
+...
+request_route[xyz] {
+    route(abc);
+}
+
+route[abc] {
+    if(t_is_request_route()) { ... }
+}
+...
 </programlisting>
 		</example>
 	</section>