PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/opendominion/datamapper/cache/round.php

https://bitbucket.org/WaveHack/opendominion
PHP | 88 lines | 88 code | 0 blank | 0 comment | 1 complexity | b33b51e6a852533d1ee413dd1a7533a5 MD5 | raw file
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. $cache = array (
  3. 'table' => 'rounds',
  4. 'fields' =>
  5. array (
  6. 0 => 'id',
  7. 1 => 'round',
  8. 2 => 'name',
  9. 3 => 'start_date',
  10. 4 => 'end_date',
  11. ),
  12. 'validation' =>
  13. array (
  14. 'id' =>
  15. array (
  16. 'field' => 'id',
  17. 'rules' =>
  18. array (
  19. 0 => 'integer',
  20. ),
  21. ),
  22. 'round' =>
  23. array (
  24. 'field' => 'round',
  25. 'rules' =>
  26. array (
  27. ),
  28. ),
  29. 'name' =>
  30. array (
  31. 'field' => 'name',
  32. 'rules' =>
  33. array (
  34. ),
  35. ),
  36. 'start_date' =>
  37. array (
  38. 'field' => 'start_date',
  39. 'rules' =>
  40. array (
  41. ),
  42. ),
  43. 'end_date' =>
  44. array (
  45. 'field' => 'end_date',
  46. 'rules' =>
  47. array (
  48. ),
  49. ),
  50. 'dominion' =>
  51. array (
  52. 'field' => 'dominion',
  53. 'rules' =>
  54. array (
  55. ),
  56. ),
  57. ),
  58. 'has_one' =>
  59. array (
  60. ),
  61. 'has_many' =>
  62. array (
  63. 'dominion' =>
  64. array (
  65. 'class' => 'dominion',
  66. 'other_field' => 'round',
  67. 'join_self_as' => 'round',
  68. 'join_other_as' => 'dominion',
  69. 'join_table' => '',
  70. 'reciprocal' => false,
  71. 'auto_populate' => NULL,
  72. 'cascade_delete' => true,
  73. ),
  74. ),
  75. '_field_tracking' =>
  76. array (
  77. 'get_rules' =>
  78. array (
  79. ),
  80. 'matches' =>
  81. array (
  82. ),
  83. 'intval' =>
  84. array (
  85. 0 => 'id',
  86. ),
  87. ),
  88. );