ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Blade.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Gettext\Extractors
;
4
5
use
Gettext\Translations
;
6
use
Illuminate\Filesystem\Filesystem
;
7
use
Illuminate\View\Compilers\BladeCompiler
;
8
12
class
Blade
extends
Extractor
implements
ExtractorInterface
13
{
14
public
static
$cachePath
;
15
19
public
static
function
fromString
($string,
Translations
$translations = null, $file =
''
)
20
{
21
$cachePath
= empty(static::$cachePath) ? sys_get_temp_dir() : static::$cachePath;
22
$bladeCompiler =
new
BladeCompiler(
new
Filesystem
(),
$cachePath
);
23
$string = $bladeCompiler->compileString($string);
24
25
return
PhpCode::fromString
($string, $translations, $file);
26
}
27
}
Gettext\Extractors\PhpCode\fromString
static fromString($string, Translations $translations=null, $file='')
{Parses a string and append the translations found in the Translations instance.The file path to inse...
Definition:
PhpCode.php:50
Translations
Gettext\Extractors\Blade\$cachePath
static $cachePath
Definition:
Blade.php:14
Gettext\Extractors\Blade\fromString
static fromString($string, Translations $translations=null, $file='')
{Parses a string and append the translations found in the Translations instance.The file path to inse...
Definition:
Blade.php:19
Gettext\Translations
Class to manage a collection of translations.
Definition:
Translations.php:11
BladeCompiler
Gettext\Extractors\Blade
Class to get gettext strings from blade.php files returning arrays.
Definition:
Blade.php:12
Gettext\Extractors\Extractor
Definition:
Extractor.php:9
Gettext\Extractors\ExtractorInterface
Definition:
ExtractorInterface.php:7
php
Filesystem
Gettext\Extractors
Definition:
Blade.php:3
Filesystem
Class FlySystemFileAccessTest.
libs
composer
vendor
gettext
gettext
src
Extractors
Blade.php
Generated on Thu Jan 16 2025 19:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)