ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilForumPostsTree Class Reference
+ Collaboration diagram for ilForumPostsTree:

Public Member Functions

 setDepth ($depth)
 getDepth ()
 setLft ($lft)
 getLft ()
 setParentPos ($parent_pos)
 getParentPos ()
 setPosFk ($pos_fk)
 getPosFk ()
 setRgt ($rgt)
 getRgt ()
 setThrFk ($thr_fk)
 getThrFk ()
 setSourceThreadId ($source_thread_id)
 getSourceThreadId ()
 setTargetThreadId ($target_thread_id)
 getTargetThreadId ()
 __construct ()
 mergeParentPos ()
 merge ()

Static Public Member Functions

static updateTargetRootRgt ($root_node_id, $rgt)

Private Attributes

 $thr_fk = 0
 $pos_fk = 0
 $parent_pos = 0
 $lft = 0
 $rgt = 0
 $depth = 0
 $source_thread_id = 0
 $target_thread_id = 0

Detailed Description

Author
Nadia Ahmad nahma.nosp@m.d@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 11 of file class.ilForumPostsTree.php.

Constructor & Destructor Documentation

ilForumPostsTree::__construct ( )

Definition at line 104 of file class.ilForumPostsTree.php.

{
}

Member Function Documentation

ilForumPostsTree::getDepth ( )

Definition at line 29 of file class.ilForumPostsTree.php.

References $depth.

Referenced by merge(), and mergeParentPos().

{
return $this->depth;
}

+ Here is the caller graph for this function:

ilForumPostsTree::getLft ( )

Definition at line 39 of file class.ilForumPostsTree.php.

References $lft.

Referenced by merge(), and mergeParentPos().

{
return $this->lft;
}

+ Here is the caller graph for this function:

ilForumPostsTree::getParentPos ( )

Definition at line 49 of file class.ilForumPostsTree.php.

References $parent_pos.

Referenced by merge(), and mergeParentPos().

{
}

+ Here is the caller graph for this function:

ilForumPostsTree::getPosFk ( )

Definition at line 59 of file class.ilForumPostsTree.php.

References $pos_fk.

Referenced by merge(), and mergeParentPos().

{
return $this->pos_fk;
}

+ Here is the caller graph for this function:

ilForumPostsTree::getRgt ( )

Definition at line 69 of file class.ilForumPostsTree.php.

References $rgt.

Referenced by merge(), and mergeParentPos().

{
return $this->rgt;
}

+ Here is the caller graph for this function:

ilForumPostsTree::getSourceThreadId ( )

Definition at line 89 of file class.ilForumPostsTree.php.

References $source_thread_id.

Referenced by merge(), and mergeParentPos().

+ Here is the caller graph for this function:

ilForumPostsTree::getTargetThreadId ( )

Definition at line 99 of file class.ilForumPostsTree.php.

References $target_thread_id.

Referenced by merge(), and mergeParentPos().

+ Here is the caller graph for this function:

ilForumPostsTree::getThrFk ( )

Definition at line 79 of file class.ilForumPostsTree.php.

References $thr_fk.

{
return $this->thr_fk;
}
ilForumPostsTree::merge ( )

Definition at line 127 of file class.ilForumPostsTree.php.

References getDepth(), getLft(), getParentPos(), getPosFk(), getRgt(), getSourceThreadId(), and getTargetThreadId().

{
global $ilDB;
$ilDB->update('frm_posts_tree',
array(
'lft' => array('integer', $this->getLft()),
'rgt' => array('integer', $this->getRgt()),
'depth' => array('integer', $this->getDepth()),
'thr_fk' => array('integer', $this->getTargetThreadId())
),
array(
'pos_fk' => array('integer', $this->getPosFk()),
'parent_pos' => array('integer', $this->getParentPos()),
'thr_fk' => array('integer', $this->getSourceThreadId())
));
}

+ Here is the call graph for this function:

ilForumPostsTree::mergeParentPos ( )

Definition at line 109 of file class.ilForumPostsTree.php.

References getDepth(), getLft(), getParentPos(), getPosFk(), getRgt(), getSourceThreadId(), and getTargetThreadId().

