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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/26/15
  6. * Time: 2:53 PM
  7. */
  8. use Luticate\Generator\LuGenerator;
  9. require_once('../vendor/autoload.php');
  10. Dotenv::load("..");
  11. $gen = new LuGenerator();
  12. echo "\n\nDEFAULT\n\n";
  13. $gen->run();
  14. $gen->setConfig(array("dbo" =>
  15. array(
  16. "namespace" => 'Luticate\Package\DBO',
  17. "folder" => 'generated/Package/DBO'
  18. ),
  19. "models" =>
  20. array(
  21. "namespace" => 'Luticate\Package\DataAccess\Models',
  22. "folder" => 'generated/Package/DataAccess/Models'
  23. ),
  24. "sp" =>
  25. array(
  26. "namespace" => 'Luticate\Package\DataAccess\SP',
  27. "folder" => 'generated/Package/DataAccess/SP'
  28. ),
  29. "dataaccess" =>
  30. array(
  31. "namespace" => 'Luticate\Package\DataAccess',
  32. "folder" => 'generated/Package/DataAccess'
  33. ),
  34. "business" =>
  35. array(
  36. "namespace" => 'Luticate\Package\Business',
  37. "folder" => 'generated/Package/Business'
  38. ),
  39. "controller" =>
  40. array(
  41. "namespace" => 'Luticate\Package\Controller',
  42. "folder" => 'generated/Package/Controller'
  43. ),
  44. "mode" => 0777,
  45. "ignore" => array(
  46. "tables" => array(
  47. "/^luticate_users_groups$/"
  48. ),
  49. "sp" => array(
  50. "/^sp_lu_get/"
  51. ),
  52. "controllers" => array(
  53. "/^LuticatePermissions(Groups|Users)Controller$/"
  54. )
  55. )
  56. ));
  57. echo "\n\nCONFIG\n\n";
  58. $gen->run();