- Vendor namespace
ForkCMS
- We follow the PSR-2 coding style guide
- Class names in PascalCase, f.e.:
class Url{}
,class FirstName{}
- All abbreviations need to be PascalCased - Method names in camelCase, f.e.:
function getUrl(){}
,function getFirstName(){}
- All abbreviations need to be camelCased
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 | |
/** | |
* NOTE: the code below was a brainstorm session. | |
* You should check out https://github.com/jeroendesloovere/sitemap-bundle for the latest code | |
*/ | |
/** | |
* CORE | |
*/ |
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 | |
$document = new DOMDocument(); | |
$document->load($argv[1]); | |
$existingTranslations = []; | |
function getUserInput() { | |
return readline("\nTranslation PT: "); | |
} |
- src
- Console
- Core
- Locale
- Thumbnails
- Component
- Asset
- Asset.php
- AssetCollection.php
MediaLibraryImporter
/**
- Creating */
// Creating the media group
1. Creating .orm.yml files in /Resources/config/...
php app/console doctrine:mapping:import --force AcmeBlogBundle yml --env=prod
This tool checks for PSR code styling. More info
We download it to /usr/local/bin/
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 | |
// Filename: src/Backend/Core/Engine/DataGridDoctrine.php | |
namespace Backend\Core\Engine; | |
/* | |
* This file is part of Fork CMS. | |
* | |
* For the full copyright and license information, please view the license | |
* file that was distributed with this source code. | |
*/ |
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 | |
// Backend MediaGroups Helper | |
$this->media = $this->get('media_library.helper.backend')->create( | |
$this->frm, | |
$this->tpl, | |
$this->header, | |
array( | |
// create new with specified MediaGroup type | |
$this->get('media_library.factory.backend.group')->create( |
NewerOlder