AppStateESS/InternshipInventory

View on GitHub
class/UI/TermUI.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Intern\UI;

use \Intern\AssetResolver;

/**
 * Class for handing UI for Term editing and creation
 * @author Olivia Perugini <peruginioc at appstate dot edu>
 **/
 class TermUI implements UI {

    public function display() {

        // permissions, if needed ?
        //if(!\Current_User::allow('intern', 'edit_terms')){
        //    \NQ::simple('intern', NotifyUI::WARNING, 'You do not have permission to edit terms.');
        //    return false;
        //}

        $tpl = array();
        $tpl['vendor_bundle'] = AssetResolver::resolveJsPath('assets.json', 'vendor');
        $tpl['entry_bundle'] = AssetResolver::resolveJsPath('assets.json', 'editTerms');
        //$tpl['S']

        return \PHPWS_Template::process($tpl, 'intern', 'edit_terms.tpl');
    }
 }