Zum Inhalt springen

Eigene Schnellfinder Extension - Rückgabewert Problem

Erstellt am 17. Mai 2006 · Noch keine Antworten

Tags: PHP, Frage

cikono1 ·

Hallo Leute,

ich habe probleme mit meiner selbst entwickelten Schnellfinder (QuickLink) Extension. Und zwar will ich meine Extension über TypoScript einbinden.

-->

includeLibs.tx_schnellfinder = EXT:schnellfinder/class.tx_schnellfinder.php

temp.jsmenu = COA
temp.jsmenu.10 = HTML
temp.jsmenu.10.value = <div id="schnellfinder"><p class="quick">Oft besucht:</p>
temp.jsmenu.20 = HTML
temp.jsmenu.20.postUserFunc = tx_schnellfinder->generateLink
temp.jsmenu.30 = HTML
temp.jsmenu.30.value = </div>

und das hier ist meine Klasse:

class tx_schnellfinder {
	function generateLink()	{
		$this->conf=$conf;
		$this->pi_setPiVarDefaults();
		$this->pi_loadLL();
		$this->pi_USER_INT_obj=1;	// Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
		
		$from_table = tx_tkschnellfinder_link;
		
		$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$from_table,$where_clause,$groupBy='',$limit='');
		
		$num = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
		
		$arrayZiffer = array("1","2","3","4","5","6","7","8","9","0");
		$arrayBuchst = array("h","w");
		
		$content = '<form class="fquick" action=""><select style="width:8.5em;" name="jumper" id="jumper" onchange="jumpMenu(parent, this, 0)">';
		
		for($i = 0;$i<$num;$i++) {
			$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
			 
			if(in_array($row["pfad"][0], $arrayZiffer)) {
				$content .= '<option value="index.php?id=" rowpfad="">'.$row["bezeichnung"].'</option>';
			}
			else if(in_array($row["pfad"][0], $arrayBuchst)) {
				if($row["pfad"][0] == "h")
				{
					$content .= '<option value="'.$row[" pfad="">'.$row["bezeichnung"].'</option>';
				}
				elseif($row["pfad"][0] == "w")
				{
					$content .= '<option value="http://'.$row[" pfad="">'.$row["bezeichnung"].'</option>';
				}
				
			}
		}
		
		$content .= '</select></form>';
	
		return $content;
	}
}

Ich bekomme einfach keinen Rückgabewert. Ich vermute das ich noch nicht einmal in die Klasse hineinkomme!!!!

Kann mir da einer helfen????

MFG