ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Blade.php
Go to the documentation of this file.
1 <?php
2 
4 
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 }
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
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
Class to manage a collection of translations.
Class to get gettext strings from blade.php files returning arrays.
Definition: Blade.php:12
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Class FlySystemFileAccessTest.