backup: live-stand vor erstem git-deployment

This commit is contained in:
2026-06-29 11:04:33 +02:00
commit 90368b8a29
699 changed files with 162032 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace DynCom\mysyde\common\traits;
use DynCom\mysyde\common\classes\Form;
/**
* Created by PhpStorm.
* User: Michael Bauer
* Date: 7/13/2015
* Time: 7:22 PM
*/
trait genericViewModelTrait
{
use arrayGettableTrait;
/**
* @return bool
*/
public function allFormsValid() {
$arr = $this->getAllFieldsAsArray();
foreach($arr as $fieldName => $fieldValue) {
if($fieldValue instanceof Form) {
$fieldValue->validateRequestAgainstRules();
if (!$fieldValue->isRequestValid()) {
return false;
}
}
}
return true;
}
}