/apps/todo/domain/TodoListItem.php
http://zoop.googlecode.com/ · PHP · 26 lines · 23 code · 3 blank · 0 comment · 1 complexity · 8284c1567097bfa46fdcf69d483ceaad MD5 · raw file
- <?php
- class TodoListItem
- {
- var $parent;
- var $children;
- var $text;
- var $status;
- var $importance;
- var $urgency;
-
- function TodoListItem(&$parent, $status, $text, $params = NULL)
- {
- $this->children = array();
- $this->parent = &$parent;
- if($parent)
- $parent->addChild($this);
-
- $this->status = $status;
- $this->text = $text;
- }
-
- function addChild(&$child)
- {
- $this->children[] = &$child;
- }
- }