2015-01-22 12:24:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @package dev
|
|
|
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
|
|
|
|
* @copyright 2015 netzmacht creative David Molineus
|
|
|
|
|
* @license LGPL 3.0
|
|
|
|
|
* @filesource
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Frontend\Helper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class FrontendApi provides access to the frontend api of contao.
|
|
|
|
|
*
|
|
|
|
|
* @package Netzmacht\Contao\Leaflet\Frontend\Helper
|
|
|
|
|
*/
|
|
|
|
|
class FrontendApi extends \Frontend
|
|
|
|
|
{
|
|
|
|
|
/**
|
2015-08-01 00:16:03 +02:00
|
|
|
* Call a Contao method no matter if it's protected.
|
|
|
|
|
*
|
|
|
|
|
* Inspired by Haste.
|
|
|
|
|
*
|
|
|
|
|
* @param string $method The method name.
|
|
|
|
|
* @param array $arguments The arguments.
|
|
|
|
|
*
|
|
|
|
|
* @see https://github.com/codefog/contao-haste/commits/master/library/Haste/Haste.php
|
|
|
|
|
*
|
|
|
|
|
* @return mixed
|
2015-01-22 12:24:22 +01:00
|
|
|
*/
|
2015-08-01 00:16:03 +02:00
|
|
|
public function call($method, array $arguments = array())
|
2015-01-22 12:24:22 +01:00
|
|
|
{
|
2015-08-01 00:16:03 +02:00
|
|
|
return call_user_func_array(array($this, $method), $arguments);
|
2015-01-22 12:24:22 +01:00
|
|
|
}
|
|
|
|
|
}
|