Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 25) sorted by relevance

/web-bugs/src/Template/
H A DContext.php64 string $dir,
77 public function extends(string $parent, array $variables = []): void
89 public function block(string $name): string
99 public function start(string $name): void
112 public function append(string $name): void
126 public function end(string $name): void
144 public function include(string $template, array $variables = [])
159 public function e(string $string): string argument
161 return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
168 public function noHtml(string $string): string argument
[all …]
H A DEngine.php43 public function __construct(string $dir)
75 public function register(string $name, callable $callable): void
91 public function render(string $template, array $variables = []): string
116 private function bufferize(string $template, array $variables = []): string
/web-bugs/src/Utils/
H A DUploader.php51 public function setValidExtension(string $validExtension): void
67 public function setDir(string $dir): void
75 public function setDestinationFileName(string $destinationFileName): void
83 public function upload(string $key): string
150 protected function isUploadedFile(string $file): bool
159 protected function moveUploadedFile(string $source, string $destination): bool
167 protected function renameFile(string $filename): ?string
188 protected function getFileExtension(string $filename): string
198 protected function getMediaType(string $file): string
H A DPatchTracker.php49 public function __construct(\PDO $dbh, Uploader $uploader, string $uploadsDir)
72 private function getPatchDir(int $bugId, string $name): string
80 private function createPatchDir(int $bugId, string $name): void
109 private function newPatchFileName(int $bugId, string $patch, string $developer): int
135 private function getPatchFileName(int $revision): string
143 public function getPatchFullpath(int $bugId, string $name, int $revision): string
151 …public function attach(int $bugId, string $patch, string $name, string $developer, array $obsolete…
208 private function validatePatchName(string $name): void
218 private function detach(int $bugId, string $name, int $revision): void
233 …private function obsoletePatch(int $bugId, string $name, int $revision, string $obsoleteName, int …
H A DCache.php32 public function __construct(string $dir)
51 public function set(string $key, $data, int $ttl = self::TTL): void
60 $string = '<?php return '.var_export($item, true).";\n";
62 file_put_contents($this->dir.'/'.$key.'.php', $string);
68 public function has(string $key): bool
92 public function get(string $key): ?array
135 public function delete(string $key): bool
153 private function validateKey(string $key): bool
H A DCaptcha.php82 public function setOperation(string $operation): void
90 public function getQuestion(): string
/web-bugs/src/Repository/
H A DPhpInfoRepository.php10 public function getInfo(): string
21 private function replaceSensitiveInformation(string $phpInfo): string
36 private function cleanHtml(string $phpInfo): string
H A DPatchRepository.php25 public function __construct(\PDO $dbh, string $uploadsDir)
51 public function findDeveloper(int $bugId, string $patch, int $revision): string
69 public function findRevisions(int $bugId, string $patch): array
86 public function getPatchContents(int $bugId, string $name, int $revision): string
112 private function getPatchPath(int $bugId, string $name, int $revision): string
H A DObsoletePatchRepository.php27 public function findObsoletingPatches(int $bugId, string $patch, int $revision): array
43 public function findObsoletePatches(int $bugId, string $patch, int $revision): array
H A DVoteRepository.php27 public function findOneByIdAndIp(int $id, string $ip): array
H A DBugRepository.php123 public function findAllByBugType(string $type = 'All'): array
145 public function findPhpVersions(string $type = 'All'): array
H A DDatabaseStatusRepository.php24 public function getMysqlVersion(): string
H A DPackageRepository.php36 public function findAll(string $project = ''): array
59 public function findEnabled(string $project = ''): array
/web-bugs/src/Horde/Text/Diff/Renderer/
H A DInline.php169 protected function _splitOnWords($string, $newlineEscape = "\n") argument
172 $string = str_replace("\0", '', $string);
175 $length = strlen($string);
180 $spaces = strspn(substr($string, $pos), " \n");
181 $nextpos = strcspn(substr($string, $pos + $spaces), " \n");
182 $words[] = str_replace("\n", $newlineEscape, substr($string, $pos, $spaces + $nextpos));
189 protected function _encode(&$string) argument
191 $string = htmlspecialchars($string);
/web-bugs/tests/Unit/Template/
H A DContextTest.php66 public function testEscaping(string $malicious, string $escaped, string $noHtml): void
74 public function testNoHtml(string $malicious, string $escaped, string $noHtml): void
/web-bugs/src/Container/
H A DContainerInterface.php20 public function get(string $id);
33 public function has(string $id): bool;
H A DContainer.php45 public function set(string $key, $entry): void
55 public function get(string $id)
71 public function has(string $id): bool
81 private function createEntry(string $id)
/web-bugs/tests/Unit/Container/
H A DMockDependency.php12 public function __construct(string $parameter)
17 public function getParameter(): string
H A DMockService.php23 public function setProperty(string $value): void
28 public function getProperty(): string
/web-bugs/tests/Unit/Utils/
H A DCaptchaTest.php21 …public function testGetQuestion(int $first, int $last, string $operation, string $question, int $e…
H A DUploaderTest.php17 public function testUpload(string $validExtension, array $file): void
/web-bugs/tests/Unit/
H A DAutoloaderTest.php82 public function testLoad(string $class, $expected): void
/web-bugs/src/Utils/Versions/
H A DGenerator.php170 private function parseVersion(string $version): array
/web-bugs/docs/
H A Dtemplates.md170 $template->register('formatDate', function (int $timestamp): string {
192 To replace all characters to their applicable HTML entities in the given string:
198 To escape given string and still preserve certain characters as HTML:
/web-bugs/include/
H A Dfunctions.php271 * @param string $txt the email address to be obfuscated
272 * @param string $format how the output will be displayed ('html', 'text', 'reverse')
274 * @return string the altered email address

Completed in 24 milliseconds