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
? |
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
class YoutubeIdBlogPostExtension extends DataExtension { | |
private static $db = array( | |
'YoutubeId' => 'Varchar', | |
); | |
public function updateCMSFields(FieldList $fields) { | |
$fields->addFieldToTab("Root.Main", new TextField('YoutubeId','Youtube Video Id'), "Content"); | |
} | |
} |
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 | |
private static $summary_fields = array ( | |
'Color.Nice' => 'Color' | |
); |
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 | |
$newItemVersion = StoreItemVersion::create(); | |
$newItemVersion->ParentItemID = $this->newItemId; | |
$newItemVersion->Name = $composerJsonArray['version']; | |
$newItemVersion->FileID = 255; | |
// $newItemVersion->FileID = $newFile; | |
$newItemVersion->ModeID = 4; | |
$newItemVersionId = $newItemVersion->write(); | |
//ModeID works fine but FileID dosn't. Instead I get a 0 for FileID in the database |
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
# The Yaml produced by pyYAML in my python script | |
--- | |
After: | |
- framework/* | |
- cms/* | |
Name: mysite | |
--- | |
Debug: | |
friendly_error_httpcode: true | |
SSViewer: |
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 bin/satis build satis.json web/ | |
Scanning packages | |
The composer-plugin-api ^1.0 requirement did not match any package | |
The composer-plugin-api 1.0.0 requirement did not match any package | |
Creating local downloads in 'web//dist' | |
Dumping 'composer/installers'. | |
- Installing composer/installers (v1.0.15) | |
Downloading: 100% |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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 CustomDataObject extends DataObject implements PermissionProvider | |
{ | |
static $api_access = true; | |
static $permissionsSuffix = "CUSTOMDATAOBJECT"; // Permission code will be ACTION_SUFFIX | |
static $permissionsDescriptor = "Custom"; | |
static $permissionsCategory = 'Custom Object'; | |
static $permissionsActionsArray = array('view','edit','delete','create'); |
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
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
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 | |
/** | |
* Description | |
* | |
* @package silverstripe | |
* @subpackage mysite | |
*/ | |
class MealCategory extends DataObject | |
{ | |
/** |
OlderNewer