Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
435747cf
Commit
435747cf
authored
Mar 26, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apidoc and codestyle fixes
parent
13ab9e2d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
16 deletions
+19
-16
PhpManager.php
framework/rbac/PhpManager.php
+2
-1
index.php
framework/requirements/views/console/index.php
+5
-3
index.php
framework/requirements/views/web/index.php
+6
-5
FileValidator.php
framework/validators/FileValidator.php
+2
-3
Response.php
framework/web/Response.php
+0
-1
UrlRule.php
framework/web/UrlRule.php
+1
-0
User.php
framework/web/User.php
+3
-3
No files found.
framework/rbac/PhpManager.php
View file @
435747cf
...
...
@@ -44,6 +44,7 @@ class PhpManager extends Manager
private
$_children
=
[];
// itemName, childName => child
private
$_assignments
=
[];
// userId, itemName => assignment
/**
* Initializes the application component.
* This method overrides parent implementation by loading the authorization data
...
...
@@ -158,7 +159,7 @@ class PhpManager extends Manager
/**
* Returns the children of the specified item.
* @param
mixed
$names the parent item name. This can be either a string or an array.
* @param
string|array
$names the parent item name. This can be either a string or an array.
* The latter represents a list of item names.
* @return Item[] all child items of the parent
*/
...
...
framework/requirements/views/console/index.php
View file @
435747cf
<?php
/* @var YiiRequirementChecker $this */
/* @var array $summary */
/* @var array[] $requirements */
/**
* @var YiiRequirementChecker $this
* @var array $summary
* @var array[] $requirements
*/
echo
"
\n
Yii Application Requirement Checker
\n\n
"
;
...
...
framework/requirements/views/web/index.php
View file @
435747cf
<?php
/* @var YiiRequirementChecker $this */
/* @var array $summary */
/* @var array[] $requirements */
?>
<!DOCTYPE html>
/**
* @var YiiRequirementChecker $this
* @var array $summary
* @var array[] $requirements
*/
?><!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
...
...
framework/validators/FileValidator.php
View file @
435747cf
...
...
@@ -232,9 +232,8 @@ class FileValidator extends Validator
*/
public
function
isEmpty
(
$value
,
$trim
=
false
)
{
$value
=
is_array
(
$value
)
&&
!
empty
(
$value
)
?
$value
[
0
]
:
$value
;
return
!
$value
instanceof
UploadedFile
||
$value
->
error
==
UPLOAD_ERR_NO_FILE
;
$value
=
is_array
(
$value
)
&&
!
empty
(
$value
)
?
$value
[
0
]
:
$value
;
return
!
(
$value
instanceof
UploadedFile
)
||
$value
->
error
==
UPLOAD_ERR_NO_FILE
;
}
/**
...
...
framework/web/Response.php
View file @
435747cf
...
...
@@ -738,7 +738,6 @@ class Response extends \yii\base\Response
if
(
$this
->
_cookies
===
null
)
{
$this
->
_cookies
=
new
CookieCollection
;
}
return
$this
->
_cookies
;
}
...
...
framework/web/UrlRule.php
View file @
435747cf
...
...
@@ -101,6 +101,7 @@ class UrlRule extends Object implements UrlRuleInterface
*/
private
$_routeParams
=
[];
/**
* Initializes this rule.
*/
...
...
framework/web/User.php
View file @
435747cf
...
...
@@ -141,8 +141,8 @@ class User extends Component
* @param boolean $checkSession whether to check the session if the identity has never been determined before.
* If the identity is already determined (e.g., by calling [[setIdentity()]] or [[login()]]),
* then this parameter has no effect.
* @return IdentityInterface the identity object associated with the currently logged-in user.
*
Null
is returned if the user is not logged in (not authenticated).
* @return IdentityInterface
|null
the identity object associated with the currently logged-in user.
*
`null`
is returned if the user is not logged in (not authenticated).
* @see login()
* @see logout()
*/
...
...
@@ -170,7 +170,7 @@ class User extends Component
* [[switchIdentity()]]. Those methods will try to use session and cookie to maintain the user authentication
* status.
*
* @param IdentityInterface $identity the identity object associated with the currently logged user.
* @param IdentityInterface
|null
$identity the identity object associated with the currently logged user.
*/
public
function
setIdentity
(
$identity
)
{
...
...
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