doc/TaskJuggler/RTFReportLink.html in taskjuggler-0.0.8 vs doc/TaskJuggler/RTFReportLink.html in taskjuggler-0.0.9

- old
+ new

@@ -131,10 +131,12 @@ <li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li> <li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li> + <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li> + <li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li> <li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li> <li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li> @@ -209,10 +211,12 @@ <li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li> <li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li> + <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li> + <li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li> <li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li> <li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li> @@ -241,10 +245,12 @@ <li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li> <li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li> + <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li> + <li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li> <li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li> <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> @@ -521,10 +527,12 @@ <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> + <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li> + <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> <li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li> @@ -547,12 +555,10 @@ <li><a href="../RuntimeConfig.html">RuntimeConfig</a></li> <li><a href="../String.html">String</a></li> - <li><a href="../StringIO.html">StringIO</a></li> - </ul> <div id="no-class-search-results" style="display: none;">No matching classes.</div> </div> @@ -602,17 +608,17 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 24</span> -24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>) -25: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">project</span> -26: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">project</span>.<span class="ruby-identifier">messageHandler</span>, <span class="ruby-value str">'reportlink'</span>, <span class="ruby-identifier">sourceFileInfo</span>) -27: <span class="ruby-ivar">@blockFunction</span> = <span class="ruby-keyword kw">false</span> -28: <span class="ruby-ivar">@query</span> = <span class="ruby-keyword kw">nil</span> -29: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 25</span> +25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>) +26: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">project</span> +27: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">project</span>.<span class="ruby-identifier">messageHandler</span>, <span class="ruby-value str">'reportlink'</span>, <span class="ruby-identifier">sourceFileInfo</span>) +28: <span class="ruby-ivar">@blockFunction</span> = <span class="ruby-keyword kw">false</span> +29: <span class="ruby-ivar">@query</span> = <span class="ruby-keyword kw">nil</span> +30: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -647,42 +653,42 @@ <div class="method-source-code" id="to-html-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 37</span> -37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">args</span>) -38: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">id</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'id'</span>]).<span class="ruby-identifier">nil?</span> -39: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_id'</span>, -40: <span class="ruby-value str">&quot;Argument 'id' missing to specify the report to be used.&quot;</span>) -41: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> -42: <span class="ruby-keyword kw">end</span> -43: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">report</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">report</span>(<span class="ruby-identifier">id</span>)) -44: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_unknown_id'</span>, <span class="ruby-node">&quot;Unknown report #{id}&quot;</span>) -45: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> -46: <span class="ruby-keyword kw">end</span> -47: -48: <span class="ruby-comment cmt"># The URL for interactive reports is different than for static reports.</span> -49: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">report</span>.<span class="ruby-identifier">interactive?</span> -50: <span class="ruby-comment cmt"># The project and report ID must be provided as query.</span> -51: <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;taskjuggler?project=#{@project['projectid']};&quot;</span> <span class="ruby-operator">+</span> -52: <span class="ruby-node">&quot;report=#{report.fullId}&quot;</span> -53: -54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>] -55: <span class="ruby-identifier">qEx</span> = <span class="ruby-constant">SimpleQueryExpander</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>], <span class="ruby-ivar">@query</span>, -56: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">messageHandler</span>, -57: <span class="ruby-ivar">@sourceFileInfo</span>) -58: <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;;attributes=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">URLParameter</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-identifier">qEx</span>.<span class="ruby-identifier">expand</span>) -59: <span class="ruby-keyword kw">end</span> -60: <span class="ruby-keyword kw">else</span> -61: <span class="ruby-comment cmt"># The report name just gets a '.html' extension.</span> -62: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.html&quot;</span> -63: <span class="ruby-keyword kw">end</span> -64: <span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>) -65: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span>) -66: <span class="ruby-identifier">a</span> -67: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 38</span> +38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">args</span>) +39: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">id</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'id'</span>]).<span class="ruby-identifier">nil?</span> +40: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_id'</span>, +41: <span class="ruby-value str">&quot;Argument 'id' missing to specify the report to be used.&quot;</span>) +42: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> +43: <span class="ruby-keyword kw">end</span> +44: <span class="ruby-keyword kw">unless</span> (<span class="ruby-identifier">report</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">report</span>(<span class="ruby-identifier">id</span>)) +45: <span class="ruby-identifier">error</span>(<span class="ruby-value str">'rtp_report_unknown_id'</span>, <span class="ruby-node">&quot;Unknown report #{id}&quot;</span>) +46: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> +47: <span class="ruby-keyword kw">end</span> +48: +49: <span class="ruby-comment cmt"># The URL for interactive reports is different than for static reports.</span> +50: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">report</span>.<span class="ruby-identifier">interactive?</span> +51: <span class="ruby-comment cmt"># The project and report ID must be provided as query.</span> +52: <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;taskjuggler?project=#{@project['projectid']};&quot;</span> <span class="ruby-operator">+</span> +53: <span class="ruby-node">&quot;report=#{report.fullId}&quot;</span> +54: +55: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>] +56: <span class="ruby-identifier">qEx</span> = <span class="ruby-constant">SimpleQueryExpander</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value str">'attributes'</span>], <span class="ruby-ivar">@query</span>, +57: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">messageHandler</span>, +58: <span class="ruby-ivar">@sourceFileInfo</span>) +59: <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;;attributes=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">URLParameter</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-identifier">qEx</span>.<span class="ruby-identifier">expand</span>) +60: <span class="ruby-keyword kw">end</span> +61: <span class="ruby-keyword kw">else</span> +62: <span class="ruby-comment cmt"># The report name just gets a '.html' extension.</span> +63: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.html&quot;</span> +64: <span class="ruby-keyword kw">end</span> +65: <span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>) +66: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">report</span>.<span class="ruby-identifier">name</span>) +67: <span class="ruby-identifier">a</span> +68: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -711,14 +717,14 @@ <div class="method-source-code" id="to-s-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 32</span> -32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">args</span>) -33: <span class="ruby-value str">''</span> -34: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 33</span> +33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">args</span>) +34: <span class="ruby-value str">''</span> +35: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -747,13 +753,13 @@ <div class="method-source-code" id="to-tagged-source"> <pre> - <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 70</span> -70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tagged</span>(<span class="ruby-identifier">args</span>) -71: <span class="ruby-keyword kw">nil</span> -72: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/RTFReportLink.rb, line 71</span> +71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_tagged</span>(<span class="ruby-identifier">args</span>) +72: <span class="ruby-keyword kw">nil</span> +73: <span class="ruby-keyword kw">end</span></pre> </div> </div>