ILIAS  release_8 Revision v8.24
ilECSCategoryMappingRule Class Reference

Defines a rule for the assignment of ECS remote courses to categories. More...

+ Collaboration diagram for ilECSCategoryMappingRule:

Public Member Functions

 __construct (int $a_mapping_id=0)
 Constructor. More...
 
 getMappingId ()
 get mapping id More...
 
 setContainerId (int $a_id)
 set container id More...
 
 getContainerId ()
 get container id More...
 
 setDateRangeStart (ilDate $start)
 set date range start More...
 
 getDateRangeStart ()
 get date range start More...
 
 setDateRangeEnd (ilDate $end)
 set date range end More...
 
 getDateRangeEnd ()
 get date range end More...
 
 setFieldName (string $a_field)
 set field name More...
 
 getFieldName ()
 get field name More...
 
 setMappingType (int $a_type)
 set mapping type More...
 
 getMappingType ()
 get mapping type More...
 
 setMappingValue (string $a_value)
 set mapping value More...
 
 getMappingValue ()
 get mapping value More...
 
 getMappingAsArray ()
 get mapping values as array More...
 
 setByType (string $a_type)
 set mapping by type More...
 
 getByType ()
 get mapping by type More...
 
 delete ()
 delete rule More...
 
 update ()
 update More...
 
 save ()
 save More...
 
 validate ()
 validate rule More...
 
 conditionToString ()
 condition to string More...
 
 participantsToString ()
 get string presentation of participants More...
 
 matches (array $a_matchable_content)
 Check if rule matches a specific econtent. More...
 

Data Fields

const ATTR_STRING = 1
 
const ATTR_INT = 2
 
const ATTR_ARRAY = 3
 
const TYPE_FIXED = 0
 
const TYPE_DURATION = 1
 
const TYPE_BY_TYPE = 2
 
const ERR_MISSING_VALUE = 'ecs_err_missing_value'
 
const ERR_INVALID_DATES = 'ecs_err_invalid_dates'
 
const ERR_INVALID_TYPE = 'ecs_err_invalid_type'
 
const ERR_MISSING_BY_TYPE = 'ecs_err_invalid_by_type'
 

Protected Member Functions

 setMappingId (int $a_id)
 set mapping id More...
 
 matchesValue ($a_value, int $a_type)
 Check if value matches. More...
 
 read ()
 Read entries. More...
 

Private Attributes

ilDBInterface $db
 
ilLanguage $language
 
ilLogger $logger
 
int $mapping_id
 
int $container_id = null
 
string $field_name = null
 
int $mapping_type = ilECSCategoryMappingRule::TYPE_FIXED
 
string $mapping_value = null
 
ilDate $range_dt_start = null
 
ilDate $range_dt_end = null
 
string $by_type = null
 

Detailed Description

Defines a rule for the assignment of ECS remote courses to categories.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilECSCategoryMappingRule::__construct ( int  $a_mapping_id = 0)

Constructor.

Parameters
intmapping id

Definition at line 57 of file class.ilECSCategoryMappingRule.php.

58 {
59 global $DIC;
60
61 $this->db = $DIC->database();
62 $this->language = $DIC->language();
63 $this->logger = $DIC->logger()->wsrv();
64
65 $this->mapping_id = $a_mapping_id;
66
67 $this->read();
68 }
global $DIC
Definition: feed.php:28

References $DIC, ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\logger(), and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ conditionToString()

ilECSCategoryMappingRule::conditionToString ( )

condition to string

Returns

Definition at line 337 of file class.ilECSCategoryMappingRule.php.

