administrator/components/com_categories/controllers/category.php
protected function postSaveHook(JModelLegacy $model, $validData = array())
	{
		$item = $model->getItem();

		if (isset($item->params) && is_array($item->params))
		{
			$registry = new Registry;
			$registry->loadArray($item->params);
			$item->params = (string) $registry;
		}

		if (isset($item->metadata) && is_array($item->metadata))
		{
			$registry = new Registry;
			$registry->loadArray($item->metadata);
			$item->metadata = (string) $registry;
		}
	}
protected function postSaveHook(JModelLegacy $model, $validData = array())
	{
		$item = $model->getItem();

		if (isset($item->params) && is_array($item->params))
		{
			$registry = new Registry;
			$registry->loadArray($item->params);
			$item->params = (string) $registry;
		}

		if (isset($item->metadata) && is_array($item->metadata))
		{
			$registry = new Registry;
			$registry->loadArray($item->metadata);
			$item->metadata = (string) $registry;
		}
	}
protected function postSaveHook ( JModelLegacy $ model , $ validData = array ( ) ) { $ item = $ model -> getItem ( ) ; if ( isset ( $ item -> params ) && is_array ( $ item -> params ) ) { $ registry = new Registry ; $ registry -> loadArray ( $ item -> params ) ; $ item -> params = ( string ) $ registry ; } if ( isset ( $ item -> metadata ) && is_array ( $ item -> metadata ) ) { $ registry = new Registry ; $ registry -> loadArray ( $ item -> metadata ) ; $ item -> metadata = ( string ) $ registry ; } }
Function that allows child controller access to model data after the data has been saved.

@param   JModelLegacy  $model      The data model object.
@param   array         $validData  The validated data.

@return  void

@since   3.1
Function that allows child controller access to model data after the data has been saved .