Application/Api/Document/Standard/Repository/KamenzReport/E08.php
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
* Time: 14:43
*/
namespace SPHERE\Application\Api\Document\Standard\Repository\KamenzReport;
use SPHERE\Application\Document\Generator\Repository\Element;
use SPHERE\Application\Document\Generator\Repository\Section;
use SPHERE\Application\Document\Generator\Repository\Slice;
class E08
{
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
->styleTextBold()
->styleMarginTop('20px')
->styleMarginBottom('5px')
->addElement((new Element())
->setContent('E08. Wiederholer im Schuljahr {{ Content.SchoolYear.Current }} nach Klassenstufen')
);
$sliceList[] = (new Slice())
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderTop()
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Merkmal')
->styleBorderRight()
->stylePaddingTop('17.6px')
->stylePaddingBottom('17.6px'), '30%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Klassenstufe')
->styleBorderRight(), '1 %'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('5')
->styleBorderBottom()
->styleBorderRight(), '16.67%'
)
->addElementColumn((new Element())
->setContent('6')
->styleBorderBottom()
->styleBorderRight(), '16.66%'
)
->addElementColumn((new Element())
->setContent('7')
->styleBorderBottom()
->styleBorderRight(), '16.67%'
)
->addElementColumn((new Element())
->setContent('8')
->styleBorderBottom()
->styleBorderRight(), '16.67%'
)
->addElementColumn((new Element())
->setContent('9')
->styleBorderBottom()
->styleBorderRight(), '16.66%'
)
->addElementColumn((new Element())
->setContent('10')
->styleBorderBottom()
->styleBorderRight(), '16.67%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.34%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.34%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.34%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '8.33%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '8.34%'
)
), '60%'
)
->addSliceColumn((new Slice())
->styleTextBold()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Insgesamt')
->styleBorderBottom()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.6px')
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('w')
, '50%'
)
), '10%'
)
);
$section = new Section();
$section
->addElementColumn((new Element())
->setContent('Schüler')
->styleBorderRight(), '30%'
);
for ($i = 0; $i < 14; $i++) {
if ($i <13) {
$section
->addElementColumn((new Element())
->setContent(' ')
->styleBorderRight(), '5%'
);
} else {
$section
->addElementColumn((new Element())
->setContent(' ')
, '5%'
);
}
}
$sliceList[] = (new Slice())
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection($section);
$sliceList[] = (new Slice())
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('davon mit<br/>dem Ziel')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderRight()
->stylePaddingTop('18.1px')
, '10%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Hauptschulabschluss')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '22.22%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleBorderBottom(), '5.55%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Realschulabschluss')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '22.22%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleAlignCenter()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleTextBold()
->styleBorderBottom()
->styleBorderRight(), '5.55%'
)
->addElementColumn((new Element())
->setContent(' ')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleTextBold()
->styleBorderBottom(), '5.55%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('ohne abs. Unterricht')
->styleBackgroundColor('lightgrey')
->styleBorderRight(), '22.22%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L5.m is not empty) %}
{{ Content.E08.WithoutCourse.L5.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L5.w is not empty) %}
{{ Content.E08.WithoutCourse.L5.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L6.m is not empty) %}
{{ Content.E08.WithoutCourse.L6.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L6.w is not empty) %}
{{ Content.E08.WithoutCourse.L6.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L7.m is not empty) %}
{{ Content.E08.WithoutCourse.L7.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L7.w is not empty) %}
{{ Content.E08.WithoutCourse.L7.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L8.m is not empty) %}
{{ Content.E08.WithoutCourse.L8.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L8.w is not empty) %}
{{ Content.E08.WithoutCourse.L8.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L9.m is not empty) %}
{{ Content.E08.WithoutCourse.L9.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L9.w is not empty) %}
{{ Content.E08.WithoutCourse.L9.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L10.m is not empty) %}
{{ Content.E08.WithoutCourse.L10.m }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.L10.w is not empty) %}
{{ Content.E08.WithoutCourse.L10.w }}
{% else %}
{% endif %}
')
->styleAlignCenter()
->styleBorderRight()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.TotalCount.m is not empty) %}
{{ Content.E08.WithoutCourse.TotalCount.m }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleBorderRight()
->styleAlignCenter()
, '5.55%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E08.WithoutCourse.TotalCount.w is not empty) %}
{{ Content.E08.WithoutCourse.TotalCount.w }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
, '5.55%'
)
)
)
), '90%'
)
);
return $sliceList;
}
}