config.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?php
  2. /*
  3. * This file is part of the sfPropelActAsNestedSetBehavior package.
  4. *
  5. * (c) 2007 Tristan Rivoallan <tristan@rivoallan.net>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. sfPropelBehavior::registerHooks('actasnestedset', array(
  11. ':save:pre' => array('sfPropelActAsNestedSetBehavior', 'preSave'),
  12. ':delete:pre' => array('sfPropelActAsNestedSetBehavior', 'preDelete'),
  13. ));
  14. sfPropelBehavior::registerMethods('actasnestedset', array (
  15. array (
  16. 'sfPropelActAsNestedSetBehavior',
  17. 'getLeftValue'
  18. ),
  19. array (
  20. 'sfPropelActAsNestedSetBehavior',
  21. 'getRightValue'
  22. ),
  23. array (
  24. 'sfPropelActAsNestedSetBehavior',
  25. 'getParentIdValue'
  26. ),
  27. array (
  28. 'sfPropelActAsNestedSetBehavior',
  29. 'getScopeIdValue'
  30. ),
  31. array (
  32. 'sfPropelActAsNestedSetBehavior',
  33. 'setLeftValue'
  34. ),
  35. array (
  36. 'sfPropelActAsNestedSetBehavior',
  37. 'setRightValue'
  38. ),
  39. array (
  40. 'sfPropelActAsNestedSetBehavior',
  41. 'setParentIdValue'
  42. ),
  43. array (
  44. 'sfPropelActAsNestedSetBehavior',
  45. 'setScopeIdValue'
  46. ),
  47. array (
  48. 'sfPropelActAsNestedSetBehavior',
  49. 'makeRoot'
  50. ),
  51. array (
  52. 'sfPropelActAsNestedSetBehavior',
  53. 'insertAsFirstChildOf'
  54. ),
  55. array (
  56. 'sfPropelActAsNestedSetBehavior',
  57. 'insertAsLastChildOf'
  58. ),
  59. array (
  60. 'sfPropelActAsNestedSetBehavior',
  61. 'insertAsNextSiblingOf'
  62. ),
  63. array (
  64. 'sfPropelActAsNestedSetBehavior',
  65. 'insertAsPrevSiblingOf'
  66. ),
  67. array (
  68. 'sfPropelActAsNestedSetBehavior',
  69. 'insertAsParentOf'
  70. ),
  71. array (
  72. 'sfPropelActAsNestedSetBehavior',
  73. 'hasChildren'
  74. ),
  75. array (
  76. 'sfPropelActAsNestedSetBehavior',
  77. 'getChildren'
  78. ),
  79. array (
  80. 'sfPropelActAsNestedSetBehavior',
  81. 'getParent'
  82. ),
  83. array (
  84. 'sfPropelActAsNestedSetBehavior',
  85. 'getNumberOfChildren'
  86. ),
  87. array (
  88. 'sfPropelActAsNestedSetBehavior',
  89. 'getDescendants'
  90. ),
  91. array (
  92. 'sfPropelActAsNestedSetBehavior',
  93. 'getNumberOfDescendants'
  94. ),
  95. array (
  96. 'sfPropelActAsNestedSetBehavior',
  97. 'isRoot'
  98. ),
  99. array (
  100. 'sfPropelActAsNestedSetBehavior',
  101. 'hasParent'
  102. ),
  103. array (
  104. 'sfPropelActAsNestedSetBehavior',
  105. 'hasNextSibling'
  106. ),
  107. array (
  108. 'sfPropelActAsNestedSetBehavior',
  109. 'hasPrevSibling'
  110. ),
  111. array (
  112. 'sfPropelActAsNestedSetBehavior',
  113. 'isLeaf'
  114. ),
  115. array (
  116. 'sfPropelActAsNestedSetBehavior',
  117. 'isEqualTo'
  118. ),
  119. array (
  120. 'sfPropelActAsNestedSetBehavior',
  121. 'isChildOf'
  122. ),
  123. array (
  124. 'sfPropelActAsNestedSetBehavior',
  125. 'isDescendantOf'
  126. ),
  127. array (
  128. 'sfPropelActAsNestedSetBehavior',
  129. 'moveToFirstChildOf'
  130. ),
  131. array (
  132. 'sfPropelActAsNestedSetBehavior',
  133. 'moveToLastChildOf'
  134. ),
  135. array (
  136. 'sfPropelActAsNestedSetBehavior',
  137. 'moveToNextSiblingOf'
  138. ),
  139. array (
  140. 'sfPropelActAsNestedSetBehavior',
  141. 'moveToPrevSiblingOf'
  142. ),
  143. array (
  144. 'sfPropelActAsNestedSetBehavior',
  145. 'deleteChildren'
  146. ),
  147. array (
  148. 'sfPropelActAsNestedSetBehavior',
  149. 'deleteDescendants'
  150. ),
  151. array (
  152. 'sfPropelActAsNestedSetBehavior',
  153. 'retrieveFirstChild'
  154. ),
  155. array (
  156. 'sfPropelActAsNestedSetBehavior',
  157. 'retrieveLastChild'
  158. ),
  159. array (
  160. 'sfPropelActAsNestedSetBehavior',
  161. 'retrieveNextSibling'
  162. ),
  163. array (
  164. 'sfPropelActAsNestedSetBehavior',
  165. 'retrievePrevSibling'
  166. ),
  167. array (
  168. 'sfPropelActAsNestedSetBehavior',
  169. 'retrieveParent'
  170. ),
  171. array (
  172. 'sfPropelActAsNestedSetBehavior',
  173. 'retrieveSiblings'
  174. ),
  175. array (
  176. 'sfPropelActAsNestedSetBehavior',
  177. 'getLevel'
  178. ),
  179. array (
  180. 'sfPropelActAsNestedSetBehavior',
  181. 'setLevel'
  182. ),
  183. array (
  184. 'sfPropelActAsNestedSetBehavior',
  185. 'getPath'
  186. ),
  187. array (
  188. 'sfPropelActAsNestedSetBehavior',
  189. 'reload'
  190. ),
  191. ));