forked from joomla/joomla-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language.php
46 lines (41 loc) · 855 Bytes
/
language.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @version $Id$
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('JPATH_BASE') or die;
jimport('joomla.database.table');
/**
* Languages table.
*
* @package Joomla.Administrator
* @subpackage com_languages
* @since 1.6
*/
class JTableLanguage extends JTable
{
/**
* Constructor
*
* @param JDatabase
*/
public function __construct(&$db)
{
parent::__construct('#__languages', 'lang_id', $db);
}
/**
* Overloaded check method to ensure data integrity
*
* @return boolean True on success
*/
public function check()
{
if (trim($this->title) == '') {
$this->setError(JText::_('JLIB_DATABASE_ERROR_LANGUAGE_NO_TITLE'));
return false;
}
return true;
}
}