Latte\Engine::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( )
    public function __construct()
    {
        $this->filters = new Runtime\FilterExecutor();
    }

Usage Example

예제 #1
0
파일: Engine.php 프로젝트: nette/deprecated
 public function __construct()
 {
     trigger_error(__CLASS__ . ' is deprecated, use Latte\\Engine.', E_USER_DEPRECATED);
     if (method_exists('Latte\\Engine', '__construct')) {
         parent::__construct();
     }
     $this->getParser()->shortNoEscape = TRUE;
     $this->addFilter('url', 'rawurlencode');
     foreach (array('normalize', 'toAscii', 'webalize', 'padLeft', 'padRight', 'reverse') as $name) {
         $this->addFilter($name, 'Nette\\Utils\\Strings::' . $name);
     }
 }