ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilECSImport Class Reference

Storage of ECS imported objects. More...

+ Collaboration diagram for ilECSImport:

Public Member Functions

 __construct ($a_server_id, $a_obj_id)
 Constructor. More...
 
 setServerId ($a_server_id)
 
 getServerId ()
 
 setImported ($a_status)
 Set imported. More...
 
 setSubId ($a_id)
 
 getSubId ()
 
 setContentId ($a_content_id)
 Set content id. More...
 
 getContentId ()
 get content id More...
 
 setMID ($a_mid)
 set mid More...
 
 getMID ()
 get mid More...
 
 setEContentId ($a_id)
 set econtent id More...
 
 getEContentId ()
 get econtent id More...
 
 save ()
 Save. More...
 
 setECSId ($a_id)
 

Static Public Member Functions

static lookupContentId ($a_server_id, $a_mid, $a_econtent_id)
 Lookup content id The content is the - not necessarily unique - id provided by the econtent type. More...
 
static lookupObjIdByContentId ($a_server_id, $a_mid, $a_content_id, $a_sub_id=null)
 Lookup obj_id by content id. More...
 
static lookupObjIdsByContentId ($a_content_id)
 
static lookupEContentIdByContentId ($a_server_id, $a_mid, $a_content_id)
 Lookup econtent id The econtent id is the unique id from ecs. More...
 
static getAllImportedRemoteObjects ($a_server_id)
 get all imported links More...
 
static _lookupObjIdsByMID ($a_server_id, $a_mid)
 lookup obj ids by mid More...
 
static _lookupEContentId ($a_obj_id)
 get econent_id More...
 
static lookupServerId ($a_obj_id)
 Lookup server id of imported content @global <type> $ilDB. More...
 
static _lookupObjIds ($a_server_id, $a_econtent_id)
 Lookup obj_id. More...
 
static _lookupObjId ($a_server_id, $a_econtent_id, $a_mid, $a_sub_id=null)
 loogup obj_id by econtent and mid and server_id More...
 
static _lookupMID ($a_server_id, $a_obj_id)
 Lookup mid. More...
 
static _lookupMIDs ($a_server_id, $a_econtent_id)
 Lookup mids by. More...
 
static _deleteByObjId ($a_obj_id)
 Delete by obj_id. More...
 
static deleteByServer ($a_server_id)
 Delete by server id @global ilDB $ilDB. More...
 
static deleteRessources ($a_server_id, $a_mid, $a_econtent_ids)
 Delete ressources @global $ilDB. More...
 
static _isImported ($a_server_id, $a_econtent_id, $a_mid, $a_sub_id=null)
 check if econtent is imported for a specific mid More...
 
static resetServerId ($a_server_id)
 

Protected Attributes

 $db = null
 
 $server_id = 0
 
 $obj_id = 0
 
 $econtent_id = 0
 
 $content_id = ''
 
 $sub_id = null
 
 $mid = 0
 
 $imported = false
 
 $ecs_id = 0
 

Private Member Functions

 read ()
 Read @access private. More...
 

Detailed Description

Storage of ECS imported objects.

This class stores the econent id and informations whether an object is imported or not.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 14 of file class.ilECSImport.php.

Constructor & Destructor Documentation

◆ __construct()

ilECSImport::__construct (   $a_server_id,
  $a_obj_id 
)

Constructor.

@access public

Parameters
int$a_server_id
int$a_obj_id

Definition at line 34 of file class.ilECSImport.php.

35 {
36 global $DIC;
37
38 $ilDB = $DIC['ilDB'];
39
40 $this->server_id = $a_server_id;
41 $this->obj_id = $a_obj_id;
42 $this->db = $ilDB;
43 $this->read();
44 }
read()
Read @access private.
global $DIC
Definition: saml.php:7
global $ilDB

References $DIC, $ilDB, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ _deleteByObjId()

static ilECSImport::_deleteByObjId (   $a_obj_id)
static

Delete by obj_id.

@access public

Parameters
intobj_id

Definition at line 346 of file class.ilECSImport.php.

