This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Seen on http://stackoverflow.com/questions/2978726/limit-results-from-joined-table-to-one-row | |
SELECT * FROM days_off_request AS dor | |
INNER JOIN days_off_request_status_history AS dorsh | |
ON dor.id=dorsh.days_off_request | |
LEFT JOIN days_off_request_status_history AS dorsh2 | |
ON dor.id=dorsh2.days_off_request | |
AND dorsh2.created_at>dorsh.created_at | |
WHERE dorsh2.created_at IS NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File default_parameters.yml | |
parameters: | |
ezsettings.default.content.field_groups.list: ['content', 'metadata', 'test'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Vincent Guyard | |
* Date: 03/02/2017 | |
* Time: 03:27 | |
* | |
* Instrucctions: change the class from parameters | |
* | |
* parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
ezpublish.persistence.slug_converter.class: eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* #?ini charset="utf-8"? | |
[urlalias] | |
Commands[]=lowercase | |
*/ ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block header_breadcrumbs %} | |
{% if breadcrumb_items is defined %} | |
{% include 'eZPlatformUIBundle:components:breadcrumbs.html.twig' with {'items': breadcrumb_items} %} | |
{% endif %} | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block header_breadcrumbs %} | |
{% set breadcrumb_items = [ | |
{link: path('admin_dashboard'), label: 'dashboard.title'|trans({}, 'dashboard')}, | |
{link: path('admin_role'), label: 'role.dashboard_title'|trans}, | |
{link: null, label: role.identifier} | |
] %} | |
{{ parent() }} | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block header_breadcrumbs %} | |
{% set breadcrumb_items = [ | |
{link: path('admin_dashboard'), label: 'dashboard.title'|trans({}, 'dashboard')}, | |
{link: path('admin_role'), label: 'role.dashboard_title'|trans}, | |
{link: null, label: role.identifier} | |
] %} | |
{{ parent() }} | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __clone() { | |
$this->id = null; | |
if (!is_null($this->filename)){ | |
$temp_file = tempnam(ini_get('upload_tmp_dir'), sha1(uniqid(mt_rand(), true))); | |
$file = new File($this->getAbsolutePath()); | |
copy($this->getAbsolutePath(), $temp_file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true ); |