Example #1
0
 /**
  * Method to get a route configuration for the reset view.
  *
  * @access	public
  * @return	mixed		Integer menu id on success, null on failure.
  * @since	1.0
  * @static
  */
 function getResetRoute()
 {
     // Get the items.
     $items =& UsersHelperRoute::getItems();
     $itemid = null;
     // Search for a suitable menu id.
     foreach ($items as $item) {
         if (isset($item->query['view']) && $item->query['view'] === 'reset') {
             $itemid = $item->id;
             break;
         }
     }
     return $itemid;
 }