123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php
- /*
- * This file is part of the sfPropelActAsNestedSetBehavior package.
- *
- * (c) 2007 Tristan Rivoallan <tristan@rivoallan.net>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- sfPropelBehavior::registerHooks('actasnestedset', array(
- ':save:pre' => array('sfPropelActAsNestedSetBehavior', 'preSave'),
- ':delete:pre' => array('sfPropelActAsNestedSetBehavior', 'preDelete'),
- ));
- sfPropelBehavior::registerMethods('actasnestedset', array (
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getLeftValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getRightValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getParentIdValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getScopeIdValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'setLeftValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'setRightValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'setParentIdValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'setScopeIdValue'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'makeRoot'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'insertAsFirstChildOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'insertAsLastChildOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'insertAsNextSiblingOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'insertAsPrevSiblingOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'insertAsParentOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'hasChildren'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getChildren'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getParent'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getNumberOfChildren'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getDescendants'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getNumberOfDescendants'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'isRoot'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'hasParent'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'hasNextSibling'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'hasPrevSibling'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'isLeaf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'isEqualTo'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'isChildOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'isDescendantOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'moveToFirstChildOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'moveToLastChildOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'moveToNextSiblingOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'moveToPrevSiblingOf'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'deleteChildren'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'deleteDescendants'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrieveFirstChild'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrieveLastChild'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrieveNextSibling'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrievePrevSibling'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrieveParent'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'retrieveSiblings'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getLevel'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'setLevel'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'getPath'
- ),
- array (
- 'sfPropelActAsNestedSetBehavior',
- 'reload'
- ),
- ));
|