10000) { self::$authorities[$authority_type] = array(); } switch($authority_type){ case AUT_TABLE_AUTHORS : if(!isset($params['recursif'])) $params['recursif'] = 0; self::$authorities[$authority_type][$authority_id] = new auteur($authority_id, $params['recursif']); break; case AUT_TABLE_CATEG : global $lang; self::$authorities[$authority_type][$authority_id] = new category($authority_id,$lang); break; case AUT_TABLE_PUBLISHERS : self::$authorities[$authority_type][$authority_id] = new editeur($authority_id); break; case AUT_TABLE_COLLECTIONS : self::$authorities[$authority_type][$authority_id] = new collection($authority_id); break; case AUT_TABLE_SUB_COLLECTIONS : self::$authorities[$authority_type][$authority_id] = new subcollection($authority_id); break; case AUT_TABLE_SERIES : self::$authorities[$authority_type][$authority_id] = new serie($authority_id); break; case AUT_TABLE_INDEXINT : self::$authorities[$authority_type][$authority_id] = new indexint($authority_id); break; case AUT_TABLE_TITRES_UNIFORMES : self::$authorities[$authority_type][$authority_id] = new titre_uniforme($authority_id); break; case AUT_TABLE_CONCEPT : self::$authorities[$authority_type][$authority_id] = new skos_concept($authority_id); break; case AUT_TABLE_INDEX_CONCEPT : self::$authorities[$authority_type][$authority_id] = new concept($authority_id); break; case AUT_TABLE_AUTHPERSO : self::$authorities[$authority_type][$authority_id] = new authperso_authority($authority_id); break; default : return null; } return self::$authorities[$authority_type][$authority_id]; } }