100+ results for 'php call_user_func'

Not the results you expected?

Decorator.php (https://github.com/livinglab/openlab.git) PHP · 688 lines

1 <?php

2

3 /**

52 public function by( $key, $value = null ) {

53 $call_args = func_get_args();

54 call_user_func_array( [ $this->decorated, 'by' ], $call_args );

55

56 return $this;

62 public function where( $key, $value = null ) {

63 $call_args = func_get_args();

64 call_user_func_array( [ $this->decorated, 'where' ], $call_args );

65

66 return $this;

323 public function where_or( $callbacks ) {

324 $call_args = func_get_args();

325 call_user_func_array( [ $this->decorated, 'where_or' ], $call_args );

326

327 return $this;

SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines

1 <?php

2

3 namespace Lazy\Test;

14

15

16 class SequenceTest extends \PHPUnit_Framework_TestCase {

17

18 /**

46 // Make sure that $with is an array, even if it has a single element

47 $with = is_array($with) ? $with : array($with);

48 // Capture the expectation so we can use call_user_func_array with it

49 $expectation = $mock->expects($this->at($count))->method('__invoke');

50 // Call with with $with as positional arguments

51 call_user_func_array(array($expectation, 'with'), $with);

52

53 $count++;

processor.php (https://github.com/AlinT/socorro.git) PHP · 356 lines

1 <?php

2 /**

3 * File containing the ezcFeedProcessor class.

247 foreach ( ezcFeed::getSupportedModules() as $moduleName => $moduleClass )

248 {

249 $moduleNamespace = call_user_func( array( $moduleClass, 'getNamespace' ) );

250

251 // compare the namespace URIs from the XML source with the supported ones

plugin.php (https://gitlab.com/pixelbrackets/t3adminer) PHP · 482 lines

1 <?php

2

3 /** Adminer customization allowing usage of plugins

15 function _findRootClass($class)

16 {

17 // is_subclass_of(string, string) is available since PHP 5.0.3

18 do {

19 $return = $class;

45 function _callParent($function, $args)

46 {

47 return call_user_func_array(array('parent', $function), $args);

48 }

49

52 foreach ($this->plugins as $plugin) {

53 if (method_exists($plugin, $function)) {

54 switch (count($args)) { // call_user_func_array() doesn't work well with references

55 case 0:

56 $return = $plugin->$function();

class-wp-customize-setting.php (https://gitlab.com/Blueprint-Marketing/WordPress-1) PHP · 439 lines

1 <?php

2 /**

3 * Customize Setting Class.

262 */

263 public final function check_capabilities() {

264 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) )

265 return false;

266

267 if ( $this->theme_supports && ! call_user_func_array( 'current_theme_supports', (array) $this->theme_supports ) )

268 return false;

269

services9.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 394 lines

1 <?php

2

3 use Symfony\Component\DependencyInjection\ContainerInterface;

209 protected function getFoo_BazService()

