mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSsession : Trie aplhabétique lors de la sélection du subDn
- LSldapObject : méthode getValue() -> Ajout des possibilité de retour : - 'subDn' => le DN du subDn - 'subDnName' => le nom du subDn
This commit is contained in:
parent
fce0276f57
commit
d4f4c5e387
2 changed files with 8 additions and 0 deletions
|
@ -819,6 +819,12 @@ class LSldapObject {
|
||||||
else if(($val=='rdn')||($val=='%{rdn}')) {
|
else if(($val=='rdn')||($val=='%{rdn}')) {
|
||||||
return $this -> attrs[ $this -> config['rdn'] ] -> getValue();
|
return $this -> attrs[ $this -> config['rdn'] ] -> getValue();
|
||||||
}
|
}
|
||||||
|
else if(($val=='subDn')||($val=='%{subDn}')) {
|
||||||
|
return $this -> getSubDnValue();
|
||||||
|
}
|
||||||
|
else if(($val=='subDnName')||($val=='%{subDnName}')) {
|
||||||
|
return $this -> getSubDnName();
|
||||||
|
}
|
||||||
else if(isset($this -> attrs[$val])){
|
else if(isset($this -> attrs[$val])){
|
||||||
if (method_exists($this -> attrs[$val],'getValue'))
|
if (method_exists($this -> attrs[$val],'getValue'))
|
||||||
return $this -> attrs[$val] -> getValue();
|
return $this -> attrs[$val] -> getValue();
|
||||||
|
|
|
@ -616,6 +616,7 @@ class LSsession {
|
||||||
*/
|
*/
|
||||||
function getSubDnLdapServerOptions($selected=NULL) {
|
function getSubDnLdapServerOptions($selected=NULL) {
|
||||||
$list = $this -> getSubDnLdapServer();
|
$list = $this -> getSubDnLdapServer();
|
||||||
|
asort($list);
|
||||||
if ($list) {
|
if ($list) {
|
||||||
$display='';
|
$display='';
|
||||||
foreach($list as $dn => $txt) {
|
foreach($list as $dn => $txt) {
|
||||||
|
@ -860,6 +861,7 @@ class LSsession {
|
||||||
|
|
||||||
// Niveau
|
// Niveau
|
||||||
$listTopDn = $this -> getSubDnLdapServer();
|
$listTopDn = $this -> getSubDnLdapServer();
|
||||||
|
asort($listTopDn);
|
||||||
if (is_array($listTopDn)) {
|
if (is_array($listTopDn)) {
|
||||||
$GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel());
|
$GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel());
|
||||||
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
||||||
|
|
Loading…
Reference in a new issue