0

我找不到 kohana 验证规则列表的完整列表,有人可以将我指向正确的文档页面吗?顺便说一句,如果有人不明白我在说什么:

        return Validation::factory($arr)
            ->rule('tenant_last_name', 'not_empty')->rule('tenant_first_name', 'not_empty') // Name
            ->rule('tenant_ssn', 'not_empty')->rule('tenant_ssn', 'numeric') //SNN
            ->rule('tenant_email', 'email')->rule('tenant_email', 'not_empty') //Email
            ->rule('tenant_phone', 'numeric')->rule('tenant_phone', 'not_empty') //phone
4

2 回答 2

1

正如 matino 所说,您可以直接查看 API 或在指南中查看更易于阅读的版本http://kohanaframework.org/3.2/guide/kohana/security/validation#provided-rules

于 2011-11-26T11:54:13.163 回答
0

看这里 - http://kohanaframework.org/3.2/guide/api/Valid

于 2011-11-26T08:58:55.753 回答