ScriptCase has incorporated the concept of Object Oriented programming, using attributes, resources, methods and libraries. It is possible to create your own business rules in applications, and by using these concepts you can reap huge rewards in terms of better organization and improved development.


The attributes are variables that has the global scope declared in the application. An attribute that can be referenced in all the methods and events of the application.

Attributes configuration Interface. Attributes configuration Interface.

  • Attributes
    • Attribute Name : This field, allows to inform the name of the attribute, after typing the name just click on include. In case you want to update click on the name of the attribute (located on the tight side of the buttons), do the necessary modifications and click on update. In case it’s necessary to delete an attribute, it’s necessary to do same process as the update, but when selecting the attribute, it’s necessary to click on the delete button. The clear button, as the name suggests, it clears the list of all the attributes listed on the right.

Internal libraries

To use the internal libraries just select the correspondent ( Project Libraries for example). This process allows the methods existing in the library, to be visible in all the Events and Methods of the application. See how to manage the libraries by clicking here.

Internal Libraries managment Interface Internal Libraries managment Interface

PHP Methods

Methods are function or procedures declared by the developer, that helps when appling the routines. Using methods in the applications allows to reuse of the your code throughout the application, optimizing the development experience.

Creating a new method

PHP method creation Interface PHP method creation Interface

  • Define a name for the method and click on Create. Like the image below.

Include Method. Include Method.

  • Methods can receive parameters. Include Method.
    • Add the amount of variables: PHP method parameter definition PHP method parameter definition
    • Defining the variables: Defining the variables Defining the variables
      • Name : Type in the name of the variable.
      • Type : Selecting the type of variables: For Value or For Refference.
      • Value Standard : The value of the parameter used to initialize when calling the method.

        Refferences allows to create a second name for a variable that you can use to read and modify the original information of the variable.

    • Editing a parameter: PHP method parameter managment Interface
      • Check all parameters : Checking all the parameters in the parameter list.
      • Uncheck all parameters : Unchecking all the parameters in the parameter list.
      • Edit the selected variable : Edit the selected parameter of the list.
      • Deleting the selected variable : Deletes the selected variable of the list.