100], [['pinyin_simple'], 'string', 'max' => 50], [['type'], 'string', 'max' => 20], [['small_info'], 'string', 'max' => 150], [['function'], 'string', 'max' => 500], [['specification'], 'string', 'max' => 30], [['bar_code','usage'], 'string', 'max' => 300], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'drug_name' => 'Drug Name', 'pinyin_simple' => '拼音首拼', 'source' => 'Source', 'type' => 'Type', 'is_otc' => 'Is Otc', 'category_first' => 'Category First', 'category_second' => 'Category Second', 'small_info' => 'Small Info', 'info' => 'Info', 'content' => 'Content', 'usage' => 'Usage', 'function' => 'Function', 'specification' => 'Specification', 'image' => 'Image', 'time_id' => 'Time ID', 'type_id' => 'Type ID', 'frequency_id' => 'Frequency ID', 'unit_id' => 'Unit ID', 'number' => 'Number', 'status' => 'Status', 'drug_number' => 'Drug Number', 'bar_code' => 'Bar Code', 'guozi_no' => 'Guozi No', 'drug_alias' => 'Drug Alias', 'place' => 'Place', 'decotion' => 'Decotion', 'instruction' => '说明书', 'updated_at' => 'Updated At', 'created_at' => 'Created At', ]; } }