src/MimeMailer/Mailer.php
public function getRegistry($var = null, $section = false, $default = false)
    {
        if (is_null($var)) {
            return;
        }
        if ($section && isset($this->registry[$section])) {
            if (isset($this->registry[$section][$var])) {
                return $this->registry[$section][$var];
            } else {
                return $default;
            }
        }
        if (isset($this->registry[$var])) {
            return $this->registry[$var];
        }
        return $default;
    }
public function getRegistry($var = null, $section = false, $default = false)
    {
        if (is_null($var)) {
            return;
        }
        if ($section && isset($this->registry[$section])) {
            if (isset($this->registry[$section][$var])) {
                return $this->registry[$section][$var];
            } else {
                return $default;
            }
        }
        if (isset($this->registry[$var])) {
            return $this->registry[$var];
        }
        return $default;
    }
public function getRegistry ( $ var = null , $ section = false , $ default = false ) { if ( is_null ( $ var ) ) { return ; } if ( $ section && isset ( $ this -> registry [ $ section ] ) ) { if ( isset ( $ this -> registry [ $ section ] [ $ var ] ) ) { return $ this -> registry [ $ section ] [ $ var ] ; } else { return $ default ; } } if ( isset ( $ this -> registry [ $ var ] ) ) { return $ this -> registry [ $ var ] ; } return $ default ; }
Get a registry entry

@param string $var The entry name
@param string $section A sub-section to search the entry
@param mixed $default The value returned if nothing had been found
@return mixed The value of the entry if found, $default otherwise
Get a registry entry