3
* Nag_Tasklist is a light wrapper around a Nag tasklist.
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 Michael J Rubinsky <mrubinsk@horde.org>
18
* @param Horde_Share_Object_Base The base share for this tasklist.
20
public function __construct(Horde_Share_Object $share)
22
$this->_share = $share;
26
* Convert this tasklist to a hash.
28
* @return array A hash of tasklist properties.
30
public function toHash()
32
$tasks = Nag::listTasks(array(
33
'tasklists' => $this->_share->getName(),
34
'include_history' => false)
38
'name' => Nag::getLabel($this->_share),
39
'desc' => $this->_share->get('desc'),
40
'color' => $this->_share->get('color'),
41
'owner' => $this->_share->get('owner'),
42
'id' => $this->_share->getName(),
43
'count' => $tasks->count(),
44
'smart' => $this->_share->get('issmart') ? true : false,
45
'overdue' => $tasks->childrenOverdue());
b'\\ No newline at end of file'