Skip to content

Instantly share code, notes, and snippets.

View stefanheimes's full-sized avatar

Stefan Heimes stefanheimes

  • MEN AT WORK
  • Lage
View GitHub Profile
@stefanheimes
stefanheimes / Helper.php
Last active August 29, 2015 14:01
A helper class for building a breadcrumb for a given page alias.
<?php
/**
* Contao Open Source CMS
*
* @copyright MEN AT WORK 2014
* @package Helper
* @license GNU/LGPL
* @filesource
*/
<?php
/**
* PHP version 5
*
* @copyright MEN AT WORK 2014
* @license LGPL-3.0+
* @filesource
*/
@stefanheimes
stefanheimes / SearchablePhp.php
Last active August 29, 2015 14:09
Searchable Pages for MetaModels
<?php
/**
* Created by PhpStorm.
* User: stefan.heimes
* Date: 10.11.2014
* Time: 11:53
*/
namespace FooBaa\MetaModels;
@stefanheimes
stefanheimes / TreePicker.php
Created February 11, 2016 16:11
Hidden Items for Min/Max - Level
<?php
/**
* Generate the tree view for a given collection.
*
* @param CollectionInterface $objCollection The collection to iterate over.
*
* @param string $treeClass The class to use for the tree.
*
* @return string
<?php
use ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\DefaultProperty;
use ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent;
return array
(
BuildDataDefinitionEvent::NAME => array(
array(
function (BuildDataDefinitionEvent $event) {