[TYPO3-dev] Purpose of t3lib_recordList::writeBottom()

Sebastian Gebhard sebastiangebhard at hoch2.de
Mon Mar 29 13:45:58 CEST 2010


Hi,

I was just investigating a bug in the list module when I stumbled over 
t3lib_recordList::writeBottom(). And I was wondering if this function is 
needed anymore.

It puts out some HTML which seems to be intended to display an icon, but 
in the end it's just en empty table with no visual effect.

I do not see any sense/need for this. Does anybody see any importance 
for this function? If not I'll empty the function in my RFC (the output 
actually causes my bug) and mark it as deprecated.

Here it is:
/**
  * Finishes the list with the "stopper"-gif, adding the HTML code for 
that item to the internal ->HTMLcode string
  *
  * @return	void
  */
function writeBottom()	{
	$this->HTMLcode.='
		<!--
		End of list table:
	-->
	<table border="0" cellpadding="0" cellspacing="0">';
	$theIcon='<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/stopper.gif','width="18" height="16"').' alt="" />';
	$this->HTMLcode.=$this->addElement(1,'','','',$this->leftMargin,$theIcon);
	$this->HTMLcode.='
	</table>';
}

Kind regards,
Sebastian




More information about the TYPO3-dev mailing list