337 : string
338 {
339 switch ($this->getMappingType()) {
340 case self::TYPE_FIXED:
341
342 if ($this->getFieldName() === 'part_id') {
343 return $this->language->txt('ecs_field_' . $this->getFieldName()) . ': ' . $this->participantsToString();
344 }
345 return $this->language->txt('ecs_field_' . $this->getFieldName()) . ': ' . $this->getMappingValue();
346
348 return $this->language->txt('ecs_field_' . $this->getFieldName()) . ': ' . ilDatePresentation::formatPeriod(
349 $this->getDateRangeStart(),
350 $this->getDateRangeEnd()
351 );
352
354 return $this->language->txt('type') . ': ' . $this->language->txt('obj_' . $this->getByType());
355 }
356 return "";
357 }
static formatPeriod(ilDateTime $start, ilDateTime $end, bool $a_skip_starting_day=false)
Format a period of two dates Shows: 14.
participantsToString()
get string presentation of participants

References ilDatePresentation\formatPeriod(), getByType(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), participantsToString(), TYPE_BY_TYPE, TYPE_DURATION, and TYPE_FIXED.

+ Here is the call graph for this function:

◆ delete()

ilECSCategoryMappingRule::delete ( )

delete rule

Todo:
move to repository class
Returns

Definition at line 235 of file class.ilECSCategoryMappingRule.php.

235 : void
236 {
237 $this->db->manipulateF(
238 'DELETE FROM ecs_container_mapping WHERE mapping_id = %s ',
239 array('integer'),
240 array($this->getMappingId())
241 );
242 }

References getMappingId().

Referenced by ilECSSettingsGUI\deleteCategoryMappings().

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

◆ getByType()

ilECSCategoryMappingRule::getByType ( )

get mapping by type

Returns
string

Definition at line 225 of file class.ilECSCategoryMappingRule.php.

225 : ?string
226 {
227 return $this->by_type;
228 }

References $by_type.

Referenced by conditionToString(), save(), and update().

+ Here is the caller graph for this function:

◆ getContainerId()

ilECSCategoryMappingRule::getContainerId ( )

get container id

Definition at line 102 of file class.ilECSCategoryMappingRule.php.

102 : ?int
103 {
104 return $this->container_id;
105 }

References $container_id.

Referenced by save(), update(), and validate().

+ Here is the caller graph for this function:

◆ getDateRangeEnd()

ilECSCategoryMappingRule::getDateRangeEnd ( )

get date range end

Returns

Definition at line 138 of file class.ilECSCategoryMappingRule.php.

138 : ilDate
139 {
140 if ($this->range_dt_end) {
141 return $this->range_dt_end;
142 }
143 $this->range_dt_end = $this->getDateRangeStart();
144 $this->range_dt_end->increment(IL_CAL_MONTH, 6);
145 return $this->range_dt_end;
146 }
const IL_CAL_MONTH
Class for single dates.

References $range_dt_end, getDateRangeStart(), and IL_CAL_MONTH.

Referenced by conditionToString(), matchesValue(), save(), update(), and validate().

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

◆ getDateRangeStart()

ilECSCategoryMappingRule::getDateRangeStart ( )

get date range start

Definition at line 119 of file class.ilECSCategoryMappingRule.php.

119 : ilDate
120 {
121 return $this->range_dt_start ?: new ilDate(time(), IL_CAL_UNIX);
122 }
const IL_CAL_UNIX

References IL_CAL_UNIX.

Referenced by conditionToString(), getDateRangeEnd(), matchesValue(), save(), update(), and validate().

+ Here is the caller graph for this function:

◆ getFieldName()

ilECSCategoryMappingRule::getFieldName ( )

get field name

Returns

Definition at line 162 of file class.ilECSCategoryMappingRule.php.

162 : ?string
163 {
164 return $this->field_name;
165 }

References $field_name.

Referenced by conditionToString(), matches(), save(), update(), and validate().

+ Here is the caller graph for this function:

◆ getMappingAsArray()

ilECSCategoryMappingRule::getMappingAsArray ( )

get mapping values as array

Returns

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

206 : array
207 {
208 return explode(',', $this->getMappingValue());
209 }

References getMappingValue().

Referenced by matchesValue().

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

◆ getMappingId()

ilECSCategoryMappingRule::getMappingId ( )

get mapping id

Returns

Definition at line 84 of file class.ilECSCategoryMappingRule.php.

