Initial commit
This commit is contained in:
199
typo3conf/ext/if_oberstufenplaner/Classes/Domain/Model/Fach.php
Normal file
199
typo3conf/ext/if_oberstufenplaner/Classes/Domain/Model/Fach.php
Normal file
@@ -0,0 +1,199 @@
|
||||
<?php
|
||||
|
||||
namespace Internetfabrik\IfOberstufenplaner\Domain\Model;
|
||||
|
||||
class Fach
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $typ;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $wochenStunden11;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $wochenStunden12;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $jahreswochenstunden;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $halbjahresleistungen;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $pruefung = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $rgbColor;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return Fach
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTyp()
|
||||
{
|
||||
return $this->typ;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $typ
|
||||
* @return Fach
|
||||
*/
|
||||
public function setTyp($typ)
|
||||
{
|
||||
$this->typ = $typ;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getWochenStunden11()
|
||||
{
|
||||
return $this->wochenStunden11;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $wochenStunden11
|
||||
* @return Fach
|
||||
*/
|
||||
public function setWochenStunden11($wochenStunden11)
|
||||
{
|
||||
$this->wochenStunden11 = $wochenStunden11;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getWochenStunden12()
|
||||
{
|
||||
return $this->wochenStunden12;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $wochenStunden12
|
||||
* @return Fach
|
||||
*/
|
||||
public function setWochenStunden12($wochenStunden12)
|
||||
{
|
||||
$this->wochenStunden12 = $wochenStunden12;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getJahreswochenstunden()
|
||||
{
|
||||
return $this->jahreswochenstunden;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $jahreswochenstunden
|
||||
* @return Fach
|
||||
*/
|
||||
public function setJahreswochenstunden($jahreswochenstunden)
|
||||
{
|
||||
$this->jahreswochenstunden = $jahreswochenstunden;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getHalbjahresleistungen()
|
||||
{
|
||||
return $this->halbjahresleistungen;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $halbjahresleistungen
|
||||
* @return Fach
|
||||
*/
|
||||
public function setHalbjahresleistungen($halbjahresleistungen)
|
||||
{
|
||||
$this->halbjahresleistungen = $halbjahresleistungen;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPruefung()
|
||||
{
|
||||
return $this->pruefung;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pruefung
|
||||
* @return Fach
|
||||
*/
|
||||
public function setPruefung($pruefung)
|
||||
{
|
||||
$this->pruefung = $pruefung;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRgbColor()
|
||||
{
|
||||
return $this->rgbColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $rgbColor
|
||||
* @return Fach
|
||||
*/
|
||||
public function setRgbColor($rgbColor)
|
||||
{
|
||||
if ($rgbColor == 'gelb') {
|
||||
$rgbColor = array(255, 193, 7);
|
||||
} elseif ($rgbColor == 'gruen') {
|
||||
$rgbColor = array(75, 175, 79);
|
||||
} elseif ($rgbColor == 'blau') {
|
||||
$rgbColor = array(0, 142, 205);
|
||||
} elseif ($rgbColor == 'orange') {
|
||||
$rgbColor = array(255, 87, 34);
|
||||
}
|
||||
$this->rgbColor = $rgbColor;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
namespace Internetfabrik\IfOberstufenplaner\Domain\Model;
|
||||
|
||||
class Schule extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
/**
|
||||
* name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* name2
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name2;
|
||||
|
||||
/**
|
||||
* comments
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Internetfabrik\IfOberstufenplaner\Domain\Model\SchuleRef>
|
||||
* @cascade remove
|
||||
* @lazy
|
||||
*/
|
||||
protected $refs = NULL;
|
||||
|
||||
/**
|
||||
* __construct
|
||||
*/
|
||||
public function __construct() {
|
||||
//Do not remove the next line: It would break the functionality
|
||||
$this->initStorageObjects();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes all ObjectStorage properties
|
||||
* Do not modify this method!
|
||||
* It will be rewritten on each save in the extension builder
|
||||
* You may modify the constructor of this class instead
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function initStorageObjects() {
|
||||
$this->refs = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return Schule
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName2()
|
||||
{
|
||||
return $this->name2;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name2
|
||||
* @return Schule
|
||||
*/
|
||||
public function setName2($name2)
|
||||
{
|
||||
$this->name2 = $name2;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the refs
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Internetfabrik\IfOberstufenplaner\Domain\Model\SchuleRef> $refs
|
||||
*/
|
||||
public function getRefs() {
|
||||
return $this->refs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the refs
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Internetfabrik\IfOberstufenplaner\Domain\Model\SchuleRef> $refs
|
||||
* @return void
|
||||
*/
|
||||
public function setComments(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $refs) {
|
||||
$this->refs = $refs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user