ok sorry hier ist er :
...
// Initializing the query parameters:
list($this->internal["orderBy"],$this->internal["descFlag"]) = explode(":",$this->piVars["sort"]);
$this->internal["results_at_a_time"]=t3lib_div::intInRange($lConf["results_at_a_time"],0,1000,3); // Number of results to show in a listing.
$this->internal["maxPages"]=t3lib_div::intInRange($lConf["maxPages"],0,1000,2);; // The maximum number of "pages" in the browse-box: "Page 1", "Page 2", etc.
$this->internal["searchFieldList"]="first_name";
$this->internal["orderByList"]="uid,first_name";
// Get number of records:
$res = $this->pi_exec_query("tx_playerprofile_list",1);
list($this->internal["res_count"]) = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);
// Make listing query, pass query to SQL database:
$res = $this->pi_exec_query("tx_playerprofile_list");
$this->internal["currentTable"] = "tx_playerprofile_list";
// Put the whole list together:
$fullTable=""; // Clear var;
# $fullTable.=t3lib_div::view_array($this->piVars); // DEBUG: Output the content of $this->piVars for debug purposes. REMEMBER to comment out the IP-lock in the debug() function in t3lib/config_default.php if nothing happens when you un-comment this line!
// Adds the mode selector.
#$fullTable.=$this->pi_list_modeSelector($items);
// Adds the whole list table
$fullTable.=$this->pi_list_makelist($res);
// Adds the search box:
#$fullTable.=$this->pi_list_searchBox();
// Adds the result browser:
#$fullTable.=$this->pi_list_browseresults();
// Returns the content from the plugin.
return $fullTable;
}
}
/**
* [Put your description here]
*/
function singleView($content,$conf) {
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
// This sets the title of the page for use in indexed search results:
if ($this->internal["currentRow"]["title"]) $GLOBALS["TSFE"]->indexedDocTitle=$this->internal["currentRow"]["title"];
$content='<div'.$this->pi_classParam("singleView").'>
<H2>Record "'.$this->internal["currentRow"]["uid"].'" from table "'.$this->internal["currentTable"].'":</H2>
<table>
<tr>
<td nowrap valign="top"'.$this->pi_classParam("singleView-HCell").'><p>'.$this->getFieldHeader("image").'</p></td>
<td valign="top"><p>'.$this->getFieldContent("image").'</p></td>
</tr>
<tr>
<td nowrap valign="top"'.$this->pi_classParam("singleView-HCell").'><p>'.$this->getFieldHeader("first_name").'</p></td>
<td valign="top"><p>'.$this->getFieldContent("first_name").'</p></td>
</tr>
<tr>
<td nowrap'.$this->pi_classParam("singleView-HCell").'><p>Last updated:</p></td>
<td valign="top"><p>'.date("d-m-Y H:i",$this->internal["currentRow"]["tstamp"]).'</p></td>
</tr>
<tr>
<td nowrap'.$this->pi_classParam("singleView-HCell").'><p>Created:</p></td>
<td valign="top"><p>'.date("d-m-Y H:i",$this->internal["currentRow"]["crdate"]).'</p></td>
</tr>
</table>
<p>'.$this->pi_list_linkSingle($this->pi_getLL("back","Back"),0).'</p></div>'.
$this->pi_getEditPanel();
return $content;
}
/**
* [Put your description here]
*/
function pi_list_row($c) {
$editPanel = $this->pi_getEditPanel();
if ($editPanel) $editPanel="<TD>".$editPanel."</TD>";
return '<tr'.($c%2 ? $this->pi_classParam("listrow-odd") : "").'>
<td valign="top"><p>'.$this->getFieldContent("image").'</p></td>
<td valign="top"><p>'.$this->getFieldContent("first_name").'</p></td>
'.$editPanel.'
</tr>';
}
/**
* [Put your description here]
*/
function pi_list_header() {
return '<tr'.$this->pi_classParam("listrow-header").'>
</tr>';
}
/**
* [Put your description here]
*/
function getFieldContent($fN) {
switch($fN) {
case "uid":
return $this->pi_list_linkSingle($this->internal["currentRow"][$fN],$this->internal["currentRow"]["uid"],1); // The "1" means that the display of single items is CACHED! Set to zero to disable caching.
break;
case "image":
$imgTSConfig = $this-> conf['imageCObject.'];
$imgTSConfig['file'] = 'uploads/tx_playerprofile/'.$this->internal["currentRow"][$fN];
return $this->cObj->IMAGE($imgTSConfig);
default:
return $this->internal["currentRow"][$fN];
break;
}
}
/**
* [Put your description here]
*/
function getFieldHeader($fN) {
switch($fN) {
default:
return $this->pi_getLL("listFieldHeader_".$fN,"[".$fN."]");
break;
}
}
/**
* [Put your description here]
*/
function getFieldHeader_sortLink($fN) {
return $this->pi_linkTP_keepPIvars($this->getFieldHeader($fN),array("sort"=>$fN.":".($this->internal["descFlag"]?0:1)));
}
}
if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/player_profile/pi1/class.tx_playerprofile_pi1.php"]) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/player_profile/pi1/class.tx_playerprofile_pi1.php"]);
}
?>
Das ist ein Teil der class p1.php
plugin.tx_playerprofile_pi1 {
CMD =
pidList =
recursive =
imageCObject = IMAGE
imageCObject.file.width = 100
}
und das ist ein teil von der setup.txt