ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateActiveAction Class Reference
+ Collaboration diagram for ilCertificateActiveAction:

Public Member Functions

 __construct (ilDBInterface $database)
 
 isObjectActive ($objId)
 

Private Attributes

 $database
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateActiveAction::__construct ( ilDBInterface  $database)
Parameters
ilDBInterface$database

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

References $database.

18  {
19  $this->database = $database;
20  }

Member Function Documentation

◆ isObjectActive()

ilCertificateActiveAction::isObjectActive (   $objId)
Parameters
$objId
Returns
boolean

Definition at line 26 of file class.ilCertificateActivateAction.php.

References $query, and $row.

27  {
28  $sql = 'SELECT obj_id FROM il_certificate WHERE obj_id = ' . $this->database->quote($objId, 'integer');
29 
30  $query = $this->database->query($sql);
31 
32  while ($row = $this->database->fetchAssoc($query)) {
33  return true;
34  }
35 
36  return false;
37  }
$query
$row

Field Documentation

◆ $database

ilCertificateActiveAction::$database
private

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

Referenced by __construct().


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