\FireGento_Pdf_Helper_Data
Dummy data helper for translation issues.
- Author: FireGento Team <team@firegento.com>
- Copyright: 2013 FireGento Team (http://www.firegento.com)
- License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
Synopsis
class FireGento_Pdf_Helper_Data
extends Mage_Core_Helper_Abstract
{
- // constants
- const XML_PATH_FIREGENTO_PDF_LOGO_POSITION = 'sales_pdf/firegento_pdf/logo_position';
- const XML_PATH_SALES_PDF_INVOICE_SHOW_CUSTOMER_NUMBER = 'sales_pdf/invoice/show_customer_number';
- const XML_PATH_SALES_PDF_SHIPMENT_SHOW_CUSTOMER_NUMBER = 'sales_pdf/shipment/show_customer_number';
- const XML_PATH_SALES_PDF_CREDITMEMO_SHOW_CUSTOMER_NUMBER = 'sales_pdf/creditmemo/show_customer_number';
- const XML_PATH_SALES_PDF_INVOICE_FILENAME_EXPORT_PATTERN = 'sales_pdf/invoice/filename_export_pattern';
- const XML_PATH_SALES_PDF_SHIPMENT_FILENAME_EXPORT_PATTERN = 'sales_pdf/shipment/filename_export_pattern';
- const XML_PATH_SALES_PDF_CREDITMEMO_FILENAME_EXPORT_PATTERN = 'sales_pdf/creditmemo/filename_export_pattern';
- const XML_PATH_REGULAR_FONT = 'sales_pdf/firegento_pdf_fonts/regular_font';
- const XML_PATH_BOLD_FONT = 'sales_pdf/firegento_pdf_fonts/bold_font';
- const XML_PATH_ITALIC_FONT = 'sales_pdf/firegento_pdf_fonts/italic_font';
- const FONT_PATH_IN_MEDIA = '/firegento_pdf/fonts';
- // methods
- public mixed putOrderId()
- public bool isLogoFullWidth()
- public bool showCustomerNumber()
- public array getScaledImageSize()
- public string getExportPattern()
- public array getModelVars()
- public string getExportFilename()
- public string getFontPath()
Hierarchy
Extends
Constants
Name | Value |
---|---|
XML_PATH_FIREGENTO_PDF_LOGO_POSITION | 'sales_pdf/firegento_pdf/logo_position' |
XML_PATH_SALES_PDF_INVOICE_SHOW_CUSTOMER_NUMBER | 'sales_pdf/invoice/show_customer_number' |
XML_PATH_SALES_PDF_SHIPMENT_SHOW_CUSTOMER_NUMBER | 'sales_pdf/shipment/show_customer_number' |
XML_PATH_SALES_PDF_CREDITMEMO_SHOW_CUSTOMER_NUMBER | 'sales_pdf/creditmemo/show_customer_number' |
XML_PATH_SALES_PDF_INVOICE_FILENAME_EXPORT_PATTERN | 'sales_pdf/invoice/filename_export_pattern' |
XML_PATH_SALES_PDF_SHIPMENT_FILENAME_EXPORT_PATTERN | 'sales_pdf/shipment/filename_export_pattern' |
XML_PATH_SALES_PDF_CREDITMEMO_FILENAME_EXPORT_PATTERN | 'sales_pdf/creditmemo/filename_export_pattern' |
XML_PATH_REGULAR_FONT | 'sales_pdf/firegento_pdf_fonts/regular_font' |
XML_PATH_BOLD_FONT | 'sales_pdf/firegento_pdf_fonts/bold_font' |
XML_PATH_ITALIC_FONT | 'sales_pdf/firegento_pdf_fonts/italic_font' |
FONT_PATH_IN_MEDIA | '/firegento_pdf/fonts' |
Methods
public
- getExportFilename() — The filename of the exported file.
- getExportPattern() — Return export pattern config value
- getFontPath() — Returns the path where the fonts reside.
- getModelVars() — Gets the variables which can be used as a placeholder in the filename.
- getScaledImageSize() — Return scaled image sizes based on an path to an image file.
- isLogoFullWidth() — Whether the logo should be shown in full width.
- putOrderId() — Return the order id or false if order id should not be displayed on document.
- showCustomerNumber() — Whether the customer number should be shown.