eZPublish  4.4
content/operation_definition.php File Reference

Variables

 $OperationList = array()
 
 $OperationList ['read']
 
 $OperationList ['publish']
 
 $OperationList ['move']
 
 $OperationList ['addlocation']
 
 $OperationList ['removelocation']
 
 $OperationList ['delete']
 
 $OperationList ['hide']
 
 $OperationList ['swap']
 
 $OperationList ['updatesection']
 
 $OperationList ['translationavailable']
 
 $OperationList ['sort']
 
 $OperationList ['updatepriority']
 
 $OperationList ['updatemainassignment']
 
 $OperationList ['updateinitiallanguage']
 
 $OperationList ['updatealwaysavailable']
 
 $OperationList ['removetranslation']
 
 $OperationList ['updateobjectstate']
 
 $OperationList ['createnodefeed']
 
 $OperationList ['removenodefeed']
 

Variable Documentation

$OperationList = array()
$OperationList['read']
Initial value:
= array( 'name' => 'read',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'user_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'language_code',
'type' => 'string',
'default' => '',
'required' => false ) ),
'keys' => array( 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_read',
'keys' => array( 'node_id',
'user_id' ) ),
array( 'type' => 'trigger',
'name' => 'post_read',
'keys' => array( 'node_id',
'user_id' ) ),
array( 'type' => 'method',
'name' => 'fetch-object',
'frequency' => 'once',
'method' => 'readObject' ) ) )
$OperationList['publish']
$OperationList['move']
$OperationList['addlocation']
$OperationList['removelocation']
Initial value:
= array( 'name' => 'removelocation',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_list',
'type' => 'array',
'required' => true ), ),
'keys' => array( 'node_list' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_removelocation',
'keys' => array( 'node_list' )
),
array( 'type' => 'method',
'name' => 'remove-location',
'frequency' => 'once',
'method' => 'removeNodes',
),
array( 'type' => 'trigger',
'name' => 'post_removelocation',
'keys' => array( 'node_list' ),
),
)
)
$OperationList['delete']
Initial value:
= array( 'name' => 'delete',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id_list',
'type' => 'array',
'required' => true ),
array( 'name' => 'move_to_trash',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'node_id_list', 'move_to_trash' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_delete',
'keys' => array( 'node_id_list',
'move_to_trash'
) ),
array( 'type' => 'method',
'name' => 'delete',
'frequency' => 'once',
'method' => 'deleteObject',
),
array( 'type' => 'trigger',
'name' => 'post_delete',
'keys' => array( 'node_id_list',
'move_to_trash'
) ),
) )
$OperationList['hide']
Initial value:
= array( 'name' => 'hide',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ),
),
'keys' => array( 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_hide',
'keys' => array( 'node_id' ),
),
array( 'type' => 'method',
'name' => 'hide',
'frequency' => 'once',
'method' => 'changeHideStatus',
),
array( 'type' => 'trigger',
'name' => 'post_hide',
'keys' => array( 'node_id' )
)
)
)
$OperationList['swap']
$OperationList['updatesection']
Initial value:
= array( 'name' => 'updatesection',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'selected_section_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'node_id', 'selected_section_id', ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updatesection',
'keys' => array( 'node_id', 'selected_section_id' ),
),
array( 'type' => 'method',
'name' => 'updatesection',
'frequency' => 'once',
'method' => 'updateSection',
),
array( 'type' => 'trigger',
'name' => 'post_updatesection',
'keys' => array( 'node_id', 'selected_section_id' )
)
)
)
$OperationList['translationavailable']
Initial value:
= array( 'name' => 'translationavailable',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'status',
'type' => 'integer',
'required' => false ),
),
'keys' => array( 'object_id', 'status' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_translationavailable',
'keys' => array( 'object_id', 'status' ),
),
array( 'type' => 'method',
'name' => 'translationavailable',
'frequency' => 'once',
'method' => 'changeTranslationAvailableStatus',
),
array( 'type' => 'trigger',
'name' => 'post_translationavailable',
'keys' => array( 'object_id' )
)
)
)
$OperationList['sort']
Initial value:
= array( 'name' => 'sort',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'sorting_field',
'type' => 'integer',
'required' => true ),
array( 'name' => 'sorting_order',
'type' => 'integer',
'required' => true ),
),
'keys' => array( 'node_id', 'sorting_field', 'sorting_order' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_sort',
'keys' => array( 'node_id' ),
),
array( 'type' => 'method',
'name' => 'sort',
'frequency' => 'once',
'method' => 'changeSortOrder',
),
array( 'type' => 'trigger',
'name' => 'post_sort',
'keys' => array( 'node_id' )
)
)
)
$OperationList['updatepriority']
Initial value:
= array( 'name' => 'updatepriority',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'priority',
'type' => 'array',
'required' => true ),
array( 'name' => 'priority_id',
'type' => 'array',
'required' => true ),
),
'keys' => array( 'node_id', 'priority', 'priority_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updatepriority',
'keys' => array( 'node_id' ),
),
array( 'type' => 'method',
'name' => 'updatepriority',
'frequency' => 'once',
'method' => 'updatePriority',
),
array( 'type' => 'trigger',
'name' => 'post_updatepriority',
'keys' => array( 'node_id' )
)
)
)
$OperationList['updatemainassignment']
Initial value:
= array( 'name' => 'UpdateMainAssignment',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'main_assignment_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'object_id',
'type' => 'array',
'required' => true ),
array( 'name' => 'main_assignment_parent_id',
'type' => 'array',
'required' => true ),
),
'keys' => array( 'main_assignment_id', 'object_id', 'main_assignment_parent_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_UpdateMainAssignment',
'keys' => array( 'main_assignment_id' ),
),
array( 'type' => 'method',
'name' => 'updatemainassignment',
'frequency' => 'once',
'method' => 'UpdateMainAssignment',
),
array( 'type' => 'trigger',
'name' => 'post_UpdateMainAssignment',
'keys' => array( 'main_assignment_id' )
)
)
)
$OperationList['updateinitiallanguage']
Initial value:
= array( 'name' => 'updateinitiallanguage',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'new_initial_language_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'object_id', 'new_initial_language_id', 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updateinitiallanguage',
'keys' => array( 'object_id', 'new_initial_language_id', 'node_id' ),
),
array( 'type' => 'method',
'name' => 'updateinitiallanguage',
'frequency' => 'once',
'method' => 'updateInitialLanguage',
),
array( 'type' => 'trigger',
'name' => 'post_updateinitiallanguage',
'keys' => array( 'object_id', 'new_initial_language_id', 'node_id' )
)
)
)
$OperationList['updatealwaysavailable']
Initial value:
= array( 'name' => 'updatealwaysavailable',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true ),
array( 'name' => 'new_always_available',
'type' => 'integer',
'required' => true ),
array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'object_id', 'new_always_available', 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updatealwaysavailable',
'keys' => array( 'object_id', 'new_always_available' ),
),
array( 'type' => 'method',
'name' => 'updatealwaysavailable',
'frequency' => 'once',
'method' => 'updateAlwaysAvailable',
),
array( 'type' => 'trigger',
'name' => 'post_updateAlwaysAvailable',
'keys' => array( 'object_id', 'new_always_available', 'node_id' )
)
)
)
$OperationList['removetranslation']
Initial value:
= array( 'name' => 'removetranslation',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true),
array( 'name' => 'language_id_list',
'type' => 'array',
'required' => true ),
array( 'name' => 'node_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'object_id', 'language_id_list', 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_removetranslation',
'keys' => array( 'object_id', 'language_id_list', 'node_id' ),
),
array( 'type' => 'method',
'name' => 'removetranslation',
'frequency' => 'once',
'method' => 'removeTranslation',
),
array( 'type' => 'trigger',
'name' => 'post_removetranslation',
'keys' => array( 'object_id', 'language_id_list', 'node_id' )
)
)
)
$OperationList['updateobjectstate']
Initial value:
= array( 'name' => 'updateobjectstate',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'object_id',
'type' => 'integer',
'required' => true),
array( 'name' => 'state_id_list',
'type' => 'array',
'required' => true ) ),
'keys' => array( 'object_id', 'state_id_list' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updateobjectstate',
'keys' => array( 'object_id', 'state_id_list' ),
),
array( 'type' => 'method',
'name' => 'updateobjectstate',
'frequency' => 'once',
'method' => 'updateObjectState',
),
array( 'type' => 'trigger',
'name' => 'post_updateobjectstate',
'keys' => array( 'object_id', 'state_id_list' )
)
)
)
$OperationList['createnodefeed']
Initial value:
= array( 'name' => 'createnodefeed',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true) ),
'keys' => array( 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_createnodefeed',
'keys' => array( 'node_id' ),
),
array( 'type' => 'method',
'name' => 'createnodefeed',
'frequency' => 'once',
'method' => 'createFeedForNode',
),
array( 'type' => 'trigger',
'name' => 'post_createnodefeed',
'keys' => array( 'node_id' )
)
)
)
$OperationList['removenodefeed']
Initial value:
= array( 'name' => 'removenodefeed',
'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
'class' => 'eZContentOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'node_id',
'type' => 'integer',
'required' => true) ),
'keys' => array( 'node_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_removenodefeed',
'keys' => array( 'node_id' ),
),
array( 'type' => 'method',
'name' => 'removenodefeed',
'frequency' => 'once',
'method' => 'removeFeedForNode',
),
array( 'type' => 'trigger',
'name' => 'post_removenodefeed',
'keys' => array( 'node_id' )
)
)
)