File Manager Lite
Dir:
/home/u540325668/domains/dumbafarm.in/public_html/src/Core/Product
Upload
[..]
Combination/
Rename
Del
ProductAdminDrawer.php (2.93 KB)
Edit
Rename
Del
ProductCsvExporter.php (4.09 KB)
Edit
Rename
Del
ProductExporterInterface.php (1.41 KB)
Edit
Rename
Del
ProductExtraContent.php (2.76 KB)
Edit
Rename
Del
ProductExtraContentFinder.php (2.02 KB)
Edit
Rename
Del
ProductInterface.php (2.07 KB)
Edit
Rename
Del
ProductListingPresenter.php (1.36 KB)
Edit
Rename
Del
ProductPresentationSettings.php (1.62 KB)
Edit
Rename
Del
Search/
Rename
Del
Edit: ProductExtraContent.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Product; use PrestaShopBundle\Service\Hook\HookContentClassInterface; class ProductExtraContent implements HookContentClassInterface { /** * Title of the content. This can be used in the template * e.g as a tab name or an anchor. * * @var string */ private $title; /** * Content in HTML to display. * This is the main attribute of this class. * * @var string */ private $content; /** * For some reason, you may need to have a class on the div generated, * or to be able to set an anchor. * * @var array */ private $attr = [ 'id' => '', 'class' => '', ]; public function getTitle() { return $this->title; } public function getContent() { return $this->content; } public function getAttr() { return $this->attr; } public function setTitle($title) { $this->title = $title; return $this; } public function setContent($content) { $this->content = $content; return $this; } public function addAttr($attr) { $this->attr = array_merge($this->attr, $attr); return $this; } public function setAttr($attr) { // We declare default values for if and class which // could be mandatory in the template $this->attr = array_merge([ 'id' => '', 'class' => '', ], $attr); return $this; } public function toArray() { return [ 'title' => $this->title, 'content' => $this->content, 'attr' => $this->attr, ]; } }
Simpan