method getUserDataPath documentation in bbn\Mvc
Returns path for the user's dir
function(string $id_user = NULL, string $plugin = NULL)
{
if (!self::$_app_name) {
return null;
}
if (!$id_user) {
$usr = \bbn\User::getInstance();
if ($usr) {
$id_user = $usr->getId();
}
}
if ($id_user) {
return self::getDataPath() . 'users/' . $id_user . '/data/' . ($plugin ? $plugin . '/' : '');;
}
return null;
}
Returns path for the user's dir 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-2025
BBN Solutions