AAAAhome/academiac/www/administrator/components/com_unitehcarousel/models/slider.php000060400000004525151372307260024432 0ustar00visual) == false){ $registry = new JRegistry(); $registry->loadString($item->visual,'JSON'); $item->visual = $registry->toArray(); } return($item); } /** * * get the form */ public function getForm($data = array(), $loadData = true) { jimport('joomla.form.form'); // Get the form. $form = $this->loadForm('com_unitehcarousel.slider', 'slider', array('control' => 'jform', 'load_data' => $loadData)); if (empty($form)) { return false; } return $form; } /** * * load the form data */ protected function loadFormData() { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_unitehcarousel.edit.slider.data', array()); if (empty($data)) { $data = $this->getItem(); } return $data; } /** * * prepare table for saving */ protected function prepareTableReal(&$table) { jimport('joomla.filter.output'); $date = JFactory::getDate(); $user = JFactory::getUser(); $table->title = htmlspecialchars_decode($table->title, ENT_QUOTES); $table->alias = JApplication::stringURLSafe($table->alias); if (empty($table->alias)) { $table->alias = JApplication::stringURLSafe($table->title); } if (empty($table->id)) { // Set ordering to the last item if not set if (empty($table->ordering)) { $db = JFactory::getDbo(); $db->setQuery('SELECT MAX(ordering) FROM #__unitehcarousel_sliders'); $max = $db->loadResult(); $table->ordering = $max+1; } } } } home/academiac/www/administrator/components/com_unitehcarousel/models/fields/slider.php000060400000003165151372370270025700 0ustar00requireFramework(); $arrSliders = HelperUniteHCar::getArrSliders(); $html = ""; return $html; } }