1 <?php
2 /**
3 * @package FrameworkOnFramework
4 * @subpackage utils
5 * @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
6 * @license GNU General Public License version 2 or later; see LICENSE.txt
7 */
8
9 // Protect from unauthorized access
10 defined('FOF_INCLUDED') or die;
11
12 /**
13 * Intercept calls to PHP functions.
14 *
15 * @method function_exists(string $function)
16 * @method mcrypt_list_algorithms()
17 * @method hash_algos()
18 * @method extension_loaded(string $ext)
19 * @method mcrypt_create_iv(int $bytes, int $source)
20 * @method openssl_get_cipher_methods()
21 */
22 class FOFUtilsPhpfunc
23 {
24 /**
25 *
26 * Magic call to intercept any function pass to it.
27 *
28 * @param string $func The function to call.
29 *
30 * @param array $args Arguments passed to the function.
31 *
32 * @return mixed The result of the function call.
33 *
34 */
35 public function __call($func, $args)
36 {
37 return call_user_func_array($func, $args);
38 }
39 }
40