private function prepareAttributeUnconditional(PHPTAL_Php_CodeWriter $codewriter, $qname, $code)
    {
        // regular attribute which value is the evaluation of $code
        $attkey = $this->getVarName($qname, $codewriter);
        if ($this->_echoType == PHPTAL_Php_Attribute::ECHO_STRUCTURE) {
            $value = $codewriter->stringifyCode($code);
        } else {
            $value = $codewriter->escapeCode($code);
        }
        $codewriter->doSetVar($attkey, $value);
        $this->phpelement->getOrCreateAttributeNode($qname)->overwriteValueWithVariable($attkey);
    }
private function prepareAttributeUnconditional(PHPTAL_Php_CodeWriter $codewriter, $qname, $code)
    {
        // regular attribute which value is the evaluation of $code
        $attkey = $this->getVarName($qname, $codewriter);
        if ($this->_echoType == PHPTAL_Php_Attribute::ECHO_STRUCTURE) {
            $value = $codewriter->stringifyCode($code);
        } else {
            $value = $codewriter->escapeCode($code);
        }
        $codewriter->doSetVar($attkey, $value);
        $this->phpelement->getOrCreateAttributeNode($qname)->overwriteValueWithVariable($attkey);
    }
private function prepareAttributeUnconditional ( PHPTAL_Php_CodeWriter $ codewriter , $ qname , $ code ) { // regular attribute which value is the evaluation of $code $ attkey = $ this -> getVarName ( $ qname , $ codewriter ) ; if ( $ this -> _echoType == PHPTAL_Php_Attribute :: ECHO_STRUCTURE ) { $ value = $ codewriter -> stringifyCode ( $ code ) ; } else { $ value = $ codewriter -> escapeCode ( $ code ) ; } $ codewriter -> doSetVar ( $ attkey , $ value ) ; $ this -> phpelement -> getOrCreateAttributeNode ( $ qname ) -> overwriteValueWithVariable ( $ attkey ) ; }
attribute will be output regardless of its evaluated value. NULL behaves just like "".
attribute will be output regardless of its evaluated value . NULL behaves just like .