$this->conf=$conf;// Setting the TypoScript passed to this function in $this->conf
$this->pi_setPiVarDefaults();
$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!
$this->pi_loadLL();// Loading the LOCAL_LANG values
@@ -84,37 +85,40 @@ class tx_nG6_pi1 extends tslib_pibase {
/**
* Shows a list of database entries
*
* @param string $content: content of the PlugIn
* @param array $conf: PlugIn Configuration
* @return HTML list of table entries
*/
functionpi_project_view($content,$conf){
$this->conf=$conf;// Setting the TypoScript passed to this function in $this->conf
$this->pi_setPiVarDefaults();
$this->pi_loadLL();// Loading the LOCAL_LANG values
$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!
if($this->piVars['project_id']){// If a single element should be displayed:
$this->internal['currentTable']='tx_nG6_project';
functionpi_project_view(){
if($this->piVars['project_id']){// If a single element should be displayed
@@ -122,7 +126,7 @@ class tx_nG6_pi1 extends tslib_pibase {
/**
* Creates a list from a database query
*
*
* @param ressource $res: A database result ressource
* @return A HTML list if result items
*/
...
...
@@ -143,102 +147,76 @@ class tx_nG6_pi1 extends tslib_pibase {
/**
* Display a single item from the database
*
* @param string $content: The PlugIn content
* @param array $conf: The PlugIn configuration
*
* @return HTML of a single database entry
*/
functionpi_project_single_view($content,$conf){
$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!
// This sets the title of the page for use in indexed search results:
$this->conf=$conf;// Setting the TypoScript passed to this function in $this->conf
$this->pi_setPiVarDefaults();
$this->pi_loadLL();// Loading the LOCAL_LANG values
$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!
$lConf=$this->conf['listView.'];// Local settings for the listView function
if($this->piVars['run_id']){// If a single element should be displayed:
@@ -308,148 +261,96 @@ class tx_nG6_pi1 extends tslib_pibase {
/**
* Display a single item from the database
*
* @param string $content: The PlugIn content
* @param array $conf: The PlugIn configuration
*
* @param ressource $res: A database result ressource
* @return HTML of a single database entry
*/
functionpi_run_single_view($content,$conf){
$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!
// This sets the title of the page for use in indexed search results:
* @param string $type: What kind of analyze is it : run or project
* * @return HTML list of table entries
*/
functionpi_analyze_view($content,$conf,$type){
$this->conf=$conf;// Setting the TypoScript passed to this function in $this->conf
$this->pi_setPiVarDefaults();
$this->pi_loadLL();// Loading the LOCAL_LANG values
$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!
functionpi_analyze_view($type){
if($this->piVars['analyze_id']){// If a single element should be displayed:
@@ -480,35 +381,25 @@ class tx_nG6_pi1 extends tslib_pibase {
return$content;
}
/**
* Display a single item from the database
*
* @param string $content: The PlugIn content
* @param array $conf: The PlugIn configuration
* @return HTML of a single database entry
*/
functionpi_analyze_single_view($content,$conf){
$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!
// This sets the title of the page for use in indexed search results:
$fp=fopen((string)$conf['data'].$this->internal['currentRow']['directory'].'/index.html',"r");//lecture du fichier
$fp=fopen((string)$this->conf['data'].$this->internal['currentRow']['directory'].'/index.html',"r");//lecture du fichier
while(!feof($fp)){//on parcourt toutes les lignes
$content.=fgets($fp,4096);// lecture du contenu de la ligne
}
}
else
{
else{
$content.=$this->getFieldHeader('not_synchro');
}
return$content;
...
...
@@ -523,10 +414,10 @@ class tx_nG6_pi1 extends tslib_pibase {
functiongetFieldContent($fN,$mergeArr=array()){
switch($fN){
case'uid':
return$this->pi_list_linkSingle($this->internal['currentRow'][$fN],$this->internal['currentRow']['uid'],1,$mergeArr);// The "1" means that the display of single items is CACHED! Set to zero to disable caching.
return$this->pi_list_linkSingle($this->internal['currentRow'][$fN],$this->internal['currentRow']['uid'],1,$mergeArr);// The "1" means that the display of single items is CACHED! Set to zero to disable caching.