Location: PHPKode > scripts > SigSlots > sigslots/slot.php
<?php

/**
 * This is the base Slot class. It holds the object and methods to call.
 *
 */
class Slot
{
	private $m_Callback = null; ///< String containing the method callback.
	private $m_Object = null; ///< The object to call the method on.
	
	public function __construct($Callback,$Object)
	{
		$this->m_Callback = $Callback;
		$this->m_Object = $Object;
	}
	
	public function __destruct() { }
	
	/**
	 * This method is called by a Registered signal.
	 *
	 * @param array $arguments
	 */
	public function Execute($arguments)
	{
		call_user_func_array(array(&$this->m_Object,$this->m_Callback),$arguments);
	}
}

?>
Return current item: SigSlots