mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +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}')) {
|
||||
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])){
|
||||
if (method_exists($this -> attrs[$val],'getValue'))
|
||||
return $this -> attrs[$val] -> getValue();
|
||||
|
|
|
@ -616,6 +616,7 @@ class LSsession {
|
|||
*/
|
||||
function getSubDnLdapServerOptions($selected=NULL) {
|
||||
$list = $this -> getSubDnLdapServer();
|
||||
asort($list);
|
||||
if ($list) {
|
||||
$display='';
|
||||
foreach($list as $dn => $txt) {
|
||||
|
@ -860,6 +861,7 @@ class LSsession {
|
|||
|
||||
// Niveau
|
||||
$listTopDn = $this -> getSubDnLdapServer();
|
||||
asort($listTopDn);
|
||||
if (is_array($listTopDn)) {
|
||||
$GLOBALS['Smarty'] -> assign('label_level',$this -> getLevelLabel());
|
||||
$GLOBALS['Smarty'] -> assign('_refresh',_('Rafraîchir'));
|
||||
|
|
Loading…
Reference in a new issue