347 {
348 global $DIC;
349
350 $ilDB = $DIC['ilDB'];
351
352 $query = "DELETE FROM ecs_import " .
353 "WHERE obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " ";
354 $res = $ilDB->manipulate($query);
355 return true;
356 }
$query
foreach($_POST as $key=> $value) $res

References $DIC, $ilDB, $query, and $res.

Referenced by ilRemoteObjectBase\doDelete().

+ Here is the caller graph for this function:

◆ _isImported()

static ilECSImport::_isImported (   $a_server_id,
  $a_econtent_id,
  $a_mid,
  $a_sub_id = null 
)
static

check if econtent is imported for a specific mid

@access public

Parameters
intecontent id
intmid

Definition at line 406 of file class.ilECSImport.php.

407 {
408 return ilECSImport::_lookupObjId($a_server_id, $a_econtent_id, $a_mid, $a_sub_id);
409 }
static _lookupObjId($a_server_id, $a_econtent_id, $a_mid, $a_sub_id=null)
loogup obj_id by econtent and mid and server_id

References _lookupObjId().

Referenced by ilRemoteObjectBase\handleUpdate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupEContentId()

static ilECSImport::_lookupEContentId (   $a_obj_id)
static

get econent_id

@access public

Parameters
intobj_id

Definition at line 206 of file class.ilECSImport.php.

207 {
208 global $DIC;
209
210 $ilDB = $DIC['ilDB'];
211
212 $query = "SELECT * FROM ecs_import WHERE obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " ";
213 $res = $ilDB->query($query);
214 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
215 return $row->econtent_id;
216 }
217 return 0;
218 }
$row

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilObjRemoteCategoryListGUI\getCommandFrame(), ilObjRemoteCourseListGUI\getCommandFrame(), ilObjRemoteFileListGUI\getCommandFrame(), ilObjRemoteGlossaryListGUI\getCommandFrame(), ilObjRemoteGroupListGUI\getCommandFrame(), ilObjRemoteLearningModuleListGUI\getCommandFrame(), ilObjRemoteTestListGUI\getCommandFrame(), ilObjRemoteWikiListGUI\getCommandFrame(), and ilRemoteObjectBase\isLocalObject().

+ Here is the caller graph for this function:

◆ _lookupMID()

static ilECSImport::_lookupMID (   $a_server_id,
  $a_obj_id 
)
static

Lookup mid.

@access public

Definition at line 300 of file class.ilECSImport.php.

301 {
302 global $DIC;
303
304 $ilDB = $DIC['ilDB'];
305
306 $query = "SELECT * FROM ecs_emport WHERE obj_id = " . $ilDB->quote($a_obj_id) . " " .
307 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer');
308 $res = $ilDB->query($query);
309 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
310 return $row->mid;
311 }
312 return 0;
313 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

◆ _lookupMIDs()

static ilECSImport::_lookupMIDs (   $a_server_id,
  $a_econtent_id 
)
static

Lookup mids by.

@access public

Parameters
intecontent_id

Definition at line 323 of file class.ilECSImport.php.

324 {
325 global $DIC;
326
327 $ilDB = $DIC['ilDB'];
328
329 $query = "SELECT mid FROM ecs_import WHERE econtent_id = " . $ilDB->quote($a_econtent_id, 'text') . " " .
330 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer');
331 $res = $ilDB->query($query);
332 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
333 $mids[] = $row->mid;
334 }
335 return $mids ? $mids : array();
336 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

◆ _lookupObjId()

static ilECSImport::_lookupObjId (   $a_server_id,
  $a_econtent_id,
  $a_mid,
  $a_sub_id = null 
)
static

loogup obj_id by econtent and mid and server_id

@access public

Parameters
intecontent_id

Definition at line 270 of file class.ilECSImport.php.

271 {
272 global $DIC;
273
274 $ilDB = $DIC['ilDB'];
275
276 $query = "SELECT obj_id FROM ecs_import " .
277 "WHERE econtent_id = " . $ilDB->quote($a_econtent_id, 'text') . " " .
278 "AND mid = " . $ilDB->quote($a_mid, 'integer') . " " .
279 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer') . ' ';
280
281 if (!is_null($a_sub_id)) {
282 $query .= 'AND sub_id = ' . $ilDB->quote($a_sub_id, 'text');
283 } else {
284 $query .= 'AND sub_id IS NULL';
285 }
286 $res = $ilDB->query($query);
287
288 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
289 return $row->obj_id;
290 }
291 return 0;
292 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by _isImported().

