Commands

Commands is Building block of BasisCore language and Present in XML notation format mixed with HTML. All basisCore commands inherit from CommandBase Class. For list of BasisCore built-in commands in Built-in Commands

Simple BasisCore print command
1
2
3
4
5
<basis  core="print" datamembername="db.user-info">
   <face>
      hello world!
   </face>
</basis>

Some BasisCore Command is void element like Cookie Command, for Example:

BasisCore cookie void command
1
<basis core="cookie" name="rkey" value="[##db.user-info.rkey##]" max-age="2021" />

Tip

For more information about XML visit wikipedia and for learn it, visit w3schools. For more information about HTML syntax visit w3.org.

Remarks

All command internally use a instance of Context for perform processing. For example some command like DbSource add data source to this object that server with other command. Some command like Print Command use this Context object for retrieve needed data source for perform rendering process. Other type of commands like Group Command or Export Command change pipeline of generating result.

Commands Type

In BasisCore we have four kind of commands:

Renderable Commands

Commands that generate html tags as output to generate result like Print Command. For more information see Renderable Commands.

Source Commands

Commands that fetch data from DBMS with data Providers like DbSource. For more information see Source Commands.

Collection Commands

Commands that present mechanism form manage collection of commands like Group Command. For more information see Collection Commands.

Management Commands

Commands that present mechanism for manage process of generate response like Cookie Command. For more information see Management Commands.

Basic Concepts

There are some concept and mechanism that you may be know when writing web page with BasisCode Commands:

[## Notation

Syntax for inject data to text at run time. For more information see [## Notation.

Expression

Logic for writing boolean expression for evaluated in runtime. For more information see Expression.

Data Binding

Bind data source to command as input for process and generate result as output. For more information see Data Binding.