ADDITIONAL METHODS

search_by_field( \%cond, \%attrs? )

This variant of the standard search() method returns a ResultSet of Device Module entries. It is written to support web forms which accept fields that match and locate Device Modules in the database.

The hashref parameter should contain fields from the Device Module table which will be intelligently used in a search query.

In addition, you can provide the key matchall which, given a True or False value, controls whether fields must all match or whether any can match, to select a row.

Supported keys:

matchall

If a True value, fields must all match to return a given row of the Device table, otherwise any field matching will cause the row to be included in results.

description

Can match the description field as a substring.

name

Can match the name field as a substring.

type

Can match the type field as a substring.

model

Can match the model field as a substring (case sensitive).

serial

Can match the serial field as a substring (case sensitive).

class

Will match exactly the class field.

ips

List of Device IPs containing modules.