本文整理匯總了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);
}