Back to Language class

Method check

public bool
check
()
Overloaded check method to ensure data integrity
Returns
  • bool True on success
Since
  • 1.7.0
Class: Language
Project: Joomla

Method check - Source code

/**
 * Overloaded check method to ensure data integrity
 *
 * @return  boolean  True on success
 *
 * @since   1.7.0
 */
public function check()
{
    try {
        parent::check();
    } catch (\Exception $e) {
        $this->setError($e->getMessage());
        return false;
    }
    if (trim($this->title) == '') {
        $this->setError(Text::_('JLIB_DATABASE_ERROR_LANGUAGE_NO_TITLE'));
        return false;
    }
    return true;
}