protected function _check(array $node) {
		$attrib=$node['@attrib'];
		unset($node['@attrib']);
		// Grab <true> and <false> blocks
		foreach ($node as $pos=>$block)
			if (isset($block['true']))
				$true=[$pos,$block];
			elseif (isset($block['false']))
				$false=[$pos,$block];
		if (isset($true,$false) && $true[0]>$false[0])
			// Reverse <true> and <false> blocks
			list($node[$true[0]],$node[$false[0]])=[$false[1],$true[1]];
		return
			'<?php if ('.$this->token($attrib['if']).'): ?>'.
				$this->build($node).
			'<?php endif; ?>';
	}
protected function _check(array $node) {
		$attrib=$node['@attrib'];
		unset($node['@attrib']);
		// Grab <true> and <false> blocks
		foreach ($node as $pos=>$block)
			if (isset($block['true']))
				$true=[$pos,$block];
			elseif (isset($block['false']))
				$false=[$pos,$block];
		if (isset($true,$false) && $true[0]>$false[0])
			// Reverse <true> and <false> blocks
			list($node[$true[0]],$node[$false[0]])=[$false[1],$true[1]];
		return
			'<?php if ('.$this->token($attrib['if']).'): ?>'.
				$this->build($node).
			'<?php endif; ?>';
	}
protected function _check ( array $ node ) { $ attrib = $ node [ '@attrib' ] ; unset ( $ node [ '@attrib' ] ) ; // Grab <true> and <false> blocks foreach ( $ node as $ pos => $ block ) if ( isset ( $ block [ 'true' ] ) ) $ true = [ $ pos , $ block ] ; elseif ( isset ( $ block [ 'false' ] ) ) $ false = [ $ pos , $ block ] ; if ( isset ( $ true , $ false ) && $ true [ 0 ] > $ false [ 0 ] ) // Reverse <true> and <false> blocks list ( $ node [ $ true [ 0 ] ] , $ node [ $ false [ 0 ] ] ) = [ $ false [ 1 ] , $ true [ 1 ] ] ; return '<?php if (' . $ this -> token ( $ attrib [ 'if' ] ) . '): ?>' . $ this -> build ( $ node ) . '<?php endif; ?>' ; }
Template -check- tag handler
@return string
@param $node array
Template - check - tag handler