protected function createCellTags($tagName, $startPos, $endPos, $align)
	{
		if ($startPos === $endPos)
		{
			$tag = $this->parser->addSelfClosingTag($tagName, $startPos, 0, -101);
		}
		else
		{
			$tag = $this->parser->addTagPair($tagName, $startPos, 0, $endPos, 0, -101);
		}
		if ($align)
		{
			$tag->setAttribute('align', $align);
		}
	}
protected function createCellTags($tagName, $startPos, $endPos, $align)
	{
		if ($startPos === $endPos)
		{
			$tag = $this->parser->addSelfClosingTag($tagName, $startPos, 0, -101);
		}
		else
		{
			$tag = $this->parser->addTagPair($tagName, $startPos, 0, $endPos, 0, -101);
		}
		if ($align)
		{
			$tag->setAttribute('align', $align);
		}
	}
protected function createCellTags ( $ tagName , $ startPos , $ endPos , $ align ) { if ( $ startPos === $ endPos ) { $ tag = $ this -> parser -> addSelfClosingTag ( $ tagName , $ startPos , 0 , - 101 ) ; } else { $ tag = $ this -> parser -> addTagPair ( $ tagName , $ startPos , 0 , $ endPos , 0 , - 101 ) ; } if ( $ align ) { $ tag -> setAttribute ( 'align' , $ align ) ; } }
Create a pair of TD or TH tags for given text span

@param  string  $tagName  Either TD or TH
@param  integer $startPos
@param  integer $endPos
@param  string  $align    Either "left", "center", "right" or ""
@return void
Create a pair of TD or TH tags for given text span