12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace Gedmo\Tree;
- interface Strategy
- {
- /**
- * NestedSet strategy
- */
- const NESTED = 'nested';
-
- /**
- * Get the name of strategy
- *
- * @return string
- */
- function getName();
-
- /**
- * Initialize strategy with tree listener
- *
- * @param AbstractTreeListener $listener
- * @return void
- */
- function __construct(AbstractTreeListener $listener);
-
- /**
- * Operations on tree node updates
- *
- * @param object $om - object manager
- * @param object $object - node
- * @return void
- */
- function processScheduledUpdate($om, $object);
-
- /**
- * Operations on tree node deletions
- *
- * @param object $om - object manager
- * @param object $object - node
- * @return void
- */
- function processScheduledDelete($om, $object);
-
- /**
- * Operations on tree node persist
- *
- * @param object $om - object manager
- * @param object $object - node
- * @return void
- */
- function processPrePersist($om, $object);
-
- /**
- * Operations on tree node insertions
- *
- * @param object $om - object manager
- * @param object $object - node
- * @return void
- */
- function processPostPersist($om, $object);
-
- /**
- * Operations on the end of flush process
- *
- * @param object $om - object manager
- * @return void
- */
- function onFlushEnd($om);
- }
|