Introduction

Account

Web System Common Tools

Web System Applications Development

 Web System Database Web System PostgreSQL Tables Web System Manage fields Web System Manage constraints Web System Manage indexes Web System Manage triggers Web System SQL Tab Web System Single-row editing Web System Multirow editing in table mode Web System Import Web System Export Web System Table transfer - or Store Web System Composite Types Web System SQL Queries Web System Workflow Web System Dataset Design Web System Query Expressions Web System Where Conditions Web System Group by Expressions Web System Having Condition Web System Windows Clause Web System Order by Expressions Web System SQL Tab Web System Test a Query Web System Views Web System Functions Web System Datasources Web System Charts Web System Main type selection Web System Subtype selection Web System Datasource selection Web System General settings Web System Axis settings Web System Background settings Web System Margin settings Web System Color settings Web System Mark settings Web System QR Barcodes Web System Saving Web System Reports Web System Template Editor GYRE Web System Sections Web System Toolbar Web System Basic properties Web System Data formatting Web System Text Web System Data Web System Macro Web System Geometry Web System Line Web System Bezier curve Web System Image Web System Chart Web System Arrangement Web System Clipboard Web System History Web System Zoom Web System Import/export Web System Delete Web System Report Generator Web System Report Schedule Web Site Builder Web System Content Management System (CMS) Web System Edit site Web System Themes and pages Web System Create and edit theme Web System Edit page Web System Web Form Builder / Content Editor (GYRE) Web System Toolbar Web System Events Web System Basic properties Web System Text field Web System Button Web System List Web System Combobox Web System Label Web System Checkbox Web System Radiobutton Web System Filler Web System Upload file Web System Additional tools (Gears) Web System Image Web System Flash video Web System Arrangement Web System Clipboard Web System History Web System Zoom Web System Import/export Web System Delete Web System Operations with objects Web System DNS Manager Web System SEO tools Web System App Analyzer Web System Reindex Web System Publish Web System Access Log Web System Checkout settings Web System PHP Scripts development (Actions) Web System Source Editor Web System API functions Web System Custom Scripts development (JS, CSS, XML, etc...) Web System Gears Web System SaaS Solution Manager

Web System Cook book

Web System Deprecated

Web System Source Editor

To create an action, select Action Editor in Tools menu, or select PHP Action from File Manager menu.

After that you'll see the following screen:

Creating action.

First step, you must enter the name, description (optional), then select the type and folder. By default, the type of all created custom actions  is procedural (procedure). Procedural actions can be invoked from applications and Web sites, for this use two javascript functions:
executeAction ('action_name');
executeActionSendAll ('action_name' [, options]);

Example of invoking an action from GYRE editor:

Execute Action
 
Also, the action can be invoked from a different action, with the help of an API-function:
executeAction ('action_name' [, options]);
 
The second type of user actions is the library functions. Actions of this type are needed to create sets of functions and classes that can be subsequently used in the procedural actions. All the variables, functions and classes defined in the library are visible in a procedural action to which the library is connected.
Libraries can not be invoked from applications or sites.

The second step is editing actions.

After action is created it's automatically added to SVN-repository. SVN is an open source software versioning and revision control system. More about SVN here.

Action is opened in a special source code editor with syntax highlighting. It is possible to open several files/actions at the same time. Each file/action opens in its own tab.

Everytime you press Save button, the difference between previous version and current version is stored in SVN. You can view this difference by selecting two actions in History and press Diff button. It shows what has been added and what has been removed. More about diff-format here.

You can modify the name and description of the action and set a schedule for its automatic run by pressing Properties button. The schedule indicates the number of hours between the runs and the total number of runs (0 - unlimited). For example, if you want the action to run every 12 hours unlimited number of times, in the Run every field enter "12"  and in the Run count field enter "0".

Also you can attach another action (library-action) and use its functions. To do it press Libraries button.

To view API-functions with descriptions and usage information, click API button.