mirror of
https://github.com/opensupports/opensupports.git
synced 2025-08-29 05:38:37 +02:00
14 lines
267 B
PHP
14 lines
267 B
PHP
<?php
|
|
|
|
namespace CustomValidations;
|
|
|
|
use Respect\Validation\Rules\AbstractRule;
|
|
|
|
class ValidArticleName extends AbstractRule {
|
|
|
|
public function validate($name) {
|
|
$article = \Article::getDataStore($name, 'title');
|
|
return $article->isNull();
|
|
}
|
|
}
|