protected function _getOrgTo($monitorName)
    {
        switch ($monitorName) {
            case 'maintenancemode':
                $where = "1 = 0";
                break;

            case 'cronmail':
            default:
                $where = 'gor_mail_watcher = 1';
                break;
        }
        
        $orgTo = $this->db->fetchCol(
                "SELECT DISTINCT gor_contact_email FROM gems__organizations WHERE LENGTH(gor_contact_email) > 5 AND gor_active = 1 AND $where"
                );
        return $orgTo;        
    }
protected function _getOrgTo($monitorName)
    {
        switch ($monitorName) {
            case 'maintenancemode':
                $where = "1 = 0";
                break;

            case 'cronmail':
            default:
                $where = 'gor_mail_watcher = 1';
                break;
        }
        
        $orgTo = $this->db->fetchCol(
                "SELECT DISTINCT gor_contact_email FROM gems__organizations WHERE LENGTH(gor_contact_email) > 5 AND gor_active = 1 AND $where"
                );
        return $orgTo;        
    }
protected function _getOrgTo ( $ monitorName ) { switch ( $ monitorName ) { case 'maintenancemode' : $ where = "1 = 0" ; break ; case 'cronmail' : default : $ where = 'gor_mail_watcher = 1' ; break ; } $ orgTo = $ this -> db -> fetchCol ( "SELECT DISTINCT gor_contact_email FROM gems__organizations WHERE LENGTH(gor_contact_email) > 5 AND gor_active = 1 AND $where" ) ; return $ orgTo ; }
Return an array of organization recipients for the given monitorName

@param string $monitorName
@return array
Return an array of organization recipients for the given monitorName