FML/Form/Parameters.php
getValue accesses the super-global variable $_GET. Open
Open
public static function getValue($name)
{
if (array_key_exists($name, $_GET)) {
return $_GET[$name];
}
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
getValue accesses the super-global variable $_POST. Open
Open
public static function getValue($name)
{
if (array_key_exists($name, $_GET)) {
return $_GET[$name];
}
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
getValue accesses the super-global variable $_POST. Open
Open
public static function getValue($name)
{
if (array_key_exists($name, $_GET)) {
return $_GET[$name];
}
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
getValue accesses the super-global variable $_GET. Open
Open
public static function getValue($name)
{
if (array_key_exists($name, $_GET)) {
return $_GET[$name];
}
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks