SlideShare a Scribd company logo
Tools
Overivew
Objective

Learn how to use the toolkit in ProdigyView.

Requirements

 Installed version of ProdigyView
Estimated Time

5 minutes




                    http://www.prodigyview.com
Follow Along With A 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/util/Tools.php




                   http://www.prodigyview.com
What Are Tools?
PVTools consist of methods that serve a purpose but do
not relate directly to one class. The tools we will be
covering are:

 Generating a random string
 Truncating text
 Forming a uri
 Searching an array
Random Generator
There have been numerous instances where a random string of
characters is needed to be created. Examples range from unique
ids to coupon redemption codes.
PVTools::generateRandomString will set both the length of the
random string and the characters that make up that string.

   Length of string                     Characters in string




     Random result
Truncate Text
Truncate was designed for blog sites to easy truncate
their preview text and add trailing makers. The method
will also strip html tags in the string.

1. String to truncate     2. Length of to truncate string to




                              3. Trailing text


4, Result
Current URL
Retrieving the url is one of the request that is needed
often. Using this method can retrieve the current url with
all the necessary information such as the port number.




                     Example Result

         http://www.example.com/a/path/to/follow
Current Base URL
Current base url will return the beginning part of the url
that contains the protocol, subdomain and the domain.




                     Example Result

                 http://www.example.com
Url with Parameters
Forming a perfect query string in a uri can be
accomplished with formUriParameters. The result will be
a query string of parameters that can be attached to any
url.

  1. Parameters to form the url




                                  2. Pass the parameters from the method
URL Path
Using the same variables, we can form a path that can be
placed on the back of a url.
Search Array Recursively
     The last function in the tools class we are going to review is the
     array search. This function can find a value in an array at any
     depth in the array. The value(s) to find can either be passed in
     an array or string.
1. Values to find                              2. Array to search
Review
1. PVTools::generateRandomString() creates a random
   generic in which the length and characters can be specified.

2. PVTools::truncateText() can shorting a string of text, add
   trailing text, and remove html tags.

3. PVTools::getCurrentUrl() will retrieve the whole current url
   while PVTools::getCurrentBaseUrl() will only get the
   protocol, host name and server name.

4. PVTools::formUriParameters() and
   PVTools::formUriPath() are used for creating query
   strings.

5. PVTools::arraySearchRecursive() searches an array for a
   value.
More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials




                     www.prodigyview.com

More Related Content

DOCX
Dhiraj Gurnan Twitter prototype with calculator
PPTX
Servlet session 6
PPT
Servlet client request
PDF
Send Email In Asp.Net
DOCX
Unit8 java
PPT
Euro presentation - business strategy
PDF
Issue71 cash-flows
PDF
Dhiraj Gurnan Twitter prototype with calculator
Servlet session 6
Servlet client request
Send Email In Asp.Net
Unit8 java
Euro presentation - business strategy
Issue71 cash-flows

Similar to Tools ProdigyView (20)

KEY
Spl Not A Bridge Too Far phpNW09
PDF
Array String - Web Programming
PPTX
Module 2 Javascript. Advanced concepts of javascript
PDF
www.webre24h.com - [O`reilly] javascript cookbook - [powers]
PPTX
Stuff They Never Taught You At Website School
PDF
The Advantages And Disadvantages Of Client-Based State...
PPTX
effective internet research.pptx
PDF
Searching tricks and tips
PPTX
Arrays syntax and it's functions in php.pptx
PDF
Javascript foundations: variables and types
KEY
jQuery Plugin Creation
PDF
Aardvark shalini
PPTX
Introductiontogooglehacking part1
PDF
Custom YUI Widgets
PDF
Introduction To Javascript
PDF
The Beauty And The Beast Php N W09
PDF
Nt1310 Final Exam Questions And Answers
PDF
The Ring programming language version 1.2 book - Part 33 of 84
PDF
Zend Certification Preparation Tutorial
PDF
The Ring programming language version 1.6 book - Part 47 of 189
Spl Not A Bridge Too Far phpNW09
Array String - Web Programming
Module 2 Javascript. Advanced concepts of javascript
www.webre24h.com - [O`reilly] javascript cookbook - [powers]
Stuff They Never Taught You At Website School
The Advantages And Disadvantages Of Client-Based State...
effective internet research.pptx
Searching tricks and tips
Arrays syntax and it's functions in php.pptx
Javascript foundations: variables and types
jQuery Plugin Creation
Aardvark shalini
Introductiontogooglehacking part1
Custom YUI Widgets
Introduction To Javascript
The Beauty And The Beast Php N W09
Nt1310 Final Exam Questions And Answers
The Ring programming language version 1.2 book - Part 33 of 84
Zend Certification Preparation Tutorial
The Ring programming language version 1.6 book - Part 47 of 189
Ad

