summaryrefslogtreecommitdiff
path: root/portal/admin/basepage.php
blob: aa5dc625313e0daee20c200afde0ef72ad02b7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
abstract class Admin_BasePage extends PgPage {
    function PreRender() {
        $this->navsection = 'admin';
    }
    function PrepareTemplate() {
        $this->tpl->setCallbackFunction('iif', 'admin_sigma_iif');
    }
}

function admin_sigma_iif($trigger, $trueOption, $falseOption = '')
{
    if ('t' === $trigger || true === $trigger) {
        return $trueOption;
    } else {
        return $falseOption;
    }
}

?>