http://www.freeside.biz/mediawiki/index.php?title=Freeside:4:Documentation:Developer/FS/svc_video&feed=atom&action=historyFreeside:4:Documentation:Developer/FS/svc video - Revision history2024-03-29T09:20:21ZRevision history for this page on the wikiMediaWiki 1.27.7http://www.freeside.biz/mediawiki/index.php?title=Freeside:4:Documentation:Developer/FS/svc_video&diff=9371&oldid=prevJeremyd: Edit via perl MediaWiki framework (1.13)2015-11-18T15:30:50Z<p>Edit via perl MediaWiki framework (1.13)</p>
<p><b>New page</b></p><div>==NAME==<br />
FS::svc_video - Object methods for svc_video records<br />
<br />
==SYNOPSIS==<br />
<code><br />
use FS::svc_video;<br />
<br />
$record = new FS::svc_video \%hash;<br />
$record = new FS::svc_video { 'column' => 'value' };<br />
<br />
$error = $record->insert;<br />
<br />
$error = $new_record->replace($old_record);<br />
<br />
$error = $record->delete;<br />
<br />
$error = $record->check;<br />
</code><br />
==DESCRIPTION==<br />
An FS::svc_video object represents an IPTV or video-on-demand service. FS::svc_video inherits from FS::Record. The following fields are currently supported:<br />
<br />
; svcnum<br />
:primary key<br />
; smartcard_num<br />
:smartcard_num<br />
; mac_addr<br />
:mac_addr<br />
<br />
==METHODS==<br />
; new HASHREF<br />
:Creates a new record. To add the record to the database, see [[#insert|"insert"]].<br />
<br />
:Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the ''hash'' method.<br />
; insert<br />
:Adds this record to the database. If there is an error, returns the error, otherwise returns false.<br />
; delete<br />
:Delete this record from the database.<br />
; replace OLD_RECORD<br />
:Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.<br />
; check<br />
:Checks all fields to make sure this is a valid record. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.<br />
<br />
==BUGS==<br />
==SEE ALSO==<br />
[[Freeside:4:Documentation:Developer/FS/Record|FS::Record]]</div>Jeremyd