0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
administrator
/
components
/
com_csvi
/
models
/
[
Home
]
File: templatetype.php
<?php /** * * Model class for template type editing * * @package Csvi * @author RolandD * @link http://www.csvimproved.com * @copyright Copyright (C) 2006 - 2013 RolandD Cyber Produksi. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id: templatetype.php 2275 2013-01-03 21:08:43Z RolandD $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); // Load the model framework jimport('joomla.application.component.modeladmin'); /** * Sku editing * * @package Csvi * @author RolandD * @since 1.0 */ class CsviModelTemplatetype extends JModelAdmin { /** * @var string Model context string */ private $context = 'com_csvi.templatetype'; /** * Method to get the record form located in models/forms * * @copyright * @author RolandD * @todo * @see * @access public * @param array $data Data for the form. * @param boolean $loadData True if the form is to load its own data (default case), false if not. * @return mixed * @since 1.0 */ public function getForm($data = array(), $loadData = true) { // Get the form. $form = $this->loadForm($this->context, 'templatetype', array('control' => 'jform', 'load_data' => $loadData)); if (empty($form)) return false; return $form; } /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormData() { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_csvi.edit.templatetype.data', array()); if (empty($data)) { $data = $this->getItem(); } return $data; } } ?>
©
2018.