symfony API

sfMySQLiSessionStorage Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

Provides support for session storage using a MySQL brand database

Inheritence

sfMySQLiSessionStorage  <  sfMySQLSessionStorage < sfDatabaseSessionStorage < sfSessionStorage < sfStorage

Method Summary

  • string db_error()
    Returns the text of the error message from previous database operation
  • string db_escape($string)
    Escape a string before using it in a query statement
  • array db_fetch_row($result)
    Extract a row from a query result set
  • int db_num_rows($result)
    Count the rows in a query result
  • mixed db_query($query)
    Execute an SQL Query

Methods inherited from sfMySQLSessionStorage

db_error , db_escape , db_fetch_row , db_num_rows , db_query , sessionDestroy , sessionGC , sessionRead , sessionWrite

Methods inherited from sfDatabaseSessionStorage

initialize , regenerate , sessionClose , sessionDestroy , sessionGC , sessionOpen , sessionRead , sessionWrite , shutdown

Methods inherited from sfSessionStorage

initialize , read , regenerate , remove , shutdown , write

Methods inherited from sfStorage

getOptions , initialize , read , regenerate , remove , shutdown , write , __construct

Method Details

  • (string) db_error () Browse code

    Returns the text of the error message from previous database operation

    returns The error text from the last database function

  • (string) db_escape ($string) Browse code

    $string The string to escape

    Escape a string before using it in a query statement

    returns The escaped string

  • (array) db_fetch_row ($result) Browse code

    $result Result of a query

    Extract a row from a query result set

    returns Extracted row as an indexed array

  • (int) db_num_rows ($result) Browse code

    $result Result of a query

    Count the rows in a query result

    returns Number of rows

  • (mixed) db_query ($query) Browse code

    $query The query to execute

    Execute an SQL Query

    returns The result of the query