| 1 |
1 |
zyxist |
<?php
|
| 2 |
2 |
zyxist |
/*
|
| 3 |
|
|
--------------------------------------------------------------------
|
| 4 |
|
|
TypeFriendly
|
| 5 |
|
|
Copyright (c) 2008 Invenzzia Team
|
| 6 |
|
|
http://www.invenzzia.org/
|
| 7 |
|
|
See README for more author details
|
| 8 |
|
|
--------------------------------------------------------------------
|
| 9 |
|
|
This file is part of TypeFriendly.
|
| 10 |
|
|
|
| 11 |
|
|
TypeFriendly is free software: you can redistribute it and/or modify
|
| 12 |
|
|
it under the terms of the GNU General Public License as published by
|
| 13 |
|
|
the Free Software Foundation, either version 3 of the License, or
|
| 14 |
|
|
(at your option) any later version.
|
| 15 |
1 |
zyxist |
|
| 16 |
2 |
zyxist |
TypeFriendly is distributed in the hope that it will be useful,
|
| 17 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 18 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 19 |
|
|
GNU General Public License for more details.
|
| 20 |
|
|
|
| 21 |
|
|
You should have received a copy of the GNU General Public License
|
| 22 |
|
|
along with TypeFriendly. If not, see <http://www.gnu.org/licenses/>.
|
| 23 |
|
|
*/
|
| 24 |
5 |
zyxist |
// $Id: resources.php 5 2008-07-02 17:49:20Z zyxist $
|
| 25 |
2 |
zyxist |
|
| 26 |
1 |
zyxist |
class tfResources
|
| 27 |
|
|
{
|
| 28 |
|
|
public $outputs;
|
| 29 |
|
|
|
| 30 |
|
|
private $pr;
|
| 31 |
|
|
|
| 32 |
|
|
static private $instance;
|
| 33 |
|
|
|
| 34 |
|
|
static public function get()
|
| 35 |
|
|
{
|
| 36 |
|
|
if(is_null(tfResources ::$instance))
|
| 37 |
|
|
{
|
| 38 |
|
|
tfResources::$instance = new tfResources;
|
| 39 |
|
|
}
|
| 40 |
|
|
return tfResources::$instance;
|
| 41 |
|
|
} // end get();
|
| 42 |
|
|
|
| 43 |
|
|
private function __construct()
|
| 44 |
|
|
{
|
| 45 |
|
|
$app = tfProgram::get();
|
| 46 |
|
|
|
| 47 |
|
|
// Load outputs
|
| 48 |
4 |
extremo |
$list = $app->fs->listDirectory('outputs/', true, false);
|
| 49 |
1 |
zyxist |
foreach($list as &$item)
|
| 50 |
|
|
{
|
| 51 |
|
|
if(strpos($item, '.php') !== false)
|
| 52 |
|
|
{
|
| 53 |
|
|
|
| 54 |
|
|
}
|
| 55 |
|
|
}
|
| 56 |
4 |
extremo |
$this->outputs = $list;
|
| 57 |
1 |
zyxist |
} // end __construct();
|
| 58 |
|
|
} // end tfResources;
|