english/administrator/components/com_users/models/user.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_users.edit.user.data', array());
		if (empty($data)) {
			$data = $this->getItem();
		}
		$dispatcher	= JDispatcher::getInstance();
		JPluginHelper::importPlugin('user');
		$results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $data));
		if (count($results) && in_array(false, $results, true)) {
			$this->setError($dispatcher->getError());
		}
		return $data;
	}
protected function loadFormData ( ) { $ data = JFactory :: getApplication ( ) -> getUserState ( 'com_users.edit.user.data' , array ( ) ) ; if ( empty ( $ data ) ) { $ data = $ this -> getItem ( ) ; } $ dispatcher = JDispatcher :: getInstance ( ) ; JPluginHelper :: importPlugin ( 'user' ) ; $ results = $ dispatcher -> trigger ( 'onContentPrepareData' , array ( 'com_users.profile' , $ data ) ) ; if ( count ( $ results ) && in_array ( false , $ results , true ) ) { $ this -> setError ( $ dispatcher -> getError ( ) ) ; } 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. // TODO: Maybe this can go into the parent model somehow?
 // Get the dispatcher and load the users plugins. // Trigger the data preparation event. // Check for errors encountered while preparing the data.