63 $this->server_id = $a_server_id;
120 $this->advmd_id = $a_id;
132 $query =
'SELECT * FROM ecs_data_mapping '.
133 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' '.
134 'AND mapping_type = '.$ilDB->quote($this->
getMappingType(),
'integer').
' '.
135 'AND ecs_field = '.$ilDB->quote($this->
getECSField(),
'text');
155 $query =
'UPDATE ecs_data_mapping '.
156 'SET advmd_id = '.$ilDB->quote($this->
getAdvMDId(),
'integer').
' '.
157 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' '.
158 'AND mapping_type = '.$ilDB->quote($this->
getMappingType(),
'integer').
' '.
159 'AND ecs_field = '.$ilDB->quote($this->
getECSField(),
'text');
160 $ilDB->manipulate(
$query);
167 $query =
'INSERT INTO ecs_data_mapping (sid,mapping_type,ecs_field,advmd_id) '.
169 $ilDB->quote($this->
getServerId(),
'integer') .
', ' .
172 $ilDB->quote($this->
getAdvMDId(),
'integer').
' ) ';
190 $query =
'SELECT * FROM ecs_data_mapping '.
191 'WHERE sid = '.$ilDB->quote($this->
getServerId(),
'integer').
' '.
192 'AND mapping_type = '.$ilDB->quote($this->
getMappingType(),
'integer').
' '.
193 'AND ecs_field = '.$ilDB->quote($this->
getECSField(),
'text');
206 $query =
'DELETE FROM ecs_data_mapping'.
207 ' WHERE sid = '.$ilDB->quote($a_server_id,
'integer');
208 $ilDB->manipulate(
$query);
const MAPPING_IMPORT_RCRS
update()
Update setting ilDB $ilDB.
getMappingType()
Get mapping type.
setMappingType($mapping_type)
Set mapping type.
getServerId()
Get server id.
setServerId($a_server_id)
set server id
getECSField()
Get ecs field.
static deleteByServerId($a_server_id)
__construct($a_server_id=0, $mapping_type=0, $ecs_field='')
constructor public