}
$this->_hasInit = true;
// move away from doing this ... you can access bootLoader.XXXXXX in the master template..
- $boot = HTML_FlexyFramework2::get();
+ $boot = HTML_FlexyFramework::get();
// echo'<PRE>';print_R($boot);exit;
$this->appName= $boot->appName;
$this->appNameShort= $boot->appNameShort;
$au = $this->getAuthUser();
if ($au) {
- $ff= HTML_FlexyFramework2::get();
+ $ff= HTML_FlexyFramework::get();
if (!empty($ff->Pman['auth_comptype']) && $au->id > 0 &&
( !$au->company_id || ($ff->Pman['auth_comptype'] != $au->company()->comptype))) {
//var_dump($this->isDev);
// force regeneration on load for development enviroments..
- HTML_FlexyFramework2::get()->generateDataobjectsCache($this->isDev);
+ HTML_FlexyFramework::get()->generateDataobjectsCache($this->isDev);
//header('Content-type: application/xhtml+xml; charset=utf-8');
if (!empty($this->authUser)) {
return $this->authUser;
}
- $ff = HTML_FlexyFramework2::get();
+ $ff = HTML_FlexyFramework::get();
$tbl = empty($ff->Pman['authTable']) ? 'core_person' : $ff->Pman['authTable'];
$u = DB_DataObject::factory( $tbl );
*/
function modulesList()
{
- $boot = HTML_FlexyFramework2::get();
+ $boot = HTML_FlexyFramework::get();
// echo'<PRE>';print_R($boot);exit;
function tempName($ext)
{
- $x = tempnam(ini_get('session.save_path'), HTML_FlexyFramework2::get()->appNameShort.'TMP');
+ $x = tempnam(ini_get('session.save_path'), HTML_FlexyFramework::get()->appNameShort.'TMP');
unlink($x);
return $x .'.'. $ext;
}
$this->addEvent($type, false, $str);
}
- $cli = HTML_FlexyFramework2::get()->cli;
+ $cli = HTML_FlexyFramework::get()->cli;
if ($cli) {
echo "ERROR: " .$str . "\n";
exit(1); // cli --- exit code to stop shell execution if necessary.
}
function jok($str)
{
- $cli = HTML_FlexyFramework2::get()->cli;
+ $cli = HTML_FlexyFramework::get()->cli;
if ($cli) {
echo "OK: " .$str . "\n";
exit;
function outputJavascriptIncludes()
{
// BC support - currently 1 project still relies on this.. (MO portal)
- $o = HTML_FlexyFramework2::get()->Pman_Core;
+ $o = HTML_FlexyFramework::get()->Pman_Core;
if (isset($o['packseed'])) {
return $this->outputJavascriptIncludesBC();
}
}
- $ff = HTML_FlexyFramework2::get();
+ $ff = HTML_FlexyFramework::get();
$base = dirname($_SERVER['SCRIPT_FILENAME']);
$dir = $this->rootDir.'/Pman/'. $mod;
function addEventOnce($act, $obj = false, $remarks = '')
{
- if (!empty(HTML_FlexyFramework2::get()->Pman['disable_events'])) {
+ if (!empty(HTML_FlexyFramework::get()->Pman['disable_events'])) {
return;
}
$e = DB_DataObject::factory('Events');
function addEvent($act, $obj = false, $remarks = '')
{
- if (!empty(HTML_FlexyFramework2::get()->Pman['disable_events'])) {
+ if (!empty(HTML_FlexyFramework::get()->Pman['disable_events'])) {
return;
}
$au = $this->getAuthUser();