Is it possible to require at least one tag, and require a cover image?
$this->validateImage();
public function validateImage()
{
if (!$this->hasImage()) {
throw EB::exception("A cover image is required.", EASYBLOG_MSG_ERROR, false, EASYBLOG_ERROR_CODE_FIELDS);
}
}
$this->validateTags();
public function validateTags()
{
if (!$this->tags) {
throw EB::exception("You need to add at least one tag for this blog.", EASYBLOG_MSG_ERROR, false, EASYBLOG_ERROR_CODE_FIELDS);
}
}