84 : int
85 {
86 return $this->mapping_id;
87 }

References $mapping_id.

Referenced by delete(), read(), and update().

+ Here is the caller graph for this function:

◆ getMappingType()

ilECSCategoryMappingRule::getMappingType ( )

get mapping type

Definition at line 179 of file class.ilECSCategoryMappingRule.php.

179 : int
180 {
181 return $this->mapping_type;
182 }

References $mapping_type.

Referenced by conditionToString(), matchesValue(), read(), save(), update(), and validate().

+ Here is the caller graph for this function:

◆ getMappingValue()

ilECSCategoryMappingRule::getMappingValue ( )

get mapping value

Returns

Definition at line 197 of file class.ilECSCategoryMappingRule.php.

197 : ?string
198 {
200 }

References $mapping_value.

Referenced by conditionToString(), getMappingAsArray(), matchesValue(), participantsToString(), save(), update(), and validate().

+ Here is the caller graph for this function:

◆ matches()

ilECSCategoryMappingRule::matches ( array  $a_matchable_content)

Check if rule matches a specific econtent.

Definition at line 389 of file class.ilECSCategoryMappingRule.php.

389 : bool
390 {
391 if (isset($a_matchable_content[$this->getFieldName()])) {
392 $value = $a_matchable_content[$this->getFieldName()];
393 return $this->matchesValue($value[0], $value[1]);
394 }
395 return false;
396 }
matchesValue($a_value, int $a_type)
Check if value matches.

References getFieldName(), and matchesValue().

+ Here is the call graph for this function:

◆ matchesValue()

ilECSCategoryMappingRule::matchesValue (   $a_value,
int  $a_type 
)
protected

Check if value matches.

Parameters
mixed$a_valueEcontent value
int$a_typeParameter type
Returns

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

