mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
Add visibility to class constants (PHP >= 7.1)
This commit is contained in:
@@ -34,19 +34,19 @@ use UserRights;
|
||||
class QuickCreate extends UIBlock
|
||||
{
|
||||
// Overloaded constants
|
||||
const BLOCK_CODE = 'ibo-quick-create';
|
||||
const HTML_TEMPLATE_REL_PATH = 'components/quick-create/layout';
|
||||
const JS_TEMPLATE_REL_PATH = 'components/quick-create/layout';
|
||||
const JS_FILES_REL_PATH = [
|
||||
public const BLOCK_CODE = 'ibo-quick-create';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/quick-create/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/quick-create/layout';
|
||||
public const JS_FILES_REL_PATH = [
|
||||
'js/selectize.min.js',
|
||||
'js/components/quick-create.js',
|
||||
];
|
||||
const CSS_FILES_REL_PATH = [
|
||||
public const CSS_FILES_REL_PATH = [
|
||||
'css/selectize.default.css',
|
||||
];
|
||||
|
||||
// Specific constants
|
||||
const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php';
|
||||
public const DEFAULT_ENDPOINT_REL_URL = 'pages/UI.php';
|
||||
|
||||
/** @var array $aAvailableClasses */
|
||||
protected $aAvailableClasses;
|
||||
|
||||
@@ -35,8 +35,8 @@ use utils;
|
||||
*/
|
||||
class QuickCreateHelper
|
||||
{
|
||||
const MAX_HISTORY_SIZE = 10;
|
||||
const USER_PREF_CODE = 'quick_create_history';
|
||||
public const MAX_HISTORY_SIZE = 10;
|
||||
public const USER_PREF_CODE = 'quick_create_history';
|
||||
|
||||
/**
|
||||
* Add $sQuery to the history. History is limited to the static::MAX_HISTORY_SIZE last classes.
|
||||
|
||||
Reference in New Issue
Block a user