This file contains 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
test |
This file contains 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
<% with $CommentsForm %> | |
<% if $IncludeFormTag %> | |
<form $AttributesHTML> | |
<% end_if %> | |
<% if $Message %> | |
<p id="{$FormName}_error" class="message $MessageType">$Message</p> | |
<% else %> | |
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> | |
<% end_if %> |
This file contains 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 | |
class FormCaptureAdminExtension extends Extension | |
{ | |
public function updateEditForm(Form $form) | |
{ | |
$gridField = $form->Fields()->dataFieldByName('CapturedFormSubmission'); | |
$gridField->getConfig()->removeComponentsByType('GridFieldExportButton'); | |
$gridField->getConfig()->removeComponentsByType('GridFieldPrintButton'); | |
$gridField->getConfig()->addComponent(new FormCaptureGridFieldExportButton('buttons-before-left')); |
This file contains 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 | |
class MagicManyManyList extends ManyManyList | |
{ | |
/** | |
* @var array | |
*/ | |
protected static $join_table_relation_mapping = []; | |
/** |
This file contains 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 | |
$dataList = $dataList->alterDataQuery(function($dataQuery) { | |
$selectSQL = ''; | |
$alias = ''; | |
// Hack - DataQuery::selectField() is protected in SilverStripe 3 | |
// $dataQuery->selectField($selectSQL, $alias); | |
$reflectionMethod = new ReflectionMethod($dataQuery, 'selectField'); | |
$reflectionMethod->setAccessible(true); |
This file contains 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 | |
class SomeModelAdmin extends ModelAdmin { | |
private static $managed_models = array( | |
"MyDataObject" | |
); | |
public function getEditForm($id = null, $fields = null) { | |
$form = parent::getEditForm($id, $fields); |
This file contains 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 | |
class CustomIteratorSupport implements TemplateIteratorProvider { | |
protected $iteratorPos; | |
protected $iteratorTotalItems; | |
/** | |
* Set the current iterator properties - where we are on the iterator. | |
* |
This file contains 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 | |
class SomeModelAdmin extends ModelAdmin { | |
private static $managed_models = array( | |
"MyDataObject" | |
); | |
public function getEditForm($id = null, $fields = null) { | |
$form = parent::getEditForm($id, $fields); |
This file contains 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 | |
// autoload_files.php @generated by Composer | |
$vendorDir = dirname(dirname(__FILE__)); | |
$baseDir = dirname($vendorDir); | |
return array( | |
$vendorDir . '/guzzlehttp/promises/src/functions_include.php', | |
$vendorDir . '/guzzlehttp/psr7/src/functions_include.php', |