org.silex.core.Filter

This class is used to filter SILEX accessors.  It is a singleton pattern.

Summary
org.silex.core.FilterThis class is used to filter SILEX accessors.
Variables
silex_ptrReference to silex main Api object (org.silex.core.Api).
Functions
FilterConstructor.
filterExisttest if a filter exists
execCall the method corresponding to the desired filter.
urlencodeURLencode the string @example <<urlencode silex.rootUrl>> returns the urlencoded version of the url of the server
urlencode2double URLencode the string @example <<urlencode silex.rootUrl>> returns the 2x urlencoded version of the url of the server

Variables

silex_ptr

private var silex_ptr: org.silex.core.Api

Reference to silex main Api object (org.silex.core.Api).

Functions

Filter

function Filter(api: org.silex.core.Api)

Constructor.

Parameters

param api reference to silex main Api object (org.silex.core.Api)

filterExist

function filterExist(filter_name_str: String):Boolean

test if a filter exists

Parameters

param filter_name_str

exec

function exec(filter_name_str: String,
value_to_filter, 
parameters_array: Array,
initial_source_mc: Object)

Call the method corresponding to the desired filter.

Parameters

filter_name_strname of the filter
value_to_filtervalue which has to be filtered
parameters_arrayoptionnal parameters
initial_source_mcoptionnal source object

Returns

null if an error occured or the filter value

urlencode

function urlencode(value_to_filter: String):String

URLencode the string @example <<urlencode silex.rootUrl>> returns the urlencoded version of the url of the server

urlencode2

function urlencode2(value_to_filter: String):String

double URLencode the string @example <<urlencode silex.rootUrl>> returns the 2x urlencoded version of the url of the server

private var silex_ptr: org.silex.core.Api
Reference to silex main Api object (org.silex.core.Api).
function Filter(api: org.silex.core.Api)
Constructor.
function filterExist(filter_name_str: String):Boolean
test if a filter exists
function exec(filter_name_str: String,
value_to_filter, 
parameters_array: Array,
initial_source_mc: Object)
Call the method corresponding to the desired filter.
function urlencode(value_to_filter: String):String
URLencode the string @example <<urlencode silex.rootUrl>> returns the urlencoded version of the url of the server
function urlencode2(value_to_filter: String):String
double URLencode the string @example <<urlencode silex.rootUrl>> returns the 2x urlencoded version of the url of the server