View::getFacadeComponentId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Facades for Yii 2
4
 *
5
 * Generated on Yii 2.0.12
6
 *
7
 * @see       https://github.com/sergeymakinen/yii2-facades
8
 * @copyright Copyright (c) 2016-2017 Sergey Makinen (https://makinen.ru)
9
 * @license   https://github.com/sergeymakinen/yii2-facades/blob/master/LICENSE The MIT License
10
 */
11
12
namespace sergeymakinen\facades;
13
14
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
15
/**
16
 * Yii::$app->get('view') facade.
17
 *
18
 * Methods
19
 *
20
 * @method static void addDynamicPlaceholder(string $placeholder, string $statements) Adds a placeholder for dynamic content.
21
 * @see \yii\base\View::addDynamicPlaceholder
22
 *
23
 * @method static \yii\base\Behavior attachBehavior(string $name, string|array|\yii\base\Behavior $behavior) Attaches a behavior to this component.
24
 * @see \yii\base\Component::attachBehavior
25
 *
26
 * @method static void attachBehaviors(array $behaviors) Attaches a list of behaviors to the component.
27
 * @see \yii\base\Component::attachBehaviors
28
 *
29
 * @method static \yii\widgets\Block beginBlock(string $id, bool $renderInPlace = false) Begins recording a block.
30
 * @see \yii\base\View::beginBlock
31
 *
32
 * @method static void beginBody() Marks the beginning of an HTML body section.
33
 * @see \yii\web\View::beginBody
34
 *
35
 * @method static bool beginCache(string $id, array $properties = []) Begins fragment caching.
36
 * @see \yii\base\View::beginCache
37
 *
38
 * @method static \yii\widgets\ContentDecorator beginContent(string $viewFile, array $params = []) Begins the rendering of content that is to be decorated by the specified view.
39
 * @see \yii\base\View::beginContent
40
 *
41
 * @method static void beginPage() Marks the beginning of a page.
42
 * @see \yii\base\View::beginPage
43
 *
44
 * @method static array behaviors() Returns a list of behaviors that this component should behave as.
45
 * @see \yii\base\Component::behaviors
46
 *
47
 * @method static void clear() Clears up the registered meta tags, link tags, css/js scripts and files.
48
 * @see \yii\web\View::clear
49
 *
50
 * @method static null|\yii\base\Behavior detachBehavior(string $name) Detaches a behavior from the component.
51
 * @see \yii\base\Component::detachBehavior
52
 *
53
 * @method static void detachBehaviors() Detaches all behaviors from the component.
54
 * @see \yii\base\Component::detachBehaviors
55
 *
56
 * @method static void endBlock() Ends recording a block.
57
 * @see \yii\base\View::endBlock
58
 *
59
 * @method static void endBody() Marks the ending of an HTML body section.
60
 * @see \yii\web\View::endBody
61
 *
62
 * @method static void endCache() Ends fragment caching.
63
 * @see \yii\base\View::endCache
64
 *
65
 * @method static void endContent() Ends the rendering of content.
66
 * @see \yii\base\View::endContent
67
 *
68
 * @method static void endPage(bool $ajaxMode = false) Marks the ending of an HTML page.
69
 * @see \yii\web\View::endPage
70
 *
71
 * @method static void ensureBehaviors() Makes sure that the behaviors declared in [[behaviors()]] are attached to this component.
72
 * @see \yii\base\Component::ensureBehaviors
73
 *
74
 * @method static mixed evaluateDynamicContent(string $statements) Evaluates the given PHP statements.
75
 * @see \yii\base\View::evaluateDynamicContent
76
 *
77
 * @method static \yii\web\AssetManager getAssetManager() Registers the asset manager being used by this view object.
78
 * @see \yii\web\View::getAssetManager
79
 *
80
 * @method static null|\yii\base\Behavior getBehavior(string $name) Returns the named behavior object.
81
 * @see \yii\base\Component::getBehavior
82
 *
83
 * @method static \yii\base\Behavior[] getBehaviors() Returns all behaviors attached to this component.
84
 * @see \yii\base\Component::getBehaviors
85
 *
86
 * @method static string|bool getViewFile()
87
 * @see \yii\base\View::getViewFile
88
 *
89
 * @method static bool hasEventHandlers(string $name) Returns a value indicating whether there is any handler attached to the named event.
90
 * @see \yii\base\Component::hasEventHandlers
91
 *
92
 * @method static void head() Marks the position of an HTML head section.
93
 * @see \yii\web\View::head
94
 *
95
 * @method static bool off(string $name, callable $handler = null) Detaches an existing event handler from this component.
96
 * @see \yii\base\Component::off
97
 *
98
 * @method static void on(string $name, callable $handler, mixed $data = null, bool $append = true) Attaches an event handler to an event.
99
 * @see \yii\base\Component::on
100
 *
101
 * @method static \yii\web\AssetBundle registerAssetBundle(string $name, int|null $position = null) Registers the named asset bundle.
102
 * @see \yii\web\View::registerAssetBundle
103
 *
104
 * @method static void registerCss(string $css, array $options = [], string $key = null) Registers a CSS code block.
105
 * @see \yii\web\View::registerCss
106
 *
107
 * @method static void registerCssFile(string $url, array $options = [], string $key = null) Registers a CSS file.
108
 * @see \yii\web\View::registerCssFile
109
 *
110
 * @method static void registerJs(string $js, int $position = 4, string $key = null) Registers a JS code block.
111
 * @see \yii\web\View::registerJs
112
 *
113
 * @method static void registerJsFile(string $url, array $options = [], string $key = null) Registers a JS file.
114
 * @see \yii\web\View::registerJsFile
115
 *
116
 * @method static void registerLinkTag(array $options, string $key = null) Registers a link tag.
117
 * @see \yii\web\View::registerLinkTag
118
 *
119
 * @method static void registerMetaTag(array $options, string $key = null) Registers a meta tag.
120
 * @see \yii\web\View::registerMetaTag
121
 *
122
 * @method static string render(string $view, array $params = [], object $context = null) Renders a view.
123
 * @see \yii\base\View::render
124
 *
125
 * @method static string renderAjax(string $view, array $params = [], object $context = null) Renders a view in response to an AJAX request.
126
 * @see \yii\web\View::renderAjax
127
 *
128
 * @method static string renderDynamic(string $statements) Renders dynamic content returned by the given PHP statements.
129
 * @see \yii\base\View::renderDynamic
130
 *
131
 * @method static string renderFile(string $viewFile, array $params = [], object $context = null) Renders a view file.
132
 * @see \yii\base\View::renderFile
133
 *
134
 * @method static string renderPhpFile(string $_file_, array $_params_ = []) Renders a view file as a PHP script.
135
 * @see \yii\base\View::renderPhpFile
136
 *
137
 * @method static void setAssetManager(\yii\web\AssetManager $value) Sets the asset manager.
138
 * @see \yii\web\View::setAssetManager
139
 *
140
 * @method static void trigger(string $name, \yii\base\Event $event = null) Triggers an event.
141
 * @see \yii\base\Component::trigger
142
 *
143
 * Property accessors
144
 *
145
 * @method static \yii\web\AssetBundle[] getAssetBundles() Returns list of the registered asset bundles.
146
 * @see \yii\web\View::assetBundles
147
 *
148
 * @method static array getBlocks() Returns a list of named output blocks.
149
 * @see \yii\base\View::blocks
150
 *
151
 * @method static array getCacheStack() Returns a list of currently active fragment cache widgets.
152
 * @see \yii\base\View::cacheStack
153
 *
154
 * @method static \yii\base\ViewContextInterface getContext() Returns the context under which the [[renderFile()]] method is being invoked.
155
 * @see \yii\base\View::context
156
 *
157
 * @method static array getCss() Returns the registered CSS code blocks.
158
 * @see \yii\web\View::css
159
 *
160
 * @method static array getCssFiles() Returns the registered CSS files.
161
 * @see \yii\web\View::cssFiles
162
 *
163
 * @method static string getDefaultExtension() Returns the default view file extension.
164
 * @see \yii\base\View::defaultExtension
165
 *
166
 * @method static array getDynamicPlaceholders() Returns a list of placeholders for embedding dynamic contents.
167
 * @see \yii\base\View::dynamicPlaceholders
168
 *
169
 * @method static array getJs() Returns the registered JS code blocks.
170
 * @see \yii\web\View::js
171
 *
172
 * @method static array getJsFiles() Returns the registered JS files.
173
 * @see \yii\web\View::jsFiles
174
 *
175
 * @method static array getLinkTags() Returns the registered link tags.
176
 * @see \yii\web\View::linkTags
177
 *
178
 * @method static array getMetaTags() Returns the registered meta tags.
179
 * @see \yii\web\View::metaTags
180
 *
181
 * @method static mixed getParams() Returns custom parameters that are shared among view templates.
182
 * @see \yii\base\View::params
183
 *
184
 * @method static array getRenderers() Returns a list of available renderers indexed by their corresponding supported file extensions.
185
 * @see \yii\base\View::renderers
186
 *
187
 * @method static \yii\base\Theme|array|string getTheme() Returns the theme object or the configuration for creating the theme object.
188
 * @see \yii\base\View::theme
189
 *
190
 * @method static string getTitle() Returns the page title.
191
 * @see \yii\web\View::title
192
 *
193
 * @method static void setAssetBundles(\yii\web\AssetBundle[] $value) Sets list of the registered asset bundles.
194
 * @see \yii\web\View::assetBundles
195
 *
196
 * @method static void setBlocks(array $value) Sets a list of named output blocks.
197
 * @see \yii\base\View::blocks
198
 *
199
 * @method static void setCacheStack(array $value) Sets a list of currently active fragment cache widgets.
200
 * @see \yii\base\View::cacheStack
201
 *
202
 * @method static void setContext(\yii\base\ViewContextInterface $value) Sets the context under which the [[renderFile()]] method is being invoked.
203
 * @see \yii\base\View::context
204
 *
205
 * @method static void setCss(array $value) Sets the registered CSS code blocks.
206
 * @see \yii\web\View::css
207
 *
208
 * @method static void setCssFiles(array $value) Sets the registered CSS files.
209
 * @see \yii\web\View::cssFiles
210
 *
211
 * @method static void setDefaultExtension(string $value) Sets the default view file extension.
212
 * @see \yii\base\View::defaultExtension
213
 *
214
 * @method static void setDynamicPlaceholders(array $value) Sets a list of placeholders for embedding dynamic contents.
215
 * @see \yii\base\View::dynamicPlaceholders
216
 *
217
 * @method static void setJs(array $value) Sets the registered JS code blocks.
218
 * @see \yii\web\View::js
219
 *
220
 * @method static void setJsFiles(array $value) Sets the registered JS files.
221
 * @see \yii\web\View::jsFiles
222
 *
223
 * @method static void setLinkTags(array $value) Sets the registered link tags.
224
 * @see \yii\web\View::linkTags
225
 *
226
 * @method static void setMetaTags(array $value) Sets the registered meta tags.
227
 * @see \yii\web\View::metaTags
228
 *
229
 * @method static void setParams(mixed $value) Sets custom parameters that are shared among view templates.
230
 * @see \yii\base\View::params
231
 *
232
 * @method static void setRenderers(array $value) Sets a list of available renderers indexed by their corresponding supported file extensions.
233
 * @see \yii\base\View::renderers
234
 *
235
 * @method static void setTheme(\yii\base\Theme|array|string $value) Sets the theme object or the configuration for creating the theme object.
236
 * @see \yii\base\View::theme
237
 *
238
 * @method static void setTitle(string $value) Sets the page title.
239
 * @see \yii\web\View::title
240
 */
241
class View extends Facade
242
{
243
    /**
244
     * @inheritDoc
245
     */
246 1
    public static function getFacadeComponentId()
247
    {
248 1
        return 'view';
249
    }
250
}
251