Skip to content

Commit

Permalink
private -> protected
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Aug 1, 2014
1 parent 6388ece commit 56d0c33
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions modules/backend/behaviors/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FormController extends ControllerBehavior
/**
* @var Backend\Classes\WidgetBase Reference to the widget object.
*/
private $formWidget;
protected $formWidget;

/**
* {@inheritDoc}
Expand All @@ -47,7 +47,7 @@ class FormController extends ControllerBehavior
/**
* @var array List of prepared models that require saving.
*/
private $modelsToSave = [];
protected $modelsToSave = [];

/**
* Behavior constructor
Expand Down
8 changes: 4 additions & 4 deletions modules/backend/behaviors/ListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ class ListController extends ControllerBehavior
/**
* @var array List definitions, keys for alias and value for configuration.
*/
private $listDefinitions;
protected $listDefinitions;

/**
* @var string The primary list alias to use. Default: list
*/
private $primaryDefinition;
protected $primaryDefinition;

/**
* @var Backend\Classes\WidgetBase Reference to the list widget object.
*/
private $listWidgets = [];
protected $listWidgets = [];

/**
* @var WidgetBase Reference to the toolbar widget objects.
*/
private $toolbarWidgets = [];
protected $toolbarWidgets = [];

/**
* {@inheritDoc}
Expand Down
12 changes: 6 additions & 6 deletions modules/backend/behaviors/RelationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ class RelationController extends ControllerBehavior
/**
* @var Backend\Classes\WidgetBase Reference to the toolbar widget object.
*/
private $toolbarWidget;
protected $toolbarWidget;

/**
* @var Backend\Classes\WidgetBase Reference to the widget used for viewing (list or form).
*/
private $viewWidget;
protected $viewWidget;

/**
* @var Backend\Classes\WidgetBase Reference to the widget used for relation management.
*/
private $manageWidget;
protected $manageWidget;

/**
* @var Backend\Classes\WidgetBase Reference to widget for relations with pivot data.
*/
private $pivotWidget;
protected $pivotWidget;

/**
* {@inheritDoc}
Expand All @@ -61,12 +61,12 @@ class RelationController extends ControllerBehavior
/**
* @var array Original configuration values
*/
private $originalConfig;
protected $originalConfig;

/**
* @var bool Has the behavior been initialized.
*/
private $initialized = false;
protected $initialized = false;

/**
* @var string Relationship type
Expand Down
6 changes: 3 additions & 3 deletions modules/backend/classes/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class AuthManager extends RainAuthManager
/**
* @var array Cache of registration callbacks.
*/
private $callbacks = [];
protected $callbacks = [];

/**
* @var array List of registered permissions.
*/
private $permissions = [];
protected $permissions = [];

/**
* @var array Cache of registered permissions.
*/
private $permissionCache = false;
protected $permissionCache = false;

/**
* Registers a callback function that defines authentication permissions.
Expand Down
12 changes: 6 additions & 6 deletions modules/backend/classes/NavigationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ class NavigationManager
/**
* @var array Cache of registration callbacks.
*/
private $callbacks = [];
protected $callbacks = [];

/**
* @var array List of registered items.
*/
private $items;
protected $items;

private $contextSidenavPartials = [];
protected $contextSidenavPartials = [];

private $contextOwner;
private $contextMainMenuItemCode;
private $contextSideMenuItemCode;
protected $contextOwner;
protected $contextMainMenuItemCode;
protected $contextSideMenuItemCode;

