public function sendEmail($type, $default = false)
    {
        $ret = $this->__call('getValue', array($type));

        if (!isset($ret['send_email'])) {
            return (boolean) $default;
        }

        return (boolean) $ret['send_email'];
    }
public function sendEmail($type, $default = false)
    {
        $ret = $this->__call('getValue', array($type));

        if (!isset($ret['send_email'])) {
            return (boolean) $default;
        }

        return (boolean) $ret['send_email'];
    }
public function sendEmail ( $ type , $ default = false ) { $ ret = $ this -> __call ( 'getValue' , array ( $ type ) ) ; if ( ! isset ( $ ret [ 'send_email' ] ) ) { return ( boolean ) $ default ; } return ( boolean ) $ ret [ 'send_email' ] ; }
Returns whether the setting should send an email for a notification or not for a
notification type.

@param string $type    The type of the notification
@param mixed  $default The default value to return If the type is NULL

@return bool The boolean flag to whether send an email or not
Returns whether the setting should send an email for a notification or not for a notification type .