Plugin : Item filter

Author:Rex.Rainbow

Download

Properties

Domain

  • The root location of the Firebase data.

Sub domain

  • Sub domain for this function.

Actions

Domain

Action:Set domain

  • Set domain ref.
    • Domain ( string ) : The root location of the Firebase data.
    • Sub domain ( string ) : Sub domain for this function.

Remove

Action:Remove

  • Remove item from server.
    • ID ( string ) : ID of item.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Request

Action:Get random items

  • Get random items.
    • Count ( number ) : Count of picked item.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Action:Get items by condition

  • Get items by condition.
    • Expression ( string ) : Expression of conditions.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Request - Signle query

Action:Get items by "In Range"

  • Get items by single condition-In Range with count limit.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : Start value.
    • Value ( number or string ) : End value.
    • Limit ( Combo ) : Limit types.
      • Options : ["Limit to first","Limit to last"]
    • Limit ( number ) : Limit count.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Action:Get items by comparison

  • Get items by single condition with count limit.
    • Key ( string ) : The name of the key.
    • Comparison ( Combo ) : Comparison types.
      • Options : ["Equal to","Greater than or Equal to","Less than or Equal to"]
    • Value ( number or string ) : Compared value.
    • Limit ( Combo ) : Limit types.
      • Options : ["Limit to first","Limit to last"]
    • Limit ( number ) : Limit count.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Set item

Action:Set value

  • Set value into current item.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to set

Action:Update

  • Update current item into server.
    • ID ( string ) : ID of item.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Action:Set boolean value

  • Set boolean value into current item.
    • Key ( string ) : The name of the key.
    • Boolean ( Combo ) : Boolean value.
      • Options : ["False","True"]

Action:Remove key

  • Remove key in firebase server.
    • Key ( string ) : The name of the key.

Expressions

Condition

Expression:Equal

  • Do Equal to codition to pick matched itemID. Add 3rd and more parameters to pick more matched itemIDs.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to compare

Expression:GreaterEqual

  • Do Greater than or Equal to codition to pick matched itemID.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to compare

Expression:LessEqual

  • Do Less than or Equal to codition to pick matched itemID.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to compare

Expression:InRange

  • Do In Range codition to pick matched itemID.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The start value to compare
    • Value ( number or string ) : The end value to compare

Expression:Greater

  • Do Greater than codition to pick matched itemID.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to compare

Expression:Less

  • Do Less than codition to pick matched itemID.
    • Key ( string ) : The name of the key.
    • Value ( number or string ) : The value to compare

ItemID

Expression:CurItemID

  • Get current itemID in a For Each loop, or in save/remove callback.

JSON

Expression:ItemIDToJSON

  • Get itemID in JSON string.

Set operation

Expression:OR

  • Do OR operation of these expressions.
    • Expression A ( string ) : Expression A of set operation.
    • Expression B ( string ) : Expression A of set operation.

Expression:AND

  • Do AND operation of these expressions.
    • Expression A ( string ) : Expression A of set operation.
    • Expression B ( string ) : Expression A of set operation.

Expression:SUB

  • Do SUB operation of these expressions.
    • Expression A ( string ) : Expression A of set operation.
    • Expression B ( string ) : Expression A of set operation.

Conditions

Remove

Condition:On remove complete

  • Triggered when remove current item complete.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Condition:On remove error

  • Triggered when remove current item error.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Request

Condition:On request complete

  • Triggered when request current item complete.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Condition:For each itemID

  • Repeat the event for each itemID of request result.

Save

Condition:On save complete

  • Triggered when save current item complete.
    • Tag ( string ) : A tag, to distinguish between different save requests.

Condition:On save error

  • Triggered when save current item error.
    • Tag ( string ) : A tag, to distinguish between different save requests.