english/administrator/components/com_weblinks/models/weblink.php
/**
	 * Method to get the data that should be injected in the form.
	 *
	 * @return	mixed	The data for the form.
	 * @since	1.6
	 */
Method to get the data that should be injected in the form.
@return      mixed   The data for the form.
Method to get the data that should be injected in the form . @return mixed The data for the form .
protected function loadFormData()
	{
		$data = JFactory::getApplication()->getUserState('com_weblinks.edit.weblink.data', array());
		if (empty($data)) {
			$data = $this->getItem();
			if ($this->getState('weblink.id') == 0) {
				$app = JFactory::getApplication();
				$data->set('catid', JRequest::getInt('catid', $app->getUserState('com_weblinks.weblinks.filter.category_id')));
			}
		}
		return $data;
	}
protected function loadFormData ( ) { $ data = JFactory :: getApplication ( ) -> getUserState ( 'com_weblinks.edit.weblink.data' , array ( ) ) ; if ( empty ( $ data ) ) { $ data = $ this -> getItem ( ) ; if ( $ this -> getState ( 'weblink.id' ) == 0 ) { $ app = JFactory :: getApplication ( ) ; $ data -> set ( 'catid' , JRequest :: getInt ( 'catid' , $ app -> getUserState ( 'com_weblinks.weblinks.filter.category_id' ) ) ) ; } } return $ data ; }
Method to get the data that should be injected in the form.
Method to get the data that should be injected in the form .
// Check the session for previously entered form data. // Prime some default values.