30        $this->db = (is_null(
$db))
 
   41        bool $check_scheduled_activation = 
false,
 
   55            foreach ($this->
getData($parent_type, $ids, $check_scheduled_activation, 
"-") as $k => $v) {
 
   60        foreach ($this->
getData($parent_type, $ids, $check_scheduled_activation, 
$lang) as $k => $v) {
 
   70        bool $check_scheduled_activation = 
false,
 
   75            "SELECT page_id, active, activation_start, activation_end, show_activation_info FROM page_object WHERE " .
 
   76            $db->
in(
"page_id", $ids, 
false, 
"integer") .
 
   77            " AND parent_type = %s AND lang = %s",
 
   84            if (!$rec[
"active"] && $check_scheduled_activation) {
 
   85                if ($now >= $rec[
"activation_start"] &&
 
   86                    $now <= $rec[
"activation_end"]) {
 
   87                    $active[$rec[
"page_id"]] = [
 
   89                        "start" => $rec[
"activation_start"],
 
   90                        "end" => $rec[
"activation_end"],
 
   91                        "show_info" => (bool) $rec[
"show_activation_info"]
 
   94                    $active[$rec[
"page_id"]] = [
 
   96                        "start" => $rec[
"activation_start"],
 
   97                        "end" => $rec[
"activation_end"],
 
   98                        "show_info" => (bool) $rec[
"show_activation_info"]
 
  102                $active[$rec[
"page_id"]] = [
 
  103                    "active" => (bool) $rec[
"active"],
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(\ilDBInterface $db=null)
 
getData(string $parent_type, array $ids, bool $check_scheduled_activation=false, string $lang="")
 
static now()
Return current timestamp in Y-m-d H:i:s format.
 
fetchAssoc(ilDBStatement $statement)
 
queryF(string $query, array $types, array $values)
 
in(string $field, array $values, bool $negate=false, string $type="")