FakeTitle.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * Fake title class that triggers an error if any members are called
  4. */
  5. class FakeTitle extends Title {
  6. function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); }
  7. // PHP 5.1 method overload
  8. function __call( $name, $args ) { $this->error(); }
  9. // PHP <5.1 compatibility
  10. function isLocal() { $this->error(); }
  11. function isTrans() { $this->error(); }
  12. function getText() { $this->error(); }
  13. function getPartialURL() { $this->error(); }
  14. function getDBkey() { $this->error(); }
  15. function getNamespace() { $this->error(); }
  16. function getNsText() { $this->error(); }
  17. function getSubjectNsText() { $this->error(); }
  18. function getInterwiki() { $this->error(); }
  19. function getFragment() { $this->error(); }
  20. function getDefaultNamespace() { $this->error(); }
  21. function getIndexTitle() { $this->error(); }
  22. function getPrefixedDBkey() { $this->error(); }
  23. function getPrefixedText() { $this->error(); }
  24. function getFullText() { $this->error(); }
  25. function getPrefixedURL() { $this->error(); }
  26. function getFullURL( $query = '', $variant = false ) {$this->error(); }
  27. function getLocalURL( $query = '', $variant = false ) { $this->error(); }
  28. function escapeLocalURL( $query = '' ) { $this->error(); }
  29. function escapeFullURL( $query = '' ) { $this->error(); }
  30. function getInternalURL( $query = '', $variant = false ) { $this->error(); }
  31. function getEditURL() { $this->error(); }
  32. function getEscapedText() { $this->error(); }
  33. function isExternal() { $this->error(); }
  34. function isSemiProtected( $action = 'edit' ) { $this->error(); }
  35. function isProtected( $action = '' ) { $this->error(); }
  36. function userIsWatching() { $this->error(); }
  37. function userCan( $action, $doExpensiveQueries = true ) { $this->error(); }
  38. function userCanCreate() { $this->error(); }
  39. function userCanEdit( $doExpensiveQueries = true ) { $this->error(); }
  40. function userCanMove() { $this->error(); }
  41. function isMovable() { $this->error(); }
  42. function userCanRead() { $this->error(); }
  43. function isTalkPage() { $this->error(); }
  44. function isCssJsSubpage() { $this->error(); }
  45. function isValidCssJsSubpage() { $this->error(); }
  46. function getSkinFromCssJsSubpage() { $this->error(); }
  47. function isCssSubpage() { $this->error(); }
  48. function isJsSubpage() { $this->error(); }
  49. function userCanEditCssJsSubpage() { $this->error(); }
  50. function loadRestrictions( $res ) { $this->error(); }
  51. function getRestrictions($action) { $this->error(); }
  52. function isDeleted() { $this->error(); }
  53. function getArticleID( $flags = 0 ) { $this->error(); }
  54. function getLatestRevID() { $this->error(); }
  55. function resetArticleID( $newid ) { $this->error(); }
  56. function invalidateCache() { $this->error(); }
  57. function getTalkPage() { $this->error(); }
  58. function getSubjectPage() { $this->error(); }
  59. function getLinksTo() { $this->error(); }
  60. function getTemplateLinksTo() { $this->error(); }
  61. function getBrokenLinksFrom() { $this->error(); }
  62. function getSquidURLs() { $this->error(); }
  63. function moveNoAuth() { $this->error(); }
  64. function isValidMoveOperation() { $this->error(); }
  65. function moveTo() { $this->error(); }
  66. function moveOverExistingRedirect() { $this->error(); }
  67. function moveToNewTitle() { $this->error(); }
  68. function isValidMoveTarget() { $this->error(); }
  69. function getParentCategories() { $this->error(); }
  70. function getParentCategoryTree() { $this->error(); }
  71. function pageCond() { $this->error(); }
  72. function getPreviousRevisionID() { $this->error(); }
  73. function getNextRevisionID() { $this->error(); }
  74. function equals() { $this->error(); }
  75. function exists() { $this->error(); }
  76. function isAlwaysKnown() { $this->error(); }
  77. function isKnown() { $this->error(); }
  78. function touchLinks() { $this->error(); }
  79. function trackbackURL() { $this->error(); }
  80. function trackbackRDF() { $this->error(); }
  81. }