Application/Api/Document/Standard/Repository/KamenzReportGS/E01.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 E01
*
* @package SPHERE\Application\Api\Document\Standard\Repository\KamenzReportGS
*/
class E01
{
public static function getContent()
{
$sliceList = array();
$left = '50%';
$sliceList[] = (new Slice())
->styleTextBold()
->styleMarginTop('20px')
->styleMarginBottom('5px')
->addElement((new Element())
->setContent('E01. Schüler und Klassen 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('26.1px')
->stylePaddingBottom('26.1px'), $left
)
->addSliceColumn((new Slice())
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Klassenstufe')
->styleBorderRight()
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('1')
->styleBorderBottom()
->styleBorderRight()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.5px'), '25%'
)
->addElementColumn((new Element())
->setContent('2')
->styleBorderBottom()
->styleBorderRight()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.5px'), '25%'
)
->addElementColumn((new Element())
->setContent('3')
->styleBorderBottom()
->styleBorderRight()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.5px'), '25%'
)
->addElementColumn((new Element())
->styleBorderBottom()
->setContent('4')
->styleBorderRight()
->stylePaddingTop('8.6px')
->stylePaddingBottom('8.5px'), '25%'
)
)
->addSection((new Section())
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('m')
->styleBorderRight(), '12.5%'
)
->addElementColumn((new Element())
->setContent('w')
->styleBorderRight(), '12.5%'
)
), '40%'
)
->addSliceColumn((new Slice())
->addSection((new Section())
// ->addElementColumn((new Element())
// ->setContent('Vorb.kl. u.<br/>-gr. f.<br/>Migranten')
// ->styleBorderBottom()
// ->styleBorderRight(), '50%'
// )
->addElementColumn((new Element())
->setContent('Insgesamt')
->styleTextBold()
->styleBorderBottom()
->stylePaddingTop('17.1px')
->stylePaddingBottom('17.1px'), '50%'
)
)
->addSection((new Section())
// ->addElementColumn((new Element())
// ->setContent('m')
// ->styleBorderRight(), '25%'
// )
// ->addElementColumn((new Element())
// ->setContent('w')
// ->styleBorderRight(), '25%'
// )
->addElementColumn((new Element())
->setContent('m')
->styleTextBold()
->styleBorderRight(), '25%'
)
->addElementColumn((new Element())
->setContent('w')
->styleTextBold(), '25%'
)
), '10%'
)
);
$sliceList[] = (new Slice())
->styleAlignCenter()
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Schüler')
->styleBackgroundColor('lightgrey')
->styleBorderRight(), $left
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L1.m is not empty) %}
{{ Content.E01.Student.L1.m }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L1.w is not empty) %}
{{ Content.E01.Student.L1.w }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L2.m is not empty) %}
{{ Content.E01.Student.L2.m }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L2.w is not empty) %}
{{ Content.E01.Student.L2.w }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L3.m is not empty) %}
{{ Content.E01.Student.L3.m }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L3.w is not empty) %}
{{ Content.E01.Student.L3.w }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L4.m is not empty) %}
{{ Content.E01.Student.L4.m }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.L4.w is not empty) %}
{{ Content.E01.Student.L4.w }}
{% else %}
{% endif %}
')
->styleBorderRight(), '5%'
)
// ->addElementColumn((new Element())
// ->setContent('
// {% if (Content.E01.Student.Migration.m is not empty) %}
// {{ Content.E01.Student.Migration.m }}
// {% else %}
//
// {% endif %}
// ')
// ->styleBorderRight(), '5%'
// )
// ->addElementColumn((new Element())
// ->setContent('
// {% if (Content.E01.Student.Migration.w is not empty) %}
// {{ Content.E01.Student.Migration.w }}
// {% else %}
//
// {% endif %}
// ')
// ->styleBorderRight(), '5%'
// )
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.TotalCount.m is not empty) %}
{{ Content.E01.Student.TotalCount.m }}
{% else %}
{% endif %}
')
->styleTextBold()
->styleBackgroundColor('lightgrey')
->styleBorderRight(), '5%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Student.TotalCount.w is not empty) %}
{{ Content.E01.Student.TotalCount.w }}
{% else %}
{% endif %}
')
->styleTextBold()
->styleBackgroundColor('lightgrey'), '5%'
)
);
$sliceList[] = (new Slice())
->styleAlignCenter()
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Klassen')
->styleBackgroundColor('lightgrey')
->styleBorderRight(), $left
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Division.L1 is not empty) %}
{{ Content.E01.Division.L1 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Division.L2 is not empty) %}
{{ Content.E01.Division.L2 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Division.L3 is not empty) %}
{{ Content.E01.Division.L3 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Division.L4 is not empty) %}
{{ Content.E01.Division.L4 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
// ->addElementColumn((new Element())
// ->setContent('
// {% if (Content.E01.Division.Migration is not empty) %}
// {{ Content.E01.Division.Migration }}
// {% else %}
//
// {% endif %}
// ')
// ->styleBorderRight(), '10%'
// )
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.Division.TotalCount is not empty) %}
{{ Content.E01.Division.TotalCount }}
{% else %}
{% endif %}
')
->styleTextBold()
->styleBackgroundColor('lightgrey')
, '10%'
)
);
$sliceList[] = (new Slice())
->styleAlignCenter()
->styleBorderBottom()
->styleBorderLeft()
->styleBorderRight()
->addSection((new Section())
->addElementColumn((new Element())
->setContent('Klassen jüU')
->styleBackgroundColor('lightgrey')
->styleBorderRight(), $left
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.DivisionMixed.L1 is not empty) %}
{{ Content.E01.DivisionMixed.L1 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.DivisionMixed.L2 is not empty) %}
{{ Content.E01.DivisionMixed.L2 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.DivisionMixed.L3 is not empty) %}
{{ Content.E01.DivisionMixed.L3 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.DivisionMixed.L4 is not empty) %}
{{ Content.E01.DivisionMixed.L4 }}
{% else %}
{% endif %}
')
->styleBorderRight(), '10%'
)
// ->addElementColumn((new Element())
// ->setContent('
// {% if (Content.E01.DivisionMixed.Migration is not empty) %}
// {{ Content.E01.DivisionMixed.Migration }}
// {% else %}
//
// {% endif %}
// ')
// ->styleBorderRight(), '10%'
// )
->addElementColumn((new Element())
->setContent('
{% if (Content.E01.DivisionMixed.TotalCount is not empty) %}
{{ Content.E01.DivisionMixed.TotalCount }}
{% else %}
{% endif %}
')
->styleTextBold()
->styleBackgroundColor('lightgrey')
, '10%'
)
);
return $sliceList;
}
}