diff options
author | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
---|---|---|
committer | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
commit | d9adcfe6169c6c10059a670f2ed984908eb4e105 (patch) | |
tree | 25cfca25851214c1b744a07e67e9c120adfd7513 /core/View.php | |
parent | 2788e1dad22533f3e0dbddbdd16c51251c4e130a (diff) |
removed lots of trailing whitespace
Diffstat (limited to 'core/View.php')
-rw-r--r-- | core/View.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/core/View.php b/core/View.php index e7207d7beb..d9cbfe0b9c 100644 --- a/core/View.php +++ b/core/View.php @@ -27,7 +27,7 @@ if (!defined('PIWIK_USER_PATH')) { * View lets you set properties that will be passed on to a Twig template. * View will also set several properties that will be available in all Twig * templates, including: - * + * * - **currentModule**: The value of the **module** query parameter. * - **currentAction**: The value of the **action** query parameter. * - **userLogin**: The current user login name. @@ -43,29 +43,29 @@ if (!defined('PIWIK_USER_PATH')) { * - **show_autocompleter**: Whether the site selector should be shown or not. * - **loginModule**: The name of the currently used authentication module. * - **userAlias**: The alias of the current user. - * + * * ### Template Naming Convention - * + * * Template files should be named after the controller method they are used in. * If they are used in more than one controller method or are included by another * template, they should describe the output they generate and be prefixed with * an underscore, eg, **_dataTable.twig**. - * + * * ### Twig - * + * * Twig templates must exist in the **templates** folder in a plugin's root * folder. - * + * * The following filters are available to twig templates: - * + * * - **translate**: Outputs internationalized text using a translation token, eg, * `{{ 'General_Date'|translate }}`. sprintf parameters can be passed * to the filter. * - **urlRewriteWithParameters**: Modifies the current query string with the given * set of parameters, eg, - * + * * {{ {'module':'MyPlugin', 'action':'index'} | urlRewriteWithParameters }} - * + * * - **sumTime**: Pretty formats an number of seconds. * - **money**: Formats a numerical value as a monetary value using the currency * of the supplied site (second arg is site ID). @@ -74,9 +74,9 @@ if (!defined('PIWIK_USER_PATH')) { * eg, `{{ myReallyLongText|truncate(80) }}` * - **implode**: Calls `implode`. * - **ucwords**: Calls `ucwords`. - * + * * The following functions are available to twig templates: - * + * * - **linkTo**: Modifies the current query string with the given set of parameters, * eg `{{ linkTo({'module':'MyPlugin', 'action':'index'}) }}`. * - **sparkline**: Outputs a sparkline image HTML element using the sparkline image @@ -85,11 +85,11 @@ if (!defined('PIWIK_USER_PATH')) { * which is outputted in the template, eg, `{{ postEvent('MyPlugin.event') }}` * - **isPluginLoaded**: Returns true if the supplied plugin is loaded, false if otherwise. * `{% if isPluginLoaded('Goals') %}...{% endif %}` - * + * * ### Examples - * + * * **Basic usage** - * + * * // a controller method * public function myView() * { @@ -98,7 +98,7 @@ if (!defined('PIWIK_USER_PATH')) { * $view->property2 = "another view property"; * return $view->render(); * } - * + * * * @api */ @@ -117,7 +117,7 @@ class View implements ViewInterface /** * Constructor. - * + * * @param string $templateFile The template file to load. Must be in the following format: * `"@MyPlugin/templateFileName"`. Note the absence of .twig * from the end of the name. @@ -286,7 +286,7 @@ class View implements ViewInterface /** * Set stored value used in the Content-Type HTTP header field. The header is * set just before rendering. - * + * * @param string $contentType */ public function setContentType($contentType) @@ -297,7 +297,7 @@ class View implements ViewInterface /** * Set X-Frame-Options field in the HTTP response. The header is set just * before rendering. - * + * * _Note: setting this allows you to make sure the View **cannot** be * embedded in iframes. Learn more [here](https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options)._ * @@ -356,7 +356,7 @@ class View implements ViewInterface /** * Creates a View for and then renders the single report template. - * + * * Can be used for pages that display only one report to avoid having to create * a new template. * |