コード例 #1
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Frees the memory associated with a result.
 /// Alias to <see cref="mysqli_result.close"/>
 /// </summary>
 public static void mysqli_free_result(mysqli_result result) => result.close();
コード例 #2
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Adjusts the result pointer to an arbitrary row in the result.
 /// </summary>
 public static bool mysqli_data_seek(mysqli_result result, int offset) => result.data_seek(offset);
コード例 #3
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Returns the current row of a result set as an object.
 /// </summary>
 public static bool mysqli_field_seek(mysqli_result result, int fieldnr) => result.field_seek(fieldnr);
コード例 #4
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Get current field offset of a result pointer..
 /// </summary>
 public static int mysqli_field_tell(mysqli_result result) => result.current_field;
コード例 #5
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Gets the number of rows in a result.
 /// </summary>
 public static int mysqli_num_rows(mysqli_result result) => result.num_rows;
コード例 #6
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 public static stdClass mysqli_fetch_field_direct(mysqli_result result, int fieldnr) => result.fetch_field_direct(fieldnr);
コード例 #7
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Get the number of fields in a result.
 /// </summary>
 public static int mysqli_num_fields(mysqli_result result) => result.field_count;
コード例 #8
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Returns an array of objects representing the fields in a result set.
 /// </summary>
 public static PhpArray mysqli_fetch_fields(mysqli_result result) => result.fetch_fields();
コード例 #9
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 public static stdClass mysqli_fetch_field(mysqli_result result) => result.fetch_field();
コード例 #10
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Returns the current row of a result set as an object.
 /// </summary>
 public static object mysqli_fetch_object(mysqli_result result, string class_name = null, PhpArray class_params = null) => result.fetch_object(class_name, class_params);
コード例 #11
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Get a result row as an enumerated array.
 /// </summary>
 public static PhpArray mysqli_fetch_row(mysqli_result result) => result.fetch_row();
コード例 #12
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Fetch a result row as an associative, a numeric array, or both.
 /// </summary>
 public static PhpArray mysqli_fetch_array(mysqli_result result, int resulttype = Constants.MYSQLI_BOTH) => result.fetch_array(resulttype);
コード例 #13
0
ファイル: Functions.cs プロジェクト: grahamehorner/peachpie
 /// <summary>
 /// Fetch a result row as an associative array.
 /// </summary>
 /// <param name="result">A result set identifier.</param>
 /// <returns>
 /// Returns an associative array of strings representing the fetched row in the result set,
 /// where each key in the array represents the name of one of the result set's columns
 /// or <c>NULL</c> if there are no more rows in resultset.
 ///
 /// If two or more columns of the result have the same field names, the last column will take precedence.
 /// To access the other column(s) of the same name, you either need to access the result with
 /// numeric indices by using mysqli_fetch_row() or add alias names.
 /// </returns>
 public static PhpArray mysqli_fetch_assoc(mysqli_result result) => result.fetch_assoc();
コード例 #14
0
ファイル: Functions.cs プロジェクト: kendallb/peachpie
 /// <summary>
 /// Fetches single scalar value from the result set.
 /// </summary>
 public static PhpValue mysqli_fetch_column(mysqli_result result, int column = 0) => result.fetch_column(column);