SlideShare a Scribd company logo
1 of 6
Download to read offline
Systems Framework


The subject of this presentation is to illustrate the
     objective and advantages of the Object
 Orientated design and central logic of the PHP
     config and helper classes in report and
      billing/commissions web application.
Basic Principle
●   The basic programming logic places all code
    for connecting to the database and/or LDAP
    into each script created via standard PHP db
    functions.
●   Most code uses certain functionality that is
    repeated per script
Improving the logic
    I have designed and created a custom framework
    and set of classes and central config directive to
    improve on:
●   Avoid duplicating code and improve on time
    required to update code
●   Keep sensitive data like database login data away
    from the main scripts
●   Add debug views to any script by simply
    activating this display as required
Structure
●   The structure of the framework consist of the main folder :
    PHP which then uses the folders:
    –   Configs: this contains the configuration file where db connections
        is setup. LDAP connections is setup, Error reporting is setup,
        Email functionality is setup,loading of required classes is defined.
        It also makes use of some PHPLib and PEAR classes/functions.
    –   Classes: the classes folder contains all the bussiness logic
        classes and is activated from the config.php file in Configs folder
    –   Templates: page templates is defined here
    –   Scripts: 3rd party support : like JQuery
Structure – directory view
●   The folder structure therefore looks like this:
    -root -
         – PHP
          –   Configs
          –   Classes
          –   Templates
          –   scripts
Script files
●   Each php file in the main app then simply includes the config file and switches on the desired
    connections to the database and/or LDAP and the classes required by the following (simple
    example) line:
    –   Require “configs.php”;
        $configs = array { DEBUG => 1 //to enable debug output,
                            CLASSES => (“DB”,”Accounts”,”Reporting”) }

●
    This allows one to use an already connected db for example and using the
    db classes then for queries. This makes changes to the db connection easier
    as only the config file included needs to be changed and not every single
    php file in the project(s) that needs to be changed
●
    Classes can also be changed and improved without having to change and
    update every single main php script in the project/application.
●   The debug option makes finding errors in queries easier and locating
    possible errors in classes (calling functions in each class is defined by the
    query debug output on screen)

More Related Content

What's hot

Features: safely deploying your site
Features: safely deploying your siteFeatures: safely deploying your site
Features: safely deploying your siteJoão Ventura
 
Asp 1-mvc introduction
Asp 1-mvc introductionAsp 1-mvc introduction
Asp 1-mvc introductionFajar Baskoro
 
Introduction to the features module
Introduction to the features moduleIntroduction to the features module
Introduction to the features moduleJoão Ventura
 
Presentation2
Presentation2Presentation2
Presentation2JAYAARC
 
5 tips using RES Automation Manager
5 tips using RES Automation Manager5 tips using RES Automation Manager
5 tips using RES Automation Managermarcelvenema
 
JAX-RS Creating RESTFul services
JAX-RS Creating RESTFul servicesJAX-RS Creating RESTFul services
JAX-RS Creating RESTFul servicesLudovic Champenois
 

What's hot (10)

Features: safely deploying your site
Features: safely deploying your siteFeatures: safely deploying your site
Features: safely deploying your site
 
Ra framework 0.1
Ra framework 0.1Ra framework 0.1
Ra framework 0.1
 
Asp 1-mvc introduction
Asp 1-mvc introductionAsp 1-mvc introduction
Asp 1-mvc introduction
 
Introduction to the features module
Introduction to the features moduleIntroduction to the features module
Introduction to the features module
 
Exercise 6
Exercise 6Exercise 6
Exercise 6
 
Presentation2
Presentation2Presentation2
Presentation2
 
Manish@CMC Ltd
Manish@CMC LtdManish@CMC Ltd
Manish@CMC Ltd
 
5 tips using RES Automation Manager
5 tips using RES Automation Manager5 tips using RES Automation Manager
5 tips using RES Automation Manager
 
Word Press
Word PressWord Press
Word Press
 
JAX-RS Creating RESTFul services
JAX-RS Creating RESTFul servicesJAX-RS Creating RESTFul services
JAX-RS Creating RESTFul services
 

Viewers also liked

National rural health mission
National rural health missionNational rural health mission
National rural health missionKartikesh Gupta
 
Symposium 402 : Bees can do it! Can you? An analytical approach to understan...
Symposium 402 :  Bees can do it! Can you? An analytical approach to understan...Symposium 402 :  Bees can do it! Can you? An analytical approach to understan...
Symposium 402 : Bees can do it! Can you? An analytical approach to understan...PMI-Montréal
 
Major stake holders in health care system
Major stake holders in health care systemMajor stake holders in health care system
Major stake holders in health care systemTajinder Saini
 
