ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLinkCheckNotify Class Reference

class for checking external links in page objects. More...

+ Collaboration diagram for ilLinkCheckNotify:

Public Member Functions

 ilLinkCheckNotify (&$db)
 setUserId ($a_usr_id)
 getUserId ()
 setObjId ($a_obj_id)
 getObjId ()
 addNotifier ()
 deleteNotifier ()
 _getNotifyStatus ($a_usr_id, $a_obj_id)
 _deleteUser ($a_usr_id)
 _deleteObject ($a_obj_id)
 _getNotifiers ($a_obj_id)
 _getAllNotifiers (&$db)

Data Fields

 $db = null

Detailed Description

class for checking external links in page objects.

All user who want to get messages about invalid links of a page_object are stored here

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilLinkCheckNotify.php 23143 2010-03-09 12:15:33Z smeyer

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

Member Function Documentation

ilLinkCheckNotify::_deleteObject (   $a_obj_id)

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

References $ilDB, $query, and $res.

Referenced by ilObjLinkResource\delete(), and ilwebresourceTest\testLinkCheck().

{
global $ilDB;
$query = "DELETE FROM link_check_report ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id,'integer')." ";
$res = $ilDB->manipulate($query);
return true;
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::_deleteUser (   $a_usr_id)

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

References $ilDB, $query, and $res.

Referenced by ilObjUser\delete().

{
global $ilDB;
$query = "DELETE FROM link_check_report ".
"WHERE usr_id = ".$ilDB->quote($a_usr_id,'integer');
$res = $ilDB->manipulate($query);
return true;
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::_getAllNotifiers ( $db)

Definition at line 116 of file class.ilLinkCheckNotify.php.

References $db, $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilLinkChecker\__sendMail().

{
global $ilDB;
$query = "SELECT * FROM link_check_report ";
$res = $db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$usr_ids[$row->usr_id][] = $row->obj_id;
}
return $usr_ids ? $usr_ids : array();
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::_getNotifiers (   $a_obj_id)

Definition at line 100 of file class.ilLinkCheckNotify.php.

References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilwebresourceTest\testLinkCheck().

{
global $ilDB;
$query = "SELECT * FROM link_check_report ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id,'integer')." ";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$usr_ids[] = $row->usr_id;
}
return $usr_ids ? $usr_ids : array();
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::_getNotifyStatus (   $a_usr_id,
  $a_obj_id 
)

Definition at line 67 of file class.ilLinkCheckNotify.php.

References $ilDB, $query, and $res.

Referenced by ilObjContentObjectGUI\linkChecker(), ilObjLinkResourceGUI\linkCheckerObject(), and ilwebresourceTest\testLinkCheck().

{
global $ilDB;
$query = "SELECT * FROM link_check_report ".
"WHERE obj_id = ".$ilDB->quote($a_obj_id,'integer')." ".
"AND usr_id = ".$ilDB->quote($a_usr_id,'integer');
$res = $ilDB->query($query);
return $res->numRows() ? true : false;
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::addNotifier ( )

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

References $ilDB, $query, $res, deleteNotifier(), getObjId(), and getUserId().

{
global $ilDB;
$this->deleteNotifier();
$query = "INSERT INTO link_check_report (obj_id,usr_id) ".
"VALUES ( ".
$ilDB->quote($this->getObjId(),'integer').", ".
$ilDB->quote($this->getUserId(),'integer').
")";
$res = $ilDB->manipulate($query);
return true;
}

+ Here is the call graph for this function:

ilLinkCheckNotify::deleteNotifier ( )

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

References $ilDB, $query, $res, getObjId(), and getUserId().

Referenced by addNotifier().

{
global $ilDB;
$query = "DELETE FROM link_check_report ".
"WHERE obj_id = ".$ilDB->quote($this->getObjId(),'integer')." ".
"AND usr_id = ".$ilDB->quote($this->getUserId(),'integer')." ";
$res = $ilDB->manipulate($query);
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLinkCheckNotify::getObjId ( )

Definition at line 33 of file class.ilLinkCheckNotify.php.

Referenced by addNotifier(), and deleteNotifier().

{
return $this->obj_id;
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::getUserId ( )

Definition at line 25 of file class.ilLinkCheckNotify.php.

References $usr_id.

Referenced by addNotifier(), and deleteNotifier().

{
return $this->usr_id;
}

+ Here is the caller graph for this function:

ilLinkCheckNotify::ilLinkCheckNotify ( $db)

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

References $db.

{
$this->db =& $db;
}
ilLinkCheckNotify::setObjId (   $a_obj_id)

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

{
$this->obj_id = $a_obj_id;
}
ilLinkCheckNotify::setUserId (   $a_usr_id)

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

{
$this->usr_id = $a_usr_id;
}

Field Documentation

ilLinkCheckNotify::$db = null

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

Referenced by _getAllNotifiers(), and ilLinkCheckNotify().


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