public function clearAdminData($userId)
    {
        //  Get the user ID
        $userId = $this->adminDataGetUserId($userId);

        $bResult = $this->oUserMetaService->update(
            NAILS_DB_PREFIX . 'user_meta_admin',
            $userId,
            [
                'nav_state' => null,
            ]
        );

        if ($bResult) {
            $this->unsetCache('admin-data-' . $userId);
        }

        return $bResult;
    }
public function clearAdminData($userId)
    {
        //  Get the user ID
        $userId = $this->adminDataGetUserId($userId);

        $bResult = $this->oUserMetaService->update(
            NAILS_DB_PREFIX . 'user_meta_admin',
            $userId,
            [
                'nav_state' => null,
            ]
        );

        if ($bResult) {
            $this->unsetCache('admin-data-' . $userId);
        }

        return $bResult;
    }
public function clearAdminData ( $ userId ) { //  Get the user ID $ userId = $ this -> adminDataGetUserId ( $ userId ) ; $ bResult = $ this -> oUserMetaService -> update ( NAILS_DB_PREFIX . 'user_meta_admin' , $ userId , [ 'nav_state' => null , ] ) ; if ( $ bResult ) { $ this -> unsetCache ( 'admin-data-' . $ userId ) ; } return $ bResult ; }
Completely clears out the admin array

@param  mixed $userId The user's ID, if null active user is used.

@return boolean
Completely clears out the admin array