Alex silva the importance of good governance - corporate governance in mf b...
Alex silva   the importance of good governance - corporate governance in mf b...Alex silva   the importance of good governance - corporate governance in mf b...
Alex silva the importance of good governance - corporate governance in mf b...Daniel Kohan
 
Major stake holder in health care delivery system India
Major stake holder in health care delivery system IndiaMajor stake holder in health care delivery system India
Major stake holder in health care delivery system IndiaMandeep Gill
 
Leadership In Project Management
Leadership In Project ManagementLeadership In Project Management
Leadership In Project Managementhossamweiss
 
Effective Leadership As A Key Factor For Project
Effective Leadership As A Key Factor For ProjectEffective Leadership As A Key Factor For Project
Effective Leadership As A Key Factor For ProjectValdo Camilo
 
Introduction to Health Systems & Health Services Systems
Introduction to Health Systems & Health Services SystemsIntroduction to Health Systems & Health Services Systems
Introduction to Health Systems & Health Services SystemsBorwornsom Leerapan
 
Leadership challenges in project management
Leadership challenges in project managementLeadership challenges in project management
Leadership challenges in project managementalokkushwah07
 
An overview of health care delivery system in
An overview of health care delivery system inAn overview of health care delivery system in
An overview of health care delivery system inDr. Dharmendra Gahwai
 
An Introduction to Health Systems; An Overview of the Philippine Health Care ...
An Introduction to Health Systems; An Overview of the Philippine Health Care ...An Introduction to Health Systems; An Overview of the Philippine Health Care ...
An Introduction to Health Systems; An Overview of the Philippine Health Care ...Paolo Victor Medina
 
Major stakeholders of health care system pwrpnt
Major stakeholders of health care system pwrpntMajor stakeholders of health care system pwrpnt
Major stakeholders of health care system pwrpntDeepthy Philip Thomas
 
Leadership In Project Management
Leadership In Project ManagementLeadership In Project Management
Leadership In Project Managementguest484a666
 
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.IPHIndia
 
Health system functions and structure
Health system functions  and structure Health system functions  and structure
Health system functions and structure Ahmed-Refat Refat
 
Health system elements
Health system elementsHealth system elements
Health system elementsJeff Knezovich
 
Healthcare delivery system in india
Healthcare delivery system in indiaHealthcare delivery system in india
Healthcare delivery system in indiautpal sharma
 
Health care delivery ppt
Health care delivery  pptHealth care delivery  ppt
Health care delivery pptancychacko89
 
Health care delivery system
Health care delivery systemHealth care delivery system
Health care delivery systemNursing Path
 

Viewers also liked (20)

National rural health mission
National rural health missionNational rural health mission
National rural health mission
 
Symposium 402 : Bees can do it! Can you? An analytical approach to understan...
Symposium 402 :  Bees can do it! Can you? An analytical approach to understan...Symposium 402 :  Bees can do it! Can you? An analytical approach to understan...
Symposium 402 : Bees can do it! Can you? An analytical approach to understan...
 
Major stake holders in health care system
Major stake holders in health care systemMajor stake holders in health care system
Major stake holders in health care system
 
Alex silva the importance of good governance - corporate governance in mf b...
Alex silva   the importance of good governance - corporate governance in mf b...Alex silva   the importance of good governance - corporate governance in mf b...
Alex silva the importance of good governance - corporate governance in mf b...
 
Major stake holder in health care delivery system India
Major stake holder in health care delivery system IndiaMajor stake holder in health care delivery system India
Major stake holder in health care delivery system India
 
Leadership In Project Management
Leadership In Project ManagementLeadership In Project Management
Leadership In Project Management
 
Effective Leadership As A Key Factor For Project
Effective Leadership As A Key Factor For ProjectEffective Leadership As A Key Factor For Project
Effective Leadership As A Key Factor For Project
 
Introduction to Health Systems & Health Services Systems
Introduction to Health Systems & Health Services SystemsIntroduction to Health Systems & Health Services Systems
Introduction to Health Systems & Health Services Systems
 
Leadership challenges in project management
Leadership challenges in project managementLeadership challenges in project management
Leadership challenges in project management
 
An overview of health care delivery system in
An overview of health care delivery system inAn overview of health care delivery system in
An overview of health care delivery system in
 
An Introduction to Health Systems; An Overview of the Philippine Health Care ...
An Introduction to Health Systems; An Overview of the Philippine Health Care ...An Introduction to Health Systems; An Overview of the Philippine Health Care ...
An Introduction to Health Systems; An Overview of the Philippine Health Care ...
 
Major stakeholders of health care system pwrpnt
Major stakeholders of health care system pwrpntMajor stakeholders of health care system pwrpnt
Major stakeholders of health care system pwrpnt
 
Leadership In Project Management
Leadership In Project ManagementLeadership In Project Management
Leadership In Project Management
 
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.
Public Health Policies and Governance Issues Health-NRHM-Selva Kumar.S.
 
