Jasmine Wiki |
|
|
Navigation Wiki HomeInstalling Framework Configuring jasmine.php Database Module MySQL Mysqlix ODBC MSSQL Database Objects Datagrid Datasource Repeater SQLQuery Files Module File FileSystem FTP Attachment ExcelFile Graphics Module Color Image Graph Miscellaneous Classes: NumbWordter Poll Shield XMLParser Functions: General Functions HTML Functions Validation Functions TrackThisPage
|
Jasmine Framework in PHP - Wiki IntroductionJasmine is a modular open source web application framework written and developed in PHP. What is a Framework? Almost every php based webapplication needs some code that can be reused effectively. Also that code needs to have some common functionalities, such as database access, functions and so on that can be generally used. Such functionalities constitute a Framework, which is needed to develop the project quickly. Using a framework, the programmer can concentrate on the logic, rather than the code. Concept of Jasmine Framework Jasmine can be considered as a framework, but not a MVC (Model-View-Controller) framework. Jasmine also proposes a file structure that can used along with the framework. Downloading Jasmine Beta version of Jasmine can be downloaded from http://jasmine.krishnasrikanth.com. There are two types of downloads available in zip format. - Jasmine Core - base code library - Jasmine Bundle - library + sample application frame to start off application development. Using the framework The framework has different modules (set of classes) that are controlled by a centrally accessible file - jasmine.php. Including this file in your PHP scripts will automatically include those modules. The modules which are not needed can be commented in this file itself. To include the framework on the whole, you need to just include jasmine.php file in your projects. If you wish, you can include individual modules by specifying the module path. But understanding class dependancies is recommended. Class dependancies (All depandant classes are already included in the package.) Though each class is designed to be independent, some of the classes are derived from others. The following are cases where classes are inherited. 1. mysql, odbc and mssql classes are derived from database class. 2. graph class is derived from image class. The image class inturn uses color class. For these kind of dependancies, the base class(es) must be included in order to use the derived class(es). About the wiki The usage of the script is only included in this wiki and not in the scripts. For those interested in studying the biology of Jasmine, comments have been included in the code where ever they are needed. This wiki contains following sections 1. Database connectors 2. Database objects 3. General Functions 4. HTML Functions 5. FTP functions 6. Graphics module Variable Naming Jasmine uses camel style naming all over, i.e, starting from the second word, the first letter will be capitalized. e.g. $myVariableName, $rowCount, etc. Classes are named starting with capital letters and follow camel style. e.g MyClass. Array Indexing Jasmine uses arrays in some of its classes and their index start from 0. About the Programmer This framework is developed by Manda Krishna Srikanth [http://www.krishnasrikanth.com]. NOTE: THIS WIKI IS STILL UNDER DEVELOPMENT |
(c) 2008 Jasmine Framework. A Creation by Krishna Srikanth. |
|