summaryrefslogtreecommitdiff
path: root/demos/northwind-db/protected/pages/Home.php
diff options
context:
space:
mode:
authorwei <>2007-05-09 08:35:52 +0000
committerwei <>2007-05-09 08:35:52 +0000
commit3261f4dcadf1e7aa45446153f654b20530c950b9 (patch)
tree1f34edf5af76c1ec41c5eeb8d6a7d465e5cbbef0 /demos/northwind-db/protected/pages/Home.php
parenta49bb746445974a692cbc00f32dd167cabaaf030 (diff)
Update northwind db
Diffstat (limited to 'demos/northwind-db/protected/pages/Home.php')
-rw-r--r--demos/northwind-db/protected/pages/Home.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/demos/northwind-db/protected/pages/Home.php b/demos/northwind-db/protected/pages/Home.php
deleted file mode 100644
index 06035069..00000000
--- a/demos/northwind-db/protected/pages/Home.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-class Home extends TPage
-{
- function onInit($param)
- {
- $classes = $this->getRecordClassList(Prado::getPathOfNamespace('Application.database.*'));
- $this->class_list->dataSource = $classes;
- $this->class_list->dataBind();
- }
-
- protected function getRecordClassList($directory)
- {
- $list=array();
- $folder=@opendir($directory);
- while($entry=@readdir($folder))
- {
- if($entry[0]==='.')
- continue;
- else if(is_file($directory.'/'.$entry))
- $list[] = str_replace('.php', '', $entry);
- }
- closedir($folder);
- return $list;
- }
-}
-
-?> \ No newline at end of file