/usr/share/horde/nag/lib/Tasklist.php is in php-horde-nag 4.2.17-1ubuntu1.
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 | <?php
/**
* Nag_Tasklist is a light wrapper around a Nag tasklist.
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @package Nag
*/
class Nag_Tasklist
{
protected $_share;
/**
* Const'r
*
* @param Horde_Share_Object_Base The base share for this tasklist.
*/
public function __construct(Horde_Share_Object $share)
{
$this->_share = $share;
}
/**
* Convert this tasklist to a hash.
*
* @return array A hash of tasklist properties.
*/
public function toHash()
{
$tasks = Nag::listTasks(array(
'tasklists' => $this->_share->getName(),
'include_history' => false)
);
$hash = array(
'name' => Nag::getLabel($this->_share),
'desc' => $this->_share->get('desc'),
'color' => $this->_share->get('color'),
'owner' => $this->_share->get('owner'),
'id' => $this->_share->getName(),
'count' => $tasks->count(),
'smart' => $this->_share->get('issmart') ? true : false,
'overdue' => $tasks->childrenOverdue());
return $hash;
}
}
|