diff --git a/reference/classobj/functions/trait-exists.xml b/reference/classobj/functions/trait-exists.xml new file mode 100644 index 000000000..f404507bc --- /dev/null +++ b/reference/classobj/functions/trait-exists.xml @@ -0,0 +1,75 @@ + + + + + + + trait_exists + Проверяет, существует ли трейт + + + + &reftitle.description; + + booltrait_exists + stringtraitname + boolautoload + + + + + + + + + &reftitle.parameters; + + + traitname + + + Имя трейта для проверки + + + + + autoload + + + Пытаться ли его загрузить автоматически + + + + + + + + &reftitle.returnvalues; + + Возвращает &true; если трейт существует, &false; если нет, &null; в случае ошибки. + + + + + + +