예제 #1
0
<?php

use Maslosoft\Addendum\Annotations\TargetAnnotation;
use Maslosoft\Zamm\Iterator;
use Maslosoft\Zamm\DocBlock;
?>
<title>Built-in annotations</title>

# Built-in annotations

Addendum contains several built-in annotation, which are meant to be used on
other annotations. These define constraints of annotations usage.

<?php 
foreach (Iterator::ns(TargetAnnotation::class) as $class) {
    echo '###' . str_replace('Annotation', '', (new ReflectionClass($class))->getShortName()) . PHP_EOL;
    echo new DocBlock($class);
}
예제 #2
0
<?php

use Maslosoft\Ilmatar\Components\Controller;
use Maslosoft\Ilmatar\Widgets\Form\ActiveForm;
use Maslosoft\Mangan\Traits\I18NAbleTrait;
use Maslosoft\Zamm\DocBlock;
use Maslosoft\Zamm\Iterator;
use Maslosoft\Zamm\ShortNamer;
/* @var $this Controller */
/* @var $form ActiveForm */
?>

<title>Traits</title>
# Traits

Mangan comes with various trait's for easier implementation of common cases

<?php 
foreach (Iterator::ns(I18NAbleTrait::class) as $class) {
    $header = '### ' . new ShortNamer($class) . PHP_EOL;
    echo $header;
    echo new DocBlock($class);
}