File manager - Edit - /home/jardides/www/Jardi-design/j37/administrator/components/com_fabrik/models/fields/formdatabasename.php
Back
<?php /** * Renders the form's database name or a field to create one * * @package Joomla * @subpackage Form * @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); require_once JPATH_ADMINISTRATOR . '/components/com_fabrik/helpers/element.php'; /** * Renders the form's database name or a field to create one * * @package Joomla * @subpackage Form * @since 1.6 */ class JFormFieldFormDatabaseName extends JFormFieldText { /** * Element name * @var string */ protected $name = 'FormDatabaseName'; /** * Method to get the field input markup. * * @return string The field input markup. */ /** * Method to get the field input markup. * * @return string The field input markup. */ protected function getInput() { if ($this->form->getValue('record_in_database')) { $db = FabrikWorker::getDbo(true); $query = $db->getQuery(true); $id = (int) $this->form->getValue('id'); $query->select('db_table_name')->from('#__{package}_lists')->where('form_id = ' . $id); $db->setQuery($query); $this->element['readonly'] == true; $this->element['class'] = 'readonly'; $this->value = $db->loadResult(); } return parent::getInput(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings