@@ -611,15 +611,15 @@ |
||
| 611 | 611 | function _hash($data, $controlType) |
| 612 | 612 | { |
| 613 | 613 | switch ($controlType) { |
| 614 | - case 'md5': |
|
| 615 | - return md5($data); |
|
| 616 | - case 'crc32': |
|
| 617 | - return sprintf('% 32d', crc32($data)); |
|
| 618 | - case 'strlen': |
|
| 619 | - return sprintf('% 32d', strlen($data)); |
|
| 620 | - default: |
|
| 621 | - $this->raiseError('Unknown controlType ! '. |
|
| 622 | - '(available values are only \'md5\', \'crc32\', \'strlen\')', -5); |
|
| 614 | + case 'md5': |
|
| 615 | + return md5($data); |
|
| 616 | + case 'crc32': |
|
| 617 | + return sprintf('% 32d', crc32($data)); |
|
| 618 | + case 'strlen': |
|
| 619 | + return sprintf('% 32d', strlen($data)); |
|
| 620 | + default: |
|
| 621 | + $this->raiseError('Unknown controlType ! '. |
|
| 622 | + '(available values are only \'md5\', \'crc32\', \'strlen\')', -5); |
|
| 623 | 623 | } |
| 624 | 624 | } |
| 625 | 625 | |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | * Get the MessageSource class file. |
| 23 | 23 | */ |
| 24 | 24 | use DOMDocument; |
| 25 | -use DOMXPath; |
|
| 26 | 25 | use Prado\Exceptions\TException; |
| 27 | 26 | use Prado\Exceptions\TIOException; |
| 28 | 27 | |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Prado\Util; |
| 12 | 12 | use Prado\Collections\TList; |
| 13 | -use Prado\Collections\TListIterator; |
|
| 14 | 13 | |
| 15 | 14 | /** |
| 16 | 15 | * TCallChain is a recursive event calling mechanism. This class implements |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace Prado\Web; |
| 13 | -use Prado\Collections\TMapIterator; |
|
| 14 | 13 | use Prado\Caching\TFileCacheDependency; |
| 15 | 14 | use Prado\Exceptions\TConfigurationException; |
| 16 | 15 | use Prado\Exceptions\TInvalidDataValueException; |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | namespace Prado\Web\UI; |
| 14 | 14 | use Prado\Prado; |
| 15 | 15 | use Prado\TApplicationMode; |
| 16 | -use Prado\Exceptions\TInvalidDataValueException; |
|
| 17 | 16 | use Prado\Exceptions\TInvalidOperationException; |
| 18 | 17 | use Prado\Web\Javascripts\TJavaScript; |
| 19 | 18 | use Prado\Web\UI\ActiveControls\ICallbackEventHandler; |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Prado\Collections\TList; |
| 14 | 14 | use Prado\Collections\TMap; |
| 15 | 15 | use Prado\Collections\TStack; |
| 16 | -use Prado\Data\ActiveRecord\TActiveRecord; |
|
| 17 | 16 | use Prado\Exceptions\TConfigurationException; |
| 18 | 17 | use Prado\Exceptions\THttpException; |
| 19 | 18 | use Prado\Exceptions\TInvalidDataValueException; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Prado\Web\UI\WebControls; |
| 13 | 13 | use Prado\IO\TTextWriter; |
| 14 | 14 | use Prado\Prado; |
| 15 | -use Prado\TPropertyValue; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * TSafeHtml class |