Health system functions and structure
Health system functions  and structure Health system functions  and structure
Health system functions and structure
 
Health system elements
Health system elementsHealth system elements
Health system elements
 
Healthcare delivery system in india
Healthcare delivery system in indiaHealthcare delivery system in india
Healthcare delivery system in india
 
Health care delivery ppt
Health care delivery  pptHealth care delivery  ppt
Health care delivery ppt
 
Health care delivery system
Health care delivery systemHealth care delivery system
Health care delivery system
 
Health system in india
Health  system in indiaHealth  system in india
Health system in india
 

Similar to PHP Systems Framework Object Oriented Central Classes

Doc manual 3.x
Doc manual 3.xDoc manual 3.x
Doc manual 3.xsetankecos
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015Oro Inc.
 
Drupal 8 meets to symphony
Drupal 8 meets to symphonyDrupal 8 meets to symphony
Drupal 8 meets to symphonyBrahampal Singh
 
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overviewDrupalMumbai
 
Trusted PHP Development Services in the USA
Trusted PHP Development Services in the USATrusted PHP Development Services in the USA
Trusted PHP Development Services in the USAtechnoprofiles
 
9780538745840 ppt ch10
9780538745840 ppt ch109780538745840 ppt ch10
9780538745840 ppt ch10Terry Yoast
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Mack Hardy
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Shahrzad Peyman
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfShaimaaMohamedGalal
 

Similar to PHP Systems Framework Object Oriented Central Classes (20)

Doc manual 3.x
Doc manual 3.xDoc manual 3.x
Doc manual 3.x
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)cakephp UDUYKTHA (1)
cakephp UDUYKTHA (1)
 
Php myadmin
Php myadminPhp myadmin
Php myadmin
 
Drupal 8 meets to symphony
Drupal 8 meets to symphonyDrupal 8 meets to symphony
Drupal 8 meets to symphony
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
 
Introduction to CakePHP
Introduction to CakePHPIntroduction to CakePHP
Introduction to CakePHP
 
Cakephp manual-11
Cakephp manual-11Cakephp manual-11
Cakephp manual-11
 
CodeIgniter & MVC
CodeIgniter & MVCCodeIgniter & MVC
CodeIgniter & MVC
 
sample1
sample1sample1
sample1
 
Trusted PHP Development Services in the USA
Trusted PHP Development Services in the USATrusted PHP Development Services in the USA
Trusted PHP Development Services in the USA
 
9780538745840 ppt ch10
9780538745840 ppt ch109780538745840 ppt ch10
9780538745840 ppt ch10
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
 
Asp folders and web configurations
Asp folders and web configurationsAsp folders and web configurations
Asp folders and web configurations
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
 
Flyr PHP micro-framework
Flyr PHP micro-frameworkFlyr PHP micro-framework
Flyr PHP micro-framework
 
Php.ini
Php.iniPhp.ini
Php.ini
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

PHP Systems Framework Object Oriented Central Classes

  • 1. Systems Framework The subject of this presentation is to illustrate the objective and advantages of the Object Orientated design and central logic of the PHP config and helper classes in report and billing/commissions web application.
  • 2. Basic Principle ● The basic programming logic places all code for connecting to the database and/or LDAP into each script created via standard PHP db functions. ● Most code uses certain functionality that is repeated per script
  • 3. Improving the logic I have designed and created a custom framework and set of classes and central config directive to improve on: ● Avoid duplicating code and improve on time required to update code ● Keep sensitive data like database login data away from the main scripts ● Add debug views to any script by simply activating this display as required
  • 4. Structure ● The structure of the framework consist of the main folder : PHP which then uses the folders: – Configs: this contains the configuration file where db connections is setup. LDAP connections is setup, Error reporting is setup, Email functionality is setup,loading of required classes is defined. It also makes use of some PHPLib and PEAR classes/functions. – Classes: the classes folder contains all the bussiness logic classes and is activated from the config.php file in Configs folder – Templates: page templates is defined here – Scripts: 3rd party support : like JQuery
  • 5. Structure – directory view ● The folder structure therefore looks like this: -root - – PHP – Configs – Classes – Templates – scripts
  • 6. Script files ● Each php file in the main app then simply includes the config file and switches on the desired connections to the database and/or LDAP and the classes required by the following (simple example) line: – Require “configs.php”; $configs = array { DEBUG => 1 //to enable debug output, CLASSES => (“DB”,”Accounts”,”Reporting”) } ● This allows one to use an already connected db for example and using the db classes then for queries. This makes changes to the db connection easier as only the config file included needs to be changed and not every single php file in the project(s) that needs to be changed ● Classes can also be changed and improved without having to change and update every single main php script in the project/application. ● The debug option makes finding errors in queries easier and locating possible errors in classes (calling functions in each class is defined by the query debug output on screen)