|
Revision 7791, 1.2 kB
(checked in by fabien, 5 years ago)
|
updated Sean Kerr email address
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id Rev Date
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
abstract class sfSecurityFilter extends sfFilter |
|---|
| 22 |
{ |
|---|
| 23 |
|
|---|
| 24 |
* Returns a new instance of a sfSecurityFilter. |
|---|
| 25 |
* |
|---|
| 26 |
* @param string The security class name |
|---|
| 27 |
* |
|---|
| 28 |
* @return sfSecurityFilter A sfSecurityFilter implementation instance |
|---|
| 29 |
*/ |
|---|
| 30 |
public static function newInstance($class) |
|---|
| 31 |
{ |
|---|
| 32 |
|
|---|
| 33 |
$object = new $class(); |
|---|
| 34 |
|
|---|
| 35 |
if (!($object instanceof sfSecurityFilter)) |
|---|
| 36 |
{ |
|---|
| 37 |
|
|---|
| 38 |
$error = 'Class "%s" is not of the type sfSecurityFilter'; |
|---|
| 39 |
$error = sprintf($error, $class); |
|---|
| 40 |
|
|---|
| 41 |
throw new sfFactoryException($error); |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
return $object; |
|---|
| 45 |
} |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|