opensupports/server/libs/validations/validTopicName.php
Guillermo Giuliana ba457c8d51 add last files
2021-12-09 03:18:20 -03:00

14 lines
258 B
PHP

<?php
namespace CustomValidations;
use Respect\Validation\Rules\AbstractRule;
class ValidTopicName extends AbstractRule {
public function validate($name) {
$topic = \Topic::getDataStore($name, 'name');
return $topic->isNull();
}
}