% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::svc_hardware - Object methods for svc_hardware records
use FS::svc_hardware;
$record = new FS::svc_hardware \%hash;
$record = new FS::svc_hardware { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::svc_hardware object represents an equipment installation, such as a wireless broadband receiver, satellite antenna, or DVR. FS::svc_hardware inherits from FS::svc_Common.
The following fields are currently supported:
Creates a new svc_hardware object.
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Delete this record from the database.
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
# the replace method can be inherited from FS::Record
Checks all fields to make sure this is a valid service. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the FS::hardware_type object associated with this installation.
Returns the 'label' field of the FS::hardware_status object associated with this installation.
Returns the 'hw_addr' field, formatted as a MAC address if the 'svc_hardware-check_mac_addr' option is enabled.
FS::Record, FS::svc_Common, schema.html from the base documentation.