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

14 lines
278 B
PHP

<?php
namespace CustomValidations;
use Respect\Validation\Rules\AbstractRule;
class ValidArticleContent extends AbstractRule {
public function validate($content) {
$article = \Article::getDataStore($content, 'content');
return $article->isNull();
}
}