Doctrine_Event
public class Doctrine_Event
www.doctrine-project.org| Field Summary | |
|---|---|
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | CONNECTION EVENT CODES. |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| final int | |
| protected integer $_code the event code | . |
| protected integer $_endedMicrotime the time point in which this event was ended | . |
| protected mixed $_invoker the handler which invoked this event | . |
| protected static mixed $_nextSequence the sequence of the next event that will be created | . |
| protected array $_options an array of options | . |
| protected string $_params the parameters associated with the query (if any) | . |
| protected string $_query the sql query associated with this event (if any) | . |
| protected mixed $_sequence the sequence of this event | . |
| protected integer $_startedMicrotime the time point in which this event was started | . |
| Constructor Summary | |
|---|---|
Doctrine_Event(mixed invoker, integer code, string query, mixed params, Doctrine_Connection|Doctrine_Connection_Statement| Doctrine_Connection_UnitOfWork|Doctrine_Transaction) constructor. |
|
| Method Summary | |
|---|---|
| Doctrine_Event | end() end ends the internal timer of this event. |
| integer | getCode() getCode. |
| integer | Get the elapsed time (in microseconds) that the event ran. |
| Doctrine_Connection|Doctrine_Connection_Statement| | getInvoker returns the handler that invoked this event. |
| string | getName() getName returns the name of this event. |
| array | getParams returns the parameters of the query. |
| Doctrine_Query | getQuery() getQuery. |
| integer | getSequence returns the sequence of this event. |
| boolean | hasEnded() hasEnded whether or not this event has ended. |
| Doctrine_Event | set(string option, mixed value) setOption sets the value of an option by reference. |
| void | setInvoker(mixed invoker) setInvoker Defines new invoker (used in Hydrator). |
| Doctrine_Event | skipOperation skips the next operation an alias for __set('skipOperation', true). |
| Doctrine_Event | start() start starts the internal timer of this event. |
public final int CONN_CLOSE = 5
public final int CONN_CONNECT = 4
public final int CONN_ERROR = 6
public final int CONN_EXEC = 2
public final int CONN_PREPARE = 3
public final int CONN_QUERY = 1
CONNECTION EVENT CODES
public final int HYDRATE = 40
public final int RECORD_DELETE = 21
public final int RECORD_DQL_DELETE = 27
public final int RECORD_DQL_SELECT = 28
public final int RECORD_DQL_UPDATE = 29
public final int RECORD_INSERT = 24
public final int RECORD_SAVE = 22
public final int RECORD_SERIALIZE = 25
public final int RECORD_UNSERIALIZE = 26
public final int RECORD_UPDATE = 23
public final int RECORD_VALIDATE = 30
public final int SAVEPOINT_COMMIT = 36
public final int SAVEPOINT_CREATE = 34
public final int SAVEPOINT_ROLLBACK = 35
public final int STMT_EXECUTE = 10
public final int STMT_FETCH = 11
public final int STMT_FETCHALL = 12
public final int TX_BEGIN = 31
public final int TX_COMMIT = 32
public final int TX_ROLLBACK = 33
protected integer $_code the event code $_code
protected integer $_endedMicrotime the time point in which this event was ended $_endedMicrotime
protected mixed $_invoker the handler which invoked this event $_invoker
protected static mixed $_nextSequence the sequence of the next event that will be created $_nextSequence
protected array $_options an array of options $_options = array()
protected string $_params the parameters associated with the query (if any) $_params
protected string $_query the sql query associated with this event (if any) $_query
protected mixed $_sequence the sequence of this event $_sequence
protected integer $_startedMicrotime the time point in which this event was started $_startedMicrotime
public Doctrine_Event(mixed invoker, integer code, string query, mixed params, Doctrine_Connection|Doctrine_Connection_Statement| Doctrine_Connection_UnitOfWork|Doctrine_Transaction)
constructor
public Doctrine_Event end()
end ends the internal timer of this event
public integer getCode()
getCode
public integer getElapsedSecs()
Get the elapsed time (in microseconds) that the event ran. If the event has not yet ended, return false.
public Doctrine_Connection|Doctrine_Connection_Statement| getInvoker()
getInvoker returns the handler that invoked this event
public string getName()
getName returns the name of this event
public array getParams()
getParams returns the parameters of the query
public Doctrine_Query getQuery()
getQuery
public integer getSequence()
getSequence returns the sequence of this event
public boolean hasEnded()
hasEnded whether or not this event has ended
public Doctrine_Event set(string option, mixed value)
setOption sets the value of an option by reference
public void setInvoker(mixed invoker)
setInvoker Defines new invoker (used in Hydrator)
public Doctrine_Event skipOperation()
skipOperation skips the next operation an alias for __set('skipOperation', true)
public Doctrine_Event start()
start starts the internal timer of this event
Doctrine_Event