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
f7a5c29e
Commit
f7a5c29e
authored
Mar 09, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apidoc cleanup
parent
367744ff
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
BaseController.php
extensions/apidoc/components/BaseController.php
+1
-1
BaseDoc.php
extensions/apidoc/models/BaseDoc.php
+13
-13
Context.php
extensions/apidoc/models/Context.php
+2
-1
SideNavWidget.php
extensions/apidoc/templates/bootstrap/SideNavWidget.php
+1
-1
No files found.
extensions/apidoc/components/BaseController.php
View file @
f7a5c29e
...
...
@@ -113,7 +113,7 @@ abstract class BaseController extends Controller
}
/**
* @
inheritdoc
* @
param string $template
* @return BaseRenderer
*/
protected
abstract
function
findRenderer
(
$template
);
...
...
extensions/apidoc/models/BaseDoc.php
View file @
f7a5c29e
...
...
@@ -95,17 +95,17 @@ class BaseDoc extends Object
}
}
// TODO
public
function
loadSource
(
$reflection
)
{
$this
->
sourcePath
=
str_replace
(
'\\'
,
'/'
,
str_replace
(
YII_PATH
,
''
,
$reflection
->
getFileName
()))
;
$this
->
startLine
=
$reflection
->
getStartLine
()
;
$this
->
endLine
=
$reflection
->
getEndLine
()
;
}
public
function
getSourceCode
()
{
$lines
=
file
(
YII_PATH
.
$this
->
sourcePath
);
return
implode
(
""
,
array_slice
(
$lines
,
$this
->
startLine
-
1
,
$this
->
endLine
-
$this
->
startLine
+
1
));
}
// TODO
implement
//
public function loadSource($reflection)
//
{
// $this->sourceFile
;
// $this->startLine
;
// $this->endLine
;
//
}
//
//
public function getSourceCode()
//
{
//
$lines = file(YII_PATH . $this->sourcePath);
//
return implode("", array_slice($lines, $this->startLine - 1, $this->endLine - $this->startLine + 1));
//
}
}
extensions/apidoc/models/Context.php
View file @
f7a5c29e
...
...
@@ -299,7 +299,8 @@ class Context extends Component
/**
* @param ClassDoc $classA
* @param ClassDoc $classB
* @param ClassDoc|string $classB
* @return boolean
*/
protected
function
isSubclassOf
(
$classA
,
$classB
)
{
...
...
extensions/apidoc/templates/bootstrap/SideNavWidget.php
View file @
f7a5c29e
...
...
@@ -118,7 +118,7 @@ class SideNavWidget extends \yii\bootstrap\Widget
/**
* Renders a widget's item.
* @param string|array $item the item to render.
* @param bool $collapsed whether to collapse item if not active
* @param bool
ean
$collapsed whether to collapse item if not active
* @throws \yii\base\InvalidConfigException
* @return string the rendering result.
* @throws InvalidConfigException if label is not defined
...
...
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