+ Here is the caller graph for this function:

◆ _lookupObjIds()

static ilECSImport::_lookupObjIds (   $a_server_id,
  $a_econtent_id 
)
static

Lookup obj_id.

@access public

Definition at line 247 of file class.ilECSImport.php.

248 {
249 global $DIC;
250
251 $ilDB = $DIC['ilDB'];
252
253 $query = "SELECT obj_id FROM ecs_import WHERE econtent_id = " . $ilDB->quote($a_econtent_id, 'text') . " " .
254 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer');
255 $res = $ilDB->query($query);
256 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
257 $obj_ids[] = $row->obj_id;
258 }
259 return $obj_ids ? $obj_ids : array();
260 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilRemoteObjectBase\handleDelete().

+ Here is the caller graph for this function:

◆ _lookupObjIdsByMID()

static ilECSImport::_lookupObjIdsByMID (   $a_server_id,
  $a_mid 
)
static

lookup obj ids by mid

@access public

Parameters
intmid
Returns
array int

Definition at line 181 of file class.ilECSImport.php.

182 {
183 global $DIC;
184
185 $ilDB = $DIC['ilDB'];
186
187 $query = "SELECT * FROM ecs_import " .
188 "WHERE mid = " . $ilDB->quote($a_mid, 'integer') . " " .
189 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer');
190
191 $res = $ilDB->query($query);
192 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
193 $obj_ids[] = $row->obj_id;
194 }
195 return $obj_ids ? $obj_ids : array();
196 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

◆ deleteByServer()

static ilECSImport::deleteByServer (   $a_server_id)
static

Delete by server id @global ilDB $ilDB.

Parameters
int$a_server_id

Definition at line 363 of file class.ilECSImport.php.

364 {
365 global $DIC;
366
367 $ilDB = $DIC['ilDB'];
368
369 $query = 'DELETE FROM ecs_import ' .
370 'WHERE server_id = ' . $ilDB->quote($a_server_id, 'integer');
371 $ilDB->manipulate($query);
372 }

References $DIC, $ilDB, and $query.

Referenced by ilECSSettingsGUI\doDelete().

+ Here is the caller graph for this function:

◆ deleteRessources()

static ilECSImport::deleteRessources (   $a_server_id,
  $a_mid,
  $a_econtent_ids 
)
static

Delete ressources @global $ilDB.

Parameters
type$a_server_id
type$a_mid
type$a_econtent_ids

Definition at line 381 of file class.ilECSImport.php.

382 {
383 global $DIC;
384
385 $ilDB = $DIC['ilDB'];
386
387 $query = 'DELETE FROM ecs_import ' .
388 'WHERE server_id = ' . $ilDB->quote($a_server_id, 'integer') . ' ' .
389 'AND mid = ' . $ilDB->quote($a_mid, 'integer') . ' ' .
390 'AND ' . $ilDB->in('econtent_id', (array) $a_econtent_ids, false, 'text');
391 $ilDB->manipulate($query);
392 return true;
393 }

References $DIC, $ilDB, and $query.

Referenced by ilECSMappingSettingsGUI\dDeleteTree().

+ Here is the caller graph for this function:

◆ getAllImportedRemoteObjects()

static ilECSImport::getAllImportedRemoteObjects (   $a_server_id)
static

get all imported links

@access public

Definition at line 154 of file class.ilECSImport.php.

155 {
156 global $DIC;
157
158 $ilDB = $DIC['ilDB'];
159
160 include_once './Services/WebServices/ECS/classes/class.ilECSUtils.php';
161
162 $query = "SELECT * FROM ecs_import ei JOIN object_data obd ON ei.obj_id = obd.obj_id " .
163 'WHERE server_id = ' . $ilDB->quote($a_server_id) . ' ' .
164 'AND ' . $ilDB->in('type', ilECSUtils::getPossibleRemoteTypes(), false, 'text');
165 $res = $ilDB->query($query);
166 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
167 $all[$row->econtent_id] = $row->obj_id;
168 }
169
170 return $all ? $all : array();
171 }
static getPossibleRemoteTypes($a_with_captions=false)
Get all possible remote object types.

