delete_reference($type, $id);
}
+ function update($type, $id, $reference)
+ {
+ update_reference($type, $id, $reference);
+ if ($reference != 'auto')
+ $this->save_last($reference, $type);
+ }
+
function exists($type, $reference)
{
return (find_reference($type, $reference) != null);