O'Reilly logo

Praxiswissen TYPO3 Version 6.0 by Robert Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Die Klassen im Detail

Das Model

Werfen Sie nun einen genaueren Blick in das Verzeichnis Classes/Domain/Model. Hier finden Sie in der Datei SnowboardTeacher.php die Klasse Tx_UserStaff_Domain_Model_SnowboardTeacher. Die Definition der Klasse sollte in etwa aussehen wie in Listing 11.1:

 1 <?php 2 [...] 34 class Tx_UserStaff_Domain_Model_SnowboardTeacher extends Tx_ Extbase_DomainObject_AbstractEntity { 35 36 /** 37 * First name. 38 * 39 * @var string 40 * @validate NotEmpty 41 */ 42 protected $firstName; 43 44 /** 45 * Last name 46 * 47 * @var string 48 * @validate NotEmpty 49 */ 50 protected $lastName; 51 52 /** 53 * Picture 54 * 55 * @var string 56 */ 57 protected $picture; 58 59 /** 60 * Returns the firstName 61 * 62 * @return string $firstName ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required