static $mainItemDefaults = [
'code' => null,
Expand Down
4 changes: 2 additions & 2 deletions modules/backend/classes/WidgetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WidgetManager
/**
* @var array Cache of report widget registration callbacks.
*/
private $formWidgetCallbacks = [];
protected $formWidgetCallbacks = [];

/**
* @var array An array of report widgets.
Expand All @@ -42,7 +42,7 @@ class WidgetManager
/**
* @var array Cache of report widget registration callbacks.
*/
private $reportWidgetCallbacks = [];
protected $reportWidgetCallbacks = [];

/**
* @var array An array where keys are aliases and values are class names.
Expand Down
2 changes: 1 addition & 1 deletion modules/backend/widgets/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Form extends WidgetBase
*/
public $allFields = [];

/**
/**
* @var array Collection of all form widgets used in this form.
*/
public $formWidgets = [];
Expand Down
2 changes: 1 addition & 1 deletion modules/backend/widgets/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Toolbar extends WidgetBase
/**
* @var WidgetBase Reference to the search widget object.
*/
private $searchWidget;
protected $searchWidget;

/**
* @var string Name of partial containing control panel.
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/classes/CmsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CmsException extends ApplicationException
/**
* @var Cms\Classes\CmsCompoundObject A reference to a CMS object used for masking errors.
*/
private $compoundObject;
protected $compoundObject;

/**
* @var array Collection of error codes for each error distinction.
Expand Down
8 changes: 4 additions & 4 deletions modules/cms/classes/CodeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ class CodeParser
/**
* @var \Cms\Classes\CmsCompoundObject A reference to the CMS object being parsed.
*/
private $object;
protected $object;

/**
* @var string Contains a path to the CMS object's file being parsed.
*/
private $filePath;
protected $filePath;

/**
* @var mixed The internal cache, keeps parsed object information during a request.
*/
static private $cache = [];
static protected $cache = [];

/**
* @var string Key for the parsed PHP file information cache.
*/
private $dataCacheKey = 'cms-php-file-data';
protected $dataCacheKey = 'cms-php-file-data';

/**
* Creates the class instance
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/classes/ComponentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ComponentManager
/**
* @var array Cache of registration callbacks.
*/
private $callbacks = [];
protected $callbacks = [];

/**
* @var array An array where keys are codes and values are class names.
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/classes/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Router
/**
* @var array A list of parameters names and values extracted from the URL pattern and URL string.
*/
private $parameters = [];
protected $parameters = [];

/**
* @var array Contains the URL map - the list of page file names and corresponding URL patterns.
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/twig/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Extension extends Twig_Extension
/**
* @var \Cms\Classes\Controller A reference to the CMS controller.
*/
private $controller;
protected $controller;

/**
* Creates the extension instance.
Expand Down
4 changes: 2 additions & 2 deletions modules/system/classes/ExceptionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ExceptionBase extends Exception
/**
* @var Exception If this exception is acting as a mask, this property stores the face exception.
*/
private $mask;
protected $mask;

/**
* @var string Hint Message to help the user with troubleshooting the error (optional).
Expand All @@ -43,7 +43,7 @@ class ExceptionBase extends Exception
/**
* @var stdObject Cached code information for highlighting code.
*/
private $highlight;
protected $highlight;

/**
* CMS base exception class constructor. Inherits the native PHP Exception.
Expand Down
2 changes: 1 addition & 1 deletion modules/system/classes/MarkupManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MarkupManager
/**
* @var array Cache of registration callbacks.
*/
private $callbacks = [];
protected $callbacks = [];

/**
* @var array Registered extension items
Expand Down
10 changes: 5 additions & 5 deletions modules/system/classes/SettingsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ class SettingsManager
/**
* @var array Cache of registration callbacks.
*/
private $callbacks = [];
protected $callbacks = [];

/**
* @var array List of registered items.
*/
private $items;
protected $items;

/**
* @var array Flat collection of all items.
*/
private $allItems;
protected $allItems;

private $contextOwner;
private $contextItemCode;
protected $contextOwner;
protected $contextItemCode;

static $itemDefaults = [
'code' => null,
Expand Down
2 changes: 1 addition & 1 deletion modules/system/controllers/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Settings extends Controller
/**
* @var WidgetBase Reference to the widget object.
*/
private $formWidget;
protected $formWidget;

public $requiredPermissions = ['system.manage_settings'];

Expand Down
2 changes: 1 addition & 1 deletion modules/system/twig/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Extension extends Twig_Extension
/**
* @var \System\Classes\MarkupManager A reference to the markup manager instance.
*/
private $markupManager;
protected $markupManager;

/**
* Creates the extension instance.
Expand Down

0 comments on commit 56d0c33

Please sign in to comment.