コード例 #1
0
ファイル: email_queue_api.php プロジェクト: rombert/mantisbt
/**
 * Get Corresponding EmailData object
 * @param int $p_email_id
 * @return bool|EmailData
 */
function email_queue_get( $p_email_id ) {
	$c_email_id = db_prepare_int( $p_email_id );
	$t_email_table = db_get_table( 'email' );

	$query = 'SELECT * FROM ' . $t_email_table . ' WHERE email_id=' . db_param();
	$result = db_query_bound( $query, Array( $c_email_id ) );

	$t_row = db_fetch_array( $result );

	return email_queue_row_to_object( $t_row );
}
コード例 #2
0
function email_queue_get($p_email_id)
{
    $c_email_id = db_prepare_int($p_email_id);
    $t_email_table = config_get('mantis_email_table');
    $query = "SELECT *\r\n\t\t\t\t  FROM {$t_email_table}\r\n\t\t\t\t  WHERE email_id='{$c_email_id}'";
    $result = db_query($query);
    $t_row = db_fetch_array($result);
    return email_queue_row_to_object($t_row);
}
コード例 #3
0
/**
 * Get Corresponding EmailData object
 * @param integer $p_email_id An email identifier.
 * @return boolean|EmailData
 */
function email_queue_get($p_email_id)
{
    db_param_push();
    $t_query = 'SELECT * FROM {email} WHERE email_id=' . db_param();
    $t_result = db_query($t_query, array($p_email_id));
    $t_row = db_fetch_array($t_result);
    return email_queue_row_to_object($t_row);
}