ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
Interface ilDBInterface.
$query
$objId
Definition: xapitoken.php:41