50], [['type'], 'string', 'max' => 20], [['from_rule', 'to_rule', 'args'], 'string', 'max' => 500], [['example'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'unique_no' => '唯一标识符', 'bak' => '备注', 'type' => '规则类型', 'is_html' => '生成HTML', 'from_rule' => 'URL规则', 'to_rule' => '请求处理方式', 'args' => '参数', 'example' => '示例', 'is_system' => '系统规则', 'list_order' => '排序', ]; } }