PM-1060: Third migration ldapAdvanced

This commit is contained in:
Paula V. Quispe
2015-06-11 15:48:58 -04:00
parent 1bcc28ba33
commit 3e4e5582ad
3 changed files with 9 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ G::LoadClass( 'configuration' );
$c = new Configurations(); $c = new Configurations();
$configPage = $c->getConfiguration( 'authSourcesList', 'pageSize', '', $_SESSION['USER_LOGGED'] ); $configPage = $c->getConfiguration( 'authSourcesList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20; $Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
G::pr($Config);
$G_MAIN_MENU = 'processmaker'; $G_MAIN_MENU = 'processmaker';
$G_SUB_MENU = 'users'; $G_SUB_MENU = 'users';
$G_ID_MENU_SELECTED = 'USERS'; $G_ID_MENU_SELECTED = 'USERS';
@@ -42,7 +42,8 @@ $G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES';
$G_PUBLISH = new Publisher(); $G_PUBLISH = new Publisher();
$oHeadPublisher = & headPublisher::getSingleton(); $oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //adding a javascript file .js $oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //adding a javascript file .js
$oHeadPublisher->addExtJsScript (PATH_TPL. 'ldapAdvanced/authSourcesList', false ); //adding a javascript file .js
$oHeadPublisher->addContent( 'authSources/authSourcesList' ); //adding a html file .html. $oHeadPublisher->addContent( 'authSources/authSourcesList' ); //adding a html file .html.
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() ); $oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
$oHeadPublisher->assign( 'CONFIG', $Config ); $oHeadPublisher->assign( 'CONFIG', $Config );

View File

@@ -34,11 +34,13 @@ $G_ID_MENU_SELECTED = 'USERS';
$G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES'; $G_ID_SUB_MENU_SELECTED = 'AUTH_SOURCES';
$aAuthSourceTypes = array (array ('sType' => 'char','sLabel' => 'char')); $aAuthSourceTypes = array (array ('sType' => 'char','sLabel' => 'char'));
error_log(PATH_RBAC . 'plugins' . PATH_SEP);
$oDirectory = dir( PATH_RBAC . 'plugins' . PATH_SEP ); $oDirectory = dir( PATH_RBAC . 'plugins' . PATH_SEP );
while ($sObject = $oDirectory->read()) { while ($sObject = $oDirectory->read()) {
if (($sObject != '.') && ($sObject != '..') && ($sObject != '.svn') && ($sObject != 'ldap')) { if (($sObject != '.') && ($sObject != '..') && ($sObject != '.svn') && ($sObject != 'ldap')) {
if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) { if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) {
$sType = trim( str_replace( 'class.', '', str_replace( '.php', '', $sObject ) ) ); $sType = trim( str_replace( 'class.', '', str_replace( '.php', '', $sObject ) ) );
error_log($sType);
$aAuthSourceTypes[] = array ('sType' => $sType,'sLabel' => $sType ); $aAuthSourceTypes[] = array ('sType' => $sType,'sLabel' => $sType );
} }
} }

View File

@@ -2,7 +2,7 @@ var synchronizeDepartmentsLDAPADV = function() {
iGrid = Ext.getCmp('infoGrid'); iGrid = Ext.getCmp('infoGrid');
rowSelected = iGrid.getSelectionModel().getSelected(); rowSelected = iGrid.getSelectionModel().getSelected();
if (rowSelected) { if (rowSelected) {
location.href = '../ldapAdvanced/authSourcesSynchronize?authUid=' + rowSelected.data.AUTH_SOURCE_UID + '&tab=synchronizeDepartments'; location.href = 'authSourcesSynchronize?authUid=' + rowSelected.data.AUTH_SOURCE_UID + '&tab=synchronizeDepartments';
} }
}; };
@@ -10,19 +10,19 @@ var synchronizeGroupsLDAPADV = function() {
iGrid = Ext.getCmp('infoGrid'); iGrid = Ext.getCmp('infoGrid');
rowSelected = iGrid.getSelectionModel().getSelected(); rowSelected = iGrid.getSelectionModel().getSelected();
if (rowSelected) { if (rowSelected) {
location.href = '../ldapAdvanced/authSourcesSynchronize?authUid=' + rowSelected.data.AUTH_SOURCE_UID + '&tab=synchronizeGroups'; location.href = 'authSourcesSynchronize?authUid=' + rowSelected.data.AUTH_SOURCE_UID + '&tab=synchronizeGroups';
} }
}; };
var synchronizeDepartmentsButtonLDAPADV = new Ext.Action({ var synchronizeDepartmentsButtonLDAPADV = new Ext.Action({
text: 'Synchronize Departments', text: 'Synchronize Departmentssss',
iconCls: 'ICON_DEPARTAMENTS', iconCls: 'ICON_DEPARTAMENTS',
disabled: true, disabled: true,
handler: synchronizeDepartmentsLDAPADV handler: synchronizeDepartmentsLDAPADV
}); });
var synchronizeGroupsButtonLDAPADV = new Ext.Action({ var synchronizeGroupsButtonLDAPADV = new Ext.Action({
text: 'Synchronize Groups', text: 'Synchronize Groupssss',
iconCls: 'ICON_GROUPS', iconCls: 'ICON_GROUPS',
disabled: true, disabled: true,
handler: synchronizeGroupsLDAPADV handler: synchronizeGroupsLDAPADV