16846_followup.patch

Administrator Admin, 2011-01-01 20:12

Download (1.35 KB)

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
5008 5008
		if (!$forceRemapStackActions && !isset($this->remapStackRecords[$table][$id]) && !isset($this->remapStackChildIds[$id])) {
5009 5009
			call_user_func_array($callback, $arguments);
5010 5010
		} else {
5011
			$this->remapStackActions[] = array(
5012
				'affects' => array(
5013
					'table' => $table,
5014
					'id' => $id,
5015
				),
5016
				'callback' => $callback,
5017
				'arguments' => $arguments,
5018
			);
5011
			$this->addRemapAction($table, $id, $callback, $arguments);
5019 5012
		}
5020 5013
	}
5021 5014

  
5022 5015
	/**
5016
	 * Adds an instruction to the remap action stack (used with IRRE).
5017
	 *
5018
	 * @param string $table The affected table
5019
	 * @param integer $id The affected ID
5020
	 * @param array $callback The callback information (object and method)
5021
	 * @param array $arguments The arguments to be used with the callback
5022
	 * @return void
5023
	 */
5024
	public function addRemapAction($table, $id, array $callback, array $arguments) {
5025
		$this->remapStackActions[] = array(
5026
			'affects' => array(
5027
				'table' => $table,
5028
				'id' => $id,
5029
			),
5030
			'callback' => $callback,
5031
			'arguments' => $arguments,
5032
		);
5033
	}
5034

  
5035
	/**
5023 5036
	 * Adds a table-id-pair to the reference index remapping stack.
5024 5037
	 *
5025 5038
	 * @param string $table