| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/backend-accounting.sk/app/modules/forms/code/ |
Upload File : |
<?php
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
*/
namespace modules\forms\code;
/**
* Description of TextElementController
*
* @author maros
*/
class MultiRowTextController extends AbstractController {
public function validate($val) {
return true;
}
public function getDbValue($val) {
if (is_array($val)) {
foreach ($val as $k => $v) {
if (trim($v) === "") {
unset($val[$k]);
}
}
if (count($val) === 0) {
return '';
}
return implode(\app\constants\Config::DB_ITEMS_SEPARATOR, $val);
}
return parent::getDbValue($val);
}
}