Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Tools ProdigyView


Published on

Learn how to use the miscellaneous tools in ProdigyView.

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Tools ProdigyView

  1. 1. Tools
  2. 2. OverivewObjectiveLearn how to use the toolkit in ProdigyView.Requirements Installed version of ProdigyViewEstimated Time5 minutes
  3. 3. Follow Along With A Code Example1. Download a copy of the example code at Install the system in an environment you feel comfortable testing in.3. Proceed to examples/util/Tools.php
  4. 4. What Are Tools?PVTools consist of methods that serve a purpose but donot relate directly to one class. The tools we will becovering are: Generating a random string Truncating text Forming a uri Searching an array
  5. 5. Random GeneratorThere have been numerous instances where a random string ofcharacters is needed to be created. Examples range from uniqueids to coupon redemption codes.PVTools::generateRandomString will set both the length of therandom string and the characters that make up that string. Length of string Characters in string Random result
  6. 6. Truncate TextTruncate was designed for blog sites to easy truncatetheir preview text and add trailing makers. The methodwill also strip html tags in the string.1. String to truncate 2. Length of to truncate string to 3. Trailing text4, Result
  7. 7. Current URLRetrieving the url is one of the request that is neededoften. Using this method can retrieve the current url withall the necessary information such as the port number. Example Result
  8. 8. Current Base URLCurrent base url will return the beginning part of the urlthat contains the protocol, subdomain and the domain. Example Result
  9. 9. Url with ParametersForming a perfect query string in a uri can beaccomplished with formUriParameters. The result will bea query string of parameters that can be attached to anyurl. 1. Parameters to form the url 2. Pass the parameters from the method
  10. 10. URL PathUsing the same variables, we can form a path that can beplaced on the back of a url.
  11. 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. 12. Review1. 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. 13. More TutorialsFor more tutorials, please visit: