Skip to content

Instantly share code, notes, and snippets.

View cleggypdc's full-sized avatar
🚋
Making Real Dairy

Paul Clegg cleggypdc

🚋
Making Real Dairy
View GitHub Profile
@cleggypdc
cleggypdc / EditableConstants.php
Created August 29, 2019 15:02
Editable CKEDITOR Config
<?php
namespace AppBundle\Document;
final class EditableConstants
{
const TITLE_WYSIWYG_CONFIG = [
'placeholder' => 'Section title ...',
'enterMode' => 2,
@cleggypdc
cleggypdc / pimcore-db-upgrade-helper.sql
Last active April 3, 2018 16:48
A Helper SQL file that can migrate Pimcore Databases from Pimcore 1.4.8 to the most recent version.
/**
* Pimcore Database Upgrade Helper
*
* This source file is subject to the GNU General Public License version 3 (GPLv3)
* For the full copyright and license information, please view the LICENSE.md
* file distributed with this source code.
*
* @copyright Copyright (c) 2017 Gather Digital Ltd (https://www.gatherdigital.co.uk)
* @license https://www.gatherdigital.co.uk/license GNU General Public License version 3 (GPLv3)
<?php
//place me in /plugins/MyPlugin/lib/HiLifeAdminTheme/Plugin.php
namespace MyPlugin;
use Pimcore\API\Plugin as PluginLib;
class Plugin extends PluginLib\AbstractPlugin implements PluginLib\PluginInterface
{
@cleggypdc
cleggypdc / Concrete.php
Last active August 23, 2016 17:48
Pimcore Multi-class inheritance
<?php
namespace Website\Model\Object;
use Pimcore\Model\Object;
use Pimcore\Model\Object\AbstractObject;
class Concrete extends \Pimcore\Model\Object\Concrete
{