ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ExpressionManufacturer. More...
Public Member Functions | |
manufacture ($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... | |
Public Member Functions inherited from ilAssLacAbstractManufacturer | |
match ($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... | |
Class ExpressionManufacturer.
Date: 25.03.13 Time: 15:12
Definition at line 12 of file ilAssLacExpressionManufacturer.php.
|
private |
Private constructor to prevent creating of an object of ExpressionManufacturer.
Definition at line 135 of file ilAssLacExpressionManufacturer.php.
|
private |
Private clone to prevent cloning an object of ExpressionManufacturer.
Definition at line 155 of file ilAssLacExpressionManufacturer.php.
|
static |
Get an Instance of ExpressionManufacturer.
Implements ilAssLacManufacturerInterface.
Definition at line 30 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 113 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 | ( | $attribute | ) |
/** Create a new specific Composite object which is representing the delivered Attribute
string | $attribute |
ilAssLacUnsupportedExpression |
Implements ilAssLacManufacturerInterface.
Definition at line 47 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 23 of file ilAssLacExpressionManufacturer.php.