Файловый менеджер - Редактировать - /home/wuectly/www/components/com_icagenda/models/icagenda.php
Назад
<?php /** * iCagenda *---------------------------------------------------------------------------- * @package com_icagenda * @copyright Copyright (C) 2012 JOOMLIC - All rights reserved. * @license GNU General Public License version 3 or later; see LICENSE.txt * @author Jooml!C - http://www.joomlic.com * * @since 1.0 *---------------------------------------------------------------------------- */ // No direct access to this file defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.application.component.model' ); /** * iCagenda Model */ class iCagendaModelicagenda extends JModelItem { function getText() { $db =& JFactory::getDBO(); $query = 'SELECT * FROM #__icagenda'; $db->setQuery( $query ); $value =& $db->loadObjectList(); return $value; } /** * @var object item */ protected $item; /** * Method to auto-populate the model state. * * This method should only be called once per instantiation and is designed * to be called on the first call to the getState() method unless the model * configuration flag to ignore the request is set. * * Note. Calling getState in this method will result in recursion. * * @return void * @since 2.5 */ protected function populateState() { $app = JFactory::getApplication(); // Get the message id $id = JRequest::getInt('id'); $this->setState('message.id', $id); // Load the parameters. $params = $app->getParams(); $this->setState('params', $params); parent::populateState(); } /** * Returns a reference to the a Table object, always creating it. * * @param type The table type to instantiate * @param string A prefix for the table class name. Optional. * @param array Configuration array for model. Optional. * @return JTable A database object * @since 2.5 */ public function getTable($type = 'iCagenda', $prefix = 'iCagendaTable', $config = array()) { return JTable::getInstance($type, $prefix, $config); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка