---
title: "Problem bei erstellung von XCLASS"
url: "https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage","PHP"]
created: "2009-01-29"
last_reply: "2009-02-03"
replies: 6
solved: false
page: 1
pages: 1
lang: "de"
---

# Problem bei erstellung von XCLASS

Extensions › Entwicklung · 6 Antworten · gestartet 2009-01-29

## Eröffnungsbeitrag

**b.​baumgartl** · 2009-01-29 · [Beitrag #1](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/1)

Hallo,

ich versuch jetzt schon seit stunden die "class.tx_mmforum_postfunctions.php" vom mm_forum zu erweitern.

Mein Versuch schaut so aus:

class.tx_mmforum_postfunctions.php:

```php
<?php

[...]
require_once(PATH_tslib."class.tslib_pibase.php");
[...]
class tx_mmforum_postfunctions extends tslib_pibase {
    
    
    /**
     * Lists all posts in a certain topic.
     * @param  string $content The plugin content
     * @param  array  $conf    The plugin's configuration vars
     * @return string          The content
     */
    function list_post($content, $conf, $order) {
        $language = $this->getLanguageFolder();
        $imgInfo = array('border' => $conf['img_border'], 'alt' => '', 'src' => '', 'style' => '');  

        [...]

   }  

}

if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/mm_forum/pi1/class.tx_mmforum_postfunctions.php"])    {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/mm_forum/pi1/class.tx_mmforum_postfunctions.phpblala"]);
}

?>
```

ext_localconf.php (meiner extension):

```php
<?php

[...]
$TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/mm_forum/pi1/class.tx_mmforum_postfunctions.phpblala"] = 'typo3conf/ext/datamints_forumextension/lib/class.ux_tx_mmforum_postfunctions.php';

?>
```

class.ux_tx_mmforum_postfunctions.php (meiner extension):

```php
<?php

class ux_tx_mmforum_postfunctions extends tx_mmforum_postfunctions {
    /**
     * Lists all posts in a certain topic.
     * @param  string $content The plugin content
     * @param  array  $conf    The plugin's configuration vars
     * @return string          The content
     */
    function list_post($content, $conf, $order) {
        $language = $this->getLanguageFolder();
        $imgInfo = array('border' => $conf['img_border'], 'alt' => '', 'src' => '', 'style' => '');

	echo 'test';

        [...]

        return $content;
    }
} // Ende Klasse

?>
```

Doch leider gibt mir Typo3 das "echo 'test';" in Zeile 14. von "class.ux_tx_mmforum_postfunctions.php" nicht aus.

Einige Tests haben mir folgende Ergebnisse geliefert (Nach dem ändern der localconf hab ich immer den Cache geleert):

- Bei Syntaxfehler in meiner XCLASS bringt PHP einen Fehler. -> Der Code meiner XCLASS scheint also abgearbeitet zu werden.
- Beim ändern des Namens der XCLASS (original datei) + änderung der localconf. -> Immer noch kein Output. D.h. das die XCLASS auch von keiner anderen Extension genutzt wird.

Ich hab auch noch ein paar andere Sachen probiert aber alles ohne Erfolg. #angry#
Vll könnt ihr mir ja weiterhelfen.

Danke schonmal.

## Antworten

### [#2](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/2) · just2b · 2009-01-29

was hats mit dem blala aufsich`?

georg

### [#3](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/3) · b.​baumgartl · 2009-01-29

ups  #paralyzed#

das ist das Relikt der Abänderung des Namens der XCLASS um zu testen ob ein anderes Extension die XCLASS schon verwendet.^^

### [#4](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/4) · einpraegsam.​net · 2009-01-29

Also gelöst...

### [#5](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/5) · b.​baumgartl · 2009-01-29

Nein... das komt von dem test den ich gemacht habe um es zu lösen. Hat aber nicht funktioniert.^^ Einfach ignorieren.

### [#6](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/6) · b.​baumgartl · 2009-01-30

/push

keiner eine lösung? hat vll einer das gleiche problem oder geht es bei jmd ohne das er etwas geändert hat?

### [#7](https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass/7) · b.​baumgartl · 2009-02-03

/push

keiner eine hilfe???

---

Quelle: „Problem bei erstellung von XCLASS“, typo3.net, https://www.typo3.net/d/86273-problem-bei-erstellung-von-xclass
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
