ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSNodeMappingAssignment Class Reference
+ Collaboration diagram for ilECSNodeMappingAssignment:

Public Member Functions

 __construct ($a_server_id, $mid, $cs_root, $cs_id)
 Constructor.
 isMapped ()
 getServerId ()
 setServerId ($a_id)
 setMemberId ($a_member_id)
 getMemberId ()
 getTreeId ()
 setTreeId ($root)
 getCSId ()
 setCSId ($id)
 getRefId ()
 setRefId ($a_id)
 getObjId ()
 setObjId ($id)
 isTitleUpdateEnabled ()
 enableTitleUpdate ($enabled)
 isPositionUpdateEnabled ()
 enablePositionUpdate ($enabled)
 isTreeUpdateEnabled ()
 enableTreeUpdate ($enabled)
 update ()
 Update node mapping.
 create ()
 delete ()
 Delete entry ilDB $ilDB.

Static Public Member Functions

static deleteByServerId ($a_server_id)

Protected Member Functions

 read ()
 read settings ilDB $ilDB

Private Attributes

 $server_id
 $mid
 $cs_root
 $cs_id
 $ref_id
 $obj_id
 $title_update = false
 $position_update = false
 $tree_update = false
 $mapped = false

Detailed Description

Constructor & Destructor Documentation

ilECSNodeMappingAssignment::__construct (   $a_server_id,
  $mid,
  $cs_root,
  $cs_id 
)

Constructor.

Definition at line 28 of file class.ilECSNodeMappingAssignment.php.

References $cs_id, $cs_root, $mid, and read().

