Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Created April 5, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/2313260 to your computer and use it in GitHub Desktop.
Save patrickallaert/2313260 to your computer and use it in GitHub Desktop.
function_definition.php with alignment
<?php
/**
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
*/
$FunctionList = array();
$FunctionList['locale_list'] = array( 'name' => 'locale_list',
'operationTypes' => array( 'read' ),
'callMethod' => array( 'class' => 'eZContentFunctionCollection',
'method' => 'fetchLocaleList' ),
'parameterType' => 'standard',
'parameters' => array( array( 'name' => 'with_variations',
'type' => 'boolean',
'required' => false,
'default' => true ) ) );
$FunctionList['object'] = array( 'name' => 'object',
'operationTypes' => array( 'read' ),
'callMethod' => array( 'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentObject' ),
'parameterType' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'default' => false,
'required' => false ),
array( 'name' => 'remote_id',
'type' => 'string',
'default' => false,
'required' => false ) ) );
$FunctionList['version'] = array( 'name' => 'version',
'operationTypes' => array( 'read' ),
'callMethod' => array( 'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentVersion' ),
'parameterType' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'version_id',
'type' => 'integer',
'default' => false,
'required' => true ) ) );
$FunctionList['node'] = array( 'name' => 'node',
'operationTypes' => array( 'read' ),
'callMethod' => array( 'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentNode' ),
'parameterType' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => false,
'default' => false ),
array( 'name' => 'node_path',
'type' => 'string',
'required' => false,
'default' => false ),
array( 'name' => 'language_code',
'type' => 'string',
'required' => false,
'default' => false ),
array( 'name' => 'remote_id',
'type' => 'string',
'default' => false,
'required' => false ) ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment