This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

core:onBeforeDatabaseConnect event

Triggered by /phproad/modules/db/classes/db_mysqldriver.php
Author LemonStand eCommerce Inc.

Event handler signature

public mixed event_onBeforeDatabaseConnect(Db_MySQLDriver $driver)
$driver Db_MySQLDriver specifies MySQL driver object.
{return} mixed returns the MySQL connection resource.
Triggered before database connection is established. You can use this event for creating custom MySQL connection. The handler should return MySQL connection resource - a result of mysql_pconnect() or mysql_connect() functions.