Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions core/classes/CodonModule.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@
*/
class CodonModule
{
public static $post;
public static $get;
public static $controller;
public static $activeModule;
public $post;
public $get;
public $controller;
public $activeModule;
public $action;

public $title;

public function __construct()
{

}

/**
* Initialize the parent class. Called by the MainController
* when the module is created
Expand All @@ -63,55 +63,55 @@ public function __construct()
public function init($module_name='')
{
$module_name = strtolower($module_name);

$this->post = Vars::$post;
$this->get = CodonRewrite::$get;
$this->request = Vars::$request;
$this->controller = CodonRewrite::$controller;

$this->init = true;
$this->activeModule = MainController::$activeModule;
}

public function config($setting)
{
return Config::Get($setting);
}

public function get($name)
{
return Template::Get($name, true);
}

public function set($name, $value)
{
Template::Set($name, $value);
}

public function show($tpl)
{
Template::Show($tpl);
}

public function render($tpl)
{
Template::Show($tpl);
}

public function log($text, $file='log')
{
Debug::log($text, $file);
}

public function firephp()
{
include_once CORE_PATH.DS.'lib'.DS.'firebug'.DS.'FirePHP.class.php';

$instance = FirePHP::getInstance(true);
$args = func_get_args();
return call_user_func_array(array($instance,'fb'),$args);
}

public function callHook($hook_name)
{
if(file_exists(SITE_ROOT.'/core/hooks/'.$hook_name))
Expand Down
Loading