GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
@@ -34,15 +34,23 @@ class Class_CodifThesaurusLoader extends Storm_Model_Loader {
}
publicfunctiongetCodeSur4Chiffres($code){
$length=strlen($code);
while(strlen($code)%4!=0)
$code.='0';
return$code;
}
publicfunctiongetIndices($pere)
{
if($pere=="root")
return$this->findAllBy(['where'=>'code not like "catalogue" and LENGTH(id_thesaurus) in (1,2)','order'=>'id_thesaurus']);
return$this->findAllBy(['where'=>'code not like "catalogue" and LENGTH(id_thesaurus) in (1,4)','order'=>'id_thesaurus']);
$pere=$this->getCodeSur4Chiffres($pere);
$length=strlen($pere);
if($length%2==1)
$length++;
return$this->findAllBy(['where'=>'id_thesaurus like "'.$pere.'%" and LENGTH(id_thesaurus) in ('.($length+1).','.($length+2).')','order'=>'id_thesaurus']);
return$this->findAllBy(['where'=>'id_thesaurus like "'.$pere.'%" and LENGTH(id_thesaurus) in ('.($length+1).','.($length+4).')','order'=>'id_thesaurus']);