404 : bool
405 {
406 switch ($a_type) {
407 case self::ATTR_ARRAY:
408 $values = explode(',', $a_value);
409 $this->logger->info(__METHOD__ . ': Checking for value: ' . $a_value);
410 $this->logger->info(__METHOD__ . ': Checking against attribute values: ' . $this->getMappingValue());
411 break;
412
413 case self::ATTR_INT:
414 $this->logger->info(__METHOD__ . ': Checking for value: ' . $a_value);
415 $this->logger->info(__METHOD__ . ': Checking against attribute values: ' . $this->getMappingValue());
416 $values = array((string) $a_value);
417 break;
418
420 $values = array($a_value);
421 break;
422 }
423
424 foreach ($values as $value) {
425 $value = trim($value);
426 switch ($this->getMappingType()) {
427 case self::TYPE_FIXED:
428
429 foreach ($this->getMappingAsArray() as $attribute_value) {
430 $attribute_value = trim($attribute_value);
431 if (strcasecmp($attribute_value, $value) === 0) {
432 return true;
433 }
434 }
435 break;
436
438 $tmp_date = new ilDate($a_value, IL_CAL_UNIX);
439 return ilDateTime::_after($tmp_date, $this->getDateRangeStart()) and
440 ilDateTime::_before($tmp_date, $this->getDateRangeEnd());
441 }
442 }
443 return false;
444 }
@classDescription Date and time handling
static _after(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
compare two dates and check start is after end This method does not consider tz offsets.
getMappingAsArray()
get mapping values as array
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']

References ilDateTime\_after(), ilDateTime\_before(), ATTR_ARRAY, ATTR_INT, ATTR_STRING, getDateRangeEnd(), getDateRangeStart(), getMappingAsArray(), getMappingType(), getMappingValue(), IL_CAL_UNIX, ILIAS\Repository\logger(), TYPE_DURATION, and TYPE_FIXED.

Referenced by matches().

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

◆ participantsToString()

ilECSCategoryMappingRule::participantsToString ( )

get string presentation of participants

Definition at line 362 of file class.ilECSCategoryMappingRule.php.

362 : string
363 {
364 $part_string = "";
365 $part = explode(',', $this->getMappingValue());
366 $counter = 0;
367 foreach ($part as $part_id) {
368 if ($counter++) {
369 $part_string .= ', ';
370 }
371 $part_string .= '"';
372
373 $part_id_arr = explode('_', $part_id);
374 $name = (count($part_id_arr) === 2) ? ilECSCommunityReader::getInstanceByServerId((int) $part_id_arr[0])
375 ->getParticipantNameByMid((int) $part_id_arr[1]) : "Broken mapping entry in database";
376 if ($name) {
377 $part_string .= $name;
378 } else {
379 $part_string .= $part_id;
380 }
381 $part_string .= '"';
382 }
383 return $part_string;
384 }
static getInstanceByServerId(int $a_server_id)
Get instance by server id.
if($format !==null) $name
Definition: metadata.php:247

References $name, ilECSCommunityReader\getInstanceByServerId(), and getMappingValue().

Referenced by conditionToString().

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

◆ read()

ilECSCategoryMappingRule::read ( )
protected

Read entries.

Definition at line 449 of file class.ilECSCategoryMappingRule.php.

449 : bool
450 {
451 if (!$this->getMappingId()) {
452 return false;
453 }
454 $res = $this->db->queryF(
455 'SELECT * FROM ecs_container_mapping WHERE mapping_id = %s',
456 array('integer'),
457 array($this->getMappingId())
458 );
459 while ($row = $this->db->fetchObject($res)) {
460 $this->setMappingId((int) $row->mapping_id);
461 $this->setDateRangeStart($row->date_range_start ? new ilDate($row->date_range_start, IL_CAL_UNIX) : null);
462 $this->setDateRangeEnd($row->date_range_end ? new ilDate($row->date_range_end, IL_CAL_UNIX) : null);
463 $this->setMappingType((int) $row->mapping_type);
464 $this->setFieldName($row->field_name);
465 $this->setContainerId((int) $row->container_id);
466
467 if ($this->getMappingType() === self::TYPE_BY_TYPE) {
468 $this->setByType($row->mapping_value);
469 } else {
470 $this->setMappingValue($row->mapping_value);
471 }
472 }
473 return true;
474 }
setMappingValue(string $a_value)
set mapping value
setDateRangeStart(ilDate $start)
set date range start
setMappingType(int $a_type)
set mapping type
setFieldName(string $a_field)
set field name
setByType(string $a_type)
set mapping by type
setDateRangeEnd(ilDate $end)
set date range end
setContainerId(int $a_id)
set container id
$res
Definition: ltiservices.php:69

References $res, getMappingId(), getMappingType(), IL_CAL_UNIX, setByType(), setContainerId(), setDateRangeEnd(), setDateRangeStart(), setFieldName(), setMappingId(), setMappingType(), and setMappingValue().

Referenced by __construct().

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

◆ save()

ilECSCategoryMappingRule::save ( )

save

Returns

Definition at line 281 of file class.ilECSCategoryMappingRule.php.

281 : void
282 {
283 if ($this->getMappingType() === self::TYPE_BY_TYPE) {
284 $mapping_value = $this->getByType();
285 } else {
287 }
288
289 $mapping_id = $this->db->nextId('ecs_container_mapping');
290 $this->db->manipulateF(
291 'INSERT INTO ecs_container_mapping ' .
292 '(mapping_id,container_id,field_name,mapping_type,mapping_value,date_range_start,date_range_end) ' .
293 'VALUES(%s,%s,%s,%s,%s,%s,%s) ',
294 array('integer','integer','text','integer','text','integer','integer'),
295 array(
297 $this->getContainerId(),
298 $this->getFieldName(),
299 $this->getMappingType(),
301 $this->getDateRangeStart()->get(IL_CAL_UNIX),
302 $this->getDateRangeEnd()->get(IL_CAL_UNIX))
303 );
304 }

References $mapping_id, $mapping_value, getByType(), getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.

+ Here is the call graph for this function:

◆ setByType()

ilECSCategoryMappingRule::setByType ( string  $a_type)

set mapping by type

Parameters
string$typeMapping type
Returns

Definition at line 216 of file class.ilECSCategoryMappingRule.php.

216 : void
217 {
218 $this->by_type = $a_type;
219 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setContainerId()

ilECSCategoryMappingRule::setContainerId ( int  $a_id)

set container id

Parameters
int$a_id$a_container_id
Returns

Definition at line 94 of file class.ilECSCategoryMappingRule.php.

94 : void
95 {
96 $this->container_id = $a_id;
97 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDateRangeEnd()

ilECSCategoryMappingRule::setDateRangeEnd ( ilDate  $end)

set date range end

Parameters
object$startilDate
Returns

Definition at line 129 of file class.ilECSCategoryMappingRule.php.

129 : void
130 {
131 $this->range_dt_end = $end;
132 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDateRangeStart()

ilECSCategoryMappingRule::setDateRangeStart ( ilDate  $start)

set date range start

Parameters
object$startilDate

Definition at line 111 of file class.ilECSCategoryMappingRule.php.

111 : void
112 {
113 $this->range_dt_start = $start;
114 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setFieldName()

ilECSCategoryMappingRule::setFieldName ( string  $a_field)

set field name

Parameters
string$a_fieldfield name
Returns

Definition at line 153 of file class.ilECSCategoryMappingRule.php.

153 : void
154 {
155 $this->field_name = $a_field;
156 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMappingId()

ilECSCategoryMappingRule::setMappingId ( int  $a_id)
protected

set mapping id

Parameters
int$a_mapping_idmapping id
Returns
void

Definition at line 75 of file class.ilECSCategoryMappingRule.php.

75 : void
76 {
77 $this->mapping_id = $a_id;
78 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMappingType()

ilECSCategoryMappingRule::setMappingType ( int  $a_type)

set mapping type

Parameters
int$a_typeMapping type

Definition at line 171 of file class.ilECSCategoryMappingRule.php.

171 : void
172 {
173 $this->mapping_type = $a_type;
174 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMappingValue()

ilECSCategoryMappingRule::setMappingValue ( string  $a_value)

set mapping value

Parameters
string$valMapping value

Definition at line 188 of file class.ilECSCategoryMappingRule.php.

188 : void
189 {
190 $this->mapping_value = $a_value;
191 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilECSCategoryMappingRule::update ( )

update

Returns

Definition at line 248 of file class.ilECSCategoryMappingRule.php.

248 : void
249 {
250 if ($this->getMappingType() === self::TYPE_BY_TYPE) {
251 $mapping_value = $this->getByType();
252 } else {
254 }
255
256 $this->db->manipulateF(
257 'UPDATE ecs_container_mapping SET ' .
258 'container_id = %s, ' .
259 'field_name = %s, ' .
260 'mapping_type = %s, ' .
261 'mapping_value = %s, ' .
262 'date_range_start = %s,' .
263 'date_range_end = %s ' .
264 'WHERE mapping_id = %s',
265 array('integer','text','integer','text','integer','integer','integer'),
266 array(
267 $this->getContainerId(),
268 $this->getFieldName(),
269 $this->getMappingType(),
271 $this->getDateRangeStart()->get(IL_CAL_UNIX),
272 $this->getDateRangeEnd()->get(IL_CAL_UNIX),
273 $this->getMappingId())
274 );
275 }

References $mapping_value, getByType(), getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingId(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.

+ Here is the call graph for this function:

◆ validate()

ilECSCategoryMappingRule::validate ( )

validate rule

Definition at line 309 of file class.ilECSCategoryMappingRule.php.

309 : string
310 {
313 }
316 }
317 if ($this->getMappingType() === self::TYPE_DURATION && !in_array($this->getFieldName(), array('begin', 'end'))) {
319 }
320 // handled by form gui?
321 if ($this->getMappingType() === self::TYPE_FIXED && !$this->getMappingValue()) {
323 }
324 if ($this->getMappingType() === self::TYPE_BY_TYPE && $this->getFieldName() !== 'type') {
326 }
327 if ($this->getMappingType() !== self::TYPE_BY_TYPE && $this->getFieldName() === 'type') {
329 }
330 return '';
331 }
const IL_CAL_DAY
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)

References ilDateTime\_after(), ilObject\_lookupObjId(), ilObject\_lookupType(), ERR_INVALID_DATES, ERR_INVALID_TYPE, ERR_MISSING_BY_TYPE, ERR_MISSING_VALUE, getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and IL_CAL_DAY.

+ Here is the call graph for this function:

Field Documentation

◆ $by_type

string ilECSCategoryMappingRule::$by_type = null
private

Definition at line 51 of file class.ilECSCategoryMappingRule.php.

Referenced by getByType().

◆ $container_id

int ilECSCategoryMappingRule::$container_id = null
private

Definition at line 45 of file class.ilECSCategoryMappingRule.php.

Referenced by getContainerId().

◆ $db

ilDBInterface ilECSCategoryMappingRule::$db
private

Definition at line 40 of file class.ilECSCategoryMappingRule.php.

◆ $field_name

string ilECSCategoryMappingRule::$field_name = null
private

Definition at line 46 of file class.ilECSCategoryMappingRule.php.

Referenced by getFieldName().

◆ $language

ilLanguage ilECSCategoryMappingRule::$language
private

Definition at line 41 of file class.ilECSCategoryMappingRule.php.

◆ $logger

ilLogger ilECSCategoryMappingRule::$logger
private

Definition at line 42 of file class.ilECSCategoryMappingRule.php.

◆ $mapping_id

int ilECSCategoryMappingRule::$mapping_id
private

Definition at line 44 of file class.ilECSCategoryMappingRule.php.

Referenced by getMappingId(), and save().

◆ $mapping_type

int ilECSCategoryMappingRule::$mapping_type = ilECSCategoryMappingRule::TYPE_FIXED
private

Definition at line 47 of file class.ilECSCategoryMappingRule.php.

Referenced by getMappingType().

◆ $mapping_value

string ilECSCategoryMappingRule::$mapping_value = null
private

Definition at line 48 of file class.ilECSCategoryMappingRule.php.

Referenced by getMappingValue(), save(), and update().

◆ $range_dt_end

ilDate ilECSCategoryMappingRule::$range_dt_end = null
private

Definition at line 50 of file class.ilECSCategoryMappingRule.php.

Referenced by getDateRangeEnd().

◆ $range_dt_start

ilDate ilECSCategoryMappingRule::$range_dt_start = null
private

Definition at line 49 of file class.ilECSCategoryMappingRule.php.

◆ ATTR_ARRAY

const ilECSCategoryMappingRule::ATTR_ARRAY = 3

◆ ATTR_INT

const ilECSCategoryMappingRule::ATTR_INT = 2

◆ ATTR_STRING

const ilECSCategoryMappingRule::ATTR_STRING = 1

◆ ERR_INVALID_DATES

const ilECSCategoryMappingRule::ERR_INVALID_DATES = 'ecs_err_invalid_dates'

Definition at line 36 of file class.ilECSCategoryMappingRule.php.

Referenced by validate().

◆ ERR_INVALID_TYPE

const ilECSCategoryMappingRule::ERR_INVALID_TYPE = 'ecs_err_invalid_type'

Definition at line 37 of file class.ilECSCategoryMappingRule.php.

Referenced by validate().

◆ ERR_MISSING_BY_TYPE

const ilECSCategoryMappingRule::ERR_MISSING_BY_TYPE = 'ecs_err_invalid_by_type'

Definition at line 38 of file class.ilECSCategoryMappingRule.php.

Referenced by validate().

◆ ERR_MISSING_VALUE

const ilECSCategoryMappingRule::ERR_MISSING_VALUE = 'ecs_err_missing_value'

Definition at line 35 of file class.ilECSCategoryMappingRule.php.

Referenced by validate().

◆ TYPE_BY_TYPE

◆ TYPE_DURATION

◆ TYPE_FIXED


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