Source for file language.php
Documentation is available at language.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* @package Joomla.Platform
* @param JDatabaseDriver $db Database driver object.
* Overloaded check method to ensure data integrity
* @return boolean True on success
if (trim($this->title) ==
'')
* Overrides JTable::store to check unique fields.
* @param boolean $updateNulls True to update fields even if they are null.
* @return boolean True on success.
public function store($updateNulls =
false)
// Verify that the sef field is unique
if ($table->load(array('sef' =>
$this->sef)) &&
($table->lang_id !=
$this->lang_id ||
$this->lang_id ==
0))
// Verify that the image field is unique
if ($table->load(array('image' =>
$this->image)) &&
($table->lang_id !=
$this->lang_id ||
$this->lang_id ==
0))
$this->setError(JText::_('JLIB_DATABASE_ERROR_LANGUAGE_UNIQUE_IMAGE'));
// Verify that the language code is unique
if ($table->load(array('lang_code' =>
$this->lang_code)) &&
($table->lang_id !=
$this->lang_id ||
$this->lang_id ==
0))
$this->setError(JText::_('JLIB_DATABASE_ERROR_LANGUAGE_UNIQUE_LANG_CODE'));
return parent::store($updateNulls);
Documentation generated on Tue, 19 Nov 2013 15:06:26 +0100 by phpDocumentor 1.4.3