PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/library/XenForo/Route/BuilderInterface.php

https://github.com/hanguyenhuu/DTUI_201105
PHP | 29 lines | 5 code | 1 blank | 23 comment | 0 complexity | 5966fdc528a1292292859af756740d1b MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause
  1. <?php
  2. /**
  3. * Interface for a route that can build a link to a specified type of data.
  4. *
  5. * @package XenForo_Mvc
  6. */
  7. interface XenForo_Route_BuilderInterface
  8. {
  9. /**
  10. * Method to build a link to the specified page/action with the provided
  11. * data and params.
  12. *
  13. * Unhandled extra params will be turned into a query string after this
  14. * function is called. If a param is handled by the core URL, it should
  15. * be unset from the extra params list.
  16. *
  17. * @param string $originalPrefix Original prefix for the type of link to be generated;
  18. * this is a known value, but shouldn't be displayed to the user
  19. * @param string $outputPrefix The configured output that means the same thing as the original prefix but is user configured
  20. * @param string $action Action to take on the data
  21. * @param string $extension Specified extension for the link
  22. * @param mixed $data Info about data to link to specifically (eg, info about a thread)
  23. * @param array $extraParams Extra params that modify how the link is built
  24. *
  25. * @return string|false Core link if handled, false otherwise
  26. */
  27. public function buildLink($originalPrefix, $outputPrefix, $action, $extension, $data, array &$extraParams);
  28. }