<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://secure.freeside.biz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Freeside%3A1.7%3ADocumentation%3ADeveloper%2FFS%2Fqueue_depend</id>
		<title>Freeside:1.7:Documentation:Developer/FS/queue depend - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://secure.freeside.biz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Freeside%3A1.7%3ADocumentation%3ADeveloper%2FFS%2Fqueue_depend"/>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.7:Documentation:Developer/FS/queue_depend&amp;action=history"/>
		<updated>2026-08-25T04:55:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.7:Documentation:Developer/FS/queue_depend&amp;diff=2829&amp;oldid=prev</id>
		<title>Ivan: import from POD</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.7:Documentation:Developer/FS/queue_depend&amp;diff=2829&amp;oldid=prev"/>
				<updated>2007-10-04T02:01:00Z</updated>
		
		<summary type="html">&lt;p&gt;import from POD&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==NAME==&lt;br /&gt;
FS::queue_depend - Object methods for queue_depend records&lt;br /&gt;
&lt;br /&gt;
==SYNOPSIS==&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  use FS::queue_depend;&lt;br /&gt;
 &lt;br /&gt;
  $record = new FS::queue_depend \%hash;&lt;br /&gt;
  $record = new FS::queue_depend { 'column' =&amp;gt; 'value' };&lt;br /&gt;
 &lt;br /&gt;
  $error = $record-&amp;gt;insert;&lt;br /&gt;
 &lt;br /&gt;
  $error = $new_record-&amp;gt;replace($old_record);&lt;br /&gt;
 &lt;br /&gt;
  $error = $record-&amp;gt;delete;&lt;br /&gt;
 &lt;br /&gt;
  $error = $record-&amp;gt;check;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
==DESCRIPTION==&lt;br /&gt;
An FS::queue_depend object represents an job dependancy. FS::queue_depend inherits from FS::Record. The following fields are currently supported:&lt;br /&gt;
&lt;br /&gt;
; dependnum - primary key; jobnum - source jobnum (see [[Freeside:1.7:Documentation:Developer/FS/queue|FS::queue]]).; depend_jobnum - dependancy jobnum (see [[Freeside:1.7:Documentation:Developer/FS/queue|FS::queue]])&lt;br /&gt;
The job specified by '''jobnum''' depends on the job specified '''depend_jobnum''' - the '''jobnum''' job will not be run until the '''depend_jobnum''' job has completed successfully (or manually removed).&lt;br /&gt;
&lt;br /&gt;
==METHODS==&lt;br /&gt;
; new HASHREF&lt;br /&gt;
:Creates a new dependancy. To add the dependancy to the database, see [[#insert|&amp;quot;insert&amp;quot;]].&lt;br /&gt;
&lt;br /&gt;
: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.&lt;br /&gt;
; insert&lt;br /&gt;
:Adds this record to the database. If there is an error, returns the error, otherwise returns false.&lt;br /&gt;
; delete&lt;br /&gt;
:Delete this record from the database.&lt;br /&gt;
; replace OLD_RECORD&lt;br /&gt;
:Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.&lt;br /&gt;
; check&lt;br /&gt;
:Checks all fields to make sure this is a valid dependancy. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.&lt;br /&gt;
&lt;br /&gt;
==BUGS==&lt;br /&gt;
==SEE ALSO==&lt;br /&gt;
[[Freeside:1.7:Documentation:Developer/FS/queue|FS::queue]], [[Freeside:1.7:Documentation:Developer/FS/Record|FS::Record]], schema.html from the base documentation.&lt;/div&gt;</summary>
		<author><name>Ivan</name></author>	</entry>

	</feed>