Normalize formatting/line endings across configs, controllers, models, tests, and OpenAPI specs. Update rule expression/rule engine implementation and remove obsolete RuleAction controller/model. Add unit tests for rule expression syntax and multi-action behavior, and include docs updates.
23 lines
622 B
PHP
23 lines
622 B
PHP
<?php
|
|
namespace App\Models\Contact;
|
|
|
|
use App\Models\BaseModel;
|
|
|
|
class MedicalSpecialtyModel extends BaseModel {
|
|
protected $table = 'medicalspecialty';
|
|
protected $primaryKey = 'SpecialtyID';
|
|
protected $allowedFields = ['SpecialtyID', 'SpecialtyText', 'Parent', 'Title', 'CreateDate', 'EndDate'];
|
|
|
|
public function getOccupations($Parent, $SpecialtyText) {
|
|
if($Parent != '') {
|
|
$this->like('Parent', $Parent, 'both');
|
|
}
|
|
if($SpecialtyText != '') {
|
|
$this->like('SpecialtyText', $SpecialtyText, 'both');
|
|
}
|
|
|
|
$rows = $this->findAll();
|
|
return $rows;
|
|
}
|
|
}
|