Get user identification prends en paramêtre un fonction qui calcule les droits de l'obje, du user et l'intersection entre obje-user.
function getUserIdentification(
string $user_id,
string $id_checker,
callable $identificationFunction,
$this_id_type = null,
bool $all_franchise_documents = false
): array;
/**
* Get l'interlocuteur conerné
* @return string Interlocutor ID
*/
public function handleInterlocuteur();
/**
* Get les informations de l'entité de type franhcise/agence concerné par l'obje
* @return array Entity information
*/
public function getEntite();
}
⚙️ Parameters
$user_id(string) User ID
$id_checker(string) Checker ID
$identificationFunction(callable) Function to calculate rights
$this_id_type(mixed|null) Optional ID type parameter
$all_franchise_documents(bool) Optional parameter for documents
↩️ Returns
(array) User identification information
🔧 handleInterlocuteur
Get l'interlocuteur conerné
function handleInterlocuteur();
/**
* Get les informations de l'entité de type franhcise/agence concerné par l'obje
* @return array Entity information
*/
public function getEntite();
}
↩️ Returns
(string) Interlocutor ID
🔧 getEntite
Get les informations de l'entité de type franhcise/agence concerné par l'obje