ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
manufacture (string $attribute) | |
/** Create a new specific Composite object which is representing the delivered Attribute More... | |
getPattern () | |
This function create a regular expression to match all expression in a condition. More... | |
![]() | |
match (string $subject) | |
Matches a delivered string with a the pattern returned by getPattern implemented in the explicit Manufacturer. More... | |
Static Public Member Functions | |
static | _getInstance () |
Get an Instance of ExpressionManufacturer. More... | |
Static Protected Attributes | |
static | $instance = null |
Private Member Functions | |
__construct () | |
Private constructor to prevent creating of an object of ExpressionManufacturer. More... | |
__clone () | |
Private clone to prevent cloning an object of ExpressionManufacturer. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ExpressionManufacturer
Date: 25.03.13 Time: 15:12
Definition at line 26 of file ilAssLacExpressionManufacturer.php.
|
private |
Private constructor to prevent creating of an object of ExpressionManufacturer.
Definition at line 146 of file ilAssLacExpressionManufacturer.php.
|
private |
Private clone to prevent cloning an object of ExpressionManufacturer.
Definition at line 153 of file ilAssLacExpressionManufacturer.php.
|
static |
Get an Instance of ExpressionManufacturer.
Implements ilAssLacManufacturerInterface.
Definition at line 43 of file ilAssLacExpressionManufacturer.php.
Referenced by ilAssLacConditionParser\cannonicalizeCondition(), ilAssLacConditionParser\fetchExpressions(), and ilAssLacCompositeBuilder\getExpression().
ilAssLacExpressionManufacturer::getPattern | ( | ) |
This function create a regular expression to match all expression in a condition.
The following string is created by this function '/%[0-9]+%|#[0-9]+#|+[0-9]++|Q[0-9]+([^[|0-9]|$)|Q[0-9]+[[0-9]+]|~.*?~'
It matches all expression in a condition and is divided into the following parts:
Qn /Q[0-9]+(?!\[)/ Qn[m] /Q[0-9]+\[[0-9]+\]/ n% /%[0-9]+%/ +n+ /\+[0-9]+\+/ #n# /#[0-9]+#/ ~TEXT~ /~.*?~/ Hier gibt es noch Probleme, wenn im Text ein ~ enthalten ist
Implements ilAssLacManufacturerInterface.
Definition at line 124 of file ilAssLacExpressionManufacturer.php.
References ilAssLacEmptyAnswerExpression\$pattern, ilAssLacAnswerOfCurrentQuestionExpression\$pattern, ilAssLacOrderingResultExpression\$pattern, ilAssLacNumericResultExpression\$pattern, ilAssLacExclusiveResultExpression\$pattern, ilAssLacPercentageResultExpression\$pattern, ilAssLacResultOfAnswerOfCurrentQuestionExpression\$pattern, ilAssLacNumberOfResultExpression\$pattern, ilAssLacMatchingResultExpression\$pattern, ilAssLacStringResultExpression\$pattern, ilAssLacResultOfAnswerOfQuestionExpression\$pattern, and ilAssLacAnswerOfQuestionExpression\$pattern.
ilAssLacExpressionManufacturer::manufacture | ( | string | $attribute | ) |
/** Create a new specific Composite object which is representing the delivered Attribute
string | $attribute |
ilAssLacUnsupportedExpression |
Implements ilAssLacManufacturerInterface.
Definition at line 58 of file ilAssLacExpressionManufacturer.php.
References ilAssLacEmptyAnswerExpression\$pattern, ilAssLacAnswerOfCurrentQuestionExpression\$pattern, ilAssLacOrderingResultExpression\$pattern, ilAssLacPercentageResultExpression\$pattern, ilAssLacExclusiveResultExpression\$pattern, ilAssLacResultOfAnswerOfCurrentQuestionExpression\$pattern, ilAssLacNumericResultExpression\$pattern, ilAssLacNumberOfResultExpression\$pattern, ilAssLacMatchingResultExpression\$pattern, ilAssLacResultOfAnswerOfQuestionExpression\$pattern, ilAssLacStringResultExpression\$pattern, and ilAssLacAnswerOfQuestionExpression\$pattern.
|
staticprotected |
Definition at line 36 of file ilAssLacExpressionManufacturer.php.