References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilECSUtils\getPossibleRemoteTypes().

Referenced by ilECSEventQueueReader\handleImportReset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContentId()

ilECSImport::getContentId ( )

get content id

Returns
type

Definition at line 456 of file class.ilECSImport.php.

457 {
458 return $this->content_id;
459 }

References $content_id.

Referenced by save().

+ Here is the caller graph for this function:

◆ getEContentId()

ilECSImport::getEContentId ( )

get econtent id

@access public

Definition at line 502 of file class.ilECSImport.php.

503 {
504 return $this->econtent_id;
505 }

References $econtent_id.

◆ getMID()

ilECSImport::getMID ( )

get mid

@access public

Definition at line 479 of file class.ilECSImport.php.

480 {
481 return $this->mid;
482 }

References $mid.

◆ getServerId()

ilECSImport::getServerId ( )

Definition at line 416 of file class.ilECSImport.php.

417 {
418 return $this->server_id;
419 }

References $server_id.

Referenced by read(), and save().

+ Here is the caller graph for this function:

◆ getSubId()

ilECSImport::getSubId ( )

Definition at line 438 of file class.ilECSImport.php.

439 {
440 return strlen($this->sub_id) ? $this->sub_id : null;
441 }

Referenced by save().

+ Here is the caller graph for this function:

◆ lookupContentId()

static ilECSImport::lookupContentId (   $a_server_id,
  $a_mid,
  $a_econtent_id 
)
static

Lookup content id The content is the - not necessarily unique - id provided by the econtent type.

The econtent id is the unique id from ecs

Parameters
type$a_server_id
type$a_mid
type$a_econtent_id
Returns
string content id

Definition at line 55 of file class.ilECSImport.php.

56 {
57 global $DIC;
58
59 $ilDB = $DIC['ilDB'];
60
61 $query = 'SELECT * from ecs_import ' .
62 'WHERE server_id = ' . $ilDB->quote($a_server_id, 'integer') . ' ' .
63 'AND mid = ' . $ilDB->quote($a_mid, 'integer') . ' ' .
64 'AND econtent_id = ' . $ilDB->quote($a_econtent_id, 'text');
65 $res = $ilDB->query($query);
66 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
67 return $row->content_id;
68 }
69 return '';
70 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

◆ lookupEContentIdByContentId()

static ilECSImport::lookupEContentIdByContentId (   $a_server_id,
  $a_mid,
  $a_content_id 
)
static

Lookup econtent id The econtent id is the unique id from ecs.

Parameters
type$a_server_id
type$a_mid
type$a_econtent_id
Returns
int content id

Definition at line 130 of file class.ilECSImport.php.

131 {
132 global $DIC;
133
134 $ilDB = $DIC['ilDB'];
135
136 $query = 'SELECT * from ecs_import ' .
137 'WHERE server_id = ' . $ilDB->quote($a_server_id, 'integer') . ' ' .
138 'AND mid = ' . $ilDB->quote($a_mid, 'integer') . ' ' .
139 'AND content_id = ' . $ilDB->quote($a_content_id, 'text');
140 $res = $ilDB->query($query);
141 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
142 return $row->econtent_id;
143 }
144 return 0;
145 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilECSCmsCourseMemberCommandQueueHandler\readCourse().

+ Here is the caller graph for this function:

◆ lookupObjIdByContentId()

static ilECSImport::lookupObjIdByContentId (   $a_server_id,
  $a_mid,
  $a_content_id,
  $a_sub_id = null 
)
static

Lookup obj_id by content id.

Parameters
type$a_server_id
type$a_mid
type$a_content_id
type$a_sub_id

Definition at line 79 of file class.ilECSImport.php.

