Viewing File: /home/assersoft/public_html/audiogramnew/app/Models/SpeechTestsModel.php
<?php
namespace App\Models;
use CodeIgniter\Model;
class SpeechTestsModel extends Model
{
protected $table = 'speechtests';
protected $primaryKey = 'speechtest_id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [
'audiogramtest_id',
'frequency_10',
'frequency_20',
'frequency_30',
'frequency_40',
'frequency_50',
'frequency_60',
'frequency_70',
'frequency_80',
'frequency_90',
'frequency_100',
'frequency_110',
'frequency_120',
];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
protected array $casts = [];
protected array $castHandlers = [];
// Dates
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $deletedField = 'deleted_at';
// Validation
protected $validationRules = [];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
// Callbacks
protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}
Back to Directory
File Manager