public function getMonitorFrom($name = null)
    {
        if ($name) {
            if (isset($this['monitor'], $this['monitor'][$name], $this['monitor'][$name]['from']) &&
                    trim($this['monitor'][$name]['from'])) {
                return $this['monitor'][$name]['from'];
            }
        }
        if (isset($this['monitor'], $this['monitor']['default'], $this['monitor']['default']['from']) &&
                trim($this['monitor']['default']['from'])) {
            return $this['monitor']['default']['from'];
        }

        $email = $this->getSiteEmail();
        if ($email) {
            return $email;
        }

        return 'noreply@gemstracker.org';
    }
public function getMonitorFrom($name = null)
    {
        if ($name) {
            if (isset($this['monitor'], $this['monitor'][$name], $this['monitor'][$name]['from']) &&
                    trim($this['monitor'][$name]['from'])) {
                return $this['monitor'][$name]['from'];
            }
        }
        if (isset($this['monitor'], $this['monitor']['default'], $this['monitor']['default']['from']) &&
                trim($this['monitor']['default']['from'])) {
            return $this['monitor']['default']['from'];
        }

        $email = $this->getSiteEmail();
        if ($email) {
            return $email;
        }

        return 'noreply@gemstracker.org';
    }
public function getMonitorFrom ( $ name = null ) { if ( $ name ) { if ( isset ( $ this [ 'monitor' ] , $ this [ 'monitor' ] [ $ name ] , $ this [ 'monitor' ] [ $ name ] [ 'from' ] ) && trim ( $ this [ 'monitor' ] [ $ name ] [ 'from' ] ) ) { return $ this [ 'monitor' ] [ $ name ] [ 'from' ] ; } } if ( isset ( $ this [ 'monitor' ] , $ this [ 'monitor' ] [ 'default' ] , $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ) && trim ( $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ) ) { return $ this [ 'monitor' ] [ 'default' ] [ 'from' ] ; } $ email = $ this -> getSiteEmail ( ) ; if ( $ email ) { return $ email ; } return 'noreply@gemstracker.org' ; }
Get the form address for monitor messages

@param string $name Optional section name
@return string
Get the form address for monitor messages