| Server IP : 162.214.74.102 / Your IP : 216.73.217.114 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/dialogo/application/plugins/module_forms/factories/ |
Upload File : |
<?php
require_once 'Factory.php';
class QuestionsFactory extends Factory
{
public static function create($data, $model, $toCreate = false)
{
static::populate($data, $model, 'question');
static::populate($data, $model, 'type_id');
static::populate($data, $model, 'description');
static::populate($data, $model, 'variable');
static::populate($data, $model, 'multi_selections');
static::populate($data, $model, 'multiple_choice');
static::populate($data, $model, 'required');
static::populate($data, $model, 'max_characters');
static::populate($data, $model, 'range_value');
static::populate($data, $model, 'parent_id');
static::populate($data, $model, 'default_jump_id');
static::populate($data, $model, 'webservice_field_id');
static::populate($data, $model, 'sorder');
return $model;
}
}