surat/frontend/modules/pathologist/models/GroupStainingForm.php

43 lines
907 B
PHP
Raw Normal View History

2025-07-15 03:58:40 +00:00
<?php
namespace frontend\modules\pathologist\models;
use yii\base\Model;
class GroupStainingForm extends Model
{
2025-07-23 07:10:49 +00:00
public $id_group;
2025-07-15 03:58:40 +00:00
/**
* @return array|array[]
*/
public function rules()
{
return [
//[['date_start', 'date_end'], 'required'],
//[['pathologist_id', 'cancer_registry_id', 'organ_code'], 'integer'],
2025-07-23 07:10:49 +00:00
[['id_group'], 'safe'],
2025-07-15 03:58:40 +00:00
];
}
/**
* @return array|string[]
*/
public function attributeLabels()
{
return [
2025-07-23 07:10:49 +00:00
'id_group' => 'กลุ่มย้อม',
2025-07-15 03:58:40 +00:00
];
}
2025-07-23 07:10:49 +00:00
2025-07-15 03:58:40 +00:00
/*public function attributeHints()
{
return [
'date_start' => 'วัน/เดือน/ปี ค.ศ. เช่น ' . date('d/m/Y'),
'date_end' => 'วัน/เดือน/ปี ค.ศ. เช่น ' . date('d/m/Y'),
];
}*/
}