{
global $ilDB;
$ilDB->update('frm_posts_tree',
array(
'parent_pos' => array('integer', $this->getParentPos()),
'lft' => array('integer', $this->getLft()),
'rgt' => array('integer', $this->getRgt()),
'depth' => array('integer', $this->getDepth()),
'thr_fk' => array('integer', $this->getTargetThreadId())
),
array(
'pos_fk' => array('integer', $this->getPosFk()),
'parent_pos' => array('integer', 0),
'thr_fk' => array('integer', $this->getSourceThreadId())
));
}

+ Here is the call graph for this function:

ilForumPostsTree::setDepth (   $depth)

Definition at line 24 of file class.ilForumPostsTree.php.

References $depth.

{
$this->depth = $depth;
}
ilForumPostsTree::setLft (   $lft)

Definition at line 34 of file class.ilForumPostsTree.php.

References $lft.

{
$this->lft = $lft;
}
ilForumPostsTree::setParentPos (   $parent_pos)

Definition at line 44 of file class.ilForumPostsTree.php.

References $parent_pos.

{
$this->parent_pos = $parent_pos;
}
ilForumPostsTree::setPosFk (   $pos_fk)

Definition at line 54 of file class.ilForumPostsTree.php.

References $pos_fk.

{
$this->pos_fk = $pos_fk;
}
ilForumPostsTree::setRgt (   $rgt)

Definition at line 64 of file class.ilForumPostsTree.php.

References $rgt.

{
$this->rgt = $rgt;
}
ilForumPostsTree::setSourceThreadId (   $source_thread_id)

Definition at line 84 of file class.ilForumPostsTree.php.

References $source_thread_id.

{
$this->source_thread_id = $source_thread_id;
}
ilForumPostsTree::setTargetThreadId (   $target_thread_id)

Definition at line 94 of file class.ilForumPostsTree.php.

References $target_thread_id.

{
$this->target_thread_id = $target_thread_id;
}
ilForumPostsTree::setThrFk (   $thr_fk)

Definition at line 74 of file class.ilForumPostsTree.php.

References $thr_fk.

{
$this->thr_fk = $thr_fk;
}
static ilForumPostsTree::updateTargetRootRgt (   $root_node_id,
  $rgt 
)
static

Definition at line 148 of file class.ilForumPostsTree.php.

References $rgt.

Referenced by ilForum\mergeThreads().

{
global $ilDB;
$ilDB->update('frm_posts_tree',
array(
'rgt' => array('integer', $rgt)),
array(
'parent_pos' => array('integer', 0),
'pos_fk' => array('integer', $root_node_id)
));
}

+ Here is the caller graph for this function:

Field Documentation

ilForumPostsTree::$depth = 0
private

Definition at line 19 of file class.ilForumPostsTree.php.

Referenced by getDepth(), and setDepth().

ilForumPostsTree::$lft = 0
private

Definition at line 17 of file class.ilForumPostsTree.php.

Referenced by getLft(), and setLft().

ilForumPostsTree::$parent_pos = 0
private

Definition at line 16 of file class.ilForumPostsTree.php.

Referenced by getParentPos(), and setParentPos().

ilForumPostsTree::$pos_fk = 0
private

Definition at line 15 of file class.ilForumPostsTree.php.

Referenced by getPosFk(), and setPosFk().

ilForumPostsTree::$rgt = 0
private

Definition at line 18 of file class.ilForumPostsTree.php.

Referenced by getRgt(), setRgt(), and updateTargetRootRgt().

ilForumPostsTree::$source_thread_id = 0
private

Definition at line 21 of file class.ilForumPostsTree.php.

Referenced by getSourceThreadId(), and setSourceThreadId().

ilForumPostsTree::$target_thread_id = 0
private

Definition at line 22 of file class.ilForumPostsTree.php.

Referenced by getTargetThreadId(), and setTargetThreadId().

ilForumPostsTree::$thr_fk = 0
private

Definition at line 14 of file class.ilForumPostsTree.php.

Referenced by getThrFk(), and setThrFk().


The documentation for this class was generated from the following file: