english/components/com_weblinks/models/form.php
/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @since	1.6
	 */
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.


Method to auto - populate the model state . Note . Calling getState in this method will result in recursion .
protected function populateState()
	{
		$app = JFactory::getApplication();
		$pk = JRequest::getInt('w_id');
		$this->setState('weblink.id', $pk);
		$this->setState('form.id', $pk);
		$categoryId	= JRequest::getInt('catid');
		$this->setState('weblink.catid', $categoryId);
		$return = JRequest::getVar('return', null, 'default', 'base64');
		if (!JUri::isInternal(base64_decode($return))) {
			$return = null;
		}
		$this->setState('return_page', base64_decode($return));
		$params	= $app->getParams();
		$this->setState('params', $params);
		$this->setState('layout', JRequest::getCmd('layout'));
	}
protected function populateState ( ) { $ app = JFactory :: getApplication ( ) ; $ pk = JRequest :: getInt ( 'w_id' ) ; $ this -> setState ( 'weblink.id' , $ pk ) ; $ this -> setState ( 'form.id' , $ pk ) ; $ categoryId = JRequest :: getInt ( 'catid' ) ; $ this -> setState ( 'weblink.catid' , $ categoryId ) ; $ return = JRequest :: getVar ( 'return' , null , 'default' , 'base64' ) ; if ( ! JUri :: isInternal ( base64_decode ( $ return ) ) ) { $ return = null ; } $ this -> setState ( 'return_page' , base64_decode ( $ return ) ) ; $ params = $ app -> getParams ( ) ; $ this -> setState ( 'params' , $ params ) ; $ this -> setState ( 'layout' , JRequest :: getCmd ( 'layout' ) ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Load state from the request. // Add compatibility variable for default naming conventions. // Load the parameters.