M6 Nr3 3a)&c)

This commit is contained in:
S170H
2024-01-19 16:59:27 +01:00
parent c7b96bc214
commit a133967282
6 changed files with 63 additions and 40 deletions

View File

@@ -24,10 +24,14 @@ class Gericht extends Model {
return number_format($unformatted, 2, ',');
}
function getBildname (){
function getBildname(){
return $this->attributes['bildname'];
}
function getGerichtName(){
return $this->attributes['name'];
}
function setVegetarischAttribut($value){
if ($value == 1 || $value == 0){
$this->attributes['vegetarisch'] = $value;