UserStatistics methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 13: | Line 13: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[LoginToString (UserStatistics function)|LoginToString]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Zeros=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> - | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[LoginToString (UserStatistics function)|LoginToString]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Zeros=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="Boolean">NamesToLower=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | <span class="squareb">[</span><span class="literal" title="Boolean">NamesToLower=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%userStatistics</span><span class="literal"> =</span> <span class="literal">%(UserStatistics):[[New (UserStatistics constructor)|New]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%userStatistics</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(UserStatistics)</span><span class="squareb">]</span><span class="literal">:[[New (UserStatistics constructor)|New]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[Rate (UserStatistics function)|Rate]]</span><span class="literal">(</span> <span class="term" title="UserStatistics">ustatOld</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[Rate (UserStatistics function)|Rate]]</span><span class="literal">(</span> <span class="term" title="UserStatistics">ustatOld</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[RatePerSecond (UserStatistics function)|RatePerSecond]]</span><span class="literal">(</span> <span class="term" title="UserStatistics">ustatOld</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">userStatistics</span><span class="literal">:[[RatePerSecond (UserStatistics function)|RatePerSecond]]</span><span class="literal">(</span> <span class="term" title="UserStatistics">ustatOld</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="literal">)</span></p> |
Revision as of 19:44, 1 November 2011
The syntax for each of the UserStatistics class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of UserStatistics methods.
%outUserStatistics = userStatistics:Copy
%outUserStatistics = userStatistics:DeepCopy
%number = userStatistics:Difference( ustatOld, string)
%string = userStatistics:DifferenceToString( ustatOld, [Zeros= boolean], - [NamesToLower= boolean])
%doc = userStatistics:DifferenceToXmlDoc( ustatOld, [Zeros= boolean], - [AttributeValues= boolean], - [AttributeNames= boolean], - [NamesToLower= boolean])
%string = userStatistics:LoginToString[( [Zeros= boolean], - [NamesToLower= boolean])]
%userStatistics = [%(UserStatistics)]:New
%number = userStatistics:Rate( ustatOld, string)
%number = userStatistics:RatePerSecond( ustatOld, string)
%string = userStatistics:RequestToString[( [Zeros= boolean], - [NamesToLower= boolean])]
%number = userStatistics:RequestValue( string)
%string = userStatistics:ToString[( [Zeros= boolean], [NamesToLower= boolean])]
%doc = userStatistics:ToXmlDoc[( [Zeros= boolean], - [AttributeValues= boolean], - [AttributeNames= boolean], - [NamesToLower= boolean])]
%number = userStatistics:Value( string)