ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacOperationManufacturer Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAssLacOperationManufacturer:
+ Collaboration diagram for ilAssLacOperationManufacturer:

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 operators in a condition. More...
 
- Public Member Functions inherited from ilAssLacAbstractManufacturer
 match (string $subject)
 Matches a delivered string with a the pattern returned by getPattern implemented in the explicit Manufacturer. More...
 
 manufacture (string $attribute)
 Create a new specific Composite object which is representing the delivered Attribute. More...
 
 getPattern ()
 
 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 OperationManufacturer. More...
 
static _getInstance ()
 Get an singleton of the manufacturer. More...
 

Static Protected Attributes

static $instance = null
 

Private Member Functions

 __clone ()
 Private clone to prevent cloning an object of OperationManufacturer. More...
 

Detailed Description

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 OperationManufacturer

Date: 25.03.13 Time: 15:12

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 26 of file ilAssLacOperationManufacturer.php.

Member Function Documentation

◆ __clone()

ilAssLacOperationManufacturer::__clone ( )
private

Private clone to prevent cloning an object of OperationManufacturer.

Definition at line 120 of file ilAssLacOperationManufacturer.php.

121 {
122 }

◆ _getInstance()

static ilAssLacOperationManufacturer::_getInstance ( )
static

Get an Instance of OperationManufacturer.

Returns
ilAssLacOperationManufacturer

Implements ilAssLacManufacturerInterface.

Definition at line 43 of file ilAssLacOperationManufacturer.php.

44 {
45 if (self::$instance == null) {
46 self::$instance = new ilAssLacOperationManufacturer();
47 }
48 return self::$instance;
49 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $instance.

Referenced by ilAssLacConditionParser\cannonicalizeCondition(), ilAssLacCompositeBuilder\create(), and ilAssLacConditionParser\fetchOperators().

+ Here is the caller graph for this function:

◆ getPattern()

ilAssLacOperationManufacturer::getPattern ( )

This function create a regular expression to match all operators in a condition.


The following string is created by this function '/[!&|<>=]+/'
It matches all operators in a condition and is divided into the following parts:

NEGATION:           !
AND:                &
OR:                 |
LESSER:             <
LESSER OR EQUALS:   <=
EQUALS              =
GREATER OR EQUALS   >=
GREATER             >
NOT EQUALS          <>
Returns
string

Implements ilAssLacManufacturerInterface.

Definition at line 111 of file ilAssLacOperationManufacturer.php.

111 : string
112 {
113 // return '/[&\|<>=]+/';
114 return '/&|\||(?<!<|>)=|<(?!=|>)|>(?!=)|<=|>=|<>/';
115 }

◆ manufacture()

ilAssLacOperationManufacturer::manufacture ( string  $attribute)

Create a new specific Composite object which is representing the delivered Attribute.

Parameters
string$attribute
Returns
ilAssLacAbstractComposite
Exceptions
ilAssLacUnsupportedOperation

Implements ilAssLacManufacturerInterface.

Definition at line 57 of file ilAssLacOperationManufacturer.php.

58 {
59 $operation = "";
60 switch ($attribute) {
62 $operation = new ilAssLacLesserOperation();
63 break;
65 $operation = new ilAssLacLesserOrEqualsOperation();
66 break;
68 $operation = new ilAssLacEqualsOperation();
69 break;
71 $operation = new ilAssLacGreaterOrEqualsOperation();
72 break;
74 $operation = new ilAssLacGreaterOperation();
75 break;
77 $operation = new ilAssLacNotEqualsOperation();
78 break;
80 $operation = new ilAssLacAndOperation();
81 break;
83 $operation = new ilAssLacOrOperation();
84 break;
85 default:
86 throw new ilAssLacUnsupportedOperation($attribute);
87 break;
88 }
89 return $operation;
90 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilAssLacAndOperation\$pattern, ilAssLacEqualsOperation\$pattern, ilAssLacGreaterOperation\$pattern, ilAssLacGreaterOrEqualsOperation\$pattern, ilAssLacLesserOperation\$pattern, ilAssLacLesserOrEqualsOperation\$pattern, ilAssLacNotEqualsOperation\$pattern, and ilAssLacOrOperation\$pattern.

Field Documentation

◆ $instance

ilAssLacOperationManufacturer::$instance = null
staticprotected

Definition at line 36 of file ilAssLacOperationManufacturer.php.

Referenced by _getInstance().


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