[TYPO3-german] Erweiterung der fileReference

Michael Müller info at ihr-layout.eu
Fri Mar 6 11:46:38 CET 2015


Hallo,
ich stehe gerade vor einem Problem, ich möchte mit meiner Extension die Datei core/Classes/Resource/fileReference.php erweitern um eine Getter variable.
"
	/**
	 * Returns the Isotope
	 *
	 * @return string
	 */
	public function getIsotope() {
		return $this->propertiesOfFileReference['isotope'];
	}
	
"
Wenn ich diese funktion direkt einbaue geht das auch, aber ich möchte nicht direkt in die Core Datei schreiben.

mein Model sieht so aus.

"
class Isotope extends \TYPO3\CMS\Extbase\Domain\Model\FileReference {

	/**
	 * isotope
	 *
	 * @var integer
	 */
	protected $isotope;

	/**
	 * Returns the isotope
	 *
	 * @return integer $isotope
	 */
	public function getIsotope() {
		return $this->isotope;
	}

	/**
	 * Sets the isotope
	 *
	 * @param integer $isotope
	 * @return void
	 */
	public function setIsotope($isotope) {
		$this->isotope = $isotope;
	}


}
"

Hoffe ich habe mich verständlich ausgedrückt.

LG Michi


More information about the TYPO3-german mailing list