161 lines
4.8 KiB
PHP
161 lines
4.8 KiB
PHP
|
<?php
|
||
|
namespace nur\ldap;
|
||
|
|
||
|
/**
|
||
|
* Class PersonObject: une personne au sens inetOrg
|
||
|
*
|
||
|
* --autogen-properties-and-methods--
|
||
|
* @property string $dn
|
||
|
* @property string[] $cn
|
||
|
* @property string[] $objectClass
|
||
|
* @property int[] $x121Address
|
||
|
* @property string[] $registeredAddress
|
||
|
* @property string[] $destinationIndicator
|
||
|
* @property string $preferredDeliveryMethod
|
||
|
* @property string[] $telexNumber
|
||
|
* @property string[] $teletexTerminalIdentifier
|
||
|
* @property string[] $telephoneNumber
|
||
|
* @property int[] $internationaliSDNNumber
|
||
|
* @property string[] $facsimileTelephoneNumber
|
||
|
* @property string[] $seeAlso
|
||
|
* @property string[] $roleOccupant
|
||
|
* @property string[] $street
|
||
|
* @property string[] $postOfficeBox
|
||
|
* @property string[] $postalCode
|
||
|
* @property string[] $postalAddress
|
||
|
* @property string[] $physicalDeliveryOfficeName
|
||
|
* @property string[] $ou
|
||
|
* @property string[] $st
|
||
|
* @property string[] $l
|
||
|
* @property string[] $description
|
||
|
* @method \nur\ldap\LdapAttr dn()
|
||
|
* @method \nur\ldap\LdapAttr cn()
|
||
|
* @method \nur\ldap\LdapAttr objectClass()
|
||
|
* @method \nur\ldap\LdapAttr x121Address()
|
||
|
* @method \nur\ldap\LdapAttr registeredAddress()
|
||
|
* @method \nur\ldap\LdapAttr destinationIndicator()
|
||
|
* @method \nur\ldap\LdapAttr preferredDeliveryMethod()
|
||
|
* @method \nur\ldap\LdapAttr telexNumber()
|
||
|
* @method \nur\ldap\LdapAttr teletexTerminalIdentifier()
|
||
|
* @method \nur\ldap\LdapAttr telephoneNumber()
|
||
|
* @method \nur\ldap\LdapAttr internationaliSDNNumber()
|
||
|
* @method \nur\ldap\LdapAttr facsimileTelephoneNumber()
|
||
|
* @method \nur\ldap\LdapAttr seeAlso()
|
||
|
* @method \nur\ldap\LdapAttr roleOccupant()
|
||
|
* @method \nur\ldap\LdapAttr street()
|
||
|
* @method \nur\ldap\LdapAttr postOfficeBox()
|
||
|
* @method \nur\ldap\LdapAttr postalCode()
|
||
|
* @method \nur\ldap\LdapAttr postalAddress()
|
||
|
* @method \nur\ldap\LdapAttr physicalDeliveryOfficeName()
|
||
|
* @method \nur\ldap\LdapAttr ou()
|
||
|
* @method \nur\ldap\LdapAttr st()
|
||
|
* @method \nur\ldap\LdapAttr l()
|
||
|
* @method \nur\ldap\LdapAttr description()
|
||
|
*/
|
||
|
class OrganizationalRoleObject extends LdapObject {
|
||
|
const OBJECT_CLASSES = [
|
||
|
"organizationalRole",
|
||
|
];
|
||
|
const PARENT_RDN = "ou=People";
|
||
|
const DN_NAMES = "cn";
|
||
|
|
||
|
#############################################################################
|
||
|
const _AUTOGEN_CONSTS = ["SCHEMA"];
|
||
|
const _AUTOGEN_PROPERTIES = [[self::class, "_AUTOGEN_PROPERTIES"]];
|
||
|
const _AUTOGEN_METHODS = [[self::class, "_AUTOGEN_METHODS"]];
|
||
|
const SCHEMA = /*autogen*/[
|
||
|
'dn' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 1,
|
||
|
],
|
||
|
'cn' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'objectClass' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'x121Address' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\IntegerSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'registeredAddress' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\PostalAddressSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'destinationIndicator' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\PrintableSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'preferredDeliveryMethod' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 1,
|
||
|
],
|
||
|
'telexNumber' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\TelephoneSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'teletexTerminalIdentifier' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'telephoneNumber' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\TelephoneSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'internationaliSDNNumber' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\IntegerSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'facsimileTelephoneNumber' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\TelephoneSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'seeAlso' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'roleOccupant' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'street' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'postOfficeBox' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'postalCode' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'postalAddress' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\PostalAddressSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'physicalDeliveryOfficeName' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'ou' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'st' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'l' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
'description' => [
|
||
|
'class' => 'nur\\ldap\\syntaxes\\StringSyntax',
|
||
|
'flags' => 0,
|
||
|
],
|
||
|
];
|
||
|
}
|