100+ results for 'php call_user_func_array'

Not the results you expected?

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++;

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

LogCategoryTest.class.php (https://github.com/oanas/xp-framework.git) PHP · 439 lines

1 <?php

2 /* This class is part of the XP framework

3 *

59 protected function assertLog($method, $args= array('Argument')) {

60 $app= $this->cat->addAppender($this->mockAppender());

61 call_user_func_array(array($this->cat, $method), $args);

62 $this->assertEquals(array(array_merge((array)$method, $args)), $app->messages);

63 }

72 protected function assertLogf($method, $args= array('Argument')) {

73 $app= $this->cat->addAppender($this->mockAppender());

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

75 $this->assertEquals(array(array_merge((array)substr($method, 0, -1), (array)vsprintf(array_shift($args), $args))), $app->messages);

76 }

FlattenException.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 297 lines

1 <?php

2

3 /*

15

16 /**

17 * FlattenException wraps a PHP Exception to be able to serialize it.

18 *

19 * Basically, this class removes all objects from the trace.

33 }

34

35 return call_user_func_array(array('Symfony\Component\Debug\Exception\FlattenException', $method), $args);

36 }

37

46 }

47

48 return call_user_func_array(array($this->handler, $method), $args);

49 }

50 }

Relation.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 349 lines

1 <?php

2

3 namespace Illuminate\Database\Eloquent\Relations;

329 public function __call($method, $parameters)

330 {

331 $result = call_user_func_array([$this->query, $method], $parameters);

332

333 if ($result === $this->query) {

ezmodulefunctioninfo.php (https://github.com/eeggenberger/ezpublish.git) PHP · 321 lines

1 <?php

2 /**

3 * File containing the eZModuleFunctionInfo class.

10

11 /*!

12 \class eZModuleFunctionInfo ezmodulefunctioninfo.php

13 \brief The class eZModuleFunctionInfo does

14

45 foreach ( $pathList as $path )

46 {

47 $definitionFile = $path . '/' . $this->ModuleName . '/function_definition.php';

48 if ( file_exists( $definitionFile ) )

49 break;

295 }

296

297 return call_user_func_array( array( $classObject, $methodName ), $parameterArray );

298 }

299

AuthManager.php (https://gitlab.com/Sigpot/AirSpot) 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 }

Navigation.php (https://github.com/lcf/zf2.git) PHP · 340 lines

1 <?php

2 /**

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

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

117 }

118 return call_user_func_array($helper, $arguments);

119 }

120

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')))

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

class-wp-customize-setting.php (https://gitlab.com/Gashler/dp) 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

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 }

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 }

Result.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 342 lines

1 <?php

2 /**

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

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

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

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

185 *

186 * @throws Exception\RuntimeException

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

203 }

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

205 }

206

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

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/rettal/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 }

select.php (https://github.com/ggunlugu/ornekler.git) PHP · 445 lines

1 <?php defined('SYSPATH') or die('No direct script access.');

2 /**

3 * Database query builder for SELECT statements. See [Query Builder](/database/query/builder) for usage and examples.

7 * @author Kohana Team

8 * @copyright (c) 2008-2009 Kohana Team

9 * @license http://kohanaphp.com/license

10 */

11 class Kohana_Database_Query_Builder_Select extends Database_Query_Builder_Where {

154 $columns = func_get_args();

155

156 call_user_func_array(array($this->_last_join, 'using'), $columns);

157

158 return $this;

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()

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 ' .

HtmlBuilder.php (https://bitbucket.org/helfreire/tccsite.git) 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

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

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']));

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

Connection.php (https://github.com/netweaver/Rediska.git) PHP · 446 lines

1 <?php

2

3 /**

9 * @version @package_version@

10 * @link http://rediska.geometria-lab.net

11 * @license http://www.opensource.org/licenses/bsd-license.php

12 */

13 class Rediska_Connection extends Rediska_Options

87 }

88

89 $this->_socket = call_user_func_array('stream_socket_client', $socketParams);

90

91 // Throw exception if can't connect

QubitQuery.class.php (https://github.com/mikesname/ehri-ica-atom.git) PHP · 410 lines

1 <?php

2

3 /*

180 $args = func_get_args();

181

182 return call_user_func_array(array($this, '__isset'), $args);

183 }

184

207 $args = func_get_args();

208

209 return call_user_func_array(array($this, '__get'), $args);

210 }

211

236 $args = func_get_args();

237

238 return call_user_func_array(array($this, '__set'), $args);

239 }

240

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

Collection.php (https://gitlab.com/milton2913/myBlog) PHP · 364 lines

1 <?php

2

3 namespace Illuminate\Database\Eloquent;

297 public function zip($items)

298 {

299 return call_user_func_array([$this->toBase(), 'zip'], func_get_args());

300 }

301

ArrayCharacterStream.php (https://gitlab.com/techniconline/kmc) PHP · 294 lines

1 <?php

2

3 /*

174 $this->_offset += ($i - $this->_offset); // Limit function calls

175

176 return call_user_func_array('array_merge', $arrays);

177 }

178

191 $startLength = $this->_charReader->getInitialByteSize();

192

193 $fp = fopen('php://memory', 'w+b');

194 fwrite($fp, $chars);

195 unset($chars);

TraceableEventDispatcher.php (https://gitlab.com/ealexis.t/trends) 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

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();

Template.php (https://bitbucket.org/gerg711/asdfchan.git) PHP · 374 lines

1 <?php

2

3 /*

364 }

365

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

367

368 if ($object instanceof Twig_TemplateInterface) {

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 }

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;

StaticStringy.php (https://gitlab.com/dae.nuli/toko) PHP · 148 lines

1 <?php

2

3 namespace Stringy;

144 $stringy = Stringy::create($str, $encoding);

145

146 return call_user_func_array(array($stringy, $name), $args);

147 }

148 }

class-wp-walker.php (https://github.com/tairosan/fluxflex_wordpress_3.2.1.git) PHP · 399 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

Translate.php (https://github.com/xoops-pi/engine.git) PHP · 164 lines

1 <?php

2 /**

3 * Zend Framework for Xoops Engine

12 * @copyright Xoops Engine http://www.xoopsengine.org/

13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license

14 * @author Taiwen Jiang <phppp@users.sourceforge.net>

15 * @since 3.0

16 * @category Xoops_Zend

112 {

113 if (method_exists($this->adapter, $method)) {

114 return call_user_func_array(array($this->adapter, $method), $options);

115 }

116 throw new Zend_Translate_Exception("Unknown method '" . $method . "' called!");

Criteria.php (https://github.com/wieger/Zend1-Doctrine2-Skeleton.git) PHP · 358 lines

1 <?php

2

3 namespace Bisna\Domain\Entity\Filter;

159 public function where($predicates)

160 {

161 call_user_func_array(array($this->queryBuilder, 'where'), func_get_args());

162

163 return $this;

181 public function andWhere($where)

182 {

183 call_user_func_array(array($this->queryBuilder, 'andWhere'), func_get_args());

184

185 return $this;

203 public function orWhere($where)

204 {

205 call_user_func_array(array($this->queryBuilder, 'orWhere'), func_get_args());

206

207 return $this;

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

1 <?php

2

3

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

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

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

238

239 }

350

351

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

353 {

354 $pos = FcaliinmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);

390

391

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

393 {

394 $keys = FcaliinmPeer::getFieldNames($keyType);

SessionManagerTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 216 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

6 // @codingStandardsIgnoreStart

7 namespace {

8 $mockPHPFunctions = false;

9 }

10

19 function session_status()

20 {

21 global $mockPHPFunctions;

22 if ($mockPHPFunctions) {

23 return PHP_SESSION_NONE;

24 }

25 return call_user_func_array('\session_status', func_get_args());

selector.php (https://gitlab.com/alexprowars/bitrix) PHP · 435 lines

1 <?php

2 /**

3 * Bitrix Framework

267 }

268

269 $eventResult = call_user_func_array($provider, $parameters);

270 if (!is_array($eventResult))

271 {

BaseFcdprinm.php (https://github.com/cidesa/roraima-comunal.git) PHP · 437 lines

1 <?php

2

3

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

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

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

167

168 }

279

280

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

282 {

283 $pos = FcdprinmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);

310

311

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

313 {

314 $keys = FcdprinmPeer::getFieldNames($keyType);

Reference.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 303 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: Reference.php 23775 2011-03-01 17:25:24Z ralph $

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 /**

Symbol.php (https://github.com/Nerutiz/trades.git) PHP · 252 lines

1 <?php

2

3 class Symbol {

226 return $this->lbp;

227 }

228 return call_user_func_array(array($this, $this->lbp), $args);

229 }

230 if ($method == 'nud') {

231 return call_user_func_array(array($this, $this->nud), $args);

232 }

233 if ($method == 'led') {

234 return call_user_func_array(array($this, $this->led), $args);

235 }

236 if ($method == 'std') {

BehaviorRegistry.php (https://gitlab.com/vannh/portal_training) PHP · 249 lines

1 <?php

2 /**

3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

5 *

9 *

10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

11 * @link http://cakephp.org CakePHP(tm) Project

12 * @since 3.0.0

13 * @license http://www.opensource.org/licenses/mit-license.php MIT License

218 if ($this->hasMethod($method) && $this->has($this->_methodMap[$method][0])) {

219 list($behavior, $callMethod) = $this->_methodMap[$method];

220 return call_user_func_array([$this->_loaded[$behavior], $callMethod], $args);

221 }

222

tinyTemplate.php (https://github.com/dounokouno/TransmitMail.git) PHP · 318 lines

1 <?php

2 /*--------------------------------------------------------------*\

3 Description: HTML template class based on bTemplate.

61 } else {

62 if ($modifier) {

63 call_user_func_array($this->default_modifier, [&$var]);

64 }

65 $this->scalars[$tag] = $var;

Chain.php (https://gitlab.com/ebrjose/comcebu) PHP · 412 lines

1 <?php

2

3 namespace WPForms\Helpers;

180 $params = null === $params ? array() : $params;

181 array_unshift( $params, $this->value );

182 $this->value = call_user_func_array( $name, array_values( $params ) );

183

184 return $this;

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

AbstractPaginator.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 487 lines

1 <?php

2

3 namespace Illuminate\Pagination;

473 public function __call($method, $parameters)

474 {

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

476 }

477

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

eztemplateexecuteoperator.php (https://github.com/Yannix/ezpublish.git) PHP · 342 lines

1 <?php

2 /**

3 * File containing the eZTemplateExecuteOperator class.

10

11 /*!

12 \class eZTemplateExecuteOperator eztemplateexecuteoperator.php

13 \brief The class eZTemplateExecuteOperator does

14

201 $defaultValue = 'null';

202 if ( !$parameterDefinition['required'] )

203 $defaultValue = eZPHPCreator::variableText( $parameterDefinition['default'], 0, 0, false );

204

205 $parametersSelection = '%1%[\'' . $parameterName . '\']';

241 if ( eZTemplateNodeTool::isConstantElement( $dynamicParameters[$parameterName] ) )

242 {

243 $parametersCode .= eZPHPCreator::variableText( eZTemplateNodeTool::elementConstantValue( $dynamicParameters[$parameterName] ), 0, 0, false );

244 }

245 else

Standalone.php (https://github.com/Exercise/zf2.git) PHP · 331 lines

1 <?php

2 /**

3 * Zend Framework

231 $container = $this->getContainer();

232 if (method_exists($container, $method)) {

233 $return = call_user_func_array(array($container, $method), $args);

234 if ($return === $container) {

235 // If the container is returned, we really want the current object

CellTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) PHP · 295 lines

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

13 }

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

15 }

16

78 $args = func_get_args();

79 $expectedResult = array_pop($args);

80 $result = call_user_func_array(array('PHPExcel_Cell','coordinateFromString'),$args);

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

82 }

284 $args = func_get_args();

285 $expectedResult = array_pop($args);

286 $result = call_user_func_array(array('PHPExcel_Cell','extractAllCellReferencesInRange'),$args);

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

288 }

EventDispatcher.php (https://gitlab.com/Blueprint-Marketing/solr-power) PHP · 185 lines

1 <?php

2

3 /*

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 }

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 }

Asserts.php (https://gitlab.com/panace/public) PHP · 395 lines

1 <?php

2 namespace Codeception\Util\Shared;

3

17 }

18

19 call_user_func_array(['\PHPUnit_Framework_Assert', 'assert' . $not . $method], $arguments);

20 }

21

48 protected function assertNotEquals($expected, $actual, $message = '')

49 {

50 \PHPUnit_Framework_Assert::assertNotEquals($expected, $actual, $message);

51 }

52

221 protected function assertNull($actual, $message = '')

222 {

223 \PHPUnit_Framework_Assert::assertNull($actual, $message);

224 }

225

Template.php (https://github.com/radicalsuz/amp.git) PHP · 294 lines

1 <?php

2

3 class AMP_Display_Template {

250 foreach( $this->_allowed_methods as $key => $method_def ){

251 if ( !( $action_type = $this->_verify_method_def( $key ))) continue;

252 $this->_methods_output[$key] = call_user_func_array( $action_type, $this->get_method_args( $key ) );

253 }

254

field.php (https://gitlab.com/alexprowars/bitrix) PHP · 654 lines

1 <?php

2 /**

3 * Bitrix Framework

185 else

186 {

187 $vResult = call_user_func_array($validator, array($value, $primary, $row, $this));

188 }

189

217 foreach ($modifiers as $modifier)

218 {

219 $value = call_user_func_array($modifier, array($value, $data));

220 }

221

not-gettexted.php (https://gitlab.com/CueFox/cf-utility-pro) PHP · 243 lines

1 <?php

2 /**

3 * Console application, which extracts or replaces strings for

8 */

9

10 // see: http://php.net/tokenizer

11 if ( ! defined( 'T_ML_COMMENT' ) ) {

12 define( 'T_ML_COMMENT', T_COMMENT );

218

219 public function usage() {

220 $this->stderr( 'php i18n-comments.php COMMAND OUTPUTFILE INPUTFILES' );

221 $this->stderr( 'Extracts and replaces strings, which cannot be gettexted' );

222 $this->stderr( 'Commands:' );

223 $this->stderr( ' extract POTFILE PHPFILES appends the strings to POTFILE' );

224 $this->stderr( ' replace MOFILE PHPFILES replaces strings in PHPFILES with translations from MOFILE' );

225 }

226

select.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 169 lines

1 <?php

2 require_once('HTML/QuickForm/select.php');

69 $helpbuttonargs=$helpbuttonargs + $defaultargs ;

70 }

71 $this->_helpbutton=call_user_func_array($function, $helpbuttonargs);

72 }

73 /**

97 if ($option['attr']['value']==$value){

98 unset($this->_options[$key]);

99 // we must reindex the options because the ugly code in quickforms' select.php expects that keys are 0,1,2,3... !?!?

100 $this->_options = array_merge($this->_options);

101 return;

DerivativeDiscoveryDecorator.php (https://gitlab.com/leoplanxxi/dr7-web-buap-2016) PHP · 248 lines

1 <?php

2

3 /**

244 */

245 public function __call($method, $args) {

246 return call_user_func_array(array($this->decorated, $method), $args);

247 }

248 }

CustomActions.php (https://github.com/livinglab/openlab.git) PHP · 307 lines

1 <?php

2

3 class DLM_Custom_Actions {

61 echo "<select name='dlm_download_category' id='dropdown_dlm_download_category'>";

62 echo '<option value="" ' . selected( $dlm_download_category, '', false ) . '>' . esc_html__( 'Select a category', 'download-monitor' ) . '</option>';

63 echo $this->walk_category_dropdown_tree( $terms, 0, $r ); //phpcs:ignore

64 echo '</select>';

65

82 }

83

84 return call_user_func_array( array( $walker, 'walk' ), $args );

85 }

86

205 <fieldset class="inline-edit-col-right inline-edit-col-dlm">

206 <div class="inline-edit-col inline-edit-col-dlm-inner">

207 <span class="title"><?php echo esc_html__( 'Download Monitor Data', 'download-monitor' ); ?></span><br/>

208 <label for="_featured"><input type="checkbox" name="_featured" id="_featured" value="1"/><?php echo esc_html__( 'Featured download', 'download-monitor' ); ?></label>

ActionController.php (https://github.com/MontmereLimited/zf2.git) PHP · 325 lines

1 <?php

2

3 namespace Zend\Mvc\Controller;

7 Zend\EventManager\EventDescription as Event,

8 Zend\EventManager\EventManager,

9 Zend\Http\PhpEnvironment\Response as HttpResponse,

10 Zend\Loader\Broker,

11 Zend\Loader\Pluggable,

292 $plugin = $this->plugin($method);

293 if (is_callable($plugin)) {

294 return call_user_func_array($plugin, $params);

295 }

296 return $plugin;

HelperBroker.php (https://github.com/richhl/kalturaCE.git) PHP · 381 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: HelperBroker.php 18951 2009-11-12 16:26:19Z alexander $

21 */

22

24 * @see Zend_Controller_Action_HelperBroker_PriorityStack

25 */

26 require_once 'Zend/Controller/Action/HelperBroker/PriorityStack.php';

27

28 /**

29 * @see Zend_Loader

30 */

31 require_once 'Zend/Loader.php';

32

33 /**

Writer.php (https://gitlab.com/billyprice1/app-download.org) PHP · 317 lines

1 <?php

2

3 namespace DrSlump\Protobuf\Codec\Binary;

16 public function __construct()

17 {

18 $this->_fd = fopen('php://memory', 'wb');

19 }

20

86 }

87 } else if (function_exists('gmp_init')) {

88 $value = PHP_INT_SIZE < 8

89 ? gmp_and($value, '0x0ffffffffffffffff')

90 : sprintf('%u', $value);

91

92 $values = $this->varint_gmp($value);

93 } else if (PHP_INT_SIZE < 8) {

94 throw new \OutOfBoundsException(

95 "PHP versions compiled with 32bit integers can only support negative integer encoding with GMP extension ($value was given)"

ArtisanServiceProvider.php (https://gitlab.com/mika_22/EscuelaAnexa) PHP · 566 lines

1 <?php

2

3 namespace Illuminate\Foundation\Providers;

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

126

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

128 }

129

ioc.php (https://bitbucket.org/Maron1/taqman.git) PHP · 249 lines

1 <?php namespace Laravel; use Closure;

2

3 class IoC {

164 if ($type instanceof Closure)

165 {

166 return call_user_func_array($type, $parameters);

167 }

168

TextDataTest.php (https://gitlab.com/Zinnurain/destination_finder_beta) 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 }

Gear.php (https://github.com/back2arie/Panada.git) PHP · 267 lines

1 <?php

2 /**

3 * This is the heart of the whole Panada system.

5 * @author Iskandar Soesman <k4ndar@yahoo.com>

6 * @link http://panadaframework.com/

7 * @license http://www.opensource.org/licenses/bsd-license.php

8 * @since version 1.0.0

9 * @package Core System

60 }

61

62 if( ! file_exists( $file = $folder . str_ireplace('\\', '/', $file) . '.php' ) )

63 throw new Resources\RunException('Resource '.$file.' not available!');

64

107 $controllerNamespace = 'Controllers\\' . $this->firstUriPath;

108

109 if( ! file_exists( $classFile = APP . 'Controllers/' . $this->firstUriPath . '.php' ) ){

110 $this->subControllerHandler();

111 return;

SelectExtender.php (https://gitlab.com/reasonat/test8) PHP · 536 lines

1 <?php

2

3 namespace Drupal\Core\Database\Query;

73 */

74 public function hasAllTags() {

75 return call_user_func_array(array($this->query, 'hasAllTags'), func_get_args());

76 }

77

80 */

81 public function hasAnyTag() {

82 return call_user_func_array(array($this->query, 'hasAnyTag'), func_get_args());

83 }

84

498 */

499 public function __call($method, $args) {

500 $return = call_user_func_array(array($this->query, $method), $args);

501

502 // Some methods will return the called object as part of a fluent interface.

Gate.php (https://gitlab.com/ealexis.t/trends) PHP · 453 lines

1 <?php

2

3 namespace Illuminate\Auth\Access;

119 list($class, $method) = explode('@', $callback);

120

121 return call_user_func_array([$this->resolvePolicy($class), $method], func_get_args());

122 };

123 }

265 );

266

267 return call_user_func_array(

268 $callback, array_merge([$user], $arguments)

269 );

283

284 foreach ($this->beforeCallbacks as $before) {

285 if (! is_null($result = call_user_func_array($before, $arguments))) {

286 return $result;

287 }

NumberHelper.php (https://github.com/LubosRemplik/cakephp.git) PHP · 248 lines

1 <?php

2 /**

3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)

4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

5 *

9 *

10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

11 * @link https://cakephp.org CakePHP(tm) Project

12 * @since 0.10.0

13 * @license https://opensource.org/licenses/mit-license.php MIT License

25 * Methods to make numbers more readable.

26 *

27 * @link https://book.cakephp.org/3.0/en/views/helpers/number.html

28 * @see \Cake\I18n\Number

29 */

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);

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 /**

RouteCompiler.php (https://github.com/l3l0/BehatExamples.git) PHP · 235 lines

1 <?php

2

3 /*

51

52 foreach ($this->tokens as $token) {

53 call_user_func_array(array($this, 'compileFor'.ucfirst(array_shift($token))), $token);

54 }

55

Message.php (https://gitlab.com/ealexis.t/trends) PHP · 298 lines

1 <?php

2

3 namespace Illuminate\Mail;

294 $callable = [$this->swift, $method];

295

296 return call_user_func_array($callable, $parameters);

297 }

298 }

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);

AbstractServer.php (https://github.com/zucchi/zf2.git) PHP · 168 lines

1 <?php

2 /**

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

136 if ('function' == $type) {

137 $function = $callback->getFunction();

138 return call_user_func_array($function, $params);

139 }

140

143

144 if ('static' == $type) {

145 return call_user_func_array(array($class, $method), $params);

146 }

147

156 }

157 }

158 return call_user_func_array(array($object, $method), $params);

159 }

160

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

ApcClassLoader.php (https://github.com/nattaphat/hgis.git) PHP · 137 lines

1 <?php

2

3 /*

13

14 /**

15 * ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3.

16 *

17 * It expects an object implementing a findFile method to find the file. This

132 public function __call($method, $args)

133 {

134 return call_user_func_array(array($this->decorated, $method), $args);

135 }

136

cache.php (https://github.com/4260/OpenPNE2.git) PHP · 269 lines

1 <?php

2 /**

3 * @copyright 2005-2008 OpenPNE Project

4 * @license http://www.php.net/license/3_01.txt PHP License 3.01

5 */

6

10 if (empty($instance)) {

11 if (OPENPNE_USE_FUNCTION_CACHE_MEMCACHE) {

12 include_once 'OpenPNE/Cache.php';

13 $instance = new OpenPNE_Cache_Function('memcache', $GLOBALS['_OPENPNE_MEMCACHE_LIST']['func_cache']);

14 } else {

15 include_once 'Cache/Lite/Function.php';

16 $options = array(

17 'cacheDir' => OPENPNE_VAR_DIR . '/function_cache/',

class-wp-walker.php (https://gitlab.com/hop23typhu/bryepoxy) 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

HtmlBuilder.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 414 lines

1 <?php namespace Illuminate\Html;

2

3 use Illuminate\Routing\UrlGenerator;

76 $attributes['src'] = $this->url->asset($url, $secure);

77

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

79 }

80

95 $attributes['href'] = $this->url->asset($url, $secure);

96

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

98 }

99

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

407 {

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

409 }

410

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

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;

meta.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 382 lines

1 <?php

2

3 /**

86

87 if ( ! empty( $meta['filter_callback'] ) ) {

88 return call_user_func_array( $meta['filter_callback'], $params );

89 }

90

91 if ( ! empty( $meta['callback'] ) ) {

92 $value = call_user_func_array( $meta['callback'], $params );

93 }

94

127

128 if ( ! empty( $meta['filter_callback'] ) ) {

129 return call_user_func_array( $meta['filter_callback'], $params );

130 }

131

AssistantContext.php (https://gitlab.com/D-apos-software/Alcesac) PHP · 254 lines

1 <?php

2

3 /**

234 $property = $this->$name;

235 if (\method_exists($property, 'getContext')) {

236 return \call_user_func_array(array($property, 'getContext'), $arguments);

237 }

238

NumberHelper.php (https://github.com/shama/cakephp.git) PHP · 165 lines

7 * PHP 5

8 *

9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

10 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

11 *

15 *

16 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

17 * @link http://cakephp.org CakePHP(tm) Project

18 * @package Cake.View.Helper

19 * @since CakePHP(tm) v 0.10.0.1076

34 *

35 * @package Cake.View.Helper

36 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html

37 * @see Cake\Utility\Number

38 */

Encrypt.php (https://github.com/richhl/kalturaCE.git) PHP · 134 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: Encrypt.php 16971 2009-07-22 18:05:45Z mikaelkael $

20 */

21

23 * @see Zend_Filter_Interface

24 */

25 require_once 'Zend/Filter/Interface.php';

26

27 /**

28 * @see Zend_Loader

29 */

30 require_once 'Zend/Loader.php';

31

32 /**

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 }

FeedAbstract.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 321 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Feed_Reader

24 */

25 require_once 'Zend/Feed/Reader.php';

26

27 /**

28 * @see Zend_feed_Reader_FeedInterface

29 */

30 require_once 'Zend/Feed/Reader/FeedInterface.php';

31

32 /**

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

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

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

274 }

275 }

Command.php (https://gitlab.com/techniconline/kmc) PHP · 386 lines

1 <?php namespace Illuminate\Console;

2

3 use Symfony\Component\Console\Helper\Table;

77 // passed into these commands as "parameters" to control the execution.

78 foreach ($this->getArguments() as $arguments) {

79 call_user_func_array(array($this, 'addArgument'), $arguments);

80 }

81

82 foreach ($this->getOptions() as $options) {

83 call_user_func_array(array($this, 'addOption'), $options);

84 }

85 }

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,

Translator.php (https://github.com/leerbag/zf2.git) PHP · 226 lines

1 <?php

2 /**

3 * Zend Framework

130 }

131

132 if (\Zend\Loader::isReadable('Zend/Translator/Adapter/' . ucfirst($options['adapter']). '.php')) {

133 $options['adapter'] = 'Zend\Translator\Adapter\\' . ucfirst($options['adapter']);

134 }

219 {

220 if (method_exists($this->_adapter, $method)) {

221 return call_user_func_array(array($this->_adapter, $method), $options);

222 }

223

PHPDriver.php (https://github.com/weaverryan/mongodb-odm.git) PHP · 116 lines

1 <?php

2 /*

3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

23

24 /**

25 * The PHPDriver invokes a static PHP function on the document class itself passing

26 * a ClassMetadata instance for you to manually populate with mapping information.

27 *

28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

29 * @link www.doctrine-project.org

30 * @since 1.0

32 * @author Roman Borschel <roman@code-factory.org>

33 */

34 class PHPDriver implements Driver

35 {

36 private $paths = array();

ObjectDecorator.php (https://github.com/thewiredman/symfony.git) PHP · 119 lines

1 <?php

2

3 namespace Symfony\Component\OutputEscaper;

23 {

24 /**

25 * Magic PHP method that intercepts method calls, calls them on the objects

26 * that is being escaped and escapes the result.

27 *

58 }

59

60 $value = call_user_func_array(array($this->value, $method), $args);

61

62 return Escaper::escape($escaper, $value);

Caller.php (https://gitlab.com/judielsm/Handora) PHP · 438 lines

2

3 /*

4 * This file is part of PhpSpec, A php toolset to drive emergent

5 * design by specification.

6 *

351 * @param array $arguments

352 *

353 * @return \PhpSpec\Exception\Fracture\MethodNotFoundException|\PhpSpec\Exception\Fracture\MethodNotVisibleException

354 */

355 private function namedConstructorNotFound($method, array $arguments = array())

363 * @param $method

364 * @param array $arguments

365 * @return \PhpSpec\Exception\Fracture\MethodNotFoundException|\PhpSpec\Exception\Fracture\MethodNotVisibleException

366 */

367 private function methodNotFound($method, array $arguments = array())

SerializableClosure.php (https://gitlab.com/ealexis.t/trends) PHP · 217 lines

90 *

91 * @return SerializableClosure

92 * @link http://www.php.net/manual/en/closure.bindto.php

93 */

94 public function bindTo($newthis, $newscope = 'static')

104 *

105 * @return string|null

106 * @link http://php.net/manual/en/serializable.serialize.php

107 */

108 public function serialize()

133 *

134 * @throws ClosureUnserializationException

135 * @link http://php.net/manual/en/serializable.unserialize.php

136 */

137 public function unserialize($serialized)

FinancialTest.php (https://gitlab.com/Iftekhar_ramim/stock_management) PHP · 516 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);

201 $args = func_get_args();

202 $expectedResult = array_pop($args);

203 $result = call_user_func_array(array('PHPExcel_Calculation_Financial','CUMPRINC'),$args);

204 $this->assertEquals($expectedResult, $result, NULL, 1E-8);

205 }

233 $args = func_get_args();

234 $expectedResult = array_pop($args);

235 $result = call_user_func_array(array('PHPExcel_Calculation_Financial','DDB'),$args);

236 $this->assertEquals($expectedResult, $result, NULL, 1E-8);

237 }

JGridTest.php (https://github.com/pfisher3/joomla-platform.git) PHP · 571 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

58 public function __call($name, $parameters = false)

59 {

60 return call_user_func_array(array($this,$name), $parameters);

61 }

62 }

67 * @since 11.3

68 */

69 class JGridTest extends PHPUnit_Framework_TestCase

70 {

71 /**

ProblemsController.php (https://github.com/CakeDC/problems.git) PHP · 347 lines

1 <?php

2 /**

3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)

7 *

8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)

9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

10 */

11

337 protected function _setFlash($message, $type = 'success') {

338 if (!empty($this->flashTypes[$type])) {

339 call_user_func_array(

340 array($this->Session, 'setFlash'),

341 array_merge(array($message), $this->flashTypes[$type])

select.php (https://bitbucket.org/sriedel/iccrm-wip.git) PHP · 440 lines

1 <?php

2 /**

3 * Database query builder for SELECT statements.

7 * @author Kohana Team

8 * @copyright (c) 2008-2009 Kohana Team

9 * @license http://kohanaphp.com/license

10 */

11

184 public function having($column, $op = null, $value = NULL)

185 {

186 return call_user_func_array(array($this, 'and_having'), func_get_args());

187 }

188

controller.php (https://github.com/pollen8/joomla-platform.git) PHP · 362 lines

1 <?php

2 /**

3 * @package Joomla.Platform

83 public function __call ($name, $arguments)

84 {

85 $nazaj = call_user_func_array (array ($this->cache, $name), $arguments);

86 =======

87 * Magic method to proxy JCacheControllerMethods

96 public function __call($name, $arguments)

97 {

98 $nazaj = call_user_func_array(array($this->cache, $name), $arguments);

99 >>>>>>> upstream/master

100 return $nazaj;

131 jimport('joomla.filesystem.path');

132

133 if ($path = JPath::find(JCacheController::addIncludePath(), strtolower($type).'.php')) {

134 require_once $path;

135 } else {

PhpEvalTask.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: PhpEvalTask.php 144 2007-02-05 15:19:00Z hans $

4 *

5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

20 */

21

22 require_once 'phing/Task.php';

23

24 /**

55

56 if ($this->expression !== null && !empty($this->params)) {

57 throw new BuildException("You cannot use nested <param> tags when evaluationg a PHP expression.", $this->location);

58 }

59