- md5
- 08a426fde6546b7d615eae0c0ac8e77a
- sha1
- 590ad9170fd946fa356ef39bc05fd1eeea410edf
- sha256
- 71e70018ce487c3b5c4add0b0cc11c60db069a7dc8a50f0940ed6d0b256ede6c
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
<?php
/**
* @version $Id: form.php 20250 2011-01-10 14:27:02Z chdemko $
* @package Joomla.Site
* @subpackage com_weblinks
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
require_once JPATH_COMPONENT_ADMINISTRATOR.'/models/weblink.php';
/**
* Weblinks model.
*
* @package Joomla.Site
* @subpackage com_weblinks
* @since 1.6
*/
class WeblinksModelForm extends WeblinksModelWeblink
{
/**
* Get the return URL.
*
* @return string The return URL.
* @since 1.6
*/
public function getReturnPage()
{
return base64_encode($this->getState('return_page'));
}
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @since 1.6
*/
protected function populateState()
{
$app = JFactory::getApplication();
// Load state from the request.
$pk = JRequest::getInt('w_id');
$this->setState('weblink.id', $pk);
// Add compatibility variable for default naming conventions.
$this->setState('form.id', $pk);
$categoryId = JRequest::getInt('catid');
$this->setState('weblink.catid', $categoryId);
$return = JRequest::getVar('return', null, 'default', 'base64');
$this->setState('return_page', base64_decode($return));
// Load the parameters.
$params = $app->getParams();
$this->setState('params', $params);
$this->setState('layout', JRequest::getCmd('layout'));
}
}
No other release has this exact content. See every version of this file.