Contactable\SWV
FileRule::matches
Метод класса: FileRule{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$FileRule = new FileRule(); $FileRule->matches( $context );
- $context(обязательный)
- .
Код FileRule::matches() FileRule::matches CF7 6.1.4
public function matches( $context ) {
if ( false === parent::matches( $context ) ) {
return false;
}
if ( empty( $context['file'] ) ) {
return false;
}
return true;
}