Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/fooman/pdfdesign-m2/src/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/fooman/pdfdesign-m2/src/Model/DefaultDesign.php
<?php
/**
 * @copyright Copyright (c) 2015 Fooman Limited (http://www.fooman.co.nz)
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fooman\PdfDesign\Model;

/**
 * Design source for Default Design
 */
class DefaultDesign implements Api\DesignInterface
{
    private $storeId;
    private $templateFiles;
    private $footerHandle;

    public function __construct(
        array $templateFiles = [],
        $footerHandle = \Fooman\PdfCore\Block\Pdf\DocumentRenderer::DEFAULT_FOOTER_LAYOUT_HANDLE
    ) {
        $this->templateFiles = $templateFiles;
        $this->footerHandle = $footerHandle;
    }

    public function getStoreId()
    {
        return $this->storeId;
    }

    public function setStoreId($storeId)
    {
        $this->storeId = $storeId;
    }

    public function getLayoutHandle($pdfType)
    {
        return sprintf('fooman_pdfcustomiser_%s', $pdfType);
    }

    /**
     * @return array
     */
    public function getItemStyling()
    {
        return [
            'header' => [
                'default' => 'border-bottom:1px solid black;',
                'first' => 'border-bottom:1px solid black;',
                'last' => 'border-bottom:1px solid black;'
            ],
            'row' => [
                'default' => 'border-bottom:0px none transparent;',
                'last' => 'border-bottom:0px solid black;',
                'first' => 'border-bottom:0px none transparent;'
            ],
            'table' => ['default' => 'padding: 2px 0px;']
        ];
    }

    public function getTemplateFiles()
    {
        return $this->templateFiles;
    }

    public function getFooterLayoutHandle()
    {
        return $this->footerHandle;
    }

    public function getTextColour($storeId)
    {
        return '#000000';
    }
}

Spamworldpro Mini