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

/apps/todo/zones/ZoneDefault.php

http://zoop.googlecode.com/
PHP | 26 lines | 21 code | 2 blank | 3 comment | 0 complexity | 3d68119d2b99d6bcda9f94ae80212fda MD5 | raw file
 1<?php
 2class ZoneDefault extends GuiZone
 3{
 4	function pageDefault()
 5	{
 6		$this->redirect('list');
 7//		$parser = new TodoListParser();
 8//		$todoList = $parser->parseFile('/Users/rick/Documents/todo/general.todo');
 9//		print_r($root);
10	}
11	
12	function pageList()
13	{
14		$todoListCollection = new TodoListCollection(app_todo_dir);
15		$fileNames = $todoListCollection->getTodoListNames();
16		$this->assign('fileNames', $fileNames);
17		$this->display('list');
18	}
19	
20	function pageView($p)
21	{
22		$file = $p[1];
23		$this->assign('filename', $file);
24		$this->display('view');
25	}
26}