O'Reilly logo

Sams Teach Yourself PHP in 24 Hours, Third Edition by Matt Zandstra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The RequestHelper and DataStore Classes

The RequestHelper class acts like a notice board for our application. Different objects leave messages on it that others might find useful. This is a useful solution to the problem of sharing information between applications and tiers because we allow information to move between objects that might otherwise have no knowledge of one another. Listing 24.2 shows our RequestHelper class.

Listing 24.2. The RequestHelper Class
 1: <? 2: // controller/RequestHelper.php 3: // qframe license: http://resources.corrosive.co.uk/pkg/qframe/license.txt 4: 5: require 'command/DataStore.php'; 6: 7: class RequestHelper { 8: private $params = array (); 9: private $commandArray = array (); 10: private $datastore; 11: 12: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required