sfFilter provides a way for you to intercept incoming requests or outgoing responses.
Method Summary
-
sfContext
getContext()
Retrieves the current application context.
-
string
getParameter($name, $default)
Gets the parameter associated with the given key.
-
sfParameterHolder
getParameterHolder()
Gets the parameter holder for this object.
-
boolean
hasParameter($name)
Returns true if the given key exists in the parameter holder.
-
boolean
initialize($context, $parameters)
Initializes this Filter.
-
boolean
isFirstCall()
Returns true if this is the first call to the sfFilter instance.
-
setParameter($name, $value)
Sets the value for the given key.
-
__construct()
Class constructor.
Method Details
-
(sfContext) getContext ()
Browse code
Retrieves the current application context.
returns The current sfContext instance
-
(string) getParameter ($name, $default)
Browse code
| $name |
The key name |
| $default |
The default value |
Gets the parameter associated with the given key.
This is a shortcut for: $this->getParameterHolder()->get()
returns The value associated with the key
-
(sfParameterHolder) getParameterHolder ()
Browse code
Gets the parameter holder for this object.
returns A sfParameterHolder instance
-
(boolean) hasParameter ($name)
Browse code
Returns true if the given key exists in the parameter holder.
This is a shortcut for: $this->getParameterHolder()->has()
returns true if the given key exists, false otherwise
-
(boolean) initialize ($context, $parameters)
Browse code
| $context |
The current application context |
| $parameters |
An associative array of initialization parameters |
Initializes this Filter.
returns true
-
(boolean) isFirstCall ()
Browse code
Returns true if this is the first call to the sfFilter instance.
returns true if this is the first call to the sfFilter instance, false otherwise
-
setParameter ($name, $value)
Browse code
| $name |
The key name |
| $value |
The value |
Sets the value for the given key.
This is a shortcut for: $this->getParameterHolder()->set()
-
Class constructor.
|