[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
backup
/
libraries
/
src
/
Table
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Observer
SET
[ DEL ]
📄 Asset.php
4,692 B
SET
[ EDIT ]
|
[ DEL ]
📄 Category.php
5,902 B
SET
[ EDIT ]
|
[ DEL ]
📄 Content.php
8,970 B
SET
[ EDIT ]
|
[ DEL ]
📄 ContentHistory.php
6,738 B
SET
[ EDIT ]
|
[ DEL ]
📄 ContentType.php
3,579 B
SET
[ EDIT ]
|
[ DEL ]
📄 CoreContent.php
10,811 B
SET
[ EDIT ]
|
[ DEL ]
📄 Extension.php
4,949 B
SET
[ EDIT ]
|
[ DEL ]
📄 Language.php
3,323 B
SET
[ EDIT ]
|
[ DEL ]
📄 Menu.php
8,095 B
SET
[ EDIT ]
|
[ DEL ]
📄 MenuType.php
7,831 B
SET
[ EDIT ]
|
[ DEL ]
📄 Module.php
4,409 B
SET
[ EDIT ]
|
[ DEL ]
📄 Nested.php
49,484 B
SET
[ EDIT ]
|
[ DEL ]
📄 Table.php
43,895 B
SET
[ EDIT ]
|
[ DEL ]
📄 TableInterface.php
3,488 B
SET
[ EDIT ]
|
[ DEL ]
📄 Ucm.php
551 B
SET
[ EDIT ]
|
[ DEL ]
📄 Update.php
2,440 B
SET
[ EDIT ]
|
[ DEL ]
📄 UpdateSite.php
998 B
SET
[ EDIT ]
|
[ DEL ]
📄 User.php
13,188 B
SET
[ EDIT ]
|
[ DEL ]
📄 Usergroup.php
7,472 B
SET
[ EDIT ]
|
[ DEL ]
📄 ViewLevel.php
1,869 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: ViewLevel.php
<?php /** * Joomla! Content Management System * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Table; defined('JPATH_PLATFORM') or die; /** * Viewlevels table class. * * @since 1.7.0 */ class ViewLevel extends Table { /** * Constructor * * @param \JDatabaseDriver $db Database driver object. * * @since 1.7.0 */ public function __construct($db) { parent::__construct('#__viewlevels', 'id', $db); } /** * Method to bind the data. * * @param array $array The data to bind. * @param mixed $ignore An array or space separated list of fields to ignore. * * @return boolean True on success, false on failure. * * @since 1.7.0 */ public function bind($array, $ignore = '') { // Bind the rules as appropriate. if (isset($array['rules'])) { if (is_array($array['rules'])) { $array['rules'] = json_encode($array['rules']); } } return parent::bind($array, $ignore); } /** * Method to check the current record to save * * @return boolean True on success * * @since 1.7.0 */ public function check() { // Validate the title. if ((trim($this->title)) == '') { $this->setError(\JText::_('JLIB_DATABASE_ERROR_VIEWLEVEL')); return false; } // Check for a duplicate title. $db = $this->_db; $query = $db->getQuery(true) ->select('COUNT(title)') ->from($db->quoteName('#__viewlevels')) ->where($db->quoteName('title') . ' = ' . $db->quote($this->title)) ->where($db->quoteName('id') . ' != ' . (int) $this->id); $db->setQuery($query); if ($db->loadResult() > 0) { $this->setError(\JText::sprintf('JLIB_DATABASE_ERROR_USERLEVEL_NAME_EXISTS', $this->title)); return false; } return true; } }