You are here

public function UltimateCronLogEntry::__construct in Ultimate Cron 7.2

Constructor.

Parameters

string $name: Name of log.

UltimateCronLogger $logger: A logger object.

File

./ultimate_cron.plugin.inc, line 1398
Plugin framework for Ultimate Cron.

Class

UltimateCronLogEntry
Abstract class for Ultimate Cron log entries.

Code

public function __construct($name, $logger, $log_type = ULTIMATE_CRON_LOG_TYPE_NORMAL) {
  $this->name = $name;
  $this->logger = $logger;
  $this->log_type = $log_type;
  if (!isset($this->uid)) {
    global $user;
    $this->uid = $user->uid;
  }
}