2using System.Collections.Generic;
88 object Obj =
Arguments[0].AssociatedObjectValue;
91 if (!(A is
string[] Pages))
96 else if (Obj is
IUser User)
108 return new string[0];
112 private static KeyValuePair<string, string>[] GetQueryFilter(
IElement Argument,
ScriptNode Node)
117 List<KeyValuePair<string, string>> Result =
new List<KeyValuePair<string, string>>();
119 foreach (KeyValuePair<string, IElement> P
in Obj)
120 Result.Add(
new KeyValuePair<string, string>(P.Key, P.Value.AssociatedObjectValue?.ToString()));
122 return Result.ToArray();
The ClientEvents class allows applications to push information asynchronously to web clients connecte...
static string[] GetTabIDsForLocation(string Location)
Gets the Tab IDs of all tabs that display a particular resource.
static string[] GetTabIDsForLocations(params string[] Locations)
Gets the Tab IDs of all tabs that display a set of resources.
static string[] GetTabIDsForUser(object User)
Gets the Tab IDs of all tabs that a specific user views.
static string[] GetTabIDs()
Gets all open Tab IDs.
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
GetTabIDs(ScriptNode Page, ScriptNode QueryFilter, int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
GetTabIDs(ScriptNode Page, int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
static string[] GetTabs(IElement[] Arguments, ScriptNode Node)
Gets TabIDs based in restrictions in input arguments.
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string[] DefaultArgumentNames
Default Argument names
GetTabIDs(int Start, int Length, Expression Expression)
Gets an array of Tab IDs (as strings) of currently open pages, given certain conditions.
override string FunctionName
Name of the function
Script runtime exception.
Class managing a script expression.
static object ConvertTo(IElement Value, Type DesiredType, ScriptNode Node)
Tries to conevert an element value to a desired type.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes0
Zero parameters.
static readonly ArgumentType[] argumentTypes1Normal
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.
Basic interface for a user.