Author: sevein
Date: Tue Jul 10 14:39:20 2012
New Revision: 11887
Log:
Build latest version of model classes
Modified:
trunk/lib/model/om/BaseActor.php
trunk/lib/model/om/BaseDigitalObject.php
trunk/lib/model/om/BaseInformationObject.php
trunk/lib/model/om/BaseMenu.php
trunk/lib/model/om/BasePhysicalObject.php
trunk/lib/model/om/BaseTaxonomy.php
trunk/lib/model/om/BaseTerm.php
trunk/plugins/qbAclPlugin/lib/model/om/BaseAclGroup.php
Modified: trunk/lib/model/om/BaseActor.php
==============================================================================
--- trunk/lib/model/om/BaseActor.php Tue Jul 10 14:38:14 2012 (r11886)
+++ trunk/lib/model/om/BaseActor.php Tue Jul 10 14:39:20 2012 (r11887)
@@ -770,6 +770,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BaseDigitalObject.php
==============================================================================
--- trunk/lib/model/om/BaseDigitalObject.php Tue Jul 10 14:38:14 2012
(r11886)
+++ trunk/lib/model/om/BaseDigitalObject.php Tue Jul 10 14:39:20 2012
(r11887)
@@ -497,6 +497,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BaseInformationObject.php
==============================================================================
--- trunk/lib/model/om/BaseInformationObject.php Tue Jul 10 14:38:14
2012 (r11886)
+++ trunk/lib/model/om/BaseInformationObject.php Tue Jul 10 14:39:20
2012 (r11887)
@@ -748,6 +748,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BaseMenu.php
==============================================================================
--- trunk/lib/model/om/BaseMenu.php Tue Jul 10 14:38:14 2012 (r11886)
+++ trunk/lib/model/om/BaseMenu.php Tue Jul 10 14:39:20 2012 (r11887)
@@ -937,6 +937,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BasePhysicalObject.php
==============================================================================
--- trunk/lib/model/om/BasePhysicalObject.php Tue Jul 10 14:38:14 2012
(r11886)
+++ trunk/lib/model/om/BasePhysicalObject.php Tue Jul 10 14:39:20 2012
(r11887)
@@ -620,6 +620,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BaseTaxonomy.php
==============================================================================
--- trunk/lib/model/om/BaseTaxonomy.php Tue Jul 10 14:38:14 2012 (r11886)
+++ trunk/lib/model/om/BaseTaxonomy.php Tue Jul 10 14:39:20 2012 (r11887)
@@ -655,6 +655,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/lib/model/om/BaseTerm.php
==============================================================================
--- trunk/lib/model/om/BaseTerm.php Tue Jul 10 14:38:14 2012 (r11886)
+++ trunk/lib/model/om/BaseTerm.php Tue Jul 10 14:39:20 2012 (r11887)
@@ -1882,6 +1882,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
Modified: trunk/plugins/qbAclPlugin/lib/model/om/BaseAclGroup.php
==============================================================================
--- trunk/plugins/qbAclPlugin/lib/model/om/BaseAclGroup.php Tue Jul 10
14:38:14 2012 (r11886)
+++ trunk/plugins/qbAclPlugin/lib/model/om/BaseAclGroup.php Tue Jul 10
14:39:20 2012 (r11887)
@@ -1017,6 +1017,40 @@
return $this;
}
+ public function isInTree()
+ {
+ return $this->lft > 0 && $this->rgt > $this->lft;
+ }
+
+ public function isDescendantOf($parent)
+ {
+ return $this->isInTree() && $this->lft > $parent->lft && $this->rgt <
$parent->rgt;
+ }
+
+ public function moveToFirstChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->lft + 1, $con);
+
+ return $this;
+ }
+
+ public function moveToLastChildOf($parent, PropelPDO $con = null)
+ {
+ if ($parent->isDescendantOf($this))
+ {
+ throw new PropelException('Cannot move a node as child of one of its
subtree nodes.');
+ }
+
+ $this->moveSubtreeTo($parent->rgt, $con);
+
+ return $this;
+ }
+
public function moveToPrevSiblingOf($sibling, PropelPDO $con = null)
{
if ($this->parentId != $sibling->parentId)
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.