[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Table; 11 12 use Joomla\CMS\Language\Text; 13 use Joomla\Database\DatabaseDriver; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('JPATH_PLATFORM') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Update site table 21 * Stores the update sites for extensions 22 * 23 * @since 3.4 24 */ 25 class UpdateSite extends Table 26 { 27 /** 28 * Constructor 29 * 30 * @param DatabaseDriver $db Database driver object. 31 * 32 * @since 3.4 33 */ 34 public function __construct(DatabaseDriver $db) 35 { 36 parent::__construct('#__update_sites', 'update_site_id', $db); 37 } 38 39 /** 40 * Overloaded check function 41 * 42 * @return boolean True if the object is ok 43 * 44 * @see Table::check() 45 * @since 3.4 46 */ 47 public function check() 48 { 49 try { 50 parent::check(); 51 } catch (\Exception $e) { 52 $this->setError($e->getMessage()); 53 54 return false; 55 } 56 57 // Check for valid name 58 if (trim($this->name) == '' || trim($this->location) == '') { 59 $this->setError(Text::_('JLIB_DATABASE_ERROR_MUSTCONTAIN_A_TITLE_EXTENSION')); 60 61 return false; 62 } 63 64 return true; 65 } 66 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |