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
abceccfd
Commit
abceccfd
authored
Jan 28, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved APIdocs template by sorting all items
parent
0f7732e8
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
9 deletions
+41
-9
constSummary.php
extensions/apidoc/templates/html/views/constSummary.php
+7
-2
eventDetails.php
extensions/apidoc/templates/html/views/eventDetails.php
+5
-1
eventSummary.php
extensions/apidoc/templates/html/views/eventSummary.php
+7
-2
methodDetails.php
extensions/apidoc/templates/html/views/methodDetails.php
+5
-1
methodSummary.php
extensions/apidoc/templates/html/views/methodSummary.php
+6
-1
propertyDetails.php
extensions/apidoc/templates/html/views/propertyDetails.php
+5
-1
propertySummary.php
extensions/apidoc/templates/html/views/propertySummary.php
+6
-1
No files found.
extensions/apidoc/templates/html/views/constSummary.php
View file @
abceccfd
...
...
@@ -2,6 +2,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc $type
* @var yii\web\View $this
...
...
@@ -9,7 +11,10 @@ use yii\apidoc\models\ClassDoc;
if
(
empty
(
$type
->
constants
))
{
return
;
}
?>
}
$constants
=
$type
->
constants
;
ArrayHelper
::
multisort
(
$constants
,
'name'
);
?>
<div
class=
"summary docConst"
>
<h2>
Constants
</h2>
...
...
@@ -24,7 +29,7 @@ if (empty($type->constants)) {
<tr>
<th>
Constant
</th><th>
Value
</th><th>
Description
</th><th>
Defined By
</th>
</tr>
<?php
foreach
(
$
type
->
constants
as
$constant
)
:
?>
<?php
foreach
(
$constants
as
$constant
)
:
?>
<tr
<?=
$constant
->
definedBy
!=
$type
->
name
?
' class="inherited"'
:
''
?>
id=
"
<?=
$constant
->
name
?>
"
>
<td>
<?=
$constant
->
name
?>
<a
name=
"
<?=
$constant
->
name
?>
-detail"
></a></td>
<td>
<?=
$constant
->
value
?>
</td>
...
...
extensions/apidoc/templates/html/views/eventDetails.php
View file @
abceccfd
...
...
@@ -2,6 +2,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc $type
* @var yii\web\View $this
...
...
@@ -10,7 +12,9 @@ use yii\apidoc\models\ClassDoc;
$events
=
$type
->
getNativeEvents
();
if
(
empty
(
$events
))
{
return
;
}
?>
}
ArrayHelper
::
multisort
(
$events
,
'name'
);
?>
<h2>
Event Details
</h2>
<?php
foreach
(
$events
as
$event
)
:
?>
<div
class=
"detailHeader h3"
id=
"
<?=
$event
->
name
.
'-detail'
?>
"
>
...
...
extensions/apidoc/templates/html/views/eventSummary.php
View file @
abceccfd
...
...
@@ -2,6 +2,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc $type
* @var yii\web\View $this
...
...
@@ -9,7 +11,10 @@ use yii\apidoc\models\ClassDoc;
if
(
empty
(
$type
->
events
))
{
return
;
}
?>
}
$events
=
$type
->
events
;
ArrayHelper
::
multisort
(
$events
,
'name'
);
?>
<div
class=
"summary docEvent"
>
<h2>
Events
</h2>
...
...
@@ -24,7 +29,7 @@ if (empty($type->events)) {
<tr>
<th>
Event
</th><th>
Type
</th><th>
Description
</th><th>
Defined By
</th>
</tr>
<?php
foreach
(
$
type
->
events
as
$event
)
:
?>
<?php
foreach
(
$events
as
$event
)
:
?>
<tr
<?=
$event
->
definedBy
!=
$type
->
name
?
' class="inherited"'
:
''
?>
id=
"
<?=
$event
->
name
?>
"
>
<td>
<?=
$this
->
context
->
subjectLink
(
$event
)
?>
</td>
<td>
<?=
$this
->
context
->
typeLink
(
$event
->
types
)
?>
</td>
...
...
extensions/apidoc/templates/html/views/methodDetails.php
View file @
abceccfd
...
...
@@ -3,6 +3,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\apidoc\models\TraitDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc|TraitDoc $type
* @var yii\web\View $this
...
...
@@ -11,7 +13,9 @@ use yii\apidoc\models\TraitDoc;
$methods
=
$type
->
getNativeMethods
();
if
(
empty
(
$methods
))
{
return
;
}
?>
}
ArrayHelper
::
multisort
(
$methods
,
'name'
);
?>
<h2>
Method Details
</h2>
<?php
foreach
(
$methods
as
$method
)
:
?>
...
...
extensions/apidoc/templates/html/views/methodSummary.php
View file @
abceccfd
...
...
@@ -4,6 +4,8 @@ use yii\apidoc\helpers\Markdown;
use
yii\apidoc\models\ClassDoc
;
use
yii\apidoc\models\InterfaceDoc
;
use
yii\apidoc\models\TraitDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc|InterfaceDoc|TraitDoc $type
* @var boolean $protected
...
...
@@ -28,7 +30,10 @@ if ($protected && count($type->getProtectedMethods()) == 0 || !$protected && cou
<tr>
<th>
Method
</th><th>
Description
</th><th>
Defined By
</th>
</tr>
<?php
foreach
(
$type
->
methods
as
$method
)
:
?>
<?php
$methods
=
$type
->
methods
;
ArrayHelper
::
multisort
(
$methods
,
'name'
);
foreach
(
$methods
as
$method
)
:
?>
<?php
if
(
$protected
&&
$method
->
visibility
==
'protected'
||
!
$protected
&&
$method
->
visibility
!=
'protected'
)
:
?>
<tr
<?=
$method
->
definedBy
!=
$type
->
name
?
' class="inherited"'
:
''
?>
id=
"
<?=
$method
->
name
?>
()"
>
<td>
<?=
$this
->
context
->
subjectLink
(
$method
,
$method
->
name
.
'()'
)
?>
</td>
...
...
extensions/apidoc/templates/html/views/propertyDetails.php
View file @
abceccfd
...
...
@@ -3,6 +3,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\apidoc\models\TraitDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc|TraitDoc $type
* @var yii\web\View $this
...
...
@@ -11,7 +13,9 @@ use yii\apidoc\models\TraitDoc;
$properties
=
$type
->
getNativeProperties
();
if
(
empty
(
$properties
))
{
return
;
}
?>
}
ArrayHelper
::
multisort
(
$properties
,
'name'
);
?>
<h2>
Property Details
</h2>
<?php
foreach
(
$properties
as
$property
)
:
?>
...
...
extensions/apidoc/templates/html/views/propertySummary.php
View file @
abceccfd
...
...
@@ -3,6 +3,8 @@
use
yii\apidoc\helpers\Markdown
;
use
yii\apidoc\models\ClassDoc
;
use
yii\apidoc\models\TraitDoc
;
use
yii\helpers\ArrayHelper
;
/**
* @var ClassDoc|TraitDoc $type
* @var boolean $protected
...
...
@@ -28,7 +30,10 @@ if ($protected && count($type->getProtectedProperties()) == 0 || !$protected &&
<tr>
<th>
Property
</th><th>
Type
</th><th>
Description
</th><th>
Defined By
</th>
</tr>
<?php
foreach
(
$type
->
properties
as
$property
)
:
?>
<?php
$properties
=
$type
->
properties
;
ArrayHelper
::
multisort
(
$properties
,
'name'
);
foreach
(
$properties
as
$property
)
:
?>
<?php
if
(
$protected
&&
$property
->
visibility
==
'protected'
||
!
$protected
&&
$property
->
visibility
!=
'protected'
)
:
?>
<tr
<?=
$property
->
definedBy
!=
$type
->
name
?
' class="inherited"'
:
''
?>
id=
"
<?=
$property
->
name
?>
"
>
<td>
<?=
$this
->
context
->
subjectLink
(
$property
)
?>
</td>
...
...
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