TYPO3 CMS  TYPO3_6-2
ConditionMatcherUserFuncs.php
Go to the documentation of this file.
1 <?php
15 namespace {
17  {
18  return count(func_get_args()) === 0;
19  }
20 
22  return count(func_get_args()) === 1;
23  }
24 
26  return count(func_get_args()) === 3;
27  }
28 
30  $result = TRUE;
31  foreach (func_get_args() as $argument) {
32  $result &= (trim($argument) == $argument);
33  }
34  return $result;
35  }
36 
37  function user_testFunctionWithSpaces($value) {
38  return $value === ' 3, 4, 5, 6 ';
39  }
40 
41  function user_testFunction() {
42  return TRUE;
43  }
44 
46  return FALSE;
47  }
48 
50  return $value === 'value "';
51  }
52 
53  function user_testQuotes($value) {
54  return $value === '1 " 2';
55  }
56 
58 
63  static public function isTrue($value) {
64  return (bool)$value;
65  }
66 
67  }
68 }
user_testFunctionWithNoArgument()
user_testFunctionWithSpaces($value)
user_testQuotes($value)
user_testFunctionWithThreeArgumentsSpaces()
user_testFunctionWithThreeArguments()
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren&#39;t numeric.
user_testFunctionWithQuoteMissing($value)
user_testFunctionWithSingleArgument()
user_testFunctionFalse()