eZPublishCommunityProject(LegacyStack)  2013.5
eZContentObjectEditHandler Class Reference

The class eZContentObjectEditHandler provides a framework for handling content/edit view specific things in extensions. More...

Public Member Functions

 eZContentObjectEditHandler ()
 
 fetchInput ($http, &$module, &$class, $object, &$version, $contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage)
 
 publish ($contentObjectID, $contentObjectVersion)
 
 validateInput ($http, &$module, &$class, $object, &$version, $contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage, $validationParameters)
 

Static Public Member Functions

static addStoreAction ($name)
 
static executeHandlerFunction ($functionName, $params)
 
static executeInputHandlers (&$module, &$class, $object, &$version, $contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage)
 
static executePublish ($contentObjectID, $contentObjectVersion)
 
static initialize ()
 
static isStoreAction ()
 
static storeActionList ()
 
static validateInputHandlers (&$module, &$class, $object, &$version, $contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage, $validationParameters)
 

Detailed Description

The class eZContentObjectEditHandler provides a framework for handling content/edit view specific things in extensions.

Member Function Documentation

static eZContentObjectEditHandler::addStoreAction (   $name)
static

Set custom HTTP post parameters which should trigger store acrtions.

Parameters
HTTPpost parameter name

Referenced by initialize().

static eZContentObjectEditHandler::executeHandlerFunction (   $functionName,
  $params 
)
static

Execute handler $functionName function with given $params parameters

static eZContentObjectEditHandler::executeInputHandlers ( $module,
$class,
  $object,
$version,
  $contentObjectAttributes,
  $editVersion,
  $editLanguage,
  $fromLanguage 
)
static

Calls all extension object edit input handler, and executes this the fetchInput function

static eZContentObjectEditHandler::executePublish (   $contentObjectID,
  $contentObjectVersion 
)
static

Calls all publish functions.

Referenced by eZContentOperationCollection\publishObjectExtensionHandler().

eZContentObjectEditHandler::eZContentObjectEditHandler ( )

Constructor

eZContentObjectEditHandler::fetchInput (   $http,
$module,
$class,
  $object,
$version,
  $contentObjectAttributes,
  $editVersion,
  $editLanguage,
  $fromLanguage 
)

Override this function in the extension to handle edit input parameters.

static eZContentObjectEditHandler::initialize ( )
static

Initialize all extension input handler.

static eZContentObjectEditHandler::isStoreAction ( )
static

Check if any HTTP input trigger store action

eZContentObjectEditHandler::publish (   $contentObjectID,
  $contentObjectVersion 
)

Do content object publish operations.

static eZContentObjectEditHandler::storeActionList ( )
static

Return list of HTTP postparameters which should trigger store action.

eZContentObjectEditHandler::validateInput (   $http,
$module,
$class,
  $object,
$version,
  $contentObjectAttributes,
  $editVersion,
  $editLanguage,
  $fromLanguage,
  $validationParameters 
)

Override this function in the extension to handle input validation.

Result with warnings are expected in the following format: array( 'is_valid' => false, 'warnings' => array( array( 'text' => 'Input parameter <some_id> must be an integer.' ) ) );

static eZContentObjectEditHandler::validateInputHandlers ( $module,
$class,
  $object,
$version,
  $contentObjectAttributes,
  $editVersion,
  $editLanguage,
  $fromLanguage,
  $validationParameters 
)
static

Calls all input validation functions.


The documentation for this class was generated from the following file: