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/pdfcustomiser-implementation-m2/src/Block/Pdf/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/fooman/pdfcustomiser-implementation-m2/src/Block/Pdf/Shipment.php
<?php
namespace Fooman\PdfCustomiser\Block\Pdf;

/**
 * Create html for generating packing slip pdf
 *
 * @author     Kristof Ringleff
 * @copyright  Copyright (c) 2009 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.
 */
class Shipment extends AbstractSalesDocument
{
    const XML_PATH_TITLE = 'sales_pdf/shipment/shipmenttitle';
    const XML_PATH_ADDRESSES = 'sales_pdf/shipment/shipmentaddresses';
    const XML_PATH_COLUMNS = 'sales_pdf/shipment/columns';
    const XML_PATH_CUSTOMTEXT = 'sales_pdf/shipment/shipmentcustom';
    const XML_PATH_GROUPTEXT = 'sales_pdf/shipment/grouptext';
    const XML_PATH_SORTBY = 'sales_pdf/shipment/sortby';

    /**
     * @return \Magento\Sales\Api\Data\OrderInterface
     */
    public function getOrder()
    {
        return $this->getShipment()->getOrder();
    }

    /**
     * @return \Magento\Sales\Api\Data\ShipmentInterface
     */
    public function getSalesObject()
    {
        return $this->getShipment();
    }

    /**
     * get main heading for shipment title ie PACKING SLIP
     *
     * @return string
     * @access public
     */
    public function getTitle()
    {
        return $this->_scopeConfig->getValue(
            self::XML_PATH_TITLE,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    /**
     * @return bool
     */
    public function showOrderIncrementId()
    {
        return $this->_scopeConfig->getValue(
            \Magento\Sales\Model\Order\Pdf\AbstractPdf::XML_PATH_SALES_PDF_SHIPMENT_PUT_ORDER_ID,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    /**
     * @return mixed
     */
    public function getAddressesToDisplay()
    {
        return $this->_scopeConfig->getValue(
            self::XML_PATH_ADDRESSES,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    /**
     * @return mixed
     */
    public function getColumnConfig()
    {
        return $this->_scopeConfig->getValue(
            self::XML_PATH_COLUMNS,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    /**
     * @return mixed
     */
    public function getCustomText()
    {
        return $this->_scopeConfig->getValue(
            self::XML_PATH_CUSTOMTEXT,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    protected function getSortColumnsBy()
    {
        return $this->_scopeConfig->getValue(
            self::XML_PATH_SORTBY,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $this->getStoreId()
        );
    }

    public function getTracksCollection()
    {
        return $this->getShipment()->getTracksCollection();
    }
}

Spamworldpro Mini