mirror of
https://github.com/opensupports/opensupports.git
synced 2025-08-29 13:48:40 +02:00
14 lines
258 B
PHP
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();
|
|
}
|
|
}
|