SlideShare a Scribd company logo
1 of 13
Building A Plug-in
Overview
Objective
Learn how to build a plugin-in ProdigyView.
Requirements
 Installed version of ProdigyView with a database
 Understanding of the overview of plug-ins vs applications
 Understanding of how to install a plug-in
 Understanding of the DEFINES
Estimated Time
12 minutes


                       www.prodigyview.com
Follow Along With Code
                 Example
1. Download a copy of the example code at
  www.prodigyview.com/source.
2. Install the system in an environment you feel comfortable testing in.
3. Proceed to plugins/HelloWorldPlugin.php




                            www.prodigyview.com
Plugin Structure

The structure of a plug-in is very easy to build because a plug-in
does not have a structure. When building a plug-in, all you
need to do is put contents in the entry file specified in the
installation. Plug-ins can be

 Procedural Code
 Objects/Class
 An add-on to an object/class
 HTML
HelloWorldPlugin File
Looking into the HelloWorldPlugin file, we have the following:
Procedural Function

The function in the file is a straight procedural function. Once
included, it can be called anymore in your code.
Extending Validation
The second part of the plugin is creating an anonymous
function and adding a custom rule to the PVValidator class. If
you are unsure of how this work, reference the tutorial on
Custom Validation.
Switch Files
Now to see the plug-in in action, first make sure it is
installed. Read the tutorial on installing a plug-in if you are
are unsure how. Then we can head over to our example
file.
Plugin Example
Looking in our plug-in file, we have this.
PVBootstrap::bootSystem
Calling the bootSystem method will call another method in the
bootstrap called loadPlugins that will include that plug-ins that
are enabled.

We also do not want to initialize the validator or it will overwrite
our rule.
Calling the Procedural
               Function
First thing we can test is called the procedural function.
And to do that, all we have to do is call it.

Remember that because this function is procedural, it is a
callable from anymore in the code. Be careful when
making many procedural functions in plug-ins because
name conflicts can occur.
Validator Test
  Our next test is see if our rule was added in the validator.
  Pass some values in and see if it validates.




That’s all there is to plug-ins. Very easy to install and use.
API Reference
For a better understanding of plug-ins, visit the api by
clicking on the link below.

PVPlugins




                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

More Related Content

Viewers also liked (7)

Pneumatic structures-modular construction technology
Pneumatic structures-modular construction technologyPneumatic structures-modular construction technology
Pneumatic structures-modular construction technology
 
Pneumatic structures
Pneumatic structuresPneumatic structures
Pneumatic structures
 
Urban metabolism and sustainability: introductory lecture
Urban metabolism and sustainability: introductory lectureUrban metabolism and sustainability: introductory lecture
Urban metabolism and sustainability: introductory lecture
 
Renzo Piano and some of his works (ENGLISH)
Renzo Piano and some of his works (ENGLISH)Renzo Piano and some of his works (ENGLISH)
Renzo Piano and some of his works (ENGLISH)
 
Renzo piano ppt
Renzo piano pptRenzo piano ppt
Renzo piano ppt
 
Internal Combustion Engines - Construction and Working (All you need to know,...
Internal Combustion Engines - Construction and Working (All you need to know,...Internal Combustion Engines - Construction and Working (All you need to know,...
Internal Combustion Engines - Construction and Working (All you need to know,...
 
5. construction equipment Building Construction
5. construction equipment Building Construction5. construction equipment Building Construction
5. construction equipment Building Construction
 

More from ProdigyView

More from ProdigyView (20)

Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Building An Application
Building An ApplicationBuilding An Application
Building An Application
 
Installing Applications
Installing ApplicationsInstalling Applications
Installing Applications
 
Video Content Management
Video Content ManagementVideo Content Management
Video Content Management
 
Audio Content Management
Audio Content ManagementAudio Content Management
Audio Content Management
 
File Content Management
File Content ManagementFile Content Management
File Content Management
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Building a Plugin-in

  • 2. Overview Objective Learn how to build a plugin-in ProdigyView. Requirements  Installed version of ProdigyView with a database  Understanding of the overview of plug-ins vs applications  Understanding of how to install a plug-in  Understanding of the DEFINES Estimated Time 12 minutes www.prodigyview.com
  • 3. Follow Along With Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to plugins/HelloWorldPlugin.php www.prodigyview.com
  • 4. Plugin Structure The structure of a plug-in is very easy to build because a plug-in does not have a structure. When building a plug-in, all you need to do is put contents in the entry file specified in the installation. Plug-ins can be  Procedural Code  Objects/Class  An add-on to an object/class  HTML
  • 5. HelloWorldPlugin File Looking into the HelloWorldPlugin file, we have the following:
  • 6. Procedural Function The function in the file is a straight procedural function. Once included, it can be called anymore in your code.
  • 7. Extending Validation The second part of the plugin is creating an anonymous function and adding a custom rule to the PVValidator class. If you are unsure of how this work, reference the tutorial on Custom Validation.
  • 8. Switch Files Now to see the plug-in in action, first make sure it is installed. Read the tutorial on installing a plug-in if you are are unsure how. Then we can head over to our example file.
  • 9. Plugin Example Looking in our plug-in file, we have this.
  • 10. PVBootstrap::bootSystem Calling the bootSystem method will call another method in the bootstrap called loadPlugins that will include that plug-ins that are enabled. We also do not want to initialize the validator or it will overwrite our rule.
  • 11. Calling the Procedural Function First thing we can test is called the procedural function. And to do that, all we have to do is call it. Remember that because this function is procedural, it is a callable from anymore in the code. Be careful when making many procedural functions in plug-ins because name conflicts can occur.
  • 12. Validator Test Our next test is see if our rule was added in the validator. Pass some values in and see if it validates. That’s all there is to plug-ins. Very easy to install and use.
  • 13. API Reference For a better understanding of plug-ins, visit the api by clicking on the link below. PVPlugins More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com