ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 <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 ilDB $ilDB. More...
 
static deleteRessources ($a_server_id, $a_mid, $a_econtent_ids)
 Delete ressources $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 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.

public

Parameters
int$a_server_id
int$a_obj_id

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

References $ilDB, and read().

35  {
36  global $ilDB;
37 
38  $this->server_id = $a_server_id;
39  $this->obj_id = $a_obj_id;
40  $this->db = $ilDB;
41  $this->read();
42  }
read()
Read private.
global $ilDB
+ Here is the call graph for this function:

Member Function Documentation

◆ _deleteByObjId()

static ilECSImport::_deleteByObjId (   $a_obj_id)
static

Delete by obj_id.

public

Parameters
intobj_id

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

References $ilDB, $query, and $res.

Referenced by ilObject\delete(), and ilRemoteObjectBase\doDelete().

341  {
342  global $ilDB;
343 
344  $query = "DELETE FROM ecs_import ".
345  "WHERE obj_id = ".$ilDB->quote($a_obj_id,'integer')." ";
346  $res = $ilDB->manipulate($query);
347  return true;
348  }
global $ilDB
+ 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

public

Parameters
intecontent id
intmid

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

References _lookupObjId().

Referenced by ilRemoteObjectBase\handleUpdate().

395  {
396  return ilECSImport::_lookupObjId($a_server_id,$a_econtent_id,$a_mid, $a_sub_id);
397  }
static _lookupObjId($a_server_id, $a_econtent_id, $a_mid, $a_sub_id=null)
loogup obj_id by econtent and mid and server_id
+ 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

public

Parameters
intobj_id

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

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

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

203  {
204  global $ilDB;
205 
206  $query = "SELECT * FROM ecs_import WHERE obj_id = ".$ilDB->quote($a_obj_id,'integer')." ";
207  $res = $ilDB->query($query);
208  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
209  {
210  return $row->econtent_id;
211  }
212  return 0;
213  }
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupMID()

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

Lookup mid.

public

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

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

296  {
297  global $ilDB;
298 
299  $query = "SELECT * FROM ecs_emport WHERE obj_id = ".$ilDB->quote($a_obj_id)." ".
300  'AND server_id = '.$ilDB->quote($a_server_id,'integer');
301  $res = $ilDB->query($query);
302  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
303  {
304  return $row->mid;
305  }
306  return 0;
307 
308  }
global $ilDB

◆ _lookupMIDs()

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

Lookup mids by.

public

Parameters
intecontent_id

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

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

319  {
320  global $ilDB;
321 
322  $query = "SELECT mid FROM ecs_import WHERE econtent_id = ".$ilDB->quote($a_econtent_id,'text')." ".
323  'AND server_id = '.$ilDB->quote($a_server_id,'integer');
324  $res = $ilDB->query($query);
325  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
326  {
327  $mids[] = $row->mid;
328  }
329  return $mids ? $mids : array();
330  }
Create styles array
The data for the language used.
global $ilDB

◆ _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

public

Parameters
intecontent_id

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

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

Referenced by _isImported().

264  {
265  global $ilDB;
266 
267  $query = "SELECT obj_id FROM ecs_import ".
268  "WHERE econtent_id = ".$ilDB->quote($a_econtent_id,'text')." ".
269  "AND mid = ".$ilDB->quote($a_mid,'integer')." ".
270  'AND server_id = '.$ilDB->quote($a_server_id,'integer').' ';
271 
272  if(!is_null($a_sub_id))
273  {
274  $query .= 'AND sub_id = '.$ilDB->quote($a_sub_id,'text');
275  }
276  else
277  {
278  $query .= 'AND sub_id IS NULL';
279  }
280  $res = $ilDB->query($query);
281 
282  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
283  {
284  return $row->obj_id;
285  }
286  return 0;
287  }
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupObjIds()

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

Lookup obj_id.

public

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

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

Referenced by ilRemoteObjectBase\handleDelete().

