5 * this is technically a cli wrapper for the generator..
7 * we will test it on the web initially..
11 require_once 'Pman.php';
12 class Pman_Core_RefreshDatabaseCache extends Pman
14 static $cli_desc = "Refresh the database schema cache";
20 $ff = HTML_FlexyFramework::get();
21 if (!empty($ff->cli)) {
25 parent::getAuth(); // load company!
26 $au = $this->getAuthUser();
27 if (!$au || $au->company()->comptype != 'OWNER') {
28 $this->jerr("Not authenticated", array('authFailure' => true));
30 $this->authUser = $au;
36 function get($args, $opts=array())
38 //print_r($opts);exit;
41 // technically it would be good to trash the cached ini files here..
42 // however we can not really do that, as the ownships are off..
43 //we can however regen our own files..
44 //DB_DataObject::debugLevel(1);
45 //HTML_FlexyFramework::get()->debug = 1;
46 HTML_FlexyFramework::get()->generateDataobjectsCache(true);