Event refers to an application instance. When a distinct HTTP request is made to application, it is accompanied by an value of Event ID or Event Name. In the OSF, an Event is uniquely identified by Event ID (available as
$APP->ID within the application), or by Event Name (available as
$APP->IDN within the application). The later is usually employed for beautifying URL, and also for tagging event's
ID for readability during development.
An event can be defined for a Controller on the OSF IDE. You can add an event with the following information:
$APP->IDN: This is any string of alphanumeric characters without any white space or special characters, but can have dashes or underscores. Event Name must be unique for an application. Event ID is automatically assigned to an event upon addition.
Administratoris selected by default and cannot be modified.
$iMyVariable == 'N'
Delight_Formclass (an OSF Library Class) to validate and sanitize form data at the server side. For example, if we have two text-box values like Username and Password that we want to validate for and sanitise the input, we write the array as
"txtUsername" => array("validate" => 1, "validation_type" => "required", "reg_exp" => "", "error_message" => "This field is required", "sanitize" => 1, "sanitize_type" => "safe"),"txtPassword" => array("validate" => 1, "validation_type" => "required", "reg_exp" => "", "error_message" => "This field is required", "sanitize" => 1, "sanitize_type" => "safe")
$oForm = new Delight_Form($_POST, $APP->FORMRULES); $aForm = iterator_to_array($oForm);
$aFormcarries validated and sanitized posted form data, which can be used within the application.
TITLE, HEADERTEXT, BREADCRUMBare defined here along with any other View Page Variables that are defined in sections specified.
An event can be made active or inactive on the OSF IDE. The list of the events can be ordered for display (used for readability purpose on the OSF IDE only).
Updated on Aug 20, 2016
The techReview is an online magazine by Batoi and publishes articles on current trends in technologies across different industry verticals and areas of research. The objective of the online magazine to provide an insight into cutting-edge technologies in their evolution from labs to market.