ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssLacOperationManufacturer.php
Go to the documentation of this file.
1<?php
2
27{
36 protected static $instance = null;
37
44 {
45 if (self::$instance == null) {
46 self::$instance = new ilAssLacOperationManufacturer();
47 }
48 return self::$instance;
49 }
50
57 public function manufacture(string $attribute): ilAssLacAbstractComposite
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 }
91
111 public function getPattern(): string
112 {
113 // return '/[&\|<>=]+/';
114 return '/&|\||(?<!<|>)=|<(?!=|>)|>(?!=)|<=|>=|<>/';
115 }
116
120 private function __clone()
121 {
122 }
123}
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getPattern()
This function create a regular expression to match all operators in a condition.
__clone()
Private clone to prevent cloning an object of OperationManufacturer.
manufacture(string $attribute)
Create a new specific Composite object which is representing the delivered Attribute.
static _getInstance()
Get an Instance of OperationManufacturer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...