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
3 /**
52 public function by( $key, $value = null ) {
53 $call_args = func_get_args();
54 call_user_func_array( [ $this->decorated, 'by' ], $call_args );
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 );
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 );
327 return $this;
SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines
1 <?php
3 namespace Lazy\Test;
16 class SequenceTest extends \PHPUnit_Framework_TestCase {
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);
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' ) );
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
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 }
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;
267 if ( $this->theme_supports && ! call_user_func_array( 'current_theme_supports', (array) $this->theme_supports ) )
268 return false;
services9.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 394 lines
1 <?php
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'));
213 call_user_func(array($this->getParameter('baz_class'), 'configureStatic1'), $instance);
255 protected function getMethodCall1Service()
256 {
257 require_once '%path%foo.php';
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
InstanceManager.php (https://bitbucket.org/dereksangshi2000/balance_lib.git) PHP · 350 lines
Option.php (https://github.com/nattaphat/hgis.git) PHP · 252 lines
1 <?php
3 /*
17 */
19 namespace PhpOption;
21 /**
65 {
66 return new LazyOption(function() use ($callback, $arguments, $noneValue) {
67 $return = call_user_func_array($callback, $arguments);
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
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
Listener.php (https://gitlab.com/judielsm/Handora) PHP · 234 lines
1 <?php
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 }
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
helper.php (https://github.com/projectfork/Projectfork.git) PHP · 384 lines
1 <?php
2 /**
3 * @package Projectfork
361 }
363 $supported = call_user_func(array($class_name, 'isSupported'), $context);
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';
action.php (https://gitlab.com/alexprowars/bitrix) PHP · 283 lines
AuthManager.php (https://gitlab.com/nzqadri/bejeep) PHP · 294 lines
Manager.php (https://github.com/jithinkr/pragyan.git) PHP · 303 lines
1 <?php
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;
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';
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 }
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.
7 */
8 include_once 'database.php';
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 }
Date.php (https://github.com/ewandor/horde.git) PHP · 194 lines
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 }
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 */
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
GridFieldConfig.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 235 lines
AbstractPaginator.php (https://gitlab.com/judielsm/Handora) PHP · 487 lines
1 <?php
3 namespace Illuminate\Pagination;
288 {
289 if (isset(static::$currentPathResolver)) {
290 return call_user_func(static::$currentPathResolver);
291 }
315 {
316 if (isset(static::$currentPageResolver)) {
317 return call_user_func(static::$currentPageResolver, $pageName);
318 }
473 public function __call($method, $parameters)
474 {
475 return call_user_func_array([$this->getCollection(), $method], $parameters);
476 }
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 */
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
3 /*
16 use Symfony\Component\HttpFoundation\Response;
18 class EsiTest extends \PHPUnit_Framework_TestCase
19 {
20 public function testHasSurrogateEsiCapability()
101 $esi->process($request, $response);
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'));
123 $esi->process($request, $response);
125 $this->assertEquals('foo <?php echo "<?"; ?>php die("foo"); ?><?php echo "<%"; ?>= "lala" %>', $response->getContent());
126 }
Call.php (https://bitbucket.org/mrajoelisolo/ci_twig.git) PHP · 178 lines
filter.php (https://gitlab.com/Bartwillemsen/aurora-framework) PHP · 225 lines
RedisClusterHashStrategy.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 291 lines
Abstract.php (https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 176 lines
Storage.php (https://github.com/erochest/Omeka.git) PHP · 183 lines
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
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 }
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.
145 $cb_args = array_merge( array(&$output, $element, $depth), $args);
146 call_user_func_array(array($this, 'start_el'), $cb_args);
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 }
Dispatcher.php (https://gitlab.com/madwanz64/laravel) PHP · 224 lines
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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 */
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 }
97 if ($this->_callback !== null) {
98 call_user_func($this->_callback, $content);
99 }
Navigation.php (https://github.com/jtai/zf2.git) PHP · 374 lines
Abstract.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 418 lines
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');
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
Queue.php (https://gitlab.com/jjpa2018/dashboard) PHP · 398 lines
binder.php (https://gitlab.com/alexprowars/bitrix) PHP · 442 lines
class-wp-rest-meta-fields.php (https://gitlab.com/code26/selah) PHP · 350 lines
loader.php (https://gitlab.com/dadangnh/sb1-bon) PHP · 193 lines
1 <?php
2 final class Loader {
3 protected $registry;
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);
102 $route = preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route);
104 $file = DIR_SYSTEM . 'library/' . $route . '.php';
105 $class = str_replace('/', '\\', $route);
116 public function helper($route) {
117 $file = DIR_SYSTEM . 'helper/' . preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route) . '.php';
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 */
24 * Zend_XmlRpc_Fault
25 */
26 #require_once 'Zend/XmlRpc/Fault.php';
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
3 require_once dirname(__FILE__) . '/../src/JQJobs/JQJobs.php';
4 const JQJOB_ID_DOES_NOT_EXIST = 999999;
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 }
FilterTest.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 151 lines
filter.php (https://bitbucket.org/Maron1/taqman.git) PHP · 329 lines
1 <?php namespace Laravel\Routing;
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));
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 }
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;
51 $file = GEAR . 'module/'. $module_name . '/' . $component . '/' . $class_name .'.php';
53 include_once $file;
117 $prefix = $arr[2];
118 $file_path = GEAR . $file_path.'.php';
120 if( ! file_exists( $file_path ) )
163 public function __call($name, $arguments = array() ){
165 return call_user_func_array( array($this->class_inctance, $name), $arguments );
166 }
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 */
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
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 }
355 $ret = call_user_func_array(array($object, $method), $arguments);
357 if ($object instanceof Twig_TemplateInterface) {
Query.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 418 lines
1 <?php
3 /**
25 * Zend_Gdata_App_Util
26 */
27 require_once 'Zend/Gdata/App/Util.php';
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
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
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 }
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
3 namespace Box\Spout\Reader\Common;
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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 */
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 }
97 if ($this->_callback !== null) {
98 call_user_func($this->_callback, $content);
99 }
Navigation.php (https://github.com/zucchi/zf2.git) PHP · 343 lines
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'] );
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
TraceableEventDispatcher.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 372 lines
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 }
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
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
BasePayment.php (https://github.com/sonata-project/ecommerce.git) PHP · 228 lines
AbstractSequence.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 360 lines
table.php (https://bitbucket.org/Maron1/taqman.git) PHP · 462 lines
Repository.php (https://bitbucket.org/larryg/powerhut.git) PHP · 414 lines
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 );
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 */
24 * @see Zend_View_Helper_Navigation_HelperAbstract
25 */
26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
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 }
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);
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 }
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",
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
210 }elseif($prefijo=='set'){
211 if(isset($this->$metodo)) $this->$metodo = $a[0];
212 }else call_user_func_array($m, $a);
214 }
327 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
328 {
329 $pos = CinivelesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
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
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 */
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
AppInstance.php (https://github.com/max-shamaev/phpdaemon.git) PHP · 277 lines
Router.php (https://github.com/klj613/klj613micromvc.git) PHP · 207 lines
genericWebSocketServer.php (https://github.com/Erika31/phpdaemon.git) PHP · 267 lines
Hooks.php (https://github.com/osarrat/sigmah-website.git) PHP · 173 lines
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;
259 }
261 $column = call_user_func(array(constant(get_class($this->getObject()).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME);
262 $getter = 'get'.$column;
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 */
24 * @see Zend_View_Helper_Navigation_HelperAbstract
25 */
26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
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 }
View_Register.php (https://github.com/livinglab/openlab.git) PHP · 201 lines
HtmlBuilder.php (https://gitlab.com/oytunistrator/92five) PHP · 409 lines
1 <?php namespace Illuminate\Html;
3 use Illuminate\Routing\UrlGenerator;
75 $attributes['src'] = $this->url->asset($url);
77 return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL;
78 }
93 $attributes['href'] = $this->url->asset($url);
95 return '<link'.$this->attributes($attributes).'>'.PHP_EOL;
96 }
401 if (isset($this->macros[$method]))
402 {
403 return call_user_func_array($this->macros[$method], $parameters);
404 }
sfServiceContainerBuilder.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 351 lines
1 <?php
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 }
Consumer.php (https://bitbucket.org/netglue/zf-1.12-release.git) PHP · 279 lines
Cache.php (https://gitlab.com/kubinos/writeoff) PHP · 376 lines
1 <?php
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 */
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 }
97 if ($this->_callback !== null) {
98 call_user_func($this->_callback, $content);
99 }
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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
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 */
23 /** Zend_Pdf_Element */
24 require_once 'Zend/Pdf/Element.php';
26 /** Zend_Pdf_ElementFactory */
27 require_once 'Zend/Pdf/ElementFactory.php';
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;
11 class BuiltinPluginTest extends \PHPUnit_Framework_TestCase
12 {
13 /**
28 /**
29 * @var \Magento\Framework\App\Response\Http|\PHPUnit_Framework_MockObject_MockObject
30 */
31 protected $response;
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 */
24 * Zend_XmlRpc_Fault
25 */
26 // require_once 'Zend/XmlRpc/Fault.php';
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
Arr.php (https://gitlab.com/ducnv/BTL_CN_WEB) PHP · 521 lines
1 <?php
3 namespace Illuminate\Support;
53 foreach ($array as $key => $value) {
54 list($innerKey, $innerValue) = call_user_func($callback, $key, $value);
56 $results[$innerKey] = $innerValue;
162 foreach ($array as $key => $value) {
163 if (call_user_func($callback, $key, $value)) {
164 return $value;
165 }
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
3 namespace Kakirigi\Support;
53 foreach ($array as $key => $value) {
54 list($innerKey, $innerValue) = call_user_func($callback, $key, $value);
56 $results[$innerKey] = $innerValue;
162 foreach ($array as $key => $value) {
163 if (call_user_func($callback, $key, $value)) {
164 return $value;
165 }
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 */
23 /** Internally used classes */
24 require_once 'Zend/Pdf/Element/Null.php';
27 /** Zend_Pdf_Element */
28 require_once 'Zend/Pdf/Element.php';
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 */
24 * Zend_XmlRpc_Fault
25 */
26 // require_once 'Zend/XmlRpc/Fault.php';
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';
27 /**
28 * @see Zend_Controller_Action_Exception
29 */
30 require_once 'Zend/Controller/Action/Exception.php';
32 /**
33 * @see Zend_Cache_Manager
34 */
35 require_once 'Zend/Cache/Manager.php';
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
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
BaseMediaSource.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 179 lines
1 <?php
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 */
25 * @see Zend_Gdata_App_MediaSource
26 */
27 // // // // // // // // require_once 'Zend/Gdata/App/MediaSource.php';
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
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 }
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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 */
24 * Zend_XmlRpc_Fault
25 */
26 //require_once 'Zend/XmlRpc/Fault.php';
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 */
22 /** Zend_Oauth */
23 #require_once 'Zend/Oauth.php';
25 /** Zend_Uri */
26 #require_once 'Zend/Uri.php';
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 */
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 }
97 if ($this->_callback !== null) {
98 call_user_func($this->_callback, $content);
99 }
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 */
24 * Zend_XmlRpc_Fault
25 */
26 require_once 'Zend/XmlRpc/Fault.php';
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 */
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
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);
102 $retval = "<?php\n".
103 "// auto-generated by ".$this->getGeneratorClass()."\n".
104 "// date: %s\n?>\n%s";
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 }
PermissionHandler.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 236 lines
1 <?php
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.