Smarty v5 update test, initial code setup

This commit is contained in:
2024-08-09 17:28:32 +09:00
parent b2c8fe2e1f
commit 2fc2807a6b
382 changed files with 30655 additions and 28498 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace Smarty\Compile\Modifier;
/**
* Smarty str_repeat modifier plugin
* Type: modifier
* Name: str_repeat
* Purpose: returns string repeated times times
*
*/
class StrRepeatModifierCompiler extends Base {
public function compile($params, \Smarty\Compiler\Template $compiler) {
return 'str_repeat((string) ' . $params[0] . ', (int) ' . $params[1] . ')';
}
}