@@ -18,13 +18,13 @@ UIMacros::install($compiler);
18
18
19
19
// {control ...}
20
20
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(); ?> ' , $ compiler ->expandMacro ('control ' , 'form ' , '' )->openingCode );
21
- @Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(); echo ( $this->filters->filter)(%a%) ; ?> ' , $ compiler ->expandMacro ('control ' , 'form ' , 'filter ' )->openingCode ); // @ deprecated
21
+ @Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(); $ʟ_fi = new LR\FilterInfo( \' html \' ); echo $this->filters->filterContent( \' filter \' , $ʟ_fi, ob_get_clean()) ; ?> ' , $ compiler ->expandMacro ('control ' , 'form ' , 'filter ' )->openingCode ); // @deprecated
22
22
Assert::match ('<?php %a% if (is_object($form)) %a% else %a% $this->global->uiControl->getComponent($form); %a%->render(); ?> ' , $ compiler ->expandMacro ('control ' , '$form ' , '' )->openingCode );
23
23
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->renderType(); ?> ' , $ compiler ->expandMacro ('control ' , 'form:type ' , '' )->openingCode );
24
24
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->{"render$type"}(); ?> ' , $ compiler ->expandMacro ('control ' , 'form:$type ' , '' )->openingCode );
25
25
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->renderType( \'param \'); ?> ' , $ compiler ->expandMacro ('control ' , 'form:type param ' , '' )->openingCode );
26
26
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(array_merge([], $params, [])); ?> ' , $ compiler ->expandMacro ('control ' , 'form (expand) $params ' , '' )->openingCode );
27
27
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->renderType([ \'param \' => 123]); ?> ' , $ compiler ->expandMacro ('control ' , 'form:type param => 123 ' , '' )->openingCode );
28
28
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->renderType([ \'param \' => 123]); ?> ' , $ compiler ->expandMacro ('control ' , 'form:type, param => 123 ' , '' )->openingCode );
29
- @Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(); echo ( $this->filters->striptags)(%a% ); ?> ' , $ compiler ->expandMacro ('control ' , 'form ' , 'striptags ' )->openingCode ); // @ deprecated
29
+ @Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->render(); $ʟ_fi = new LR\FilterInfo( \' html \' ); echo $this->filters->filterContent( \' striptags \' , $ʟ_fi, ob_get_clean() ); ?> ' , $ compiler ->expandMacro ('control ' , 'form ' , 'striptags ' )->openingCode ); // @ deprecated
30
30
Assert::match ('<?php %a% $this->global->uiControl->getComponent("form"); %a%->renderType(param: 123); ?> ' , $ compiler ->expandMacro ('control ' , 'form:type, param: 123 ' , '' )->openingCode );
0 commit comments