fix image text
[pear] / HTML / FlexyFramework / DataObjects.php
1 <?php
2
3
4 class HTML_FlexyFramework_DataObjects extends HTML_FlexyFramework_Page
5 {
6     /**
7      * cli_options: the options for cli usage..
8      * @see Console_Getargs_Options
9      */
10       /*
11       
12     static $cli_opts  = array(
13         'test' => array(
14             'short' => 't',
15             'min' => 1,
16             'max' => 1,
17             //'default' => 0, -- no default if it is required..
18             'desc' => 'A test argument that has to be set..'  
19         ),
20         
21         
22         
23         
24     );
25       */
26     
27     function getAuth()
28     {
29         return true; // auth handled by framework..
30     }
31     
32     function get()
33     {
34         require_once 'HTML/FlexyFramework/Generator.php';
35          
36         HTML_FlexyFramework_Generator::$generateClasses = true;
37         $ff = HTML_FlexyFramework::get();
38
39         $ff->DB_DataObject['debug'] = 1;
40         $ff->debug = 1;
41         if (empty($ff->dataObjectsCache)) {
42             die("make sure dataObjectsCache in set to true the index file");
43         }
44         // make sure the cache generator is on..
45         $ff->dataObjectsCache = true;
46         $ff->generateDataobjectsCache(true);
47         die("Generation done..");
48     }
49     
50     
51 }