Viewing File: /home/assersoft/public_html/audiogramnew/app/Models/PureToneAudiometryModel.php
<?php
namespace App\Models;
use CodeIgniter\Model;
class PureToneAudiometryModel extends Model
{
protected $table = 'puretoneaudiometries';
protected $primaryKey = 'puretone_id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [
'audiogramtest_id',
'ear',
'test_no',
'frequency_125',
'frequency_250',
'frequency_500',
'frequency_1000',
'frequency_2000',
'frequency_4000',
'frequency_8000',
];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
protected array $casts = [];
protected array $castHandlers = [];
// Dates
protected $useTimestamps = false;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_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