2
0

ZfAppBootstrap.php 784 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. class ZfAppBootstrap extends Zend_Application_Bootstrap_BootstrapAbstract
  3. {
  4. public $barExecuted = 0;
  5. public $fooExecuted = 0;
  6. public $executedFooResource = false;
  7. public $executedFooBarResource = false;
  8. protected $_arbitraryValue;
  9. public function run()
  10. {
  11. }
  12. protected function _initFoo()
  13. {
  14. $this->fooExecuted++;
  15. }
  16. protected function _initBar()
  17. {
  18. $this->barExecuted++;
  19. }
  20. protected function _initBarbaz()
  21. {
  22. $o = new stdClass();
  23. $o->baz = 'Baz';
  24. return $o;
  25. }
  26. public function setArbitrary($value)
  27. {
  28. $this->_arbitraryValue = $value;
  29. return $this;
  30. }
  31. public function getArbitrary()
  32. {
  33. return $this->_arbitraryValue;
  34. }
  35. }