public static function findOldValues(&$article, &$user, &$text, &$summary, $minor, $watch, $sectionanchor, &$flags) { $title = $article->getTitle(); $title_text = $title->getFullText(); $assignees = self::getAssignees('Assigned to', $title_text, $user); $status = self::getStatus('Status', $title_text, $user); self::printDebug("Old assignees: ", $assignees); self::printDebug("Old status: ", $status); self::$task_assignees = $assignees; if (count($status) > 0) { self::$task_status = $status[0]; } else { self::$task_status = ""; } return true; }
<?php # (C) 2008 Steren Giannini # Licensed under the GNU GPLv2 (or later). $IP = realpath(dirname(__FILE__) . "/../.."); require_once "{$IP}/maintenance/commandLine.inc"; global $smwgIP; require_once $smwgIP . '/includes/SMW_Factbox.php'; require_once dirname(__FILE__) . '/SemanticTasks.classes.php'; // Let's send reminders if (empty($wgServerNamePath)) { print "ST check for reminders {$wgServerNamePath} not set."; return 1; } SemanticTasksMailer::remindAssignees($wgServerNamePath); print "ST check for reminders\n";