ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCertificateActivateAction.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
12  private $database;
13 
18  {
19  $this->database = $database;
20  }
21 
26  public function isObjectActive($objId)
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  }
38 }
$query
$row