protected function _applyOperations($operations, $image) {
		foreach ($operations as $operation => $params) {
			$event = $this->_table->dispatchEvent('ImagineBehavior.applyOperation', compact('image', 'operations'));
			if ($event->isStopped()) {
				continue;
			}
			if (method_exists($this->_table, $operation)) {
				$this->_table->{$operation}($image, $params);
			} elseif (method_exists($this->_processor, $operation)) {
				$this->_processor->{$operation}($params);
			} else {
				throw new \BadMethodCallException(__d('imagine', 'Unsupported image operation `{0}`!', $operation));
			}
		}
	}
protected function _applyOperations($operations, $image) {
		foreach ($operations as $operation => $params) {
			$event = $this->_table->dispatchEvent('ImagineBehavior.applyOperation', compact('image', 'operations'));
			if ($event->isStopped()) {
				continue;
			}
			if (method_exists($this->_table, $operation)) {
				$this->_table->{$operation}($image, $params);
			} elseif (method_exists($this->_processor, $operation)) {
				$this->_processor->{$operation}($params);
			} else {
				throw new \BadMethodCallException(__d('imagine', 'Unsupported image operation `{0}`!', $operation));
			}
		}
	}
protected function _applyOperations ( $ operations , $ image ) { foreach ( $ operations as $ operation => $ params ) { $ event = $ this -> _table -> dispatchEvent ( 'ImagineBehavior.applyOperation' , compact ( 'image' , 'operations' ) ) ; if ( $ event -> isStopped ( ) ) { continue ; } if ( method_exists ( $ this -> _table , $ operation ) ) { $ this -> _table -> { $ operation } ( $ image , $ params ) ; } elseif ( method_exists ( $ this -> _processor , $ operation ) ) { $ this -> _processor -> { $ operation } ( $ params ) ; } else { throw new \ BadMethodCallException ( __d ( 'imagine' , 'Unsupported image operation `{0}`!' , $ operation ) ) ; } } }
Applies the actual image operations to the image.

@param array $operations
@param array $image
@throws \BadMethodCallException
@return void
Applies the actual image operations to the image .