Custom Libraries
Upcoming SlideShare
Loading in...5
×
 

Custom Libraries

on

  • 816 views

Learn how to add your own custom libraries in ProdigyView

Learn how to add your own custom libraries in ProdigyView

Statistics

Views

Total Views
816
Views on SlideShare
812
Embed Views
4

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 4

http://www.prodigyview.com 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Custom Libraries Custom Libraries Presentation Transcript

  • Custom LibrariesLet your creativity run free when programming
  • OverviewObjectiveLearn how to add your own custom libraries toProdigyView.Requirements Understanding of PVCollection Understanding of PVStaticObjectEstimated Time10 Minutes www.prodigyview.com
  • Follow Along With Code Example1. 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 librariesIf you are familiar with the dynamic objects tutorial, then youremember how we can add variables to any object inProdigyView.
  • 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 2Our second anonymous function will be used for retrievingthe libraries added. 1. Pull your library collection 2. Return the iterator
  • Add The FunctionsNow all we have to do is add the anonymous functions toPVLibraries 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 LibrariesThe method addMyLibrary, which now a part ofPVLibraries, is using the anonymous function we createdbefore. Add you library and its location through thismethod.1. Call Our New Method 2. Set our library name 3. Set the library location www.prodigyview.com
  • Iterate Through Our LibsOur last step in this process is iterating through thelibraries that we added. Our results will show the nameand location of our libraries. Uses the anonymous function www.prodigyview.com
  • ReviewWhat we did in this tutorial is combine a few differentfeatures of ProdigyView, and use them to expand theframework 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 beexpanded as in this example. Keep your imagination openwhen programming.
  • API ReferenceFor a better understanding of the libraries, visit the api byclicking on the link below.PVLibrariesPVStaticObjectPVCollection More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials www.prodigyview.com