Freeside:4:Documentation:Developer/FS/svc dish

From Freeside
Jump to: navigation, search

NAME

FS::svc_dish - Object methods for svc_dish records

SYNOPSIS

 use FS::svc_dish;

 $record = new FS::svc_dish \%hash;
 $record = new FS::svc_dish { 'column' => 'value' };

 $error = $record->insert;

 $error = $new_record->replace($old_record);

 $error = $record->delete;

 $error = $record->check;

DESCRIPTION

An FS::svc_dish object represents a Dish Network service. FS::svc_dish inherits from FS::svc_Common.

The following fields are currently supported:

svcnum - Primary key; acctnum - DISH account number; installdate - Installation date (as Unix timestamp); note - Installation notes: location on property, physical access, etc.

METHODS

new HASHREF
Creates a new svc_dish object.
insert
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
delete
Delete this record from the database.
replace OLD_RECORD
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
  1. the replace method can be inherited from FS::Record
check
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.

SEE ALSO

FS::Record, FS::svc_Common, schema.html from the base documentation.