If the _post private prop is not set, puts all the post information into it, except any index starting with bbn; in that case it will become a BBN constant if it has not been yet defined (e.g. _bbn_baseURL will become BBN_BASEURL)
function()
{
if (!isset($this->_post)) {
if (self::$_input && \bbn\Str::isJson(self::$_input)) {
$this->_post = json_decode(self::$_input, 1);
}
elseif (!empty($_POST)) {
$this->_post = $_POST;
}
if (!$this->_post) {
$this->_post = [];
}
else {
$this->_has_post = true;
$this->_post = bbn\Str::correctTypes($this->_post);
foreach ($this->_post as $k => $v) {
if (X::indexOf($k, '_bbn_') === 0) {
if (!defined(strtoupper(substr($k, 1)))) {
define(strtoupper(substr($k, 1)), $v);
}
unset($this->_post[$k]);
}
}
}
}
return $this->_post;
}