From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/pages/TimeTracker/ProjectList.php | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'demos/time-tracker/protected/pages/TimeTracker/ProjectList.php') diff --git a/demos/time-tracker/protected/pages/TimeTracker/ProjectList.php b/demos/time-tracker/protected/pages/TimeTracker/ProjectList.php index 4e3ac485..6ea6afe1 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/ProjectList.php +++ b/demos/time-tracker/protected/pages/TimeTracker/ProjectList.php @@ -1,34 +1,34 @@ -Application->Modules['daos']->getDao('ProjectDao'); - $this->projectList->DataSource = $dao->getAllProjects($sort, $order); - $this->projectList->dataBind(); - } - - protected function getSortOrdering($sort) - { - $ordering = $this->getViewState('SortOrder', array()); - $order = isset($ordering[$sort]) ? $ordering[$sort] : 'DESC'; - $ordering[$sort] = $order == 'DESC' ? 'ASC' : 'DESC'; - $this->setViewState('SortOrder', $ordering); - return $ordering[$sort]; - } - - protected function sortProjects($sender, $param) - { - $sort = $param->SortExpression; - $this->showProjects($sort, $this->getSortOrdering($sort)); - } - - public function onLoad($param) - { - if(!$this->IsPostBack) - $this->showProjects(); - } -} - +Application->Modules['daos']->getDao('ProjectDao'); + $this->projectList->DataSource = $dao->getAllProjects($sort, $order); + $this->projectList->dataBind(); + } + + protected function getSortOrdering($sort) + { + $ordering = $this->getViewState('SortOrder', array()); + $order = isset($ordering[$sort]) ? $ordering[$sort] : 'DESC'; + $ordering[$sort] = $order == 'DESC' ? 'ASC' : 'DESC'; + $this->setViewState('SortOrder', $ordering); + return $ordering[$sort]; + } + + protected function sortProjects($sender, $param) + { + $sort = $param->SortExpression; + $this->showProjects($sort, $this->getSortOrdering($sort)); + } + + public function onLoad($param) + { + if(!$this->IsPostBack) + $this->showProjects(); + } +} + ?> \ No newline at end of file -- cgit v1.2.3