Drupal investigation

AdapterInterface.php 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Finder\Adapter;
  11. /**
  12. * @author Jean-François Simon <contact@jfsimon.fr>
  13. *
  14. * @deprecated since 2.8, to be removed in 3.0.
  15. */
  16. interface AdapterInterface
  17. {
  18. /**
  19. * @param bool $followLinks
  20. *
  21. * @return $this
  22. */
  23. public function setFollowLinks($followLinks);
  24. /**
  25. * @param int $mode
  26. *
  27. * @return $this
  28. */
  29. public function setMode($mode);
  30. /**
  31. * @param array $exclude
  32. *
  33. * @return $this
  34. */
  35. public function setExclude(array $exclude);
  36. /**
  37. * @param array $depths
  38. *
  39. * @return $this
  40. */
  41. public function setDepths(array $depths);
  42. /**
  43. * @param array $names
  44. *
  45. * @return $this
  46. */
  47. public function setNames(array $names);
  48. /**
  49. * @param array $notNames
  50. *
  51. * @return $this
  52. */
  53. public function setNotNames(array $notNames);
  54. /**
  55. * @param array $contains
  56. *
  57. * @return $this
  58. */
  59. public function setContains(array $contains);
  60. /**
  61. * @param array $notContains
  62. *
  63. * @return $this
  64. */
  65. public function setNotContains(array $notContains);
  66. /**
  67. * @param array $sizes
  68. *
  69. * @return $this
  70. */
  71. public function setSizes(array $sizes);
  72. /**
  73. * @param array $dates
  74. *
  75. * @return $this
  76. */
  77. public function setDates(array $dates);
  78. /**
  79. * @param array $filters
  80. *
  81. * @return $this
  82. */
  83. public function setFilters(array $filters);
  84. /**
  85. * @param \Closure|int $sort
  86. *
  87. * @return $this
  88. */
  89. public function setSort($sort);
  90. /**
  91. * @param array $paths
  92. *
  93. * @return $this
  94. */
  95. public function setPath(array $paths);
  96. /**
  97. * @param array $notPaths
  98. *
  99. * @return $this
  100. */
  101. public function setNotPath(array $notPaths);
  102. /**
  103. * @param bool $ignore
  104. *
  105. * @return $this
  106. */
  107. public function ignoreUnreadableDirs($ignore = true);
  108. /**
  109. * @param string $dir
  110. *
  111. * @return \Iterator Result iterator
  112. */
  113. public function searchInDirectory($dir);
  114. /**
  115. * Tests adapter support for current platform.
  116. *
  117. * @return bool
  118. */
  119. public function isSupported();
  120. /**
  121. * Returns adapter name.
  122. *
  123. * @return string
  124. */
  125. public function getName();
  126. }