PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/apps/todo/domain/TodoListItem.php

http://zoop.googlecode.com/
PHP | 26 lines | 23 code | 3 blank | 0 comment | 1 complexity | 8284c1567097bfa46fdcf69d483ceaad MD5 | raw file
 1<?php
 2class TodoListItem
 3{
 4	var $parent;
 5	var $children;
 6	var $text;
 7	var $status;
 8	var $importance;
 9	var $urgency;
10	
11	function TodoListItem(&$parent, $status, $text, $params = NULL)
12	{
13		$this->children = array();
14		$this->parent = &$parent;
15		if($parent)
16			$parent->addChild($this);
17		
18		$this->status = $status;
19		$this->text = $text;
20	}
21	
22	function addChild(&$child)
23	{
24		$this->children[] = &$child;
25	}
26}