Enhance code autocompletion in IDEs

refs #2945
This commit is contained in:
Alexander A. Klimov 2017-09-07 11:22:46 +02:00
parent 316b998ef7
commit 356e194612
2 changed files with 41 additions and 0 deletions

View File

@ -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
{

View File

@ -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
{