当前位置: 首页>>代码示例>>PHP>>正文


PHP PSU::get_svn_info方法代码示例

本文整理汇总了PHP中PSU::get_svn_info方法的典型用法代码示例。如果您正苦于以下问题:PHP PSU::get_svn_info方法的具体用法?PHP PSU::get_svn_info怎么用?PHP PSU::get_svn_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PSU的用法示例。


在下文中一共展示了PSU::get_svn_info方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct()
 {
     parent::__construct();
     // general template vars
     $this->assign('title', 'Analysis and Provisioning Engine');
     $this->assign('icon', $GLOBALS['ape']->icons);
     $this->template_dir = $GLOBALS['BASE_DIR'] . '/templates';
     // custom template functions
     $this->register_function('ape_bool', array($this, 'ape_bool'));
     $this->assign('username', $_SESSION['username']);
     $this->assign('ape', $GLOBALS['ape']);
     $this->assign('myuser', $GLOBALS['myuser']);
     $this->assign('infodesk', APEAuthZ::infodesk());
     // get svn dataz for this application
     $this->assign('svninfo', PSU::get_svn_info());
     $this->xhtml = false;
     $this->load_authz();
     /*** set up navigation links ***/
     $links = array('nav-home' => $this->createLink('Home', $GLOBALS['BASE_URL'] . '/', 'nav-icon nav-home', 'home'), 'nav-identity' => $this->createLink('Identity/Access', $GLOBALS['BASE_URL'] . '/user/' . $_SESSION['ape_identifier'], 'nav-identity', 'person'));
     if (APEAuthZ::advancement()) {
         $links['nav-advancement'] = $this->createLink('Advancement', $GLOBALS['BASE_URL'] . '/user/advancement/' . $_SESSION['ape_identifier'], 'nav-advancement', 'advancement');
         $this->assign('advancement_link', true);
     }
     //end if
     if (APEAuthZ::hr()) {
         $links['nav-hr'] = $this->createLink('HR', '#', 'nav-advancement', 'hr');
         $this->assign('hr_link', true);
     }
     //end if
     if (APEAuthZ::family()) {
         $links['nav-family'] = $this->createLink('Family', $GLOBALS['BASE_URL'] . '/user/family/' . $_SESSION['ape_identifier'], 'nav-family', 'family');
         $this->assign('family_link', true);
     }
     //end if
     if (APEAuthZ::student()) {
         $links['nav-student'] = $this->createLink('Student', $GLOBALS['BASE_URL'] . '/user/student/' . $_SESSION['ape_identifier'], 'nav-student', 'student');
         $this->assign('student_link', true);
     }
     //end if
     if ($_SESSION['AUTHZ']['admin']) {
         $links['nav-identity']['children'][] = $this->createLink('Access Management', $GLOBALS['BASE_URL'] . '/authz.html', 'nav-access', 'access');
     }
     if (IDMObject::authZ('permission', 'ape_mailing')) {
         $links['nav-identity']['children'][] = $this->createLink('Mailing Lists', $GLOBALS['BASE_URL'] . '/lists/', 'nav-mailing', 'mail');
     }
     if (IDMObject::authZ('oracle', 'reporting_security')) {
         $links['nav-identity']['children'][] = $this->createLink('Banner Security', $GLOBALS['BASE_URL'] . '/banner/', 'nav-banner', 'banner-security');
     }
     if ($GLOBALS['ape']->canResetPassword()) {
         $links['nav-identity']['children'][] = $this->createLink('Password Test', $GLOBALS['BASE_URL'] . '/password-test.html', 'nav-pass', 'password');
         $links['nav-identity']['children'][] = $this->createLink('Locked (' . $GLOBALS['ape']->locks_count() . ')', $GLOBALS['BASE_URL'] . '/locks.html', 'nav-locked', 'lock');
     }
     //end if
     $links['nav-identity']['children'][] = $this->createLink('Creation (' . $GLOBALS['ape']->pending_accounts_count() . ')', $GLOBALS['BASE_URL'] . '/pending.html', 'nav-pend-create', 'pending-creation');
     $links['nav-identity']['children'][] = $this->createLink('Deletion (' . $GLOBALS['ape']->pending_deletion_count() . ')', $GLOBALS['BASE_URL'] . '/deletion.html', 'nav-pend-delete', 'pending-deletion');
     if (IDMObject::authz('permission', 'mis')) {
         $links['nav-identity']['children'][] = $this->createLink('Provision/Deprovision Docs', 'https://docs.google.com/Doc?docid=0AcDtIeWVN6nGYWNmZ3dxamRqOW5jXzE0N2dndHBqNmZn&hl=en', 'nav-identity', 'identity');
     }
     //end if
     if (APEAuthZ::hr()) {
         $links['nav-hr']['children'][] = $this->createLink('Employee Clearance', $GLOBALS['BASE_URL'] . '/checklist-admin.html', 'nav-advancement', 'identity');
     }
     //end if
     // if there are only 2 root links, replace root link #2 with its children
     if (count($links) == 2) {
         $parent_link = array_pop($links);
         $links = array_merge($links, $parent_link['children']);
     }
     //end if
     $this->assign('nav_links', $links);
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:71,代码来源:APESmarty.class.php


注:本文中的PSU::get_svn_info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。