src/login_github.php
public static function get_by_github_username($github_username) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "SELECT * FROM `login_github` WHERE `github_username` = '%s';";
	$login = $mysql::select('row', $sql, $github_username);
	if (empty($login)) {
		return false;
	}
	
	return new static($login['id']);
}
public static function get_by_github_username($github_username) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "SELECT * FROM `login_github` WHERE `github_username` = '%s';";
	$login = $mysql::select('row', $sql, $github_username);
	if (empty($login)) {
		return false;
	}
	
	return new static($login['id']);
}
public static function get_by_github_username ( $ github_username ) { $ mysql = bootstrap :: get_library ( 'mysql' ) ; $ sql = "SELECT * FROM `login_github` WHERE `github_username` = '%s';" ; $ login = $ mysql :: select ( 'row' , $ sql , $ github_username ) ; if ( empty ( $ login ) ) { return false ; } return new static ( $ login [ 'id' ] ) ; }
checks whether the given github username match one on file
and returns the found login

@param  string        $github_username
@return $this|boolean false when the username is not found
checks whether the given github username match one on file and returns the found login