ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Logical.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
10 class Logical
11 {
27  public static function true(): bool
28  {
29  return Boolean::true();
30  }
31 
47  public static function false(): bool
48  {
49  return Boolean::false();
50  }
51 
77  public static function logicalAnd(...$args)
78  {
79  return Logical\Operations::logicalAnd(...$args);
80  }
81 
107  public static function logicalOr(...$args)
108  {
109  return Logical\Operations::logicalOr(...$args);
110  }
111 
139  public static function logicalXor(...$args)
140  {
141  return Logical\Operations::logicalXor(...$args);
142  }
143 
168  public static function NOT($logical = false)
169  {
170  return Logical\Operations::NOT($logical);
171  }
172 
209  public static function statementIf($condition = true, $returnIfTrue = 0, $returnIfFalse = false)
210  {
211  return Logical\Conditional::statementIf($condition, $returnIfTrue, $returnIfFalse);
212  }
213 
243  public static function statementSwitch(...$arguments)
244  {
245  return Logical\Conditional::statementSwitch(...$arguments);
246  }
247 
264  public static function IFERROR($testValue = '', $errorpart = '')
265  {
266  return Logical\Conditional::IFERROR($testValue, $errorpart);
267  }
268 
285  public static function IFNA($testValue = '', $napart = '')
286  {
287  return Logical\Conditional::IFNA($testValue, $napart);
288  }
289 
310  public static function IFS(...$arguments)
311  {
312  return Logical\Conditional::IFS(...$arguments);
313  }
314 }
static logicalXor(... $args)
LOGICAL_XOR.
Definition: Logical.php:139
static IFNA($testValue='', $napart='')
IFNA.
static statementIf($condition=true, $returnIfTrue=0, $returnIfFalse=false)
STATEMENT_IF.
Definition: Logical.php:209
static IFS(... $arguments)
IFS.
Definition: Logical.php:310
static statementIf($condition=true, $returnIfTrue=0, $returnIfFalse=false)
STATEMENT_IF.
Definition: Conditional.php:41
static NOT($logical=false)
NOT.
Definition: Logical.php:168
static statementSwitch(... $arguments)
STATEMENT_SWITCH.
Definition: Logical.php:243
static logicalOr(... $args)
LOGICAL_OR.
Definition: Logical.php:107
static statementSwitch(... $arguments)
STATEMENT_SWITCH.
Definition: Conditional.php:78
static IFERROR($testValue='', $errorpart='')
IFERROR.
Definition: Logical.php:264
static logicalAnd(... $args)
LOGICAL_AND.
Definition: Logical.php:77
static IFNA($testValue='', $napart='')
IFNA.
Definition: Logical.php:285
static IFERROR($testValue='', $errorpart='')
IFERROR.