More from ProdigyView (20)

PPTX
Installing Plug-ins
PPTX
Building An Application
PPTX
Installing Applications
PPTX
Video Content Management
PPTX
Audio Content Management
PPTX
File Content Management
PPTX
Email Configuration
PPTX
HTML5 Tags and Elements Tutorial
PPTX
HTML Forms Tutorial
PPTX
Html Tags Tutorial
PPTX
Video Conversion PHP
PPTX
Sending Email Basics PHP
PPTX
Custom Validation PHP
PPTX
Basic File Cache Tutorial - PHP
PPTX
Understanding Web Cache
PPTX
Javascript And CSS Libraries
PPTX
PHP Libraries
PPTX
SQL Prepared Statements Tutorial
PPTX
Database Basics
PPTX
Implementing the Adapter Design Pattern
Installing Plug-ins
Building An Application
Installing Applications
Video Content Management
Audio Content Management
File Content Management
Email Configuration
HTML5 Tags and Elements Tutorial
HTML Forms Tutorial
Html Tags Tutorial
Video Conversion PHP
Sending Email Basics PHP
Custom Validation PHP
Basic File Cache Tutorial - PHP
Understanding Web Cache
Javascript And CSS Libraries
PHP Libraries
SQL Prepared Statements Tutorial
Database Basics
Implementing the Adapter Design Pattern
Ad

Recently uploaded (20)

PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Approach and Philosophy of On baking technology
PPTX
Tartificialntelligence_presentation.pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Encapsulation_ Review paper, used for researhc scholars
SOPHOS-XG Firewall Administrator PPT.pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
cloud_computing_Infrastucture_as_cloud_p
NewMind AI Weekly Chronicles - August'25-Week II
Approach and Philosophy of On baking technology
Tartificialntelligence_presentation.pptx
Hindi spoken digit analysis for native and non-native speakers
Programs and apps: productivity, graphics, security and other tools
Accuracy of neural networks in brain wave diagnosis of schizophrenia
1 - Historical Antecedents, Social Consideration.pdf
DP Operators-handbook-extract for the Mautical Institute
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Enhancing emotion recognition model for a student engagement use case through...
A comparative analysis of optical character recognition models for extracting...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 5: Probability Theory and Statistics
Encapsulation_ Review paper, used for researhc scholars

Tools ProdigyView

  • 2. Overivew Objective Learn how to use the toolkit in ProdigyView. Requirements  Installed version of ProdigyView Estimated Time 5 minutes http://www.prodigyview.com
  • 3. Follow Along With A 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/util/Tools.php http://www.prodigyview.com
  • 4. What Are Tools? PVTools consist of methods that serve a purpose but do not relate directly to one class. The tools we will be covering are:  Generating a random string  Truncating text  Forming a uri  Searching an array
  • 5. Random Generator There have been numerous instances where a random string of characters is needed to be created. Examples range from unique ids to coupon redemption codes. PVTools::generateRandomString will set both the length of the random string and the characters that make up that string. Length of string Characters in string Random result
  • 6. Truncate Text Truncate was designed for blog sites to easy truncate their preview text and add trailing makers. The method will also strip html tags in the string. 1. String to truncate 2. Length of to truncate string to 3. Trailing text 4, Result
  • 7. Current URL Retrieving the url is one of the request that is needed often. Using this method can retrieve the current url with all the necessary information such as the port number. Example Result http://www.example.com/a/path/to/follow
  • 8. Current Base URL Current base url will return the beginning part of the url that contains the protocol, subdomain and the domain. Example Result http://www.example.com
  • 9. Url with Parameters Forming a perfect query string in a uri can be accomplished with formUriParameters. The result will be a query string of parameters that can be attached to any url. 1. Parameters to form the url 2. Pass the parameters from the method
  • 10. URL Path Using the same variables, we can form a path that can be placed on the back of a url.
  • 11. Search Array Recursively The last function in the tools class we are going to review is the array search. This function can find a value in an array at any depth in the array. The value(s) to find can either be passed in an array or string. 1. Values to find 2. Array to search
  • 12. Review 1. PVTools::generateRandomString() creates a random generic in which the length and characters can be specified. 2. PVTools::truncateText() can shorting a string of text, add trailing text, and remove html tags. 3. PVTools::getCurrentUrl() will retrieve the whole current url while PVTools::getCurrentBaseUrl() will only get the protocol, host name and server name. 4. PVTools::formUriParameters() and PVTools::formUriPath() are used for creating query strings. 5. PVTools::arraySearchRecursive() searches an array for a value.
  • 13. More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com