This bundle is a skeleton for an eZ Publish (http://github.com/ezsystems/ezpublish-community) REST API extension.
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 eZCachedModule | |
{ | |
public static function generate( $file, $args ) | |
{ | |
extract( $args ); | |
$tpl = templateInit(); | |
$tpl->setVariable( 'value', $Params['Value'] ); |
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 /* #?ini charset="utf-8"? | |
[ClusteringSettings] | |
FileHandler=eZDFSFileHandler | |
[eZDFSClusteringSettings] | |
MountPointPath=/opt/nfs/ezpublish | |
DBBackend=eZDFSFileHandlerMySQLiBackend | |
DBHost=localhost | |
DBPort=3306 |
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
# Create & publish an ezdemo article using the eZ Publish 5 REST API v2 | |
# Notes: | |
# - this script requires http ie, which can be found at https://github.com/jkbr/httpie | |
# - it temporarily depends on a few temporary fixes, available in my fork: https://github.com/bdunogier/ezp-next/tree/tmp-rest-fixes | |
# - it is NOT well written, and I suck at shell scripting. Feel free to submit improvements to the GIST ;) | |
# | |
# Author: Bertrand Dunogier <http://share.ez.no/community/profile>, twitter @bdunogier, http://gplus.to/BertrandDunogier | |
# Usage: run it | |
REST_URI="http://vm.ezpublish5/api/ezp/v2" |
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
// ==UserScript== | |
// @name GitHub Commit Expander | |
// @namespace vidzbigger.com | |
// @description Show the remaining lines of a file while viewing a commit. Also provides scroll marks to easily jump through changes. | |
// @include http*://github.com/*/*/pull/*/commits | |
// @include http*://github.com/*/*/commit* | |
// @match http*://github.com/*/*/commit* | |
// @match http*://github.com/*/*/pull/*/commits | |
// ==/UserScript== |
Audience: integrators, extension developers Author: Bertrand Dunogier [email protected] Created: 22/01/2014 JIRA story: https://jira.ez.no/browse/EZP-22210 Topics: BC, Extensibility
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 | |
// FILE: app/vm.ezpublish5/AppKernel.php | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends EzPublishExtensibleKernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( | |
new BD\Bundle\TestBundle\BDTestBundle(), |
JIRA story: http://jira.ez.no/browse/EZP-22217
Implement a REST service that gives access to an ISO-3166 formatted list of world countries.
- presenting a country options list from any application that uses the REST API
Original story: EZP-22210
Benefit: makes it easier to soft migrate legacy datatype extensions to the new stack Usefulness: 7/10 (BD)
A common use-case in projects would be to map an existing, custom legacy datatype to the [Null FieldType][NullFieldType].
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 | |
$loader = require 'vendor/autoload.php'; | |
$repositoryFactory = new \eZ\Publish\Core\REST\Client\RepositoryFactory(); | |
$repository = $repositoryFactory->create( 'http://php55-vm.ezpublish5/', 'admin', 'publish' ); | |
print_r( | |
$repository->getContentService()->loadContentInfo( '/api/ezp/v2/content/objects/59' ) | |
); |