Commit 2138f7b6 authored by David Surville's avatar David Surville
Browse files

Ajout des getters pour les attributs : rid, sambaSID, uidNumber, gidNumber,...

Ajout des getters pour les attributs : rid, sambaSID, uidNumber, gidNumber, loinShell et homeDirectory
parent 62115364
...@@ -165,6 +165,12 @@ class People extends Entity ...@@ -165,6 +165,12 @@ class People extends Entity
'supannEtuId', 'supannEtuId',
'supannListeRouge', 'supannListeRouge',
'telephoneNumber', 'telephoneNumber',
'rid',
'sambaSID',
'uidNumber',
'gidNumber',
'loginShell',
'homeDirectory'
]; ];
/** /**
...@@ -660,7 +666,6 @@ class People extends Entity ...@@ -660,7 +666,6 @@ class People extends Entity
public function setSupannEmpId($value = null, $append = false) public function setSupannEmpId($value = null, $append = false)
{ {
$value = $this->preFormat($value); $value = $this->preFormat($value);
$this->appendOrNot('supannEmpId', $value, $append); $this->appendOrNot('supannEmpId', $value, $append);
return $this; return $this;
...@@ -678,7 +683,6 @@ class People extends Entity ...@@ -678,7 +683,6 @@ class People extends Entity
public function setSupannEtuId($value = null, $append = false) public function setSupannEtuId($value = null, $append = false)
{ {
$value = $this->preFormat($value); $value = $this->preFormat($value);
$this->appendOrNot('supannEtuId', $value, $append); $this->appendOrNot('supannEtuId', $value, $append);
return $this; return $this;
...@@ -1222,7 +1226,6 @@ class People extends Entity ...@@ -1222,7 +1226,6 @@ class People extends Entity
public function setUnicaenTermsOfUse($value = null, $append = false) public function setUnicaenTermsOfUse($value = null, $append = false)
{ {
$value = $this->preFormat($value); $value = $this->preFormat($value);
$this->appendOrNot('unicaenTermsOfUse', $value, $append); $this->appendOrNot('unicaenTermsOfUse', $value, $append);
return $this; return $this;
...@@ -1297,6 +1300,119 @@ class People extends Entity ...@@ -1297,6 +1300,119 @@ class People extends Entity
return $this; return $this;
} }
/**
* Attribut Ldap "rid"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setRid($value = null, $append = false)
{
$value = $this->preFormat($value);
$value = array_filter($value, function ($v) {
return preg_match('/[0-9]+/', $v);
});
$this->appendOrNot('rid', $value, $append);
return $this;
}
/**
* Attribut Ldap "sambaSID"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setSambaSID($value = null, $append = false)
{
$value = $this->preFormat($value);
$this->appendOrNot('sambaSID', $value, $append);
return $this;
}
/**
* Attribut Ldap "uidNumber"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setUidNumber($value = null, $append = false)
{
$value = $this->preFormat($value);
$value = array_filter($value, function ($v) {
return preg_match('/[0-9]+/', $v);
});
$this->appendOrNot('uidNumber', $value, $append);
return $this;
}
/**
* Attribut Ldap "gidNumber"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setGidNumber($value = null, $append = false)
{
$value = $this->preFormat($value);
$value = array_filter($value, function ($v) {
return preg_match('/[0-9]+/', $v);
});
$this->appendOrNot('gidNumber', $value, $append);
return $this;
}
/**
* Attribut Ldap "loginShell"
* @todo tester le format
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setLoginShell($value = null, $append = false)
{
$value = $this->preFormat($value);
$this->appendOrNot('loginShell', $value, $append);
return $this;
}
/**
* Attribut Ldap "homeDirectory"
* @todo tester le format
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setHomeDirectory($value = null, $append = false)
{
$value = $this->preFormat($value);
$this->appendOrNot('homeDirectory', $value, $append);
return $this;
}
/** /**
* Retourne les structures auxquelles appartiennent la personne * Retourne les structures auxquelles appartiennent la personne
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment