-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0df0a6
commit 24b5f36
Showing
15 changed files
with
118 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/class/content.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/class/content.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/classes.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/classes.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/index.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/index.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/namespace/content.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/namespace/content.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/namespaces.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/namespaces.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?= $this->partial("layout/layout.phtml",array("contentPartial"=>"partials/source.phtml")) ?> | ||
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/source.phtml']) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
$items = array( | ||
); | ||
/** | ||
* @var array $namespaces | ||
*/ | ||
?> | ||
<?= $this->partial("partials/breadcrumb.phtml",array("items"=> $items)) ?> | ||
|
||
<?= $this->partial('partials/breadcrumb.phtml', ['items'=> []]) ?> | ||
|
||
<div class="namespace-list"> | ||
|
||
<ul> | ||
<?php foreach($namespaces as $namesapceName => $ns){ ?> | ||
|
||
<li> <a href="<?= $this->url(Zephir\Documentation::namespaceUrl($namesapceName)) ?>"><?= $namesapceName ?></a></li> | ||
|
||
<?php } ?> | ||
<?php foreach($namespaces as $namespaceName => $ns): ?> | ||
<li> | ||
<a href="<?= $this->url(Zephir\Documentation::namespaceUrl($namespaceName)) ?>"> | ||
<?= $namespaceName ?> | ||
</a> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 13 additions & 23 deletions
36
templates/Api/themes/zephir/partials/namespace/method-summary.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,32 @@ | ||
<?php | ||
|
||
/* @var $method \Zephir\ClassMethod */ | ||
|
||
/** | ||
* @var $method Zephir\ClassMethod | ||
*/ | ||
?> | ||
|
||
<li class="class-method clearfix"> | ||
|
||
<div class="method-return"> | ||
|
||
<?php | ||
$allTypes = []; | ||
|
||
$allTypes = array(); | ||
|
||
if($method->getReturnClassTypes()){ | ||
if ($method->getReturnClassTypes()) { | ||
$allTypes = array_merge($allTypes,$method->getReturnClassTypes()); | ||
|
||
} | ||
|
||
|
||
$types = $method->getReturnTypes(); | ||
|
||
if($types && count($types)>0 ){ | ||
|
||
foreach($types as $type){ | ||
|
||
if($type && isset($type["data-type"])) | ||
$allTypes[] = $type["data-type"]; | ||
if ($types && count($types) > 0) { | ||
foreach ($types as $type) { | ||
if ($type && isset($type['data-type'])) { | ||
$allTypes[] = $type['data-type']; | ||
} | ||
} | ||
} | ||
|
||
echo implode("|",$allTypes); | ||
|
||
echo implode('|', $allTypes); | ||
?> | ||
|
||
</div> | ||
<div class="method-summary"> | ||
<span class="method-name"><a href="#method-details-<?= $method->getName() ?>"><?= $method->getName() ?></a></span>(<?= $this->partial("partials/class/method-summary-params.phtml" ) ?>) | ||
|
||
<span class="method-name"><a href="#method-details-<?= $method->getName() ?>"><?= $method->getName() ?></a></span>(<?= $this->partial('partials/class/method-summary-params.phtml') ?>) | ||
</div> | ||
|
||
</li> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<?php | ||
$items = array( | ||
array("name" => "Namespaces" ), | ||
); | ||
/** | ||
* @var array $namespaces | ||
*/ | ||
|
||
$items = [['name' => 'Namespaces']]; | ||
?> | ||
<?= $this->partial("partials/breadcrumb.phtml",array("items"=> $items)) ?> | ||
|
||
<?= $this->partial('partials/breadcrumb.phtml', ['items'=> $items]) ?> | ||
|
||
<div class="namespace-list"> | ||
|
||
<ul> | ||
<?php foreach($namespaces as $namesapceName => $ns){ ?> | ||
|
||
<li> <a href="<?= $this->url(Zephir\Documentation::namespaceUrl($namesapceName)) ?>"><?= $namesapceName ?></a></li> | ||
|
||
<?php } ?> | ||
<?php foreach ($namespaces as $namespaceName => $ns): ?> | ||
<li> | ||
<a href="<?= $this->url(Zephir\Documentation::namespaceUrl($namespaceName)) ?>"> | ||
<?= $namespaceName ?> | ||
</a> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
|
||
</div> | ||
</div> |
Oops, something went wrong.