Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. $config = ['databases' => [
  11. [
  12. 'name' => 'mydb',
  13. 'driver' => 'pgsql',
  14. 'host' => '172.17.0.1',
  15. 'port' => 5432,
  16. 'database' => 'intra_betaclean',
  17. 'username' => 'dev',
  18. 'password' => 'dev'
  19. ]
  20. ]];
  21. $gen = new LuGenerator($config['databases'][0]);
  22. echo "\n\nDEFAULT\n\n";
  23. $gen->run();
  24. $gen->setConfig(array("dbo" =>
  25. array(
  26. "namespace" => 'Luticate\Package\Dbo',
  27. "folder" => 'generated/Package/Dbo'
  28. ),
  29. "models" =>
  30. array(
  31. "namespace" => 'Luticate\Package\DataAccess\Models',
  32. "folder" => 'generated/Package/DataAccess/Models'
  33. ),
  34. "sp" =>
  35. array(
  36. "namespace" => 'Luticate\Package\DataAccess\SP',
  37. "folder" => 'generated/Package/DataAccess/SP'
  38. ),
  39. "dataaccess" =>
  40. array(
  41. "namespace" => 'Luticate\Package\DataAccess',
  42. "folder" => 'generated/Package/DataAccess'
  43. ),
  44. "business" =>
  45. array(
  46. "namespace" => 'Luticate\Package\Business',
  47. "folder" => 'generated/Package/Business'
  48. ),
  49. "controller" =>
  50. array(
  51. "namespace" => 'Luticate\Package\Controller',
  52. "folder" => 'generated/Package/Controller'
  53. ),
  54. "mode" => 0777,
  55. "ignore" => array(
  56. "tables" => array(
  57. "/^luticate_users_groups$/"
  58. ),
  59. "sp" => array(
  60. "/^sp_lu_get/"
  61. ),
  62. "controllers" => array(
  63. "/^LuticatePermissions(Groups|Users)Controller$/"
  64. )
  65. )
  66. ));
  67. echo "\n\nCONFIG\n\n";
  68. $gen->run();