242  {
243  global $ilDB;
244 
245  $query = "SELECT obj_id FROM ecs_import WHERE econtent_id = ".$ilDB->quote($a_econtent_id,'text')." ".
246  'AND server_id = '.$ilDB->quote($a_server_id,'integer');
247  $res = $ilDB->query($query);
248  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
249  {
250  $obj_ids[] = $row->obj_id;
251  }
252  return $obj_ids ? $obj_ids : array();
253  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupObjIdsByMID()

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

lookup obj ids by mid

public

Parameters
intmid
Returns
array int

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

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

179  {
180  global $ilDB;
181 
182  $query = "SELECT * FROM ecs_import ".
183  "WHERE mid = ".$ilDB->quote($a_mid,'integer')." ".
184  'AND server_id = '.$ilDB->quote($a_server_id,'integer');
185 
186  $res = $ilDB->query($query);
187  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
188  {
189  $obj_ids[] = $row->obj_id;
190  }
191  return $obj_ids ? $obj_ids : array();
192  }
Create styles array
The data for the language used.
global $ilDB

◆ deleteByServer()

static ilECSImport::deleteByServer (   $a_server_id)
static

Delete by server id ilDB $ilDB.

Parameters
int$a_server_id

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

References $ilDB, and $query.

Referenced by ilECSSettingsGUI\doDelete().

356  {
357  global $ilDB;
358 
359  $query = 'DELETE FROM ecs_import '.
360  'WHERE server_id = '.$ilDB->quote($a_server_id,'integer');
361  $ilDB->manipulate($query);
362  }
global $ilDB
+ Here is the caller graph for this function:

◆ deleteRessources()

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

Delete ressources $ilDB.

Parameters
type$a_server_id
type$a_mid
type$a_econtent_ids

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

References $ilDB, $query, and array.

Referenced by ilECSMappingSettingsGUI\dDeleteTree().

372  {
373  global $ilDB;
374 
375  $query = 'DELETE FROM ecs_import '.
376  'WHERE server_id = '.$ilDB->quote($a_server_id,'integer'). ' '.
377  'AND mid = '.$ilDB->quote($a_mid,'integer').' '.
378  'AND '.$ilDB->in('econtent_id',(array) $a_econtent_ids,false,'text');
379  $ilDB->manipulate($query);
380  return true;
381  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getAllImportedRemoteObjects()

static ilECSImport::getAllImportedRemoteObjects (   $a_server_id)
static

get all imported links

public

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

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

Referenced by ilECSEventQueueReader\handleImportReset().

153  {
154  global $ilDB;
155 
156  include_once './Services/WebServices/ECS/classes/class.ilECSUtils.php';
157 
158  $query = "SELECT * FROM ecs_import ei JOIN object_data obd ON ei.obj_id = obd.obj_id ".
159  'WHERE server_id = '.$ilDB->quote($a_server_id).' '.
160  'AND '.$ilDB->in('type', ilECSUtils::getPossibleRemoteTypes(), false, 'text');
161  $res = $ilDB->query($query);
162  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
163  {
164  $all[$row->econtent_id] = $row->obj_id;
165  }
166 
167  return $all ? $all : array();
168  }
static getPossibleRemoteTypes($a_with_captions=false)
Get all possible remote object types.
Create styles array
The data for the language used.
global $ilDB
+ 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 444 of file class.ilECSImport.php.

References $content_id.

Referenced by save().

445  {
446  return $this->content_id;
447  }
+ Here is the caller graph for this function:

◆ getEContentId()

ilECSImport::getEContentId ( )

get econtent id

public

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

References $econtent_id.

491  {
492  return $this->econtent_id;
493  }

◆ getMID()

ilECSImport::getMID ( )

get mid

public

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

References $mid.

468  {
469  return $this->mid;
470  }

◆ getServerId()

ilECSImport::getServerId ( )

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

References $server_id.

Referenced by read(), and save().

405  {
406  return $this->server_id;
407  }
+ Here is the caller graph for this function:

◆ getSubId()

ilECSImport::getSubId ( )

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

Referenced by save().

427  {
428  return strlen($this->sub_id) ? $this->sub_id : NULL;
429  }
+ 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 53 of file class.ilECSImport.php.

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

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

◆ 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 129 of file class.ilECSImport.php.

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

Referenced by ilECSCmsCourseMemberCommandQueueHandler\readCourse().

130  {
131  global $ilDB;
132 
133  $query = 'SELECT * from ecs_import '.
134  'WHERE server_id = '.$ilDB->quote($a_server_id,'integer').' '.
135  'AND mid = '.$ilDB->quote($a_mid,'integer').' '.
136  'AND content_id = '.$ilDB->quote($a_content_id,'text');
137  $res = $ilDB->query($query);
138  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
139  {
140  return $row->econtent_id;
141  }
142  return 0;
143  }
global $ilDB
+ 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 76 of file class.ilECSImport.php.

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

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

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

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

Referenced by ilECSEnrolmentStatusCommandQueueHandler\doUpdate().

104  {
105  global $ilDB;
106 
107  $query = "SELECT obj_id FROM ecs_import ".
108  "WHERE content_id = ".$ilDB->quote($a_content_id,'integer');
109 
110  $res = $ilDB->query($query);
111 
112  $obj_ids = array();
113  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
114  {
115  $obj_ids[] = $row->obj_id;
116  }
117  return $obj_ids;
118  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ lookupServerId()

static ilECSImport::lookupServerId (   $a_obj_id)
static

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

Parameters
<type>$a_obj_id
Returns
<type>

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

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

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

222  {
223  global $ilDB;
224 
225  $query = 'SELECT * FROM ecs_import WHERE obj_id = '.$ilDB->quote($a_obj_id,'integer');
226  $res = $ilDB->query($query);
227  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
228  {
229  return $row->server_id;
230  }
231  return 0;
232  }
global $ilDB
+ Here is the caller graph for this function:

◆ read()

ilECSImport::read ( )
private

Read private.

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

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

Referenced by __construct().

529  {
530  global $ilDB;
531 
532  $query = "SELECT * FROM ecs_import WHERE ".
533  "obj_id = ".$this->db->quote($this->obj_id,'integer')." ".
534  'AND server_id = '.$ilDB->quote($this->getServerId(),'integer');
535  $res = $this->db->query($query);
536  while($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT))
537  {
538  $this->econtent_id = $row->econtent_id;
539  $this->mid = $row->mid;
540  $this->sub_id = $row->sub_id;
541  $this->content_id = $row->content_id;
542  }
543  }
global $ilDB
+ 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 545 of file class.ilECSImport.php.

References $ilDB, and $query.

Referenced by ilECSSetting\delete().

546  {
547  global $ilDB;
548 
549  $query = 'UPDATE ecs_import SET server_id = '.$ilDB->quote(0,'integer').
550  ' WHERE server_id = '.$ilDB->quote($a_server_id,'integer');
551  $ilDB->manipulate($query);
552  return true;
553  }
global $ilDB
+ Here is the caller graph for this function:

◆ save()

ilECSImport::save ( )

Save.

public

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

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

501  {
502  global $ilDB;
503 
504  $query = "DELETE FROM ecs_import ".
505  "WHERE obj_id = ".$this->db->quote($this->obj_id,'integer')." ".
506  'AND server_id = '.$ilDB->quote($this->getServerId(),'integer');
507  $res = $ilDB->manipulate($query);
508 
509  $query = "INSERT INTO ecs_import (obj_id,mid,econtent_id,sub_id,server_id,content_id) ".
510  "VALUES ( ".
511  $this->db->quote($this->obj_id,'integer').", ".
512  $this->db->quote($this->mid,'integer').", ".
513  $this->db->quote($this->econtent_id,'text').", ".
514  $this->db->quote($this->getSubId(),'text'). ', '.
515  $this->db->quote($this->getServerId(),'integer').', '.
516  $this->db->quote($this->getContentId(),'text').' '.
517  ")";
518 
519  $res = $ilDB->manipulate($query);
520 
521  return true;
522  }
getContentId()
get content id
global $ilDB
+ 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 435 of file class.ilECSImport.php.

Referenced by ilObjRemoteCourse\updateCustomFromECSContent().

436  {
437  $this->content_id = $a_content_id;
438  }
+ Here is the caller graph for this function:

◆ setEContentId()

ilECSImport::setEContentId (   $a_id)

set econtent id

public

Parameters
intecontent id

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

Referenced by ilRemoteObjectBase\handleUpdate().

480  {
481  $this->econtent_id = $a_id;
482  }
+ Here is the caller graph for this function:

◆ setECSId()

ilECSImport::setECSId (   $a_id)

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

557  {
558  $this->ecs_id = $a_id;
559  }

◆ setImported()

ilECSImport::setImported (   $a_status)

Set imported.

public

Parameters
boolexport status

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

417  {
418  $this->imported = $a_status;
419  }

◆ setMID()

ilECSImport::setMID (   $a_mid)

set mid

public

Parameters
intmid

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

Referenced by ilECSCmsTreeSynchronizer\syncCategory(), and ilECSCourseCreationHandler\syncCategory().

457  {
458  $this->mid = $a_mid;
459  }
+ Here is the caller graph for this function:

◆ setServerId()

ilECSImport::setServerId (   $a_server_id)

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

400  {
401  $this->server_id = $a_server_id;
402  }

◆ setSubId()

ilECSImport::setSubId (   $a_id)

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

Referenced by ilECSCourseCreationHandler\setImported().

422  {
423  $this->sub_id = $a_id;
424  }
+ Here is the caller graph for this function:

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: