protected function _compile_allow($expression)
    {
        $parts = explode(',', substr($expression, 1, -1));
        $expr = $this->compileString($parts[1]);
        return "<?php if (\$di->authorization->isAllowed($parts[0])): ?>$expr<?php endif ?>";
    }
protected function _compile_allow($expression)
    {
        $parts = explode(',', substr($expression, 1, -1));
        $expr = $this->compileString($parts[1]);
        return "<?php if (\$di->authorization->isAllowed($parts[0])): ?>$expr<?php endif ?>";
    }
protected function _compile_allow ( $ expression ) { $ parts = explode ( ',' , substr ( $ expression , 1 , - 1 ) ) ; $ expr = $ this -> compileString ( $ parts [ 1 ] ) ; return "<?php if (\$di->authorization->isAllowed($parts[0])): ?>$expr<?php endif ?>" ; }
Compile the allow statements into valid PHP.

@param string $expression

@return string
Compile the allow statements into valid PHP .