1 | <?php |
||
31 | class HtmlEncodeBehavior extends Behavior |
||
32 | { |
||
33 | public $attributes = []; |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function events() |
||
44 | |||
45 | /** |
||
46 | * Event will be triggered after find. |
||
47 | * |
||
48 | * @param \yii\base\Event $event The after find event. |
||
49 | */ |
||
50 | public function afterFind($event) |
||
56 | |||
57 | /** |
||
58 | * Encodes the given value based on {{luya\helpers\Html::encode()}}. |
||
59 | * |
||
60 | * @param string $value The value which should be encoded. |
||
61 | * @return string Returns the encoded value. |
||
62 | */ |
||
63 | public function htmlEncode($value) |
||
67 | } |
||
68 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.