ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
class.ilDataCollectionInputException.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
'./Services/Exceptions/classes/class.ilException.php'
;
5
17
class
ilDataCollectionInputException
extends
ilException
{
18
19
const
TYPE_EXCEPTION
= 0;
20
const
LENGTH_EXCEPTION
= 1;
21
const
REGEX_EXCEPTION
= 2;
22
const
UNIQUE_EXCEPTION
= 3;
23
const
NOT_URL
= 4;
24
const
NOT_IMAGE
= 5;
28
protected
$exception_type
;
29
30
34
public
function
__construct
(
$exception_type
) {
35
parent::__construct(
$exception_type
);
36
$this->exception_type =
$exception_type
;
37
}
38
39
43
public
function
getExceptionType
() {
44
return
$this->exception_type
;
45
}
46
47
51
public
function
__toString
() {
52
global
$lng
;
53
54
switch
($this->exception_type) {
55
case
self::TYPE_EXCEPTION:
56
return
$lng->txt(
'dcl_wrong_input_type'
);
57
case
self::LENGTH_EXCEPTION:
58
return
$lng->txt(
'dcl_wrong_length'
);
59
case
self::REGEX_EXCEPTION:
60
return
$lng->txt(
'dcl_wrong_regex'
);
61
case
self::UNIQUE_EXCEPTION:
62
return
$lng->txt(
'dcl_unique_exception'
);
63
case
self::NOT_URL:
64
return
$lng->txt(
'dcl_noturl_exception'
);
65
case
self::NOT_IMAGE:
66
return
$lng->txt(
'dcl_notimage_exception'
);
67
default
:
68
return
$lng->txt(
'dcl_unknown_exception'
);
69
}
70
}
71
}
ilDataCollectionInputException\NOT_IMAGE
const NOT_IMAGE
Definition:
class.ilDataCollectionInputException.php:24
ilException
Base class for ILIAS Exception handling.
Definition:
class.ilException.php:34
ilDataCollectionInputException\getExceptionType
getExceptionType()
Definition:
class.ilDataCollectionInputException.php:43
ilDataCollectionInputException\UNIQUE_EXCEPTION
const UNIQUE_EXCEPTION
Definition:
class.ilDataCollectionInputException.php:22
ilDataCollectionInputException\REGEX_EXCEPTION
const REGEX_EXCEPTION
Definition:
class.ilDataCollectionInputException.php:21
ilDataCollectionInputException\TYPE_EXCEPTION
const TYPE_EXCEPTION
Definition:
class.ilDataCollectionInputException.php:19
ilDataCollectionInputException\$exception_type
$exception_type
Definition:
class.ilDataCollectionInputException.php:28
ilDataCollectionInputException\LENGTH_EXCEPTION
const LENGTH_EXCEPTION
Definition:
class.ilDataCollectionInputException.php:20
ilDataCollectionInputException\NOT_URL
const NOT_URL
Definition:
class.ilDataCollectionInputException.php:23
ilDataCollectionInputException\__construct
__construct($exception_type)
Definition:
class.ilDataCollectionInputException.php:34
$lng
global $lng
Definition:
privfeed.php:40
ilDataCollectionInputException
Class ilDataCollectionField.
Definition:
class.ilDataCollectionInputException.php:17
ilDataCollectionInputException\__toString
__toString()
Definition:
class.ilDataCollectionInputException.php:51
Modules
DataCollection
exceptions
class.ilDataCollectionInputException.php
Generated on Mon Aug 25 2025 19:00:32 for ILIAS by
1.8.13 (using
Doxyfile
)