5 # Part of the Collection Workflow Integration System (CWIS) 6 # Copyright 2012-2013 Edward Almasy and Internet Scout Research Group 7 # http://scout.wisc.edu/cwis/ 13 # ---- PUBLIC INTERFACE -------------------------------------------------- 23 # determine next qualifier ID 24 $HighestId =
$DB->Query(
" 25 SELECT QualifierId FROM Qualifiers 26 ORDER BY QualifierId DESC 27 LIMIT 1",
"QualifierId");
28 $Id = $HighestId > 0 ? $HighestId + 1 : 1;
30 # add record to database with that ID 32 INSERT INTO Qualifiers 33 SET QualifierId = ".addslashes(
$Id));
35 # use that ID to create new Qualifer object 47 return $this->
UpdateValue(
"QualifierNamespace", $NewValue);
57 return $this->
UpdateValue(
"QualifierUrl", $NewValue);
UpdateValue($ColumnName, $NewValue=DB_NOVALUE)
Convenience function to supply parameters to Database::UpdateValue().
SQL database abstraction object with smart query caching.
Url($NewValue=DB_NOVALUE)
Get or set the qualifier URL.
Common base class for persistent items store in database.
static Create()
Initialize a new qualifier.
NSpace($NewValue=DB_NOVALUE)
Get or set the qualifier namespace.