protected final function __construct()
 {
     Neuron_Core_Template::load();
     add_to_template_path(CATLAB_BASEPATH . 'templates');
 }
Ejemplo n.º 2
0
    if (get_template_path() == '') {
        set_template_path($path);
    } else {
        if ($priorize) {
            set_template_path($path . PATH_SEPARATOR . get_template_path());
        } else {
            set_template_path(get_template_path() . PATH_SEPARATOR . $path);
        }
    }
}
// Backwards compatability stuff
if (defined('DEFAULT_TEMPLATE_DIR')) {
    add_to_template_path(DEFAULT_TEMPLATE_DIR, false);
}
if (defined('TEMPLATE_DIR')) {
    add_to_template_path(TEMPLATE_DIR, true);
}
class Neuron_Core_Template
{
    private $values = array();
    private $lists = array();
    private $sTextFile = null;
    private $sTextSection = null;
    private $objText = null;
    public static function load()
    {
    }
    public static function getUniqueId()
    {
        if (!isset($_SESSION['tc'])) {
            $_SESSION['tc'] = time();