SlideShare a Scribd company logo
1 of 11
Custom Libraries




Let your creativity run free when programming
Overview
Objective
Learn how to add your own custom libraries to
ProdigyView.
Requirements
 Understanding of PVCollection
 Understanding of PVStaticObject
Estimated Time
10 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 examples/system/Custom_Libraries.php
Create A Collection
 First thing we need to do is create a collection. This
 collection is where we will store our libraries




If you are familiar with the dynamic objects tutorial, then you
remember how we can add variables to any object in
ProdigyView.
Anonymous Functions 1
     In our next step, we need to create an anonymous
     function that will add the library to our collection. Our
     custom libraries are going to have a name and a location.


1. Closure accepts the name and location as arguments
                                                2. Pull the custom library object
                                                from PVLibraries




 3. Add the name and location to the         4. Add the collection back in
 collection
Anonymous Function 2
Our second anonymous function will be used for retrieving
the libraries added.


 1. Pull your library collection




                                      2. Return the iterator
Add The Functions
Now all we have to do is add the anonymous functions to
PVLibraries and we can begin to use our custom libraries.



 1. Set the name of method in PVLibraries




                               2. Associate it with an anonymous function
Add Our Libraries
The method addMyLibrary, which now a part of
PVLibraries, is using the anonymous function we created
before. Add you library and its location through this
method.

1. Call Our New Method              2. Set our library name




                                  3. Set the library location
                         www.prodigyview.com
Iterate Through Our Libs
Our last step in this process is iterating through the
libraries that we added. Our results will show the name
and location of our libraries.

          Uses the anonymous function




                       www.prodigyview.com
Review
What we did in this tutorial is combine a few different
features of ProdigyView, and use them to expand the
framework to fit our needs.
 PVLibraries extends PVStaticObject
 PVStaticObject has the ability to create new variables
  and methods
 PVCollection stores a list of data which can be iterated
  too.
Almost every object in ProdigyView has the ability to be
expanded as in this example. Keep your imagination open
when programming.
API Reference
For a better understanding of the libraries, visit the api by
clicking on the link below.

PVLibraries

PVStaticObject

PVCollection
                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

More Related Content

More from ProdigyView

More from ProdigyView (19)

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
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design Pattern
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHP
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search Query
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration File
 
Learning PHP Basics Part 2
Learning PHP Basics Part 2Learning PHP Basics Part 2
Learning PHP Basics Part 2
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Custom Libraries

  • 1. Custom Libraries Let your creativity run free when programming
  • 2. Overview Objective Learn how to add your own custom libraries to ProdigyView. Requirements  Understanding of PVCollection  Understanding of PVStaticObject Estimated Time 10 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 examples/system/Custom_Libraries.php
  • 4. Create A Collection First thing we need to do is create a collection. This collection is where we will store our libraries If you are familiar with the dynamic objects tutorial, then you remember how we can add variables to any object in ProdigyView.
  • 5. Anonymous Functions 1 In our next step, we need to create an anonymous function that will add the library to our collection. Our custom libraries are going to have a name and a location. 1. Closure accepts the name and location as arguments 2. Pull the custom library object from PVLibraries 3. Add the name and location to the 4. Add the collection back in collection
  • 6. Anonymous Function 2 Our second anonymous function will be used for retrieving the libraries added. 1. Pull your library collection 2. Return the iterator
  • 7. Add The Functions Now all we have to do is add the anonymous functions to PVLibraries and we can begin to use our custom libraries. 1. Set the name of method in PVLibraries 2. Associate it with an anonymous function
  • 8. Add Our Libraries The method addMyLibrary, which now a part of PVLibraries, is using the anonymous function we created before. Add you library and its location through this method. 1. Call Our New Method 2. Set our library name 3. Set the library location www.prodigyview.com
  • 9. Iterate Through Our Libs Our last step in this process is iterating through the libraries that we added. Our results will show the name and location of our libraries. Uses the anonymous function www.prodigyview.com
  • 10. Review What we did in this tutorial is combine a few different features of ProdigyView, and use them to expand the framework to fit our needs.  PVLibraries extends PVStaticObject  PVStaticObject has the ability to create new variables and methods  PVCollection stores a list of data which can be iterated too. Almost every object in ProdigyView has the ability to be expanded as in this example. Keep your imagination open when programming.
  • 11. API Reference For a better understanding of the libraries, visit the api by clicking on the link below. PVLibraries PVStaticObject PVCollection More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com