{
$this->server_id = $a_server_id;
$this->mid = $mid;
$this->cs_root = $cs_root;
$this->cs_id = $cs_id;
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

ilECSNodeMappingAssignment::create ( )

Definition at line 145 of file class.ilECSNodeMappingAssignment.php.

References $query, getCSId(), getMemberId(), getObjId(), getRefId(), getServerId(), getTreeId(), isPositionUpdateEnabled(), isTitleUpdateEnabled(), and isTreeUpdateEnabled().

Referenced by update().

{
global $ilDB;
$query = 'INSERT INTO ecs_node_mapping_a (server_id,mid,cs_root,cs_id,ref_id,obj_id,title_update,position_update,tree_update) '.
'VALUES( '.
$ilDB->quote($this->getServerId(),'integer').', '.
$ilDB->quote($this->getMemberId(),'integer').', '.
$ilDB->quote($this->getTreeId(),'integer').', '.
$ilDB->quote($this->getCSId(),'integer').', '.
$ilDB->quote($this->getRefId(),'integer').', '.
$ilDB->quote($this->getObjId(),'integer').', '.
$ilDB->quote($this->isTitleUpdateEnabled(),'integer').', '.
$ilDB->quote($this->isPositionUpdateEnabled(),'integer').', '.
$ilDB->quote($this->isTreeUpdateEnabled(),'integer').' '.
')';
$ilDB->manipulate($query);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::delete ( )

Delete entry ilDB $ilDB.

Definition at line 171 of file class.ilECSNodeMappingAssignment.php.

References $query, getCSId(), getMemberId(), getServerId(), and getTreeId().

{
global $ilDB;
$query = 'DELETE FROM ecs_node_mapping_a '.
'WHERE server_id = '.$ilDB->quote($this->getServerId(),'integer'). ' '.
'AND mid = '.$ilDB->quote($this->getMemberId(),'integer'). ' '.
'AND cs_root = '.$ilDB->quote($this->getTreeId(),'integer').' '.
'AND cs_id = '.$ilDB->quote($this->getCSId(),'integer');
$ilDB->manipulate($query);
}

+ Here is the call graph for this function:

static ilECSNodeMappingAssignment::deleteByServerId (   $a_server_id)
static

Definition at line 213 of file class.ilECSNodeMappingAssignment.php.

References $query.

Referenced by ilECSSetting\delete().

{
global $ilDB;
$query = 'DELETE FROM ecs_node_mapping_a'.
' WHERE server_id = '.$ilDB->quote($a_server_id,'integer');
$ilDB->manipulate($query);
return true;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::enablePositionUpdate (   $enabled)

Definition at line 118 of file class.ilECSNodeMappingAssignment.php.

Referenced by read().

{
$this->position_update = $enabled;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::enableTitleUpdate (   $enabled)

Definition at line 108 of file class.ilECSNodeMappingAssignment.php.

Referenced by read().

{
$this->title_update = $enabled;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::enableTreeUpdate (   $enabled)

Definition at line 128 of file class.ilECSNodeMappingAssignment.php.

Referenced by read().

{
$this->tree_update = $enabled;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getCSId ( )

Definition at line 73 of file class.ilECSNodeMappingAssignment.php.

References $cs_id.

Referenced by create(), delete(), read(), and ilECSCmsTreeSynchronizer\syncCategory().

{
return $this->cs_id;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getMemberId ( )

Definition at line 58 of file class.ilECSNodeMappingAssignment.php.

References $mid.

Referenced by create(), delete(), and read().

{
return $this->mid;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getObjId ( )

Definition at line 93 of file class.ilECSNodeMappingAssignment.php.

References $obj_id.

Referenced by create().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getRefId ( )

Definition at line 83 of file class.ilECSNodeMappingAssignment.php.

References $ref_id.

Referenced by create().

{
return $this->ref_id;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getServerId ( )

Definition at line 43 of file class.ilECSNodeMappingAssignment.php.

References $server_id.

Referenced by create(), delete(), and read().

{
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::getTreeId ( )

Definition at line 63 of file class.ilECSNodeMappingAssignment.php.

References $cs_root.

Referenced by create(), delete(), and read().

{
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::isMapped ( )

Definition at line 38 of file class.ilECSNodeMappingAssignment.php.

References $mapped.

{
return $this->mapped;
}
ilECSNodeMappingAssignment::isPositionUpdateEnabled ( )

Definition at line 113 of file class.ilECSNodeMappingAssignment.php.

References $position_update.

Referenced by create().

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::isTitleUpdateEnabled ( )

Definition at line 103 of file class.ilECSNodeMappingAssignment.php.

References $title_update.

Referenced by create().

{
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::isTreeUpdateEnabled ( )

Definition at line 123 of file class.ilECSNodeMappingAssignment.php.

References $tree_update.

Referenced by create().

{
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::read ( )
protected

read settings ilDB $ilDB

Definition at line 189 of file class.ilECSNodeMappingAssignment.php.

References $query, $res, $row, DB_FETCHMODE_OBJECT, enablePositionUpdate(), enableTitleUpdate(), enableTreeUpdate(), getCSId(), getMemberId(), getServerId(), getTreeId(), setObjId(), and setRefId().

Referenced by __construct().

{
global $ilDB;
$query = 'SELECT * FROM ecs_node_mapping_a '.
'WHERE server_id = '.$ilDB->quote($this->getServerId(), 'integer').' '.
'AND mid = '.$ilDB->quote($this->getMemberId(),'integer'). ' '.
'AND cs_root = '.$ilDB->quote($this->getTreeId(), 'integer').' '.
'AND cs_id = '.$ilDB->quote($this->getCSId(), 'integer').' ';
$res = $ilDB->query($query);
#$GLOBALS['ilLog']->write(__METHOD__.': '.$query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setObjId($row->obj_id);
$this->setRefId($row->ref_id);
$this->enableTitleUpdate($row->title_update);
$this->enablePositionUpdate($row->position_update);
$this->enableTreeUpdate($row->tree_update);
$this->mapped = true;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::setCSId (   $id)

Definition at line 78 of file class.ilECSNodeMappingAssignment.php.

{
$this->cs_id = $id;
}
ilECSNodeMappingAssignment::setMemberId (   $a_member_id)

Definition at line 53 of file class.ilECSNodeMappingAssignment.php.

{
$this->mid = $a_member_id;
}
ilECSNodeMappingAssignment::setObjId (   $id)

Definition at line 98 of file class.ilECSNodeMappingAssignment.php.

Referenced by read().

{
$this->obj_id = $id;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::setRefId (   $a_id)

Definition at line 88 of file class.ilECSNodeMappingAssignment.php.

Referenced by read().

{
$this->ref_id = $a_id;
}

+ Here is the caller graph for this function:

ilECSNodeMappingAssignment::setServerId (   $a_id)

Definition at line 48 of file class.ilECSNodeMappingAssignment.php.

{
$this->server_id = $a_id;
}
ilECSNodeMappingAssignment::setTreeId (   $root)

Definition at line 68 of file class.ilECSNodeMappingAssignment.php.

{
$this->cs_root = $root;
}
ilECSNodeMappingAssignment::update ( )

Update node mapping.

Definition at line 136 of file class.ilECSNodeMappingAssignment.php.

References create().

{
global $ilDB;
$this->delete();
$this->create();
}

+ Here is the call graph for this function:

Field Documentation

ilECSNodeMappingAssignment::$cs_id
private

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

Referenced by __construct(), and getCSId().

ilECSNodeMappingAssignment::$cs_root
private

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

Referenced by __construct(), and getTreeId().

ilECSNodeMappingAssignment::$mapped = false
private

Definition at line 23 of file class.ilECSNodeMappingAssignment.php.

Referenced by isMapped().

ilECSNodeMappingAssignment::$mid
private

Definition at line 13 of file class.ilECSNodeMappingAssignment.php.

Referenced by __construct(), and getMemberId().

ilECSNodeMappingAssignment::$obj_id
private

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

Referenced by getObjId().

ilECSNodeMappingAssignment::$position_update = false
private

Definition at line 20 of file class.ilECSNodeMappingAssignment.php.

Referenced by isPositionUpdateEnabled().

ilECSNodeMappingAssignment::$ref_id
private

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

Referenced by getRefId().

ilECSNodeMappingAssignment::$server_id
private

Definition at line 12 of file class.ilECSNodeMappingAssignment.php.

Referenced by getServerId().

ilECSNodeMappingAssignment::$title_update = false
private

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

Referenced by isTitleUpdateEnabled().

ilECSNodeMappingAssignment::$tree_update = false
private

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

Referenced by isTreeUpdateEnabled().


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