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
53b3198d
Commit
53b3198d
authored
Jan 06, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add exceptions to method docs
parent
55f9111f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
methodDetails.php
extensions/yii/apidoc/templates/html/views/methodDetails.php
+9
-2
No files found.
extensions/yii/apidoc/templates/html/views/methodDetails.php
View file @
53b3198d
...
@@ -32,7 +32,7 @@ if (empty($methods)) {
...
@@ -32,7 +32,7 @@ if (empty($methods)) {
<?=
$this
->
context
->
renderMethodSignature
(
$method
)
?>
<?=
$this
->
context
->
renderMethodSignature
(
$method
)
?>
</div>
</div>
</td></tr>
</td></tr>
<?php
if
(
!
empty
(
$method
->
params
)
||
!
empty
(
$method
->
return
))
:
?>
<?php
if
(
!
empty
(
$method
->
params
)
||
!
empty
(
$method
->
return
)
||
!
empty
(
$method
->
exceptions
)
)
:
?>
<?php
foreach
(
$method
->
params
as
$param
)
:
?>
<?php
foreach
(
$method
->
params
as
$param
)
:
?>
<tr>
<tr>
<td
class=
"paramNameCol"
>
<?=
$param
->
name
?>
</td>
<td
class=
"paramNameCol"
>
<?=
$param
->
name
?>
</td>
...
@@ -42,11 +42,18 @@ if (empty($methods)) {
...
@@ -42,11 +42,18 @@ if (empty($methods)) {
<?php
endforeach
;
?>
<?php
endforeach
;
?>
<?php
if
(
!
empty
(
$method
->
return
))
:
?>
<?php
if
(
!
empty
(
$method
->
return
))
:
?>
<tr>
<tr>
<td
class=
"paramNameCol"
>
<?=
'
{return}
'
;
?>
</td>
<td
class=
"paramNameCol"
>
<?=
'
return
'
;
?>
</td>
<td
class=
"paramTypeCol"
>
<?=
$this
->
context
->
typeLink
(
$method
->
returnTypes
);
?>
</td>
<td
class=
"paramTypeCol"
>
<?=
$this
->
context
->
typeLink
(
$method
->
returnTypes
);
?>
</td>
<td
class=
"paramDescCol"
>
<?=
Markdown
::
process
(
$method
->
return
,
$type
);
?>
</td>
<td
class=
"paramDescCol"
>
<?=
Markdown
::
process
(
$method
->
return
,
$type
);
?>
</td>
</tr>
</tr>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
foreach
(
$method
->
exceptions
as
$exception
=>
$description
)
:
?>
<tr>
<td
class=
"paramNameCol"
>
<?=
'throws'
?>
</td>
<td
class=
"paramTypeCol"
>
<?=
$this
->
context
->
typeLink
(
$exception
)
?>
</td>
<td
class=
"paramDescCol"
>
<?=
Markdown
::
process
(
$description
,
$type
)
?>
</td>
</tr>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?php
endif
;
?>
</table>
</table>
...
...
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