mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -49,39 +49,39 @@ abstract class Application extends Module
|
||||
/**
|
||||
* @event Event an event raised before the application starts to handle a request.
|
||||
*/
|
||||
const EVENT_BEFORE_REQUEST = 'beforeRequest';
|
||||
public const EVENT_BEFORE_REQUEST = 'beforeRequest';
|
||||
/**
|
||||
* @event Event an event raised after the application successfully handles a request (before the response is sent out).
|
||||
*/
|
||||
const EVENT_AFTER_REQUEST = 'afterRequest';
|
||||
public const EVENT_AFTER_REQUEST = 'afterRequest';
|
||||
/**
|
||||
* Application state used by [[state]]: application just started.
|
||||
*/
|
||||
const STATE_BEGIN = 0;
|
||||
public const STATE_BEGIN = 0;
|
||||
/**
|
||||
* Application state used by [[state]]: application is initializing.
|
||||
*/
|
||||
const STATE_INIT = 1;
|
||||
public const STATE_INIT = 1;
|
||||
/**
|
||||
* Application state used by [[state]]: application is triggering [[EVENT_BEFORE_REQUEST]].
|
||||
*/
|
||||
const STATE_BEFORE_REQUEST = 2;
|
||||
public const STATE_BEFORE_REQUEST = 2;
|
||||
/**
|
||||
* Application state used by [[state]]: application is handling the request.
|
||||
*/
|
||||
const STATE_HANDLING_REQUEST = 3;
|
||||
public const STATE_HANDLING_REQUEST = 3;
|
||||
/**
|
||||
* Application state used by [[state]]: application is triggering [[EVENT_AFTER_REQUEST]]..
|
||||
*/
|
||||
const STATE_AFTER_REQUEST = 4;
|
||||
public const STATE_AFTER_REQUEST = 4;
|
||||
/**
|
||||
* Application state used by [[state]]: application is about to send response.
|
||||
*/
|
||||
const STATE_SENDING_RESPONSE = 5;
|
||||
public const STATE_SENDING_RESPONSE = 5;
|
||||
/**
|
||||
* Application state used by [[state]]: application has ended.
|
||||
*/
|
||||
const STATE_END = 6;
|
||||
public const STATE_END = 6;
|
||||
|
||||
/**
|
||||
* @var string the namespace that controller classes are located in.
|
||||
|
||||
@ -31,11 +31,11 @@ class Controller extends Component implements ViewContextInterface
|
||||
* @event ActionEvent an event raised right before executing a controller action.
|
||||
* You may set [[ActionEvent::isValid]] to be false to cancel the action execution.
|
||||
*/
|
||||
const EVENT_BEFORE_ACTION = 'beforeAction';
|
||||
public const EVENT_BEFORE_ACTION = 'beforeAction';
|
||||
/**
|
||||
* @event ActionEvent an event raised right after executing a controller action.
|
||||
*/
|
||||
const EVENT_AFTER_ACTION = 'afterAction';
|
||||
public const EVENT_AFTER_ACTION = 'afterAction';
|
||||
|
||||
/**
|
||||
* @var string the ID of this controller.
|
||||
|
||||
@ -25,7 +25,7 @@ class ErrorException extends \ErrorException
|
||||
* @see https://github.com/facebook/hhvm/blob/master/hphp/runtime/base/runtime-error.h#L62
|
||||
* @since 2.0.6
|
||||
*/
|
||||
const E_HHVM_FATAL_ERROR = 16777217; // E_ERROR | (1 << 24)
|
||||
public const E_HHVM_FATAL_ERROR = 16777217; // E_ERROR | (1 << 24)
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -30,7 +30,7 @@ abstract class ErrorHandler extends Component
|
||||
* @event Event an event that is triggered when the handler is called by shutdown function via [[handleFatalError()]].
|
||||
* @since 2.0.46
|
||||
*/
|
||||
const EVENT_SHUTDOWN = 'shutdown';
|
||||
public const EVENT_SHUTDOWN = 'shutdown';
|
||||
|
||||
/**
|
||||
* @var bool whether to discard any existing page output before error display. Defaults to true.
|
||||
|
||||
@ -83,16 +83,16 @@ class Model extends Component implements StaticInstanceInterface, IteratorAggreg
|
||||
/**
|
||||
* The name of the default scenario.
|
||||
*/
|
||||
const SCENARIO_DEFAULT = 'default';
|
||||
public const SCENARIO_DEFAULT = 'default';
|
||||
/**
|
||||
* @event ModelEvent an event raised at the beginning of [[validate()]]. You may set
|
||||
* [[ModelEvent::isValid]] to be false to stop the validation.
|
||||
*/
|
||||
const EVENT_BEFORE_VALIDATE = 'beforeValidate';
|
||||
public const EVENT_BEFORE_VALIDATE = 'beforeValidate';
|
||||
/**
|
||||
* @event Event an event raised at the end of [[validate()]]
|
||||
*/
|
||||
const EVENT_AFTER_VALIDATE = 'afterValidate';
|
||||
public const EVENT_AFTER_VALIDATE = 'afterValidate';
|
||||
|
||||
/**
|
||||
* @var array validation errors (attribute name => array of errors)
|
||||
|
||||
@ -44,11 +44,11 @@ class Module extends ServiceLocator
|
||||
* @event ActionEvent an event raised before executing a controller action.
|
||||
* You may set [[ActionEvent::isValid]] to be `false` to cancel the action execution.
|
||||
*/
|
||||
const EVENT_BEFORE_ACTION = 'beforeAction';
|
||||
public const EVENT_BEFORE_ACTION = 'beforeAction';
|
||||
/**
|
||||
* @event ActionEvent an event raised after executing a controller action.
|
||||
*/
|
||||
const EVENT_AFTER_ACTION = 'afterAction';
|
||||
public const EVENT_AFTER_ACTION = 'afterAction';
|
||||
|
||||
/**
|
||||
* @var array custom module parameters (name => value).
|
||||
|
||||
@ -32,19 +32,19 @@ class View extends Component implements DynamicContentAwareInterface
|
||||
/**
|
||||
* @event Event an event that is triggered by [[beginPage()]].
|
||||
*/
|
||||
const EVENT_BEGIN_PAGE = 'beginPage';
|
||||
public const EVENT_BEGIN_PAGE = 'beginPage';
|
||||
/**
|
||||
* @event Event an event that is triggered by [[endPage()]].
|
||||
*/
|
||||
const EVENT_END_PAGE = 'endPage';
|
||||
public const EVENT_END_PAGE = 'endPage';
|
||||
/**
|
||||
* @event ViewEvent an event that is triggered by [[renderFile()]] right before it renders a view file.
|
||||
*/
|
||||
const EVENT_BEFORE_RENDER = 'beforeRender';
|
||||
public const EVENT_BEFORE_RENDER = 'beforeRender';
|
||||
/**
|
||||
* @event ViewEvent an event that is triggered by [[renderFile()]] right after it renders a view file.
|
||||
*/
|
||||
const EVENT_AFTER_RENDER = 'afterRender';
|
||||
public const EVENT_AFTER_RENDER = 'afterRender';
|
||||
|
||||
/**
|
||||
* @var ViewContextInterface the context under which the [[renderFile()]] method is being invoked.
|
||||
|
||||
@ -30,18 +30,18 @@ class Widget extends Component implements ViewContextInterface
|
||||
* @event Event an event that is triggered when the widget is initialized via [[init()]].
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_INIT = 'init';
|
||||
public const EVENT_INIT = 'init';
|
||||
/**
|
||||
* @event WidgetEvent an event raised right before executing a widget.
|
||||
* You may set [[WidgetEvent::isValid]] to be false to cancel the widget execution.
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_BEFORE_RUN = 'beforeRun';
|
||||
public const EVENT_BEFORE_RUN = 'beforeRun';
|
||||
/**
|
||||
* @event WidgetEvent an event raised right after executing a widget.
|
||||
* @since 2.0.11
|
||||
*/
|
||||
const EVENT_AFTER_RUN = 'afterRun';
|
||||
public const EVENT_AFTER_RUN = 'afterRun';
|
||||
|
||||
/**
|
||||
* @var int a counter used to generate [[id]] for widgets.
|
||||
|
||||
Reference in New Issue
Block a user