protected function _getMailTo($monitorName)
    {     
        $projTo  = explode(',',$this->project->getMonitorTo($monitorName));
        $userTo  = $this->_getUserTo($monitorName);
        $orgTo   = $this->_getOrgTo($monitorName);
        $mailtos = array_merge($projTo, $userTo, $orgTo);
        
        return array_values(array_unique(array_filter(array_map('trim',$mailtos))));
    }
protected function _getMailTo($monitorName)
    {     
        $projTo  = explode(',',$this->project->getMonitorTo($monitorName));
        $userTo  = $this->_getUserTo($monitorName);
        $orgTo   = $this->_getOrgTo($monitorName);
        $mailtos = array_merge($projTo, $userTo, $orgTo);
        
        return array_values(array_unique(array_filter(array_map('trim',$mailtos))));
    }
protected function _getMailTo ( $ monitorName ) { $ projTo = explode ( ',' , $ this -> project -> getMonitorTo ( $ monitorName ) ) ; $ userTo = $ this -> _getUserTo ( $ monitorName ) ; $ orgTo = $ this -> _getOrgTo ( $ monitorName ) ; $ mailtos = array_merge ( $ projTo , $ userTo , $ orgTo ) ; return array_values ( array_unique ( array_filter ( array_map ( 'trim' , $ mailtos ) ) ) ) ; }
Get the mail addresses for a monitor

@param string $monitorName ProjectSettings name
@param string $where Optional, a gems__staff SQL WHERE statement
@return array
Get the mail addresses for a monitor