3
* The default tasklists handler.
5
* See the enclosed file COPYING for license information (GPL). If you
6
* did not receive this file, see http://www.horde.org/licenses/gpl.
8
* @author Gunnar Wrobel <wrobel@pardus.de>
11
class Nag_Tasklists_Default extends Nag_Tasklists_Base
14
* The current identity.
16
* @var Horde_Prefs_Identity
23
* @param Horde_Share_Base $shares The share backend.
24
* @param string $user The current user.
25
* @param array $params Additional parameters.
27
public function __construct($shares, $user, $params)
29
if (!isset($params['identity'])) {
30
throw new Nag_Exception('This tasklist handler needs an "identity" parameter!');
32
$this->_identity = $params['identity'];
33
unset($params['identity']);
35
parent::__construct($shares, $user, $params);
39
* Return the name of the default share.
41
* @return string The name of a default share.
43
protected function _getDefaultShareName()
45
return sprintf(_("Task list of %s"), $this->_identity->getName());
b'\\ No newline at end of file'