/usr/share/php/Horde/LoginTasks/Backend.php is in php-horde-logintasks 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | <?php
/**
* The Horde_LoginTasks_Backend:: class provides the specific backend providing
* the dependencies of the LoginTasks system (e.g. preferences, session storage,
* redirection facilites, shutdown management etc.)
*
* Copyright 2001-2013 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Michael Slusarz <slusarz@horde.org>
* @author Gunnar Wrobel <wrobel@pardus.de>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package LoginTasks
*/
abstract class Horde_LoginTasks_Backend
{
/**
* Retrieve a cached tasklist if it exists.
*
* @return Horde_LoginTasks_Tasklist|boolean The cached task list or
* false if no task list was
* cached.
*/
abstract public function getTasklistFromCache();
/**
* Store a login tasklist in the cache.
*
* @param Horde_LoginTasks_Tasklist|boolean $tasklist The tasklist to be
* stored.
*/
abstract public function storeTasklistInCache($tasklist);
/**
* Get the class names of the task classes that need to be performed.
*
* @return array An array of class names.
*/
abstract public function getTasks();
/**
* Get the information about the last time the tasks were run. Array keys
* are app names, values are last run timestamps. Special key '_once'
* contains list of ONCE tasks previously run.
*
* @return array The information about the last time the tasks were run.
*/
abstract public function getLastRun();
/**
* Store the information about the last time the tasks were run.
*
* @param array $last The information about the last time the tasks were
* run.
*/
abstract public function setLastRun(array $last);
/**
* Mark the current time as time the login tasks were run for the last
* time.
*/
abstract public function markLastRun();
/**
* Redirect to the given URL.
*
* @param string $url The URL to redirect to.
*/
abstract public function redirect($url);
/**
* Return the URL of the login tasks view.
*
* @return string The URL of the login tasks view
*/
abstract public function getLoginTasksUrl();
}
|