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
Hide 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
...
@@ -113,7 +113,7 @@ abstract class BaseController extends Controller
}
}
/**
/**
* @
inheritdoc
* @
param string $template
* @return BaseRenderer
* @return BaseRenderer
*/
*/
protected
abstract
function
findRenderer
(
$template
);
protected
abstract
function
findRenderer
(
$template
);
...
...
extensions/apidoc/models/BaseDoc.php
View file @
f7a5c29e
...
@@ -95,17 +95,17 @@ class BaseDoc extends Object
...
@@ -95,17 +95,17 @@ class BaseDoc extends Object
}
}
}
}
// TODO
// TODO
implement
public
function
loadSource
(
$reflection
)
//
public function loadSource($reflection)
{
//
{
$this
->
sourcePath
=
str_replace
(
'\\'
,
'/'
,
str_replace
(
YII_PATH
,
''
,
$reflection
->
getFileName
()))
;
// $this->sourceFile
;
$this
->
startLine
=
$reflection
->
getStartLine
()
;
// $this->startLine
;
$this
->
endLine
=
$reflection
->
getEndLine
()
;
// $this->endLine
;
}
//
}
//
public
function
getSourceCode
()
//
public function getSourceCode()
{
//
{
$lines
=
file
(
YII_PATH
.
$this
->
sourcePath
);
//
$lines = file(YII_PATH . $this->sourcePath);
return
implode
(
""
,
array_slice
(
$lines
,
$this
->
startLine
-
1
,
$this
->
endLine
-
$this
->
startLine
+
1
));
//
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
...
@@ -299,7 +299,8 @@ class Context extends Component
/**
/**
* @param ClassDoc $classA
* @param ClassDoc $classA
* @param ClassDoc $classB
* @param ClassDoc|string $classB
* @return boolean
*/
*/
protected
function
isSubclassOf
(
$classA
,
$classB
)
protected
function
isSubclassOf
(
$classA
,
$classB
)
{
{
...
...
extensions/apidoc/templates/bootstrap/SideNavWidget.php
View file @
f7a5c29e
...
@@ -118,7 +118,7 @@ class SideNavWidget extends \yii\bootstrap\Widget
...
@@ -118,7 +118,7 @@ class SideNavWidget extends \yii\bootstrap\Widget
/**
/**
* Renders a widget's item.
* Renders a widget's item.
* @param string|array $item the item to render.
* @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
* @throws \yii\base\InvalidConfigException
* @return string the rendering result.
* @return string the rendering result.
* @throws InvalidConfigException if label is not defined
* @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