english/libraries/joomla/cache/cache.php
/**
	 * Create safe id for cached data from url parameters set by plugins and framework
	 *
	 * @return  string   md5 encoded cacheid
	 * @since   11.1
	 */
Create safe id for cached data from url parameters set by plugins and framework
@return  string   md5 encoded cacheid
@since   11.1
Create safe id for cached data from url parameters set by plugins and framework @return string md5 encoded cacheid @since 11 . 1
public static function makeId()
	{
		$app = JFactory::getApplication();
		$registeredurlparams = $app->get('registeredurlparams');
		if (empty($registeredurlparams)) {
			return md5(serialize(JRequest::getURI()));   
		}
		$registeredurlparams->format 	= 'WORD';
		$registeredurlparams->option 	= 'WORD';
		$registeredurlparams->view		= 'WORD';
		$registeredurlparams->layout	= 'WORD';
		$registeredurlparams->tpl		= 'CMD';
		$registeredurlparams->id		= 'INT';
		$safeuriaddon = new stdClass;
		foreach ($registeredurlparams AS $key => $value) {
			$safeuriaddon->$key = JRequest::getVar($key, null, 'default', $value);
		}
		return md5(serialize($safeuriaddon));
	}
public static function makeId ( ) { $ app = JFactory :: getApplication ( ) ; $ registeredurlparams = $ app -> get ( 'registeredurlparams' ) ; if ( empty ( $ registeredurlparams ) ) { return md5 ( serialize ( JRequest :: getURI ( ) ) ) ; } $ registeredurlparams -> format = 'WORD' ; $ registeredurlparams -> option = 'WORD' ; $ registeredurlparams -> view = 'WORD' ; $ registeredurlparams -> layout = 'WORD' ; $ registeredurlparams -> tpl = 'CMD' ; $ registeredurlparams -> id = 'INT' ; $ safeuriaddon = new stdClass ; foreach ( $ registeredurlparams AS $ key => $ value ) { $ safeuriaddon -> $ key = JRequest :: getVar ( $ key , null , 'default' , $ value ) ; } return md5 ( serialize ( $ safeuriaddon ) ) ; }
Create safe id for cached data from url parameters set by plugins and framework
 @return  string   md5 encoded cacheid
 @since   11.1
Create safe id for cached data from url parameters set by plugins and framework @return string md5 encoded cacheid @since 11 . 1
// Get url parameters set by plugins /*
			$registeredurlparams = new stdClass;
			$registeredurlparams->Itemid 	= 'INT';
			$registeredurlparams->catid 	= 'INT';
			$registeredurlparams->id 		= 'INT';
			*/ // provided for backwards compatibility - THIS IS NOT SAFE!!!! // Framework defaults