Example #1
0
 /**
  * Generate a unique-ish hash of the page's identity, including all
  * context that differentiates it from other similar pages (e.g. all
  * articles vs. all articles starting with "l").
  * @param $contextData array A set of information identifying the page
  * @return string hash
  */
 function hashPageContext($contextData = array())
 {
     return md5(implode(',', Request::getRequestedContextPath()) . ',' . Request::getRequestedPage() . ',' . Request::getRequestedOp() . ',' . serialize($contextData));
 }