From 356e194612ed61822111a4293f5172c04a730934 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 7 Sep 2017 11:22:46 +0200 Subject: [PATCH] Enhance code autocompletion in IDEs refs #2945 --- library/Icinga/Web/Controller.php | 2 ++ library/Icinga/Web/View.php | 39 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/library/Icinga/Web/Controller.php b/library/Icinga/Web/Controller.php index f15e4913b..4c44fcf03 100644 --- a/library/Icinga/Web/Controller.php +++ b/library/Icinga/Web/Controller.php @@ -17,6 +17,8 @@ use Icinga\Web\Widget\SortBox; * This is the controller all modules should inherit from * We will flip code with the ModuleActionController as soon as a couple * of pending feature branches are merged back to the master. + * + * @property View $view */ class Controller extends ModuleActionController { diff --git a/library/Icinga/Web/View.php b/library/Icinga/Web/View.php index ce1ea0150..39afea04c 100644 --- a/library/Icinga/Web/View.php +++ b/library/Icinga/Web/View.php @@ -11,6 +11,45 @@ use Icinga\Util\Translator; /** * Icinga view + * + * @method Url href($path = null, $params = null) { + * @param Url|string|null $path + * @param string[string]|null $params + * } + * + * @method Url url($path = null, $params = null) { + * @param Url|string|null $path + * @param string[string]|null $params + * } + * + * @method Url qlink($title, $url, $params = null, $properties = null, $escape = true) { + * @param string $title + * @param Url|string|null $url + * @param string[string]|null $params + * @param string[string]|null $properties + * @param bool $escape + * } + * + * @method string img($url, $params = null, array $properties = array()) { + * @param Url|string|null $url + * @param string[string]|null $params + * @param string[string] $properties + * } + * + * @method string icon($img, $title = null, array $properties = array()) { + * @param string $img + * @param string|null $title + * @param string[string] $properties + * } + * + * @method string propertiesToString($properties) { + * @param string[string] $properties + * } + * + * @method string attributeToString($key, $value) { + * @param string $key + * @param string $value + * } */ class View extends Zend_View_Abstract {