210 {

211 $this->services['foo.baz'] = $instance = call_user_func(array($this->getParameter('baz_class'), 'getInstance'));

212

213 call_user_func(array($this->getParameter('baz_class'), 'configureStatic1'), $instance);

255 protected function getMethodCall1Service()

256 {

257 require_once '%path%foo.php';

258

259 $this->services['method_call1'] = $instance = new \Bar\FooClass();

class-wp-session-tokens.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 294 lines

1 <?php

2 /**

3 * Session API: WP_Session_Tokens class

223 */

224 final public static function destroy_all_for_all_users() {

225 /** This filter is documented in wp-includes/class-wp-session-tokens.php */

226 $manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );

227 call_user_func( array( $manager, 'drop_sessions' ) );

QuestionBase.php (https://gitlab.com/mariadb-corporation/LimeSurvey) PHP · 330 lines

1 <?php

2

3

188 if ($metaData['type'] == 'select' && is_callable($metaData['options']))

189 {

190 $metaData['options'] = call_user_func($metaData['options'], $this);

191 }

192 }

InstanceManager.php (https://bitbucket.org/dereksangshi2000/balance_lib.git) PHP · 350 lines

1 <?php

2

3 /*

264 $callback['params'] = isset($callback['params']) ? $callback['params'] : array();

265 $params = $this->_fixDependencis($callback['params']);

266 call_user_func_array(array($instance, $callback['method']), $params);

267 }

268 }

Option.php (https://github.com/nattaphat/hgis.git) PHP · 252 lines

1 <?php

2

3 /*

17 */

18

19 namespace PhpOption;

20

21 /**

65 {

66 return new LazyOption(function() use ($callback, $arguments, $noneValue) {

67 $return = call_user_func_array($callback, $arguments);

68

69 if ($return === $noneValue) {

134 * with lazy evaluating options:

135 *

136 * ```php

137 * $repo->findSomething()

138 * ->orElse(new LazyOption(array($repo, 'findSomethingElse')))

EventDispatcher.php (https://gitlab.com/x33n/respond) PHP · 185 lines

1 <?php

2

3 /*

162 {

163 foreach ($listeners as $listener) {

164 call_user_func($listener, $event, $eventName, $this);

165 if ($event->isPropagationStopped()) {

166 break;

180 if (isset($this->listeners[$eventName])) {

181 krsort($this->listeners[$eventName]);

182 $this->sorted[$eventName] = call_user_func_array('array_merge', $this->listeners[$eventName]);

183 }

184 }

numeric_comparison_filter_test.php (https://github.com/markn86/moodle.git) PHP · 280 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

110 $this->expectException($exceptiontype);

111 $this->expectExceptionMessage($exceptionmessage);

112 call_user_func_array([$filter, 'add_filter_value'], $values);

113 }

114

Listener.php (https://gitlab.com/judielsm/Handora) PHP · 234 lines

1 <?php

2

3 namespace Illuminate\Queue;

59 {

60 $this->commandPath = $commandPath;

61 $this->workerCommand = '"'.PHP_BINARY.'" artisan queue:work %s --queue="%s" --delay=%s --memory=%s --sleep=%s --tries=%s';

62 }

63

144 {

145 if (isset($this->outputHandler)) {

146 call_user_func($this->outputHandler, $type, $line);

147 }

148 }

Builder.php (https://gitlab.com/judielsm/Handora) PHP · 243 lines

1 <?php

2

3 namespace Illuminate\Database\Schema;

202 {

203 if (isset($this->resolver)) {

204 return call_user_func($this->resolver, $table, $callback);

205 }

206

helper.php (https://github.com/projectfork/Projectfork.git) PHP · 384 lines

1 <?php

2 /**

3 * @package Projectfork

361 }

362

363 $supported = call_user_func(array($class_name, 'isSupported'), $context);

364

365 return $supported;

369 public static function getComponentHelper($component)

370 {

371 $helper_file = JPATH_ADMINISTRATOR . '/components/' . $component . '/helpers/notifications.php';

372 $class_name = 'PF' . str_replace('com_pf', '', $component) . 'NotificationsHelper';

373

action.php (https://gitlab.com/alexprowars/bitrix) PHP · 283 lines

1 <?php

2 namespace Bitrix\Scale;

3

156 try

157 {

158 $this->actionParams = call_user_func($modifyerFunction, $this->id, $this->actionParams, $this->serverHostname, $this->userParams);

159 }

160 catch(NeedMoreUserInfoException $e)

AuthManager.php (https://gitlab.com/nzqadri/bejeep) PHP · 294 lines

1 <?php

2

3 namespace Illuminate\Auth;

290 public function __call($method, $parameters)

291 {

292 return call_user_func_array([$this->guard(), $method], $parameters);

293 }

294 }

Manager.php (https://github.com/jithinkr/pragyan.git) PHP · 303 lines

1 <?php

2

3 /**

10 /**

11 * The base session class used by the Services_Yadis_Manager. This

12 * class wraps the default PHP session machinery and should be

13 * subclassed if your application doesn't use PHP sessioning.

15 * @package Yadis

16 */

17 class Services_Yadis_PHPSession {

18 /**

19 * Set a session key/value pair.

88 $this->_current = null;

89

90 // Stale flag for cleanup if PHP lib has trouble.

91 $this->stale = false;

92 }

PluginBroker.php (https://github.com/leerbag/zf2.git) PHP · 375 lines

1 <?php

2 /**

3 * Zend Framework

324 {

325 if (!is_callable($callback)) {

326 throw new Exception\InvalidArgumentException(sprintf('Validator must be a valid PHP callback; %s provided', gettype($callback)));

327 }

328 $this->validator = $callback;

352 {

353 if (null !== ($validator = $this->getValidator())) {

354 return call_user_func($validator, $plugin);

355 }

356 return true;

Navigation.php (https://bitbucket.org/netglue/zf-1.12-release.git) PHP · 346 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

126 // check if call should proxy to another helper

127 if ($helper = $this->findHelper($method, false)) {

128 return call_user_func_array(array($helper, $method), $arguments);

129 }

130

183 if (!$helper instanceof Zend_View_Helper_Navigation_Helper) {

184 if ($strict) {

185 require_once 'Zend/View/Exception.php';

186 $e = new Zend_View_Exception(sprintf(

187 'Proxy helper "%s" is not an instance of ' .

class.event.php (https://github.com/nitcalicut/Sockmonkey.git) PHP · 229 lines

1 <?php

2 /*

3 This class contains functions to store, modify, access the event details.

6

7 */

8 include_once 'database.php';

9

10 class event {

15 $i = func_num_args();

16 if($i==1)

17 call_user_func_array(array($this,'viewEvent'),$a);

18 if($i==10)

19 call_user_func_array(array($this,'createEvent'),$a);

SchemaBuilder.php (https://gitlab.com/brucealdridge/yii2) PHP · 465 lines

1 <?php

2 /**

3 * @link http://www.yiiframework.com/

16 * For example you may use the following code inside your migration files:

17 *

18 * ```php

19 * $this->createTable('table', [

20 * 'name' => Schema::string(64)->notNull(),

298 * Calls the named method which is not a class method.

299 *

300 * Do not call this method directly as it is a PHP magic method that

301 * will be implicitly called when an unknown method is being invoked.

302 *

309 {

310 if ($name === 'default') {

311 return call_user_func_array([$this, '_default'], $arguments);

312 }

313

Date.php (https://github.com/ewandor/horde.git) PHP · 194 lines

1 <?php

2 /**

3 * A decorator around an Ansel_Gallery to allow multiple date groupings

72 case 'getDate':

73 case 'setDate':

74 return call_user_func_array(array($this->_modeHelper, $method), $args);

75 default:

76 return call_user_func_array(array($this->_gallery, $method), $args);

Result.php (https://github.com/MontmereLimited/zf2.git) PHP · 299 lines

1 <?php

2 /**

3 * Zend Framework

176 * Mysqli requires you to bind variables to the extension in order to

177 * get data out. These values have to be references:

178 * @see http://php.net/manual/en/mysqli-stmt.bind-result.php

179 *

180 * @throws \RuntimeException

196 $refs[$i] = &$f;

197 }

198 call_user_func_array(array($this->resource, 'bind_result'), $this->statementBindValues['values']);

199 }

200

AbstractFeed.php (https://github.com/gonzalobenitez/zf2.git) PHP · 319 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: FeedAbstract.php 22092 2010-05-04 12:50:51Z padraic $

20 */

21

270 foreach ($this->_extensions as $extension) {

271 if (method_exists($extension, $method)) {

272 return call_user_func_array(array($extension, $method), $args);

273 }

274 }

FilesystemManager.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 304 lines

1 <?php

2

3 namespace Illuminate\Filesystem;

300 public function __call($method, $parameters)

301 {

302 return call_user_func_array([$this->disk(), $method], $parameters);

303 }

304 }

GridFieldConfig.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 235 lines

1 <?php

2 /**

3 * Encapsulates a collection of components following the {@link GridFieldComponent} interface.

26 */

27 public static function create() {

28 return call_user_func_array('Object::create', array_merge(

29 array(get_called_class()),

30 func_get_args()

AbstractPaginator.php (https://gitlab.com/judielsm/Handora) PHP · 487 lines

1 <?php

2

3 namespace Illuminate\Pagination;

288 {

289 if (isset(static::$currentPathResolver)) {

290 return call_user_func(static::$currentPathResolver);

291 }

292

315 {

316 if (isset(static::$currentPageResolver)) {

317 return call_user_func(static::$currentPageResolver, $pageName);

318 }

319

473 public function __call($method, $parameters)

474 {

475 return call_user_func_array([$this->getCollection(), $method], $parameters);

476 }

477

Menu.php (https://github.com/Basti-sama/Bengine.git) PHP · 251 lines

1 <?php

2 /**

3 * Menu class: Generates the menu by XML.

5 * @package Bengine

6 * @copyright Copyright protected by / Urheberrechtlich geschützt durch "Sebastian Noll" <snoll@4ym.org>

7 * @version $Id: Menu.php 8 2010-10-17 20:55:04Z secretchampion $

8 */

9

203 break;

204 case "callback":

205 return call_user_func_array($param["function"], $param["arguments"]);

206 break;

207 }

EsiTest.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 220 lines

1 <?php

2

3 /*

16 use Symfony\Component\HttpFoundation\Response;

17

18 class EsiTest extends \PHPUnit_Framework_TestCase

19 {

20 public function testHasSurrogateEsiCapability()

101 $esi->process($request, $response);

102

103 $this->assertEquals('foo <?php echo $this->esi->handle($this, \'...\', \'alt\', true) ?>'."\n", $response->getContent());

104 $this->assertEquals('ESI', $response->headers->get('x-body-eval'));

105

123 $esi->process($request, $response);

124

125 $this->assertEquals('foo <?php echo "<?"; ?>php die("foo"); ?><?php echo "<%"; ?>= "lala" %>', $response->getContent());

126 }

127

Call.php (https://bitbucket.org/mrajoelisolo/ci_twig.git) PHP · 178 lines

1 <?php

2

3 /*

23 } else {

24 $type = ucfirst($this->getAttribute('type'));

25 $compiler->raw(sprintf('call_user_func_array($this->env->get%s(\'%s\')->getCallable(), array', $type, $this->getAttribute('name')));

26 $closingParenthesis = true;

27 }

filter.php (https://gitlab.com/Bartwillemsen/aurora-framework) PHP · 225 lines

1 <?php

2 namespace Aurora\Routing;

3

50 $parameters = array_merge($pass, $parameters);

51

52 $response = call_user_func_array(static::$filters[$filter], $parameters);

53

54 // "Before" filters may override the request cycle. For example,

RedisClusterHashStrategy.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 291 lines

1 <?php

2

3 /*

271

272 if (!isset($hash) && isset($this->commands[$cmdID = $command->getId()])) {

273 $key = call_user_func($this->commands[$cmdID], $command);

274

275 if (isset($key)) {

Abstract.php (https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 176 lines

1 <?php

2 /**

3 * Tine 2.0

172 }

173

174 return call_user_func(array($_controllerName, 'getInstance'));

175 }

176 }

Storage.php (https://github.com/erochest/Omeka.git) PHP · 183 lines

1 <?php

2 /**

3 * Omeka

65

66 if (is_callable($callback)) {

67 return call_user_func_array($callback, $arguments);

68 } else {

69 throw new Omeka_Storage_Exception(sprintf(self::MSG_NO_SUCH_METHOD, $name));

extprofile_function.h (https://github.com/tmjnaid/hiphop-php.git) C Header · 142 lines

1 /*

2 +----------------------------------------------------------------------+

3 | HipHop for PHP |

4 +----------------------------------------------------------------------+

5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |

6 | Copyright (c) 1997-2010 The PHP Group |

7 +----------------------------------------------------------------------+

8 | This source file is subject to version 3.01 of the PHP license, |

9 | that is bundled with this package in the file LICENSE, and is |

10 | available through the world-wide-web at the following url: |

11 | http://www.php.net/license/3_01.txt |

12 | If you did not receive a copy of the PHP license and are unable to |

13 | obtain it through the world-wide-web, please send a note to |

14 | license@php.net so we can mail you a copy immediately. |

15 +----------------------------------------------------------------------+

16 */

Process.php (https://github.com/l3l0/BehatExamples.git) PHP · 264 lines

1 <?php

2

3 /*

14 /**

15 * Process is a thin wrapper around proc_* functions to ease

16 * start independent PHP processes.

17 *

18 * @author Fabien Potencier <fabien.potencier@symfony-project.com>

46 {

47 if (!function_exists('proc_open')) {

48 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');

49 }

50

70 * the process is finished via the getOutput() and getErrorOutput() methods.

71 *

72 * @param Closure|string|array $callback A PHP callback to run whenever there is some

73 * output available on STDOUT or STDERR

74 *

class-wp-walker.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 425 lines

1 <?php

2 /**

3 * A class for displaying various tree-like structures.

144

145 $cb_args = array_merge( array(&$output, $element, $depth), $args);

146 call_user_func_array(array($this, 'start_el'), $cb_args);

147

148 // descend only when the depth is right and there are childrens for this element

155 //start the child delimiter

156 $cb_args = array_merge( array(&$output, $depth), $args);

157 call_user_func_array(array($this, 'start_lvl'), $cb_args);

158 }

159 $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output );

165 //end the child delimiter

166 $cb_args = array_merge( array(&$output, $depth), $args);

167 call_user_func_array(array($this, 'end_lvl'), $cb_args);

168 }

169

Dispatcher.php (https://gitlab.com/madwanz64/laravel) PHP · 224 lines

1 <?php

2

3 namespace Illuminate\Bus;

146 $connection = $command->connection ?? null;

147

148 $queue = call_user_func($this->queueResolver, $connection);

149

150 if (! $queue instanceof Queue) {

Fault.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Response.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 223 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Response.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

63 {

64 if (!is_callable($callback)) {

65 require_once 'Zend/Tool/Framework/Client/Exception.php';

66 throw new Zend_Tool_Framework_Client_Exception('The callback provided is not callable');

67 }

96

97 if ($this->_callback !== null) {

98 call_user_func($this->_callback, $content);

99 }

100

Navigation.php (https://github.com/jtai/zf2.git) PHP · 374 lines

1 <?php

2 /**

3 * Zend Framework

138 // check if call should proxy to another helper

139 if ($helper = $this->findHelper($method, false)) {

140 return call_user_func_array($helper, $arguments);

141 }

142

Abstract.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 418 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Locale

24 */

25 #require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 #require_once 'Zend/Locale/Math.php';

31

32 /**

33 * @see Zend_Locale_Format

34 */

35 #require_once 'Zend/Locale/Format.php';

36

37 /**

TextDataTest.php (https://gitlab.com/Iftekhar_ramim/stock_management) PHP · 365 lines

13 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');

14 }

15 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

16

17 PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);

169 $args = func_get_args();

170 $expectedResult = array_pop($args);

171 $result = call_user_func_array(array('PHPExcel_Calculation_TextData','STRINGLENGTH'),$args);

172 $this->assertEquals($expectedResult, $result);

173 }

201 $args = func_get_args();

202 $expectedResult = array_pop($args);

203 $result = call_user_func_array(array('PHPExcel_Calculation_TextData','SEARCHSENSITIVE'),$args);

204 $this->assertEquals($expectedResult, $result);

205 }

RedisQueue.php (https://gitlab.com/ealexis.t/trends) PHP · 319 lines

1 <?php

2

3 namespace Illuminate\Queue;

236 protected function pushExpiredJobsOntoNewQueue($transaction, $to, $jobs)

237 {

238 call_user_func_array([$transaction, 'rpush'], array_merge([$to], $jobs));

239 }

240

Queue.php (https://gitlab.com/jjpa2018/dashboard) PHP · 398 lines

1 <?php

2

3 namespace Illuminate\Queue;

283 if (! empty(static::$createPayloadCallbacks)) {

284 foreach (static::$createPayloadCallbacks as $callback) {

285 $payload = array_merge($payload, call_user_func(

286 $callback, $this->getConnectionName(), $queue, $payload

287 ));

binder.php (https://gitlab.com/alexprowars/bitrix) PHP · 442 lines

1 <?php

2

3 namespace Bitrix\Main\Engine\AutoWire;

255

256 /**

257 * Returns list of method params which possible use in call_user_func_array().

258 * @return array

259 */

class-wp-rest-meta-fields.php (https://gitlab.com/code26/selah) PHP · 350 lines

1 <?php

2

3 /**

78 protected function prepare_value_for_response( $value, $request, $args ) {

79 if ( ! empty( $args['prepare_callback'] ) ) {

80 $value = call_user_func( $args['prepare_callback'], $value, $request, $args );

81 }

82

loader.php (https://gitlab.com/dadangnh/sb1-bon) PHP · 193 lines

1 <?php

2 final class Loader {

3 protected $registry;

43

44 if (!$this->registry->has('model_' . str_replace(array('/', '-', '.'), array('_', '', ''), $route))) {

45 $file = DIR_APPLICATION . 'model/' . $route . '.php';

46 $class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $route);

47

102 $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);

103

104 $file = DIR_SYSTEM . 'library/' . $route . '.php';

105 $class = str_replace('/', '\\', $route);

106

115

116 public function helper($route) {

117 $file = DIR_SYSTEM . 'helper/' . preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route) . '.php';

118

119 if (is_file($file)) {

Fault.php (https://github.com/kervin/kyzstudio.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 #require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

TestCommon.php (https://github.com/apinstein/jqjobs.git) PHP · 204 lines

1 <?php

2

3 require_once dirname(__FILE__) . '/../src/JQJobs/JQJobs.php';

4 const JQJOB_ID_DOES_NOT_EXIST = 999999;

5

6 $composerAutoloader = dirname(__FILE__) . '/../vendor/autoload.php';

7 if (file_exists($composerAutoloader))

8 {

13 {

14 ini_set('include_path',

15 dirname(__FILE__) . "/../externals/pear/php"

16 . ":" . dirname(__FILE__) . "/../lib/propel"

17 );

18 require_once 'propel/Propel.php';

19 }

20

FilterTest.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 151 lines

1 <?php

2

3 /*

66 // filter as an anonymous function

67 $node = $this->createFilter(new Twig_Node_Expression_Constant('foo', 1), 'anonymous');

68 $tests[] = array($node, 'call_user_func_array($this->env->getFilter(\'anonymous\')->getCallable(), array("foo"))');

69

70 // needs environment

filter.php (https://bitbucket.org/Maron1/taqman.git) PHP · 329 lines

1 <?php namespace Laravel\Routing;

2

3 use Closure;

117 // parameters. If parameters are present, we will merge them with the

118 // parameters that were given to the method.

119 $response = call_user_func_array($callback, array_merge($pass, $parameters));

120

121 // "Before" filters may override the request cycle. For example, an auth

233 if ($this->parameters instanceof Closure)

234 {

235 $this->parameters = call_user_func($this->parameters);

236 }

237

module.php (https://github.com/ismanramadhan/Panada.git) PHP · 309 lines

1 <?php defined('THISPATH') or die('Can\'t access directly!');

2 /**

3 * Module class parent.

49 return false;

50

51 $file = GEAR . 'module/'. $module_name . '/' . $component . '/' . $class_name .'.php';

52

53 include_once $file;

116

117 $prefix = $arr[2];

118 $file_path = GEAR . $file_path.'.php';

119

120 if( ! file_exists( $file_path ) )

163 public function __call($name, $arguments = array() ){

164

165 return call_user_func_array( array($this->class_inctance, $name), $arguments );

166 }

167

Default.php (https://bitbucket.org/acidel/buykoala.git) PHP · 310 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $

20 */

21

86 * @see Zend_Ldap_Exception

87 */

88 #require_once 'Zend/Ldap/Exception.php';

89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');

90 }

218 break;

219 default:

220 $attrName = call_user_func($this->_attributeNameTreatment, $name);

221 break;

222 }

Template.php (https://github.com/ot2sen/Molajo.git) PHP · 363 lines

1 <?php

2

3 /*

93 $b = $blocks;

94 unset($b[$name]);

95 call_user_func($blocks[$name], $context, $b);

96 } elseif (isset($this->blocks[$name])) {

97 call_user_func($this->blocks[$name], $context, $blocks);

353 }

354

355 $ret = call_user_func_array(array($object, $method), $arguments);

356

357 if ($object instanceof Twig_TemplateInterface) {

Query.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 418 lines

1 <?php

2

3 /**

25 * Zend_Gdata_App_Util

26 */

27 require_once 'Zend/Gdata/App/Util.php';

28

29 /**

398 $method = 'get'.ucfirst($name);

399 if (method_exists($this, $method)) {

400 return call_user_func(array(&$this, $method));

401 } else {

402 require_once 'Zend/Gdata/App/Exception.php';

409 $method = 'set'.ucfirst($name);

410 if (method_exists($this, $method)) {

411 return call_user_func(array(&$this, $method), $val);

412 } else {

413 require_once 'Zend/Gdata/App/Exception.php';

TypeLoader.php (https://github.com/sidealice/zf2.git) PHP · 197 lines

1 <?php

2 /**

3 * Zend Framework

30 * Loads a local class and executes the instantiation of that class.

31 *

32 * @todo PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace

33 * @uses Zend\Amf\Exception

34 * @uses Zend\Amf\Value\Messaging\AcknowledgeMessage

121

122 /**

123 * Map PHP class names to ActionScript class names

124 *

125 * Allows users to map the class names of there action script classes

126 * to the equivelent php class name. Used in deserialization to load a class

127 * and serialiation to set the class name of the returned object.

128 *

Process.php (https://github.com/ad2joe/php-framework-benchmarks.git) PHP · 264 lines

1 <?php

2

3 namespace Symfony\Component\Process;

14 /**

15 * Process is a thin wrapper around proc_* functions to ease

16 * start independent PHP processes.

17 *

18 * @author Fabien Potencier <fabien.potencier@symfony-project.com>

46 {

47 if (!function_exists('proc_open')) {

48 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');

49 }

50

70 * the process is finished via the getOutput() and getErrorOutput() methods.

71 *

72 * @param Closure|string|array $callback A PHP callback to run whenever there is some

73 * output available on STDOUT or STDERR

74 *

XMLProcessor.php (https://github.com/markn86/moodle.git) PHP · 148 lines

1 <?php

2

3 namespace Box\Spout\Reader\Common;

62

63 /**

64 * Because the callback can be a "protected" function, we don't want to use call_user_func() directly

65 * but instead invoke the callback using Reflection. This allows the invocation of "protected" functions.

66 * Since some functions can be called a lot, we pre-process the callback to only return the elements that

Fault.php (https://bitbucket.org/Sinfin/pawtucket.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Response.php (https://bitbucket.org/Sinfin/pawtucket.git) PHP · 223 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

63 {

64 if (!is_callable($callback)) {

65 require_once 'Zend/Tool/Framework/Client/Exception.php';

66 throw new Zend_Tool_Framework_Client_Exception('The callback provided is not callable');

67 }

96

97 if ($this->_callback !== null) {

98 call_user_func($this->_callback, $content);

99 }

100

Navigation.php (https://github.com/zucchi/zf2.git) PHP · 343 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

121 $helper->setServiceLocator($this->getServiceLocator());

122 }

123 return call_user_func_array($helper, $arguments);

124 }

125

class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines

1 <?php

2 /**

3 * Control the include, exclude condition for meta boxes

273 * This is required for MB User Meta extension.

274 */

275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {

276 // If edit other's profile, check edited user.

277 $user_id = intval( $_REQUEST['user_id'] );

282

283 return ! empty( $roles );

284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {

285 // If edit profile, check current user.

286 return self::check_user_role( $roles );

297 */

298 protected static function check_edited_user_id( $user_ids ) {

299 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {

300 // If edit other's profile, check edited user.

301 $user_id = intval( $_REQUEST['user_id'] );

AsyncStream.php (https://github.com/Erika31/phpdaemon.git) PHP · 524 lines

1 <?php

2

3 /**

432

433 if ($this->onEOF !== NULL) {

434 call_user_func($this->onEOF, $this);

435 }

436

468 }

469

470 call_user_func($this->onReadData, $this, $data);

471 }

472

474 }

475 elseif ($this->onRead !== NULL) {

476 call_user_func($this->onRead, $this);

477 }

478 }

TraceableEventDispatcher.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 372 lines

1 <?php

2

3 /*

214 public function __call($method, $arguments)

215 {

216 return call_user_func_array(array($this->dispatcher, $method), $arguments);

217 }

218

Improved.php (https://github.com/maniator/SmallFry.git) PHP · 236 lines

1 <?php

2 namespace SmallFry\lib;

3 /**

202 }

203 if($this->debug) DebugLogger::displayLog("bind_param " . print_r($prepare, true), true, true);

204 call_user_func_array(array($this, "bind_param"), $prepare);

205 }

206

218 $bindVarArray[] = &$this->results[$columnName];

219 }

220 call_user_func_array(array($this, 'bind_result'), $bindVarArray);

221 }

222 $this->varsBound = true;

EachPromise.php (https://github.com/livinglab/openlab.git) PHP · 255 lines

1 <?php

2

3 namespace GuzzleHttp\Promise;

84 /**

85 * @psalm-suppress NullReference

86 * @phpstan-ignore-next-line

87 */

88 $this->aggregate->reject($e);

90 /**

91 * @psalm-suppress NullReference

92 * @phpstan-ignore-next-line

93 */

94 $this->aggregate->reject($e);

97 /**

98 * @psalm-suppress NullableReturnStatement

99 * @phpstan-ignore-next-line

100 */

101 return $this->aggregate;

Functions.php (https://github.com/markn86/moodle.git) PHP · 337 lines

1 <?php

2

3 namespace Matrix;

328 {

329 $array = array_values(array_merge([null], $matrix->toArray()));

330 $grid = call_user_func_array(

331 'array_map',

332 $array

BasePayment.php (https://github.com/sonata-project/ecommerce.git) PHP · 228 lines

1 <?php

2

3 declare(strict_types=1);

223

224 foreach (explode("\n", (string) $transaction->getInformation()) as $message) {

225 \call_user_func([$this->logger, $method], $message);

226 }

227 }

AbstractSequence.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 360 lines

1 <?php

2

3 /*

17 */

18

19 namespace PhpCollection;

20

21 use PhpOption\Some;

22 use PhpOption\None;

23 use PhpOption\Option;

116 $newElements = array();

117 foreach ($this->elements as $element) {

118 if ($booleanKeep !== call_user_func($callable, $element)) {

119 continue;

120 }

table.php (https://bitbucket.org/Maron1/taqman.git) PHP · 462 lines

1 <?php namespace Laravel\Database\Schema;

2

3 use Laravel\Fluent;

454 {

455 array_unshift($parameters, $this);

456 return call_user_func_array(static::$macros[$method], $parameters);

457 }

458

Repository.php (https://bitbucket.org/larryg/powerhut.git) PHP · 414 lines

1 <?php namespace Illuminate\Config;

2

3 use Closure;

175 $callback = $this->afterLoad[$namespace];

176

177 return call_user_func($callback, $this, $group, $items);

178 }

179

custom_block.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 215 lines

1 <?php

2 /**

3 * File containing the ezcTemplateCustomBlockSourceToTstParser class

42 foreach ( $this->parser->template->configuration->customBlocks as $class )

43 {

44 $def = call_user_func( array( $class, "getCustomBlockDefinition" ), $name );

45

46 if ( $def instanceof ezcTemplateCustomBlockDefinition )

Navigation.php (https://github.com/Zefiryn/graduationprojects.git) PHP · 338 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Navigation.php 23953 2011-05-03 05:47:39Z ralph $

21 */

22

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

126 // check if call should proxy to another helper

127 if ($helper = $this->findHelper($method, false)) {

128 return call_user_func_array(array($helper, $method), $arguments);

129 }

130

class-wp-walker.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 397 lines

1 <?php

2 /**

3 * A class for displaying various tree-like structures.

127 $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );

128 $cb_args = array_merge( array(&$output, $element, $depth), $args);

129 call_user_func_array(array($this, 'start_el'), $cb_args);

130

131 $id = $element->$id_field;

140 //start the child delimiter

141 $cb_args = array_merge( array(&$output, $depth), $args);

142 call_user_func_array(array($this, 'start_lvl'), $cb_args);

143 }

144 $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output );

150 //end the child delimiter

151 $cb_args = array_merge( array(&$output, $depth), $args);

152 call_user_func_array(array($this, 'end_lvl'), $cb_args);

153 }

154

url.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 342 lines

46 '/foo' => "/wp-admin/foo",

47 '/foo/' => "/wp-admin/foo/",

48 'foo.php' => "/wp-admin/foo.php",

49 '/foo.php' => "/wp-admin/foo.php",

50 '/foo.php?bar=1' => "/wp-admin/foo.php?bar=1",

51 );

52 $https = array('on', 'off');

93 'foo.php' => "/foo.php",

94 '/foo.php' => "/foo.php",

95 '/foo.php?bar=1' => "/foo.php?bar=1",

326

327 foreach ( $functions as $function ) {

328 $this->assertEquals( call_user_func( $function, '/' ) . '../',

329 call_user_func( $function, '../' ) );

BaseCiniveles.php (https://github.com/cidesa/siga-universitario.git) PHP · 505 lines

1 <?php

2

3

210 }elseif($prefijo=='set'){

211 if(isset($this->$metodo)) $this->$metodo = $a[0];

212 }else call_user_func_array($m, $a);

213

214 }

325

326

327 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)

328 {

329 $pos = CinivelesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);

362

363

364 public function toArray($keyType = BasePeer::TYPE_PHPNAME)

365 {

366 $keys = CinivelesPeer::getFieldNames($keyType);

TraceableEventDispatcher.php (https://github.com/Faianca/symfony.git) PHP · 202 lines

1 <?php

2

3 /*

80 $this->called[$eventName.'.'.$info['pretty']] = $info;

81

82 call_user_func($listener, $event);

83

84 if ($event->isPropagationStopped()) {

Grouped.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 152 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

61 *

62 * @return \Magento\Catalog\Model\Product

63 * @SuppressWarnings(PHPMD.UnusedFormalParameter)

64 * @SuppressWarnings(PHPMD.CyclomaticComplexity)

65 * @SuppressWarnings(PHPMD.NPathComplexity)

66 */

67 public function beforeInitializeLinks(

111 // Check if setter exists

112 if (method_exists($productLinkExtension, $setterName)) {

113 call_user_func([$productLinkExtension, $setterName], $value);

114 }

115 }

Default.php (https://github.com/Unplagged/unplagged.git) PHP · 310 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

86 * @see Zend_Ldap_Exception

87 */

88 require_once 'Zend/Ldap/Exception.php';

89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');

90 }

218 break;

219 default:

220 $attrName = call_user_func($this->_attributeNameTreatment, $name);

221 break;

222 }

ByteArray.php (https://bitbucket.org/tobmaster/carica-io.git) PHP · 326 lines

1 <?php

2

3 namespace Carica\Io {

64 */

65 public function __toString() {

66 return call_user_func_array('pack', array_merge(array("C*"), $this->_bytes));

67 }

68

AppInstance.php (https://github.com/max-shamaev/phpdaemon.git) PHP · 277 lines

1 <?php

2

3 /**

91 public function RPCall($method, $args) {

92 if ($this->enableRPC && is_callable(array($this, $method))) {

93 return call_user_func_array(array($this, $method), $args);

94 }

95 }

Router.php (https://github.com/klj613/klj613micromvc.git) PHP · 207 lines

1 <?php

2 /**

3 * This file is part of klj613's micro MVC framework made out of boredom.

51 $instance = DIFactory::getController($realClass);

52

53 call_user_func_array(array($instance, $method), $params);

54 }

55

genericWebSocketServer.php (https://github.com/Erika31/phpdaemon.git) PHP · 267 lines

1 <?php

2

3 class genericWebSocketServer extends AsyncServer

249 if ($this->timeout_cb !== NULL)

250 {

251 call_user_func($this->timeout_cb) ;

252 }

253

Hooks.php (https://github.com/osarrat/sigmah-website.git) PHP · 173 lines

1 <?php

2 /*

3 * CKFinder

111

112 if (is_callable($callback)) {

113 $ret = call_user_func_array($callback, $args);

114 }

115 else {

sfFormPropel.class.php (https://github.com/bheneka/gitta.git) PHP · 311 lines

119 try

120 {

121 $method = sprintf('update%sColumn', call_user_func(array(constant(get_class($this->getObject()).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME));

122 }

123 catch (Exception $e)

230 if (!$values[$field])

231 {

232 $column = call_user_func(array(constant(get_class($this->getObject()).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME);

233 $getter = 'get'.$column;

234

259 }

260

261 $column = call_user_func(array(constant(get_class($this->getObject()).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME);

262 $getter = 'get'.$column;

263

Navigation.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 338 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Navigation.php 23953 2011-05-03 05:47:39Z ralph $

21 */

22

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

126 // check if call should proxy to another helper

127 if ($helper = $this->findHelper($method, false)) {

128 return call_user_func_array(array($helper, $method), $arguments);

129 }

130

View_Register.php (https://github.com/livinglab/openlab.git) PHP · 201 lines

1 <?php

2 /**

3 * The View registration facade.

71 $this->add_filters();

72

73 $asset_registration_object = call_user_func( $this->class . '::get_asset_origin', $this->slug );

74 call_user_func( $this->class . '::register_assets', $asset_registration_object );

HtmlBuilder.php (https://gitlab.com/oytunistrator/92five) PHP · 409 lines

1 <?php namespace Illuminate\Html;

2

3 use Illuminate\Routing\UrlGenerator;

75 $attributes['src'] = $this->url->asset($url);

76

77 return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;

78 }

79

93 $attributes['href'] = $this->url->asset($url);

94

95 return '<link'.$this->attributes($attributes).'>'.PHP_EOL;

96 }

97

401 if (isset($this->macros[$method]))

402 {

403 return call_user_func_array($this->macros[$method], $parameters);

404 }

405

sfServiceContainerBuilder.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 351 lines

1 <?php

2

3 /*

16 * @subpackage dependency_injection

17 * @author Fabien Potencier <fabien.potencier@symfony-project.com>

18 * @version SVN: $Id: sfServiceContainerBuilder.php 269 2009-03-26 20:39:16Z fabien $

19 */

20 class sfServiceContainerBuilder extends sfServiceContainer

242 if (null !== $definition->getConstructor())

243 {

244 $service = call_user_func_array(array($this->resolveValue($definition->getClass()), $definition->getConstructor()), $arguments);

245 }

246 else

251 foreach ($definition->getMethodCalls() as $call)

252 {

253 call_user_func_array(array($service, $call[0]), $this->resolveServices($this->resolveValue($call[1])));

254 }

255

Consumer.php (https://bitbucket.org/netglue/zf-1.12-release.git) PHP · 279 lines

1 <?php

2 /**

3 * Zend Framework

21

22 /** Zend_Oauth */

23 require_once 'Zend/Oauth.php';

24

25 /** Zend_Uri */

26 require_once 'Zend/Uri.php';

27

28 /** Zend_Oauth_Http_RequestToken */

29 require_once 'Zend/Oauth/Http/RequestToken.php';

30

31 /** Zend_Oauth_Http_UserAuthorization */

Cache.php (https://gitlab.com/kubinos/writeoff) PHP · 376 lines

1 <?php

2

3 /**

95 if ($data === NULL && $fallback) {

96 return $this->save($key, function (& $dependencies) use ($fallback) {

97 return call_user_func_array($fallback, [& $dependencies]);

98 });

99 }

127 $this->storage->lock($key);

128 try {

129 $data = call_user_func_array($data, [& $dependencies]);

130 } catch (\Throwable $e) {

131 $this->storage->remove($key);

343 {

344 foreach ($callbacks as $callback) {

345 if (!call_user_func_array(array_shift($callback), $callback)) {

346 return FALSE;

347 }

Response.php (https://gitlab.com/fabiorf/curso-zend1-aula1) PHP · 223 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

63 {

64 if (!is_callable($callback)) {

65 require_once 'Zend/Tool/Framework/Client/Exception.php';

66 throw new Zend_Tool_Framework_Client_Exception('The callback provided is not callable');

67 }

96

97 if ($this->_callback !== null) {

98 call_user_func($this->_callback, $content);

99 }

100

Fault.php (https://gitlab.com/fabiorf/curso-zend1-aula1) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

DeepCopy.php (https://gitlab.com/codegod/evricommunity) PHP · 246 lines

1 <?php

2

3 namespace DeepCopy;

237 {

238 foreach ($elements as $element) {

239 if (call_user_func($predicate, $element)) {

240 return $element;

241 }

Object.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 250 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Object.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $

20 */

21

22

23 /** Zend_Pdf_Element */

24 require_once 'Zend/Pdf/Element.php';

25

26 /** Zend_Pdf_ElementFactory */

27 require_once 'Zend/Pdf/ElementFactory.php';

28

29

BuiltinPluginTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 143 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

9 namespace Magento\PageCache\Test\Unit\Model\Controller\Result;

10

11 class BuiltinPluginTest extends \PHPUnit_Framework_TestCase

12 {

13 /**

27

28 /**

29 * @var \Magento\Framework\App\Response\Http|\PHPUnit_Framework_MockObject_MockObject

30 */

31 protected $response;

32

33 /**

34 * @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject

35 */

36 protected $registry;

Fault.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 // require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

ArrayCollection.php (https://github.com/hhamon/Propel2.git) PHP · 217 lines

1 <?php

2

3 /**

94 foreach ($this as $key => $element) {

95 $key = $usePrefix ? ($this->getModel() . '_' . $key) : $key;

96 $ret[$key] = call_user_func($callable, array_values($element));

97 }

98

Arr.php (https://gitlab.com/ducnv/BTL_CN_WEB) PHP · 521 lines

1 <?php

2

3 namespace Illuminate\Support;

52

53 foreach ($array as $key => $value) {

54 list($innerKey, $innerValue) = call_user_func($callback, $key, $value);

55

56 $results[$innerKey] = $innerValue;

161

162 foreach ($array as $key => $value) {

163 if (call_user_func($callback, $key, $value)) {

164 return $value;

165 }

512

513 foreach ($array as $key => $value) {

514 if (call_user_func($callback, $key, $value)) {

515 $filtered[$key] = $value;

516 }

Arr.php (https://gitlab.com/kakirigi/support) PHP · 521 lines

1 <?php

2

3 namespace Kakirigi\Support;

52

53 foreach ($array as $key => $value) {

54 list($innerKey, $innerValue) = call_user_func($callback, $key, $value);

55

56 $results[$innerKey] = $innerValue;

161

162 foreach ($array as $key => $value) {

163 if (call_user_func($callback, $key, $value)) {

164 return $value;

165 }

512

513 foreach ($array as $key => $value) {

514 if (call_user_func($callback, $key, $value)) {

515 $filtered[$key] = $value;

516 }

text.php (https://bitbucket.org/asosso/joomla31.git) PHP · 333 lines

1 <?php

2 /**

3 * @package Joomla.Platform

31 *

32 * Examples:

33 * <script>alert(Joomla.JText._('<?php echo JText::_("JDEFAULT", array("script"=>true));?>'));</script>

34 * will generate an alert message containing 'Default'

35 * <?php echo JText::_("JDEFAULT");?> it will generate a 'Default' string

101 *

102 * Examples:

103 * <?php echo JText::alt("JALL","language");?> it will generate a 'All' string in English but a "Toutes" string in French

104 * <?php echo JText::alt("JALL","module");?> it will generate a 'All' string in English but a "Tous" string in French

142 *

143 * Examples:

144 * <script>alert(Joomla.JText._('<?php echo JText::plural("COM_PLUGINS_N_ITEMS_UNPUBLISHED", 1, array("script"=>true));?>'));</script>

145 * will generate an alert message containing '1 plugin successfully disabled'

146 * <?php echo JText::plural("COM_PLUGINS_N_ITEMS_UNPUBLISHED", 1);?> it will generate a '1 plugin successfully disabled' string

Reference.php (https://github.com/frhumanes/PLM.git) PHP · 277 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Reference.php 20096 2010-01-06 02:05:09Z bkarwin $

20 */

21

22

23 /** Internally used classes */

24 require_once 'Zend/Pdf/Element/Null.php';

25

26

27 /** Zend_Pdf_Element */

28 require_once 'Zend/Pdf/Element.php';

29

30 /**

Fault.php (https://github.com/grandison/budo16.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 16208 2009-06-21 19:19:26Z thomas $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 // require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Cache.php (https://github.com/massiveart/ZF-ZOOLU.git) PHP · 256 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Controller_Action_Helper_Abstract

24 */

25 require_once 'Zend/Controller/Action/Helper/Abstract.php';

26

27 /**

28 * @see Zend_Controller_Action_Exception

29 */

30 require_once 'Zend/Controller/Action/Exception.php';

31

32 /**

33 * @see Zend_Cache_Manager

34 */

35 require_once 'Zend/Cache/Manager.php';

36

37 /**

PluginManager.class.php (https://github.com/cj/Project-Pier.git) PHP · 183 lines

1 <?php

2 /**

3 * PluginManager

15 * previous filters on the same hook.

16 *

17 * @see application/plugins.php

18 *

19 * @version 1.0

39 // now load each plugin

40 foreach(array_keys($activated_plugins) as $name) {

41 include_once 'plugins/'.$name.'/init.php';

42 } // foreach

43

100 if ( !is_null($functions) ) {

101 foreach($functions as $f) {

102 trace(__FILE__,"call_user_func_array({$f['function']},..");

103 call_user_func_array($f['function'], array_slice($args, 0, (int)$f['accepted_args']));

RedisQueue.php (https://gitlab.com/techniconline/kmc) PHP · 317 lines

1 <?php namespace Illuminate\Queue;

2

3 use Illuminate\Redis\Database;

233 protected function pushExpiredJobsOntoNewQueue($transaction, $to, $jobs)

234 {

235 call_user_func_array([$transaction, 'rpush'], array_merge([$to], $jobs));

236 }

237

BaseMediaSource.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 179 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: BaseMediaSource.php 23775 2011-03-01 17:25:24Z ralph $

22 */

23

25 * @see Zend_Gdata_App_MediaSource

26 */

27 // // // // // // // // require_once 'Zend/Gdata/App/MediaSource.php';

28

29 /**

113 $method = 'get'.ucfirst($name);

114 if (method_exists($this, $method)) {

115 return call_user_func(array(&$this, $method));

116 } else if (property_exists($this, "_${name}")) {

117 return $this->{'_' . $name};

FlashMessenger.php (https://github.com/tmccormi/openemr.git) PHP · 353 lines

1 <?php

2 /**

3 * @link http://github.com/zendframework/zend-view for the canonical source repository

95 {

96 $flashMessenger = $this->getPluginFlashMessenger();

97 return call_user_func_array([$flashMessenger, $method], $argv);

98 }

99

DirectoryUtil.class.php (https://github.com/KomHunter2/WCF.git) PHP · 339 lines

1 <?php

2 namespace wcf\util;

3 use wcf\system\exception\SystemException;

8 * @author Tim Düsterhus

9 * @copyright 2011 Tim Düsterhus

10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>

11 * @package com.woltlab.wcf

12 * @subpackage util

264 $files = $this->getFileObjects(self::SORT_NONE, $pattern);

265 foreach ($files as $filename => $obj) {

266 call_user_func($callback, $filename, $obj);

267 }

268

Fault.php (https://bitbucket.org/baruffaldi/webapp-urltube.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 9102 2008-03-30 20:27:03Z thomas $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Fault.php (https://github.com/su2921iw/ma3.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 16208 2009-06-21 19:19:26Z thomas $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Fault.php (https://bitbucket.org/sauron07/friend_social.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 24594 2012-01-05 21:27:01Z matthew $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 //require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Consumer.php (https://bitbucket.org/acidel/buykoala.git) PHP · 279 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Consumer.php 23170 2010-10-19 18:29:24Z mabe $

20 */

21

22 /** Zend_Oauth */

23 #require_once 'Zend/Oauth.php';

24

25 /** Zend_Uri */

26 #require_once 'Zend/Uri.php';

27

28 /** Zend_Oauth_Http_RequestToken */

Response.php (https://bitbucket.org/hamidrezas/melobit.git) PHP · 223 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Response.php 24594 2012-01-05 21:27:01Z matthew $

21 */

22

63 {

64 if (!is_callable($callback)) {

65 require_once 'Zend/Tool/Framework/Client/Exception.php';

66 throw new Zend_Tool_Framework_Client_Exception('The callback provided is not callable');

67 }

96

97 if ($this->_callback !== null) {

98 call_user_func($this->_callback, $content);

99 }

100

Fault.php (https://bitbucket.org/hamidrezas/melobit.git) PHP · 201 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Fault.php 24594 2012-01-05 21:27:01Z matthew $

21 */

22

24 * Zend_XmlRpc_Fault

25 */

26 require_once 'Zend/XmlRpc/Fault.php';

27

28

91 if (!empty(self::$_observers)) {

92 foreach (array_keys(self::$_observers) as $observer) {

93 call_user_func(array($observer, 'observe'), $this);

94 }

95 }

Default.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 310 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $

20 */

21

86 * @see Zend_Ldap_Exception

87 */

88 require_once 'Zend/Ldap/Exception.php';

89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');

90 }

218 break;

219 default:

220 $attrName = call_user_func($this->_attributeNameTreatment, $name);

221 break;

222 }

sfGenerator.class.php (https://github.com/richhl/kalturaCE.git) PHP · 234 lines

46

47 /**

48 * Generates PHP files for a given module name.

49 *

50 * @param string The name of module name to generate

100 $content = $this->replacePhpMarks($content);

101

102 $retval = "<?php\n".

103 "// auto-generated by ".$this->getGeneratorClass()."\n".

104 "// date: %s\n?>\n%s";

109

110 /**

111 * Replaces PHP marks by <?php ?>.

112 *

113 * @param string The PHP code

119 // replace [?php and ?]

120 return str_replace(array('[?php', '[?=', '?]'), array('<?php', '<?php echo', '?>'), $text);

121 }

122

PermissionHandler.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 236 lines

1 <?php

2

3 namespace Drupal\user;

151 foreach ($permissions['permission_callbacks'] as $permission_callback) {

152 $callback = $this->controllerResolver->getControllerFromDefinition($permission_callback);

153 if ($callback_permissions = call_user_func($callback)) {

154 // Add any callback permissions to the array of permissions. Any

155 // defaults can then get processed below.

ArtisanServiceProvider.php (https://gitlab.com/Sigpot/AirSpot) PHP · 564 lines

1 <?php

2

3 namespace Illuminate\Foundation\Providers;

123 $method = "register{$command}Command";

124

125 call_user_func_array([$this, $method], []);

126 }

127