Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

TestBusiness.php 483B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/27/15
  6. * Time: 5:01 PM
  7. */
  8. require_once("../vendor/autoload.php");
  9. require_once("TestDataAccess.php");
  10. function abort($code, $reason)
  11. {
  12. echo "ABORTED: $code, $reason\n";
  13. exit;
  14. }
  15. class TestsBusiness extends \Luticate\Utils\LuBusiness
  16. {
  17. protected static function getDataAccess()
  18. {
  19. return new TestsDataAccess();
  20. }
  21. }
  22. var_dump(TestsBusiness::getById(42));
  23. var_dump(TestsBusiness::getById(4242));