diff options
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/FeatureList.php')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/FeatureList.php | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/FeatureList.php b/tests/FunctionalTests/features/protected/pages/FeatureList.php index 7f82d34e..8f28f6de 100644 --- a/tests/FunctionalTests/features/protected/pages/FeatureList.php +++ b/tests/FunctionalTests/features/protected/pages/FeatureList.php @@ -1,34 +1,34 @@ -<?php
-
-class FeatureList extends TPage
-{
- public function onLoad($param)
- {
- parent::onLoad($param);
- $list=$this->getPageList(dirname(__FILE__),'');
- $this->List->DataSource=$list;
- $this->List->dataBind();
- }
-
- protected function getPageList($directory,$basePath)
- {
- $list=array();
- $folder=@opendir($directory);
- while($entry=@readdir($folder))
- {
- if($entry[0]==='.')
- continue;
- else if(is_file($directory.'/'.$entry))
- {
- if(($page=basename($entry,'.page'))!==$entry && strpos($page,'.')===false)
- $list['?page='.$basePath.$page]=$basePath.$page;
- }
- else
- $list=array_merge($list,$this->getPageList($directory.'/'.$entry,$basePath.$entry.'.'));
- }
- closedir($folder);
- return $list;
- }
-}
-
+<?php + +class FeatureList extends TPage +{ + public function onLoad($param) + { + parent::onLoad($param); + $list=$this->getPageList(dirname(__FILE__),''); + $this->List->DataSource=$list; + $this->List->dataBind(); + } + + protected function getPageList($directory,$basePath) + { + $list=array(); + $folder=@opendir($directory); + while($entry=@readdir($folder)) + { + if($entry[0]==='.') + continue; + else if(is_file($directory.'/'.$entry)) + { + if(($page=basename($entry,'.page'))!==$entry && strpos($page,'.')===false) + $list['?page='.$basePath.$page]=$basePath.$page; + } + else + $list=array_merge($list,$this->getPageList($directory.'/'.$entry,$basePath.$entry.'.')); + } + closedir($folder); + return $list; + } +} + ?>
\ No newline at end of file |