80 {
81 global $DIC;
82
83 $ilDB = $DIC['ilDB'];
84
85 $query = "SELECT obj_id FROM ecs_import " .
86 "WHERE content_id = " . $ilDB->quote($a_content_id, 'integer') . " " .
87 "AND mid = " . $ilDB->quote($a_mid, 'integer') . " " .
88 'AND server_id = ' . $ilDB->quote($a_server_id, 'integer') . ' ';
89
90 if (!is_null($a_sub_id)) {
91 $query .= 'AND sub_id = ' . $ilDB->quote($a_sub_id, 'text');
92 } else {
93 $query .= 'AND sub_id IS NULL';
94 }
95 $res = $ilDB->query($query);
96
97 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
98 return $row->obj_id;
99 }
100 return 0;
101 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilECSCmsCourseMemberCommandQueueHandler\doUpdate(), ilECSCourseCreationHandler\getImportId(), ilECSCmsTreeSynchronizer\handleTreeUpdate(), and ilECSCmsTreeSynchronizer\syncCategory().

+ Here is the caller graph for this function:

◆ lookupObjIdsByContentId()

static ilECSImport::lookupObjIdsByContentId (   $a_content_id)
static

Definition at line 103 of file class.ilECSImport.php.

104 {
105 global $DIC;
106
107 $ilDB = $DIC['ilDB'];
108
109 $query = "SELECT obj_id FROM ecs_import " .
110 "WHERE content_id = " . $ilDB->quote($a_content_id, 'integer');
111
112 $res = $ilDB->query($query);
113
114 $obj_ids = array();
115 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
116 $obj_ids[] = $row->obj_id;
117 }
118 return $obj_ids;
119 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilECSEnrolmentStatusCommandQueueHandler\doUpdate().

+ Here is the caller graph for this function:

◆ lookupServerId()

static ilECSImport::lookupServerId (   $a_obj_id)
static

Lookup server id of imported content @global <type> $ilDB.

Parameters
<type>$a_obj_id
Returns
<type>

Definition at line 226 of file class.ilECSImport.php.

227 {
228 global $DIC;
229
230 $ilDB = $DIC['ilDB'];
231
232 $query = 'SELECT * FROM ecs_import WHERE obj_id = ' . $ilDB->quote($a_obj_id, 'integer');
233 $res = $ilDB->query($query);
234 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
235 return $row->server_id;
236 }
237 return 0;
238 }

References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilRemoteObjectBase\createAuthResource(), ilObjRemoteCategoryListGUI\getCommandFrame(), ilObjRemoteCourseListGUI\getCommandFrame(), ilObjRemoteFileListGUI\getCommandFrame(), ilObjRemoteGlossaryListGUI\getCommandFrame(), ilObjRemoteGroupListGUI\getCommandFrame(), ilObjRemoteLearningModuleListGUI\getCommandFrame(), ilObjRemoteTestListGUI\getCommandFrame(), ilObjRemoteWikiListGUI\getCommandFrame(), ilRemoteObjectBase\getFullRemoteLink(), ilECSAppEventListener\initServer(), ilRemoteObjectBase\isLocalObject(), and ilECSImportedContentTableGUI\parse().

+ Here is the caller graph for this function:

◆ read()

ilECSImport::read ( )
private

Read @access private.

Definition at line 542 of file class.ilECSImport.php.

543 {
544 global $DIC;
545
546 $ilDB = $DIC['ilDB'];
547
548 $query = "SELECT * FROM ecs_import WHERE " .
549 "obj_id = " . $this->db->quote($this->obj_id, 'integer') . " " .
550 'AND server_id = ' . $ilDB->quote($this->getServerId(), 'integer');
551 $res = $this->db->query($query);
552 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
553 $this->econtent_id = $row->econtent_id;
554 $this->mid = $row->mid;
555 $this->sub_id = $row->sub_id;
556 $this->content_id = $row->content_id;
557 }
558 }

References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getServerId().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetServerId()

static ilECSImport::resetServerId (   $a_server_id)
static

Definition at line 560 of file class.ilECSImport.php.

561 {
562 global $DIC;
563
564 $ilDB = $DIC['ilDB'];
565
566 $query = 'UPDATE ecs_import SET server_id = ' . $ilDB->quote(0, 'integer') .
567 ' WHERE server_id = ' . $ilDB->quote($a_server_id, 'integer');
568 $ilDB->manipulate($query);
569 return true;
570 }

References $DIC, $ilDB, and $query.

