You are here

protected function Messaging_Message::process in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_message.class.inc \Messaging_Message::process()
  2. 6.3 classes/messaging_message.class.inc \Messaging_Message::process()

Run operations on message for current method if not done before

Parameters

$step1, $step2....: Name of operation, the method invoked will be do_$step

4 calls to Messaging_Message::process()
Messaging_Message::do_dispatch in ./messaging.message.inc
Check whether the message is to be sent / queued
Messaging_Message::queue in ./messaging.message.inc
Queue message using the messaging store.
Messaging_Message::render in ./messaging.message.inc
Render for current method
Messaging_Message::send in ./messaging.message.inc
Send message through sending method.

File

./messaging.message.inc, line 516
Drupal Messaging Framework - Message class file

Class

Messaging_Message
Message class

Code

protected function process() {
  $operations = func_get_args();
  $result = TRUE;
  while ($result && ($step = array_shift($operations))) {
    $result = $this
      ->process_step($step);
  }

  // Success if completed operations and result is still ok
  return $result && empty($operations);
}