public function addCall($method, $params = array())
	{
		$call = array('name' => $method, 'params' => $params);

		$calls = $this->listCalls();
		$calls[] = $call;
		$this->setOption('calls', $calls);

		return $call;
	}
public function addCall($method, $params = array())
	{
		$call = array('name' => $method, 'params' => $params);

		$calls = $this->listCalls();
		$calls[] = $call;
		$this->setOption('calls', $calls);

		return $call;
	}
public function addCall ( $ method , $ params = array ( ) ) { $ call = array ( 'name' => $ method , 'params' => $ params ) ; $ calls = $ this -> listCalls ( ) ; $ calls [ ] = $ call ; $ this -> setOption ( 'calls' , $ calls ) ; return $ call ; }
Add an analytics call

@param   string  $method  The name of the function
@param   array   $params  The parameters for the call

@return  array  The added call

@since   1.0
Add an analytics call