src/Service/Emailer.php
public function userIsSuspended($iUserId)
    {
        $oDb = Factory::service('Database');
        $oDb->where('id', $iUserId);
        $oDb->where('is_suspended', true);
        return (bool) $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
    }
public function userIsSuspended($iUserId)
    {
        $oDb = Factory::service('Database');
        $oDb->where('id', $iUserId);
        $oDb->where('is_suspended', true);
        return (bool) $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
    }
public function userIsSuspended ( $ iUserId ) { $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> where ( 'id' , $ iUserId ) ; $ oDb -> where ( 'is_suspended' , true ) ; return ( bool ) $ oDb -> count_all_results ( NAILS_DB_PREFIX . 'user' ) ; }
Determiens whether a suer is suspended

@param integer $iUserId The user ID to check

@return bool
@throws \Nails\Common\Exception\FactoryException
Determiens whether a suer is suspended