Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
512342c0
Commit
512342c0
authored
Aug 08, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor the view class to use protected instead of private.
parent
22676cce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
system/view.php
+7
-9
No files found.
system/view.php
View file @
512342c0
...
...
@@ -35,14 +35,14 @@ class View {
*
* @var array
*/
pr
ivate
static
$composers
;
pr
otected
static
$composers
;
/**
* The defined view names.
*
* @var array
*/
pr
ivate
static
$names
;
pr
otected
static
$names
;
/**
* Create a new view instance.
...
...
@@ -83,11 +83,9 @@ class View {
* @param array $data
* @return View
*/
pr
ivate
static
function
of
(
$name
,
$data
=
array
())
pr
otected
static
function
of
(
$name
,
$data
=
array
())
{
$modules
=
array_unique
(
array_merge
(
array
(
ACTIVE_MODULE
,
'application'
),
Config
::
get
(
'application.modules'
)));
foreach
(
$modules
as
$module
)
foreach
(
array_unique
(
array_merge
(
array
(
ACTIVE_MODULE
,
'application'
),
Config
::
get
(
'application.modules'
)))
as
$module
)
{
static
::
load_composers
(
$module
);
...
...
@@ -109,7 +107,7 @@ class View {
* @param string $view
* @return array
*/
pr
ivate
static
function
parse
(
$view
)
pr
otected
static
function
parse
(
$view
)
{
$module
=
(
strpos
(
$view
,
'::'
)
!==
false
)
?
substr
(
$view
,
0
,
strpos
(
$view
,
':'
))
:
'application'
;
...
...
@@ -128,7 +126,7 @@ class View {
*
* @return void
*/
pr
ivate
function
compose
()
pr
otected
function
compose
()
{
static
::
load_composers
(
$this
->
module
);
...
...
@@ -147,7 +145,7 @@ class View {
* @param string $module
* @return void
*/
pr
ivate
static
function
load_composers
(
$module
)
pr
otected
static
function
load_composers
(
$module
)
{
if
(
isset
(
static
::
$composers
[
$module
]))
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment