Application/Api/Document/Standard/Repository/KamenzReportGS/D01.php
<?php
/**
* Created by PhpStorm.
* User: lehmann
* Date: 23.06.2017
* Time: 15:18
*/
namespace SPHERE\Application\Api\Document\Standard\Repository\KamenzReportGS;
use SPHERE\Application\Document\Generator\Repository\Element;
use SPHERE\Application\Document\Generator\Repository\Section;
use SPHERE\Application\Document\Generator\Repository\Slice;
/**
* Class D01
* @package SPHERE\Application\Api\Document\Standard\Repository\KamenzReportGS
*/
class D01
{
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
->styleTextBold()
->styleMarginTop('20px')
->styleMarginBottom('5px')
->addElement((new Element())
->setContent('D01. Schulanfänger zu Beginn des Schuljahres {{ Content.SchoolYear.Current }}')
);
$sliceList[] = (new Slice())
->styleBackgroundColor('lightgrey')
->styleAlignCenter()
->styleBorderTop()
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Art der Einschulung')
->styleBorderRight()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.5px'), '70%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Schüler'), '100%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '50'
)
->addElementColumn((new Element())
->setContent('w'), '50'
)
), '30%'
)
);
$sliceList[] = (new Slice())
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addSliceColumn((new Slice())
->styleBackgroundColor('lightgrey')
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Schulanfänger (ohne Wiederholer aus der Klassenstufe 1)')
->styleBorderBottom(), '70%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('darunter aus den Kindertageseinrichtungen und der Kindertagespflege')
->styleBorderBottom(), '70%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('davon')
->styleAlignCenter()
->styleBorderRight()
->stylePaddingTop('36.6px')
->stylePaddingBottom('36.5px'), '10%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('vorzeitige Einschulung')
->styleBorderBottom(), '90%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('fristgemäße Einschulung (gemäß § 27 Absatz 1 SächsSchulG)')
->styleBorderBottom(), '90%'
)
)
->addSection((new Section())
->addSliceColumn((new Slice())
->styleBorderBottom()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('davon')
->styleAlignCenter()
->styleBorderRight()
->stylePaddingTop('9.1px')
->stylePaddingBottom('9px'), '15%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('schulpflichtig geworden bis zum 30.06.')
->styleBorderBottom()
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('schulpflichtig geworden vom 1.07. bis zum 30.09.')
)
)
)
)
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Einschulung nach Zurückstellung'), '70%'
)
)
)
), '70%'
)
->addSliceColumn((new Slice())
->styleAlignCenter()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.NewSchoolStarter.m is not empty) %}
{{ Content.D01.NewSchoolStarter.m }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.NewSchoolStarter.w is not empty) %}
{{ Content.D01.NewSchoolStarter.w }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Nursery.m is not empty) %}
{{ Content.D01.Nursery.m }}
{% else %}
{% endif %}
')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Nursery.w is not empty) %}
{{ Content.D01.Nursery.w }}
{% else %}
{% endif %}
')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Premature.m is not empty) %}
{{ Content.D01.Premature.m }}
{% else %}
{% endif %}
')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Premature.w is not empty) %}
{{ Content.D01.Premature.w }}
{% else %}
{% endif %}
')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.Total.m is not empty) %}
{{ Content.D01.Regular.Total.m }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.Total.w is not empty) %}
{{ Content.D01.Regular.Total.w }}
{% else %}
{% endif %}
')
->styleBackgroundColor('lightgrey')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.First.m is not empty) %}
{{ Content.D01.Regular.First.m }}
{% else %}
{% endif %}
')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.First.w is not empty) %}
{{ Content.D01.Regular.First.w }}
{% else %}
{% endif %}
')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.Second.m is not empty) %}
{{ Content.D01.Regular.Second.m }}
{% else %}
{% endif %}
')
->styleBorderBottom()
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Regular.Second.w is not empty) %}
{{ Content.D01.Regular.Second.w }}
{% else %}
{% endif %}
')
->styleBorderBottom(), '50%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Postponed.m is not empty) %}
{{ Content.D01.Postponed.m }}
{% else %}
{% endif %}
')
->styleBorderRight(), '50%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.D01.Postponed.w is not empty) %}
{{ Content.D01.Postponed.w }}
{% else %}
{% endif %}
')
, '50%'
)
), '30%'
)
);
return $sliceList;
}
}