FortunesAsyncTrait.php 352 B

123456789101112131415161718
  1. <?php
  2. namespace controllers\utils;
  3. use Ubiquity\orm\core\prepared\DAOPreparedQueryAll;
  4. trait FortunesAsyncTrait {
  5. protected static $pDao;
  6. public static function warmup() {
  7. self::$pDao = new DAOPreparedQueryAll('models\\Fortune');
  8. }
  9. public function initialize() {
  10. \Ubiquity\utils\http\UResponse::setContentType('text/html', 'utf-8');
  11. }
  12. }