|
Revision 23810, 0.9 kB
(checked in by Kris.Wallsmith, 4 years ago)
|
[1.3] set svn:eol-style property to native and svn:keywords property to Id on all .php files
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
class sfDoctrineConnectionListener extends Doctrine_EventListener |
|---|
| 22 |
{ |
|---|
| 23 |
public function __construct($connection, $encoding) |
|---|
| 24 |
{ |
|---|
| 25 |
$this->connection = $connection; |
|---|
| 26 |
$this->encoding = $encoding; |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
public function postConnect(Doctrine_Event $event) |
|---|
| 30 |
{ |
|---|
| 31 |
$this->connection->setCharset($this->encoding); |
|---|
| 32 |
$this->connection->setDateFormat(); |
|---|
| 33 |
} |
|---|
| 34 |
} |
|---|