Referenced by ilECSSetting\delete().

+ Here is the caller graph for this function:

◆ save()

ilECSImport::save ( )

Save.

@access public

Definition at line 512 of file class.ilECSImport.php.

513 {
514 global $DIC;
515
516 $ilDB = $DIC['ilDB'];
517
518 $query = "DELETE FROM ecs_import " .
519 "WHERE obj_id = " . $this->db->quote($this->obj_id, 'integer') . " " .
520 'AND server_id = ' . $ilDB->quote($this->getServerId(), 'integer');
521 $res = $ilDB->manipulate($query);
522
523 $query = "INSERT INTO ecs_import (obj_id,mid,econtent_id,sub_id,server_id,content_id) " .
524 "VALUES ( " .
525 $this->db->quote($this->obj_id, 'integer') . ", " .
526 $this->db->quote($this->mid, 'integer') . ", " .
527 $this->db->quote($this->econtent_id, 'text') . ", " .
528 $this->db->quote($this->getSubId(), 'text') . ', ' .
529 $this->db->quote($this->getServerId(), 'integer') . ', ' .
530 $this->db->quote($this->getContentId(), 'text') . ' ' .
531 ")";
532
533 $res = $ilDB->manipulate($query);
534
535 return true;
536 }
getContentId()
get content id

References $DIC, $ilDB, $query, $res, getContentId(), getServerId(), and getSubId().

+ Here is the call graph for this function:

◆ setContentId()

ilECSImport::setContentId (   $a_content_id)

Set content id.

Parameters
type$a_content_id

Definition at line 447 of file class.ilECSImport.php.

448 {
449 $this->content_id = $a_content_id;
450 }

◆ setEContentId()

ilECSImport::setEContentId (   $a_id)

set econtent id

@access public

Parameters
intecontent id

Definition at line 491 of file class.ilECSImport.php.

492 {
493 $this->econtent_id = $a_id;
494 }

◆ setECSId()

ilECSImport::setECSId (   $a_id)

Definition at line 573 of file class.ilECSImport.php.

574 {
575 $this->ecs_id = $a_id;
576 }

◆ setImported()

ilECSImport::setImported (   $a_status)

Set imported.

@access public

Parameters
boolexport status

Definition at line 428 of file class.ilECSImport.php.

429 {
430 $this->imported = $a_status;
431 }

◆ setMID()

ilECSImport::setMID (   $a_mid)

set mid

@access public

Parameters
intmid

Definition at line 468 of file class.ilECSImport.php.

469 {
470 $this->mid = $a_mid;
471 }

◆ setServerId()

ilECSImport::setServerId (   $a_server_id)

Definition at line 411 of file class.ilECSImport.php.

412 {
413 $this->server_id = $a_server_id;
414 }

◆ setSubId()

ilECSImport::setSubId (   $a_id)

Definition at line 433 of file class.ilECSImport.php.

434 {
435 $this->sub_id = $a_id;
436 }

Field Documentation

◆ $content_id

ilECSImport::$content_id = ''
protected

Definition at line 21 of file class.ilECSImport.php.

Referenced by getContentId().

◆ $db

ilECSImport::$db = null
protected

Definition at line 16 of file class.ilECSImport.php.

◆ $econtent_id

ilECSImport::$econtent_id = 0
protected

Definition at line 20 of file class.ilECSImport.php.

Referenced by getEContentId().

◆ $ecs_id

ilECSImport::$ecs_id = 0
protected

Definition at line 25 of file class.ilECSImport.php.

◆ $imported

ilECSImport::$imported = false
protected

Definition at line 24 of file class.ilECSImport.php.

◆ $mid

ilECSImport::$mid = 0
protected

Definition at line 23 of file class.ilECSImport.php.

Referenced by getMID().

◆ $obj_id

ilECSImport::$obj_id = 0
protected

Definition at line 19 of file class.ilECSImport.php.

◆ $server_id

ilECSImport::$server_id = 0
protected

Definition at line 18 of file class.ilECSImport.php.

Referenced by getServerId().

◆ $sub_id

ilECSImport::$sub_id = null
protected

Definition at line 22 of file class.ilECSImport.php.


The documentation for this class was generated from the following file: