Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ All elements are required if no rule is specified, unless it is part of a group.

- PHP

```php
$this->XINRegisterRule(
"field_name1",
array("field_name2{@}=={@}yes|maybe|sure"),
"Required."
);
```
```php
$this->XINRegisterRule(
"field_name1",
array("field_name2{@}=={@}yes|maybe|sure"),
"Required."
);
```
- PHP (with grouping)

```php
$this->XINRegisterRule(
"field_name", // field name on which the rule is applied
array("field_name{@}=={@}"), // rule
"Required.", // message
"group_1" // group [if field is a part of a group]
);
```
```php
$this->XINRegisterRule(
"field_name", // field name on which the rule is applied
array("field_name{@}=={@}"), // rule
"Required.", // message
"group_1" // group [if field is a part of a group]
);
```
- LINST

```php
field_name1{-}Required.{-}field_name2{@}=={@}yes|maybe|sure
```
```php
field_name1{-}Required.{-}field_name2{@}=={@}yes|maybe|sure
```

> _**NOTE:** When adding XIN rules some elements are implicitly added to a group in NDB_BVL_Instrument.class.inc. In consequence, a group name needs to be specified when registering a rule. A group name is necessary for the following elements:_
> ```php
Expand Down
Loading