method __construct documentation in bbn\Cdn\Config
Constructor.
function(string $request = NULL, bbn\Db $db = NULL)
{
// Need to be in a bbn environment, this is the absolute path of the server's root directory
if (!defined('BBN_PUBLIC')) {
$this->error('You must define the constant BBN_PUBLIC as the root of your public document');
}
$this->_set_prefix();
if (!$db) {
$db = bbn\Db::getInstance();
}
if (!$db) {
die(X::_('Impossible to initialize the CDN without a DB connection'));
}
$this->db = $db;
if ($request) {
$this->setCfgFromRequest($request);
}
}
Constructor. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2024
BBN Solutions