Skip to content

Instantly share code, notes, and snippets.

@pmjones
Created April 5, 2012 20:45
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 pmjones/2313989 to your computer and use it in GitHub Desktop.
Save pmjones/2313989 to your computer and use it in GitHub Desktop.
<?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',
'operation_types' => array( 'read' ),
'call_method' => array(
'class' => 'eZContentFunctionCollection',
'method' => 'fetchLocaleList'
),
'parameter_type' => 'standard',
'parameters' => array(
array(
'name' => 'with_variations',
'type' => 'boolean',
'required' => false,
'default' => true
)
)
);
$FunctionList['object'] = array(
'name' => 'object',
'operation_types' => array( 'read' ),
'call_method' => array(
'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentObject'
),
'parameter_type' => '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',
'operation_types' => array( 'read' ),
'call_method' => array(
'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentVersion'
),
'parameter_type' => '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',
'operation_types' => array( 'read' ),
'call_method' => array(
'class' => 'eZContentFunctionCollection',
'method' => 'fetchContentNode'
),
'parameter_type' => '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