PageRenderTime 1135ms queryTime 240ms sortTime 16ms getByIdsTime 87ms findMatchingLines 350ms

100+ results results for 'php method_exists repo:negge/songbook' (1135 ms)

Not the results you expected?
class-config.php https://gitlab.com/chernushov881/charity-fund | PHP | 305 lines
                    
1<?php
                    
2/**
                    
123		if ( $log_notice && ! $available && defined( 'WP_DEBUG' ) && WP_DEBUG ) {
                    
124			trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
                    
125				sprintf(
                    
125				sprintf(
                    
126					/* translators: %1$s is a PHP class name. */
                    
127					esc_html__(
                    
148		$method = 'enable_' . $feature;
                    
149		if ( ! method_exists( $this, $method ) ) {
                    
150			return self::FEATURE_NOT_AVAILABLE;
                    
153		$method_options = 'ensure_options_' . $feature;
                    
154		if ( method_exists( $this, $method_options ) ) {
                    
155			$this->{ $method_options }();
                    
270		$options = $this->get_feature_options( 'sync' );
                    
271		if ( method_exists( 'Automattic\Jetpack\Sync\Main', 'set_sync_data_options' ) ) {
                    
272			Sync_Main::set_sync_data_options( $options );
                    
                
class.resourcespage.php https://github.com/nils-werner/symphony-2.git | PHP | 410 lines
                    
1<?php
                    
2
                    
13	 */
                    
14	require_once(TOOLKIT . '/class.administrationpage.php');
                    
15	require_once(TOOLKIT . '/class.resourcemanager.php');
                    
15	require_once(TOOLKIT . '/class.resourcemanager.php');
                    
16	require_once(CONTENT . '/class.sortable.php');
                    
17
                    
167					}
                    
168					else if(isset($r['source']) && class_exists($r['source']['name']) && method_exists($r['source']['name'], 'getSourceColumn')) {
                    
169						$class = call_user_func(array($manager, '__getClassName'), $r['handle']);
                    
                
view.html.php https://github.com/sherdog/GitWitty.git | PHP | 151 lines
                    
1<?php

                    
2/**

                    
3 * @copyright	Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.

                    
4 * @license		http://www.acyba.com/commercial_license.php

                    
5 */

                    
7?>

                    
8<?php
                    
9class FilterViewFilter extends JView

                    
13		$function = $this->getLayout();

                    
14		if(method_exists($this,$function)) $this->$function();
                    
15		parent::display($tpl);

                    
                
Query.php https://github.com/brtriver/sukonv.git | PHP | 510 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
108		foreach ($this->_config as $key => $val) {
                    
109			if (method_exists($this, $key) && $val !== null) {
                    
110				$this->_config[$key] = is_array($this->_config[$key]) ? array() : null;
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/relacilia/cakra | PHP | 533 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
53
                    
54		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
55			return false;
                    
105		// Here, we just say no if you are missing it and aren't loading a jpeg.
                    
106		if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type != 'image/jpeg' )
                    
107				return false;
                    
132		/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
                    
133		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
134		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
493
                    
494		/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
                    
495		return array(
                    
                
FormMultiCheckbox.php https://gitlab.com/jalon/doadoronline | PHP | 467 lines
                    
1<?php
                    
2/**
                    
126        // Render hidden element
                    
127        $useHiddenElement = method_exists($element, 'useHiddenElement') && $element->useHiddenElement()
                    
128            ? $element->useHiddenElement()
                    
434
                    
435        if (method_exists($this->view, 'plugin')) {
                    
436            $this->inputHelper = $this->view->plugin('form_input');
                    
456
                    
457        if (method_exists($this->view, 'plugin')) {
                    
458            $this->labelHelper = $this->view->plugin('form_label');
                    
                
methodsTest.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 365 lines
                    
1<?php
                    
2require_once('../geoPHP.inc');
                    
2require_once('../geoPHP.inc');
                    
3require_once('PHPUnit/Autoload.php');
                    
4
                    
4
                    
5class MethodsTests extends PHPUnit_Framework_TestCase {
                    
6
                    
16        $value = file_get_contents('./input/'.$file);
                    
17        $geometry = geoPHP::load($value, $format);
                    
18
                    
62
                    
63    if (!method_exists($geometry, $method_name)) {
                    
64      $this->fail("Method ".$method_name.'() doesn\'t exists.');
                    
292    // Cannot test methods if GEOS is not intstalled
                    
293    if (!geoPHP::geosInstalled()) return;
                    
294
                    
                
gallery.php https://gitlab.com/vanafroo/voipWEB | PHP | 433 lines
                    
1<?php
                    
2
                    
28			'gallery',
                    
29			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
30			apply_filters( 'jetpack_widget_name', __( 'Gallery', 'jetpack' ) ),
                    
83		if ( 'carousel' == $instance['link'] ) {
                    
84			require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../carousel/jetpack-carousel.php' ) ) . 'jetpack-carousel.php';
                    
85
                    
97
                    
98		/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
99		$title = apply_filters( 'widget_title', $instance['title'] );
                    
237
                    
238		require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../shortcodes/slideshow.php' ) ) . 'slideshow.php';
                    
239
                    
403
                    
404		if ( 'widgets.php' == $pagenow || 'customize.php' == $pagenow ) {
                    
405			wp_enqueue_media();
                    
                
ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
                    
1<?php namespace Backend\Behaviors;
                    
2
                    
258    {
                    
259        if (method_exists($this->controller, 'onDelete')) {
                    
260            return call_user_func_array([$this->controller, 'onDelete'], func_get_args());
                    
345
                    
346        return implode(PHP_EOL, $collection);
                    
347    }
                    
                
InstalledExtensions.php https://gitlab.com/campus-academy/krowkaramel | PHP | 347 lines
                    
1<?php
                    
2/**
                    
102		if ( 'activated' === $data['status'] && function_exists( 'AW' ) ) {
                    
103			$data['settingsUrl'] = admin_url( 'admin.php?page=automatewoo-settings' );
                    
104			$data['docsUrl']     = 'https://automatewoo.com/docs/';
                    
127			$data['docsUrl']     = 'https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-woocommerce/';
                    
128			$data['settingsUrl'] = admin_url( 'admin.php?page=mailchimp-woocommerce' );
                    
129
                    
188				$data['status']      = 'configured';
                    
189				$data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/pinterest/settings' );
                    
190			} else {
                    
190			} else {
                    
191				$data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/pinterest/landing' );
                    
192			}
                    
218				$data['status']      = 'configured';
                    
219				$data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/google/settings' );
                    
220			} else {
                    
                
Reader.php https://gitlab.com/jjpa2018/dashboard | PHP | 464 lines
                    
24use Maatwebsite\Excel\Transactions\TransactionHandler;
                    
25use PhpOffice\PhpSpreadsheet\Cell\Cell;
                    
26use PhpOffice\PhpSpreadsheet\Reader\Exception;
                    
26use PhpOffice\PhpSpreadsheet\Reader\Exception;
                    
27use PhpOffice\PhpSpreadsheet\Reader\IReader;
                    
28use PhpOffice\PhpSpreadsheet\Spreadsheet;
                    
149     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
                    
150     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
151     * @throws NoTypeDetectedException
                    
193     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
                    
194     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
195     * @throws NoTypeDetectedException
                    
362     *
                    
363     * @throws \PhpOffice\PhpSpreadsheet\Exception
                    
364     * @throws SheetNotFoundException
                    
                
RecordList.php https://gitlab.com/gideonmarked/newlifetrainingcenter-v2 | PHP | 335 lines
                    
1<?php namespace RainLab\Builder\Components;
                    
2
                    
290
                    
291        if (!method_exists($model, $scopeMethod)) {
                    
292            throw new SystemException('Scope method not found.');
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
29
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
119	if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
                    
120		$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
                    
121
                    
251	<?php if ( $schedule->get_type() !== 'database' ) { ?>
                    
252		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a>  |
                    
253	<?php } ?>
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
Grammar.php https://gitlab.com/hatemdigify/digifyblog | PHP | 466 lines
                    
1<?php
                    
2
                    
146        foreach ($this->modifiers as $modifier) {
                    
147            if (method_exists($this, $method = "modify{$modifier}")) {
                    
148                $sql .= $this->{$method}($blueprint, $column);
                    
337                if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) {
                    
338                    if (method_exists($column, $method = 'set'.ucfirst($option))) {
                    
339                        $column->{$method}($this->mapFluentValueToDoctrine($option, $value));
                    
                
Converter.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
188
                    
189            if($useGetter && !method_exists($pearObject, $rules['getter'])) {
                    
190                $mName = get_class($pearObject)."::".$rules['getter'];
                    
193
                    
194            if($useSetter && !method_exists($mageObject, $rules['setter'])) {
                    
195                $mName = get_class($mageObject)."::".$rules['setter'];
                    
200
                    
201            if($useConverter && false === method_exists($this, $rules['converter'])) {
                    
202                $mName = get_class($this)."::".$rules['converter'];
                    
                
Query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 366 lines
                    
1<?php
                    
2declare (strict_types=1);
                    
33use function md5;
                    
34use function method_exists;
                    
35use function reset;
                    
148 }
                    
149 $cache = method_exists(QueryCacheProfile::class, 'getResultCache') ? $this->_queryCacheProfile->getResultCache() : $this->_queryCacheProfile->getResultCacheDriver();
                    
150 assert($cache !== null);
                    
                
DumpDataCollector.php https://gitlab.com/guillaumev/alkarama | PHP | 310 lines
                    
44        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
45        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
46        $this->requestStack = $requestStack;
                    
73        $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS;
                    
74        if (PHP_VERSION_ID >= 50400) {
                    
75            $trace = debug_backtrace($trace, 7);
                    
101                        $name = $template->getTemplateName();
                    
102                        $src = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : false);
                    
103                        $info = $template->getDebugInfo();
                    
105                            $line = $info[$trace[$i - 1]['line']];
                    
106                            $file = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getPath() : null;
                    
107
                    
160            } else {
                    
161                $this->dumper = new CliDumper('php://output', $this->charset);
                    
162            }
                    
                
Resource.php https://gitlab.com/x33n/respond | PHP | 325 lines
                    
1<?php
                    
2
                    
54                foreach ($methodMetadata as $conditionName => $conditions) { // process each method condition
                    
55                    if (method_exists($this, $conditionName)) {
                    
56                        $this->currentMethodName = $key;
                    
                
Observer.php https://github.com/gryzz/crystal_magento.git | PHP | 255 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
87                    }
                    
88                    if (!($model = Mage::getModel($run[1])) || !method_exists($model, $run[2])) {
                    
89                        Mage::throwException(Mage::helper('cron')->__('Invalid callback: %s::%s does not exist', $run[1], $run[2]));
                    
                
Abstract.php https://bitbucket.org/kdms/sh-magento.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 23204 2010-10-21 15:35:21Z ralph $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Loader/Autoloader.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
82            $setMethodName = 'set' . $optionName;
                    
83            if (method_exists($this, $setMethodName)) {
                    
84                $this->{$setMethodName}($optionValue);
                    
115        if (!$this->_debugLogger instanceof Zend_Log) {
                    
116            #require_once 'Zend/Log.php';
                    
117            #require_once 'Zend/Log/Writer/Null.php';
                    
                
Converter.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
188
                    
189            if($useGetter && !method_exists($pearObject, $rules['getter'])) {
                    
190                $mName = get_class($pearObject)."::".$rules['getter'];
                    
193
                    
194            if($useSetter && !method_exists($mageObject, $rules['setter'])) {
                    
195                $mName = get_class($mageObject)."::".$rules['setter'];
                    
200
                    
201            if($useConverter && false === method_exists($this, $rules['converter'])) {
                    
202                $mName = get_class($this)."::".$rules['converter'];
                    
                
ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
                    
1<?php
                    
2/*
                    
31    $m = 'run' . $type;
                    
32    $r = method_exists($this, $m) ? $this->$m($id) : array('pass' => 0, 'info' => 'not supported');
                    
33    sleep(1);
                    
                
Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
                    
1<?php
                    
2/*
                    
121            $method = "set" . $name;
                    
122            if (method_exists($this, $method)) {
                    
123                $this->$method($value);
                    
                
customize.php https://gitlab.com/kishikeisuke/estatesale | PHP | 252 lines
                    
1<?php
                    
2/**
                    
48			echo	'<h2 class="wpthk-customize-title">', esc_html( str_replace( array( '<h2>', '</h2>' ), '', get_admin_page_title() ) ),
                    
49				'<spna class="wpthk-title-button-block"><span class="wpthk-title-button"><a href="', esc_url( admin_url( 'customize.php?return=/wp-admin/admin.php?page=' . $this->_page . '&wpthk=custom' ) ) ,'" ',
                    
50				'class="button button-primary">', __( 'Customizing the Appearance', 'wpthk' ), '</a></span>',
                    
50				'class="button button-primary">', __( 'Customizing the Appearance', 'wpthk' ), '</a></span>',
                    
51				'<span class="wpthk-title-button"><a href="', esc_url( admin_url( 'admin.php?page=wpthk_sns' ) ) ,'" ',
                    
52				'class="button button-primary">SNS ' . __( 'Counter', 'wpthk' ) . '</a></span></span></h2>';
                    
73				'edit_footer'		=> __( 'Footer', 'wpthk' ),
                    
74				'edit_functions'	=> 'functions.php',
                    
75			);
                    
83			register_setting( $key, $key, 'esc_attr' );
                    
84			echo	'<a href="', esc_url( admin_url( 'admin.php?page=' . $this->_page . '&active=' . $key ) ) ,'" ',
                    
85				'class="nav-tab', $this->_active === $key ? ' nav-tab-active' : '', '">', esc_html( $val ), '</a>';
                    
100
                    
101		// options.php は経由しないので、nonce のチェックは check_admin_referer でやる
                    
102		if( $form === true ) echo '<form id="wpthk-customize" method="post" action="">';
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
210                            return;
                    
211                        } elseif ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__toString')) {
                    
212                            $output = var_export($var->__toString(), true);
                    
                
cache.php https://github.com/dcchut/vnq.git | PHP | 503 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
112		{
                    
113			if (method_exists($this, $key))
                    
114			{
                    
256	 * 
                    
257	 *      // Alternatively, in PHP 5.3 use a closure
                    
258	 *      $http_cache->cache_key_callback(function (Request $request) {
                    
                
BladeCompiler.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 714 lines
                    
1<?php namespace Illuminate\View\Compilers;
                    
2
                    
115		// Here we will loop through all of the tokens returned by the Zend lexer and
                    
116		// parse each one into the corresponding valid PHP. We will then have this
                    
117		// template as the correctly rendered PHP that can be rendered natively.
                    
128			$result = ltrim($result, PHP_EOL)
                    
129					.PHP_EOL.implode(PHP_EOL, array_reverse($this->footer));
                    
130		}
                    
172	/**
                    
173	 * Compile Blade comments into valid PHP.
                    
174	 *
                    
181
                    
182		return preg_replace($pattern, '<?php /*$1*/ ?>', $value);
                    
183	}
                    
185	/**
                    
186	 * Compile Blade echos into valid PHP.
                    
187	 *
                    
                
Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
                    
1<?php
                    
2/**
                    
5* @license http://opensource.org/licenses/MIT
                    
6* @link https://github.com/thephpleague/csv/
                    
7* @version 8.1.0
                    
216    /**
                    
217     * Return the key/pairs as a PHP generator
                    
218     *
                    
319    {
                    
320        return is_scalar($value) || (is_object($value) && method_exists($value, '__toString'));
                    
321    }
                    
                
SassNode.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 392 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
11
                    
12require_once 'SassContext.php';
                    
13require_once 'SassCommentNode.php';
                    
13require_once 'SassCommentNode.php';
                    
14require_once 'SassDebugNode.php';
                    
15require_once 'SassDirectiveNode.php';
                    
15require_once 'SassDirectiveNode.php';
                    
16require_once 'SassImportNode.php';
                    
17require_once 'SassMixinNode.php';
                    
17require_once 'SassMixinNode.php';
                    
18require_once 'SassMixinDefinitionNode.php';
                    
19require_once 'SassPropertyNode.php';
                    
19require_once 'SassPropertyNode.php';
                    
20require_once 'SassRootNode.php';
                    
21require_once 'SassRuleNode.php';
                    
                
ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
                    
1<?php
                    
2/**
                    
253      $method = 'alter' . implode('', $hook_suggestions);
                    
254      if (method_exists($this, $method)) {
                    
255        $methods[] = $method;
                    
                
Uploader.php https://github.com/guiohm/magento-french.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
224        {
                    
225            if (is_object($params['object']) && method_exists($params['object'], $params['method'])) {
                    
226                $params['object']->$params['method']($filePath);
                    
                
DocBlockFactory.php https://gitlab.com/Sigpot/AirSpot | PHP | 277 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of phpDocumentor.
                    
4 *
                    
7 *
                    
8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
11 */
                    
12
                    
13namespace phpDocumentor\Reflection;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
                    
16use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
                    
                
core.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 339 lines
                    
1<?php
                    
2/*
                    
10    global $json_api;
                    
11    $php = '';
                    
12    if (!empty($json_api->query->controller)) {
                    
16      if (file_exists("$dir/json-api.php")) {
                    
17        $php = file_get_contents("$dir/json-api.php");
                    
18      } else {
                    
18      } else {
                    
19        // Check one directory up, in case json-api.php was moved
                    
20        $dir = dirname($dir);
                    
21        if (file_exists("$dir/json-api.php")) {
                    
22          $php = file_get_contents("$dir/json-api.php");
                    
23        }
                    
24      }
                    
25      if (preg_match('/^\s*Version:\s*(.+)$/m', $php, $matches)) {
                    
26        $version = $matches[1];
                    
                
Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
121            $method = 'set' . ucfirst($key);
                    
122            if (method_exists($this, $method)) {
                    
123                $this->$method($value);
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            #require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
Table.php https://github.com/holsinger/openfloor.git | PHP | 439 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
319		{
                    
320			if ( ! method_exists($query, 'list_fields'))
                    
321			{
                    
                
Reader.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 350 lines
                    
1<?php
                    
2/**
                    
5* @license http://opensource.org/licenses/MIT
                    
6* @link https://github.com/thephpleague/csv/
                    
7* @version 8.1.1
                    
216    /**
                    
217     * Return the key/pairs as a PHP generator
                    
218     *
                    
319    {
                    
320        return is_scalar($value) || (is_object($value) && method_exists($value, '__toString'));
                    
321    }
                    
                
Error.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 267 lines
                    
1<?php
                    
2
                    
17 * is detected in a template, or when rendering a template. Other
                    
18 * errors must use regular PHP exception classes (like when the template
                    
19 * cache directory is not writable for instance).
                    
179        if ($this->name) {
                    
180            if (is_string($this->name) || (is_object($this->name) && method_exists($this->name, '__toString'))) {
                    
181                $name = sprintf('"%s"', $this->name);
                    
                
Abstract.php https://github.com/cinnamong/mag3nt0.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20967 2010-02-07 18:17:49Z ralph $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Loader/Autoloader.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
82            $setMethodName = 'set' . $optionName;
                    
83            if (method_exists($this, $setMethodName)) {
                    
84                $this->{$setMethodName}($optionValue);
                    
115        if (!$this->_debugLogger instanceof Zend_Log) {
                    
116            #require_once 'Zend/Log.php';
                    
117            #require_once 'Zend/Log/Writer/Null.php';
                    
                
functions.php https://github.com/cakephp/cakephp.git | PHP | 336 lines
                    
4/**
                    
5 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
13 * @link          https://cakephp.org CakePHP(tm) Project
                    
14 * @since         3.0.0
                    
38     * @return mixed Wrapped text.
                    
39     * @link https://book.cakephp.org/4/en/core-libraries/global-constants-and-functions.html#h
                    
40     */
                    
146
                    
147        $template = PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' ? '<pre class="pr">%s</pre>' : "\n%s\n\n";
                    
148        printf($template, trim(print_r($var, true)));
                    
174
                    
175        $template = PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' ? '<pre class="pj">%s</pre>' : "\n%s\n\n";
                    
176        printf($template, trim(json_encode($var, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)));
                    
                
reflection_php5.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 275 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: reflection_php5.php 4378 2006-10-27 10:04:53Z pachanga $
                    
7     */
                    
27         *    Checks that a class has been declared. Versions
                    
28         *    before PHP5.0.2 need a check that it's not really
                    
29         *    an interface.
                    
41        /**
                    
42         *    Needed to kill the autoload feature in PHP5
                    
43         *    for classes created dynamically.
                    
61        /**
                    
62         *    Needed to kill the autoload feature in PHP5
                    
63         *    for classes created dynamically.
                    
71        /**
                    
72         *    Needed to select the autoload feature in PHP5
                    
73         *    for classes created dynamically.
                    
                
handler.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 306 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
86        $getter = 'get_' . $key;
                    
87        if (method_exists($this, $getter)) {
                    
88            return $this->$getter();
                    
292
                    
293            $replaced = implode(PHP_EOL, array_reverse($reverse));
                    
294            $message = trim($replaced);
                    
                
DB_utility.php https://gitlab.com/ablu/invertika-backup-web | PHP | 389 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
96		// Note: Due to a bug in current() that affects some versions
                    
97		// of PHP we can not pass function call directly into it
                    
98		return current($res);
                    
124			// Note: Due to a bug in current() that affects some versions
                    
125			// of PHP we can not pass function call directly into it
                    
126			$res = $query->result_array();
                    
158		// Note: Due to a bug in current() that affects some versions
                    
159		// of PHP we can not pass function call directly into it
                    
160		$res = $query->result_array();
                    
177	{
                    
178		if ( ! is_object($query) OR ! method_exists($query, 'list_fields'))
                    
179		{
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
118        );
                    
119        if (method_exists($this->_imageHandler, 'optimizeImageLayers')) {
                    
120            $this->_imageHandler->optimizeImageLayers();
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
264
                    
265        if (method_exists($watermark, 'setImageOpacity')) {
                    
266            // available from imagick 6.3.1
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
422        if (!empty($font)) {
                    
423            if (method_exists($image, 'setFont')) {
                    
424                $image->setFont($font);
                    
                
Command.php https://gitlab.com/Sigpot/AirSpot | PHP | 523 lines
                    
1<?php
                    
2
                    
166    {
                    
167        $method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
168
                    
                
Parser.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 356 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2003 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.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// +----------------------------------------------------------------------+
                    
                
Environment.php https://gitlab.com/alexandresgv/siteentec | PHP | 343 lines
                    
1<?php
                    
2/**
                    
100        // Run the migration
                    
101        if (method_exists($migration, MigrationInterface::CHANGE)) {
                    
102            if ($direction === MigrationInterface::DOWN) {
                    
107                $migration->setAdapter($proxyAdapter);
                    
108                /** @noinspection PhpUndefinedMethodInspection */
                    
109                $migration->change();
                    
112            } else {
                    
113                /** @noinspection PhpUndefinedMethodInspection */
                    
114                $migration->change();
                    
146        // Run the seeder
                    
147        if (method_exists($seed, SeedInterface::RUN)) {
                    
148            $seed->run();
                    
                
ClassesModule.java https://github.com/GEFFROY/Quercus.git | Java | 372 lines
                    
99
                    
100    // php/[03]9m1
                    
101    return cl != null && ! cl.isInterface();
                    
147  {
                    
148    // php/1j11
                    
149
                    
185  {
                    
186    // php/1j10
                    
187
                    
232
                    
233    // #3253, php/4as7 - XXX: needs cleanup
                    
234
                    
290
                    
291    // php/[03]9m0
                    
292    return cl != null && cl.isInterface();
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
70			$method = str_replace(" ", "_", $act[0]);
                    
71			if( method_exists($this, $method) ) {
                    
72				call_user_func_array( array( $this,$method ), array());
                    
109				$method = str_replace(" ", "_", $judul);
                    
110				if( method_exists($this, $method) ) {
                    
111					call_user_func_array( array( $this,$method ), array());
                    
                
Connection.php https://github.com/depage/depage-cms.git | PHP | 509 lines
                    
1<?php
                    
2
                    
184            case Protocol::TYPE_TEXT:
                    
185                if (method_exists($app, 'onData')) {
                    
186                    $app->onData((string)$payload, $this);
                    
190            case Protocol::TYPE_BINARY:
                    
191                if (method_exists($app, 'onBinaryData')) {
                    
192                    $app->onBinaryData((string)$payload, $this);
                    
270
                    
271        if ($this->application && method_exists($this->application, 'onDisconnect')) {
                    
272            $this->application->onDisconnect($this);
                    
393
                    
394            if (method_exists($this->application, 'onConnect')) {
                    
395                $this->application->onConnect($this);
                    
                
Container.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Tool/Project/Profile/Resource/SearchConstraints.php';
                    
27
                    
107                    if (!is_array($currentConstraint->params)) {
                    
108                        require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
109                        throw new Zend_Tool_Project_Profile_Exception('Search parameter specifics must be in the form of an array for key "'
                    
147            if (($parentResource = $this->search($appendResourceOrSearchConstraints)) == false) {
                    
148                require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
149                throw new Zend_Tool_Project_Profile_Exception('No node was found to append to.');
                    
173            } else {
                    
174                require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
175                throw new Zend_Tool_Project_Profile_Exception('Context by name ' . $context . ' was not found in the context registry.');
                    
177        } elseif (!$context instanceof Zend_Tool_Project_Context_Interface) {
                    
178            require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
179            throw new Zend_Tool_Project_Profile_Exception('Context must be of type string or Zend_Tool_Project_Context_Interface.');
                    
                
FlashMessenger.php https://github.com/tmccormi/openemr.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
342
                    
343        if (method_exists($this->getView(), 'plugin')) {
                    
344            $this->escapeHtmlHelper = $this->view->plugin('escapehtml');
                    
                
Repository.php https://github.com/tanduy/zf.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
104                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
105                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
106                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
181                        if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) {
                    
182                            require_once 'Zend/Tool/Framework/Metadata/Dynamic.php';
                    
183                        }
                    
187                    if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) {
                    
188                        require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
189                        throw new Zend_Tool_Framework_Manifest_Exception(
                    
284                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
285                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
286                $string .= $metadataString;
                    
                
Json.php https://github.com/gryzz/crystal_magento.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 */
                    
26 */
                    
27#require_once 'Zend/Json/Expr.php';
                    
28
                    
77
                    
78        #require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
103    {
                    
104        if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
                    
105            return $valueToEncode->toJson();
                    
115             */
                    
116            #require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
                
function.html_options.php https://gitlab.com/adamlwalker/generatedata | PHP | 174 lines
                    
1<?php
                    
2/**
                    
26 * 
                    
27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image}
                    
28 *      (Smarty online manual)
                    
37{
                    
38    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
39
                    
71                        if (is_object($_sel)) {
                    
72                            if (method_exists($_sel, "__toString")) {
                    
73                                $_sel = smarty_function_escape_special_chars((string) $_sel->__toString());
                    
83                } elseif (is_object($_val)) {
                    
84                    if (method_exists($_val, "__toString")) {
                    
85                        $selected = smarty_function_escape_special_chars((string) $_val->__toString());
                    
146        if (is_object($value)) {
                    
147            if (method_exists($value, "__toString")) {
                    
148                $value = smarty_function_escape_special_chars((string) $value->__toString());
                    
                
Container.php https://bitbucket.org/jelito/asdf.git | PHP | 337 lines
                    
1<?php
                    
2
                    
115		return isset($this->registry[$name])
                    
116			|| method_exists($this, $method = Container::getMethodName($name)) && $this->getReflection()->getMethod($method)->getName() === $method;
                    
117	}
                    
145
                    
146		} elseif (!method_exists($this, $method) || $this->getReflection()->getMethod($method)->getName() !== $method) {
                    
147			throw new MissingServiceException("Service '$name' not found.");
                    
                
class_image.php https://gitlab.com/ptisky/API_prestashop | PHP | 264 lines
                    
1<?php

                    
2/**

                    
116            $class = __NAMESPACE__ . "\\image_$driver";

                    
117            if (class_exists($class) && method_exists($class, "available")) {

                    
118                eval("\$avail = $class::available();");

                    
174

                    
175/** Checks if PHP needs some extra extensions to use the image driver. This

                    
176  * static method should be implemented into driver classes like abstract

                    
                
class-mb-include-exclude.php https://gitlab.com/code26/selah | PHP | 379 lines
                    
1<?php
                    
2/**
                    
75			$func = "check_{$by}";
                    
76			if ( ! isset( $conditions[ $by ] ) || ! method_exists( __CLASS__, $func ) ) {
                    
77				continue;
                    
274		 */
                    
275		if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
                    
276			// If edit other's profile, check edited user.
                    
283			return ! empty( $roles );
                    
284		} elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
                    
285			// If edit profile, check current user.
                    
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.
                    
303			return in_array( $user_id, self::csv_to_array( $user_ids ) );
                    
304		} elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
                    
305			// If edit profile, check current user.
                    
                
Stream.php https://gitlab.com/x33n/respond | PHP | 261 lines
                    
1<?php
                    
2namespace GuzzleHttp\Stream;
                    
4/**
                    
5 * PHP stream implementation
                    
6 */
                    
49        if ($type == 'string') {
                    
50            $stream = fopen('php://temp', 'r+');
                    
51            if ($resource !== '') {
                    
65
                    
66        if ($type == 'object' && method_exists($resource, '__toString')) {
                    
67            return self::factory((string) $resource, $options);
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
1<?php
                    
2
                    
187	 */
                    
188	public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine)
                    
189	{
                    
270
                    
271		\set_error_handler(array(&$this, 'capturePhpErrorWithException'));
                    
272
                    
365	{
                    
366		if (\method_exists($this, 'Logout') && !$this->bUnreadBuffer && !$this->bRunningCallback)
                    
367		{
                    
                
Blueprint.php https://gitlab.com/x33n/grav | PHP | 432 lines
                    
1<?php
                    
2namespace Grav\Common\Data;
                    
349                            $data = call_user_func_array($o, $value);
                    
350                        } elseif ($f && method_exists($o, $f)) {
                    
351                            $data = call_user_func_array(array($o, $f), $value);
                    
                
Json.php https://gitlab.com/rsilveira1987/Expresso | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
26 */
                    
27require_once 'Zend/Json/Expr.php';
                    
28
                    
77
                    
78        require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
103    {
                    
104        if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
                    
105            return $valueToEncode->toJson();
                    
115             */
                    
116            require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
62        $xmldoc =@ new DOMDocument;
                    
63        if(!is_object($xmldoc) || !method_exists($xmldoc,'loadHTML')) return $this->html;
                    
64
                    
                
Adaptable.php https://github.com/brtriver/sukonv.git | PHP | 311 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
179		foreach ($strategies as $strategy) {
                    
180			if (method_exists($strategy, $method)) {
                    
181				$data = $strategy->{$method}($data, $options);
                    
                
PasswordCompatibilityLibrary.php https://gitlab.com/mlnkv/php-login-master | PHP | 222 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
4 *
                    
5 * @author Anthony Ferrara <ircmaxell@php.net>
                    
6 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
38            case PASSWORD_BCRYPT:
                    
39                // Note that this is a C constant, but not exposed to PHP, so we don't define it here.
                    
40                $cost = 10;
                    
67                case 'object':
                    
68                    if (method_exists($options['salt'], '__tostring')) {
                    
69                        $salt = (string) $options['salt'];
                    
                
Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tool/Framework/Provider/Signature.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
103
                    
104        if (method_exists($provider, 'getName')) {
                    
105            $providerName = $provider->getName();
                    
114        {
                    
115            #require_once 'Zend/Tool/Framework/Provider/Exception.php';
                    
116            throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerName
                    
                
RouteListCommand.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | PHP | 246 lines
                    
1<?php
                    
2
                    
175    {
                    
176        if (! method_exists($controller, 'getMiddleware')) {
                    
177            return [];
                    
                
function.html_radios.php https://gitlab.com/fangfangchen/xianpipa | PHP | 200 lines
                    
1<?php
                    
2/**
                    
11 * 
                    
12 * File:       function.html_radios.php<br>
                    
13 * Type:       function<br>
                    
34 * 
                    
35 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
                    
36 *      (Smarty online manual)
                    
46{
                    
47    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
48
                    
71                } elseif (is_object($_val)) {
                    
72                    if (method_exists($_val, "__toString")) {
                    
73                        $selected = smarty_function_escape_special_chars((string) $_val->__toString());
                    
144    if (is_object($value)) {
                    
145        if (method_exists($value, "__toString")) {
                    
146            $value = (string) $value->__toString();
                    
                
Dispatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
397
                    
398			if (method_exists($class, 'queue'))
                    
399			{
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 138 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class EmailViewEmail extends JView
                    
13		$function = $this->getLayout();
                    
14		if(method_exists($this,$function)) $this->$function();
                    
15		parent::display($tpl);
                    
78		$script .= "function insertTag(tag){ try{jInsertEditorText(tag,'editor_body'); document.getElementById('iframetag').style.display = 'none'; displayTags(); return true;} catch(err){alert('Your editor does not enable AcyMailing to automatically insert the tag, please copy/paste it manually in your Newsletter'); return false;}}";
                    
79		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=tag&task=tag&type=news\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
80		$script .= "var openTag = true;
                    
97					openTag = !openTag;}";
                    
98		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=template&task=theme&tmpl=component\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
99		$script .= "var openTemplate = true;
                    
                
functions.php https://bitbucket.org/imia_de/t3ext-imia-base.git | PHP | 471 lines
                    
1<?php
                    
2namespace GuzzleHttp\Promise;
                    
72    // Return a Guzzle promise that shadows the given promise.
                    
73    if (method_exists($value, 'then')) {
                    
74        $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null;
                    
74        $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null;
                    
75        $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null;
                    
76        $promise = new Promise($wfn, $cfn);
                    
194 * @throws \Exception on error
                    
195 * @throws \Throwable on error in PHP >=7
                    
196 */
                    
                
Default.php https://bitbucket.org/simukti/zf1.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
142            } else if (is_array($attributeNameTreatment) &&
                    
143                    !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
                    
144                $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
DocBlockReflection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 296 lines
                    
1<?php
                    
2/**
                    
93            $this->reflector = $commentOrReflector;
                    
94            if (!method_exists($commentOrReflector, 'getDocComment')) {
                    
95                throw new Exception\InvalidArgumentException('Reflector must contain method "getDocComment"');
                    
271    {
                    
272        $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL;
                    
273        $str .= "  - Tags [" . count($this->tags) . "] {" . PHP_EOL;
                    
278
                    
279        $str .= "  }" . PHP_EOL;
                    
280        $str .= "}" . PHP_EOL;
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 228 lines
                    
1<?php
                    
2
                    
161				$parameters = $this->arParams['METADATA']['HANDLER']['PARAMETERS'];
                    
162				if (Loader::includeModule($module) && method_exists($className, $buildMethod))
                    
163				{
                    
                
AsseticExtension.php https://gitlab.com/freebird/WebApp | PHP | 170 lines
                    
1<?php
                    
2
                    
39        $loader->load('templating_twig.xml');
                    
40        $loader->load('templating_php.xml');
                    
41
                    
42        $def = $container->getDefinition('assetic.parameter_bag');
                    
43        if (method_exists($def, 'setFactory')) {
                    
44            // to be inlined in assetic.xml when dependency on Symfony DependencyInjection is bumped to 2.6
                    
                
UuidValidator.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 346 lines
                    
1<?php
                    
2
                    
83
                    
84        if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) {
                    
85            throw new UnexpectedTypeException($value, 'string');
                    
                
Dojo.php https://bitbucket.org/acidel/buykoala.git | PHP | 176 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Dojo.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Registry */
                    
24#require_once 'Zend/Registry.php';
                    
25
                    
72        if (!isset($registry[__CLASS__])) {
                    
73            #require_once 'Zend/Dojo/View/Helper/Dojo/Container.php';
                    
74            $container = new Zend_Dojo_View_Helper_Dojo_Container();
                    
111    {
                    
112        if (!method_exists($this->_container, $method)) {
                    
113            #require_once 'Zend/Dojo/View/Exception.php';
                    
                
view.html.php https://github.com/sherdog/GitWitty.git | PHP | 291 lines
                    
1<?php

                    
2/**

                    
3 * @copyright	Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.

                    
4 * @license		http://www.acyba.com/commercial_license.php

                    
5 */

                    
7?>

                    
8<?php
                    
9class SubscriberViewSubscriber extends JView

                    
15		$function = $this->getLayout();

                    
16		if(method_exists($this,$function)) $this->$function();
                    
17		parent::display($tpl);

                    
140			i = 0;

                    
141			mylink = 'index.php?option=com_acymailing&ctrl=filter&tmpl=component&subid=';

                    
142			while(window.document.getElementById('cb'+i)){

                    
245		if(!empty($subid) && acymailing::level(2)){

                    
246			$bar->appendButton( 'Popup', 'send', JText::_('SEND'), "index.php?option=com_acymailing&ctrl=send&task=addqueue&tmpl=component&subid=".$subid);

                    
247			JToolBarHelper::divider();
                    
                
FilesystemManager.php https://gitlab.com/Sigpot/AirSpot | PHP | 330 lines
                    
1<?php
                    
2
                    
117
                    
118        if (method_exists($this, $driverMethod)) {
                    
119            return $this->{$driverMethod}($config);
                    
                
Data.php https://github.com/thomasweidner/zf2.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
499        if (is_object($item)) {
                    
500            if (method_exists($item, 'toArray')) {
                    
501                $item = $item->toArray();
                    
                
ajax.php https://bitbucket.org/enurkov/prestashop.git | PHP | 214 lines
                    
1<?php
                    
2
                    
2
                    
3include_once('../../config/config.inc.php');
                    
4include_once('../../init.php');
                    
4include_once('../../init.php');
                    
5include_once('../../modules/shopimporter/shopimporter.php');
                    
6
                    
58	
                    
59	if (file_exists('../../modules/'.$moduleName.'/'.$moduleName.'.php'))
                    
60	{
                    
60	{
                    
61		require_once('../../modules/'.$moduleName.'/'.$moduleName.'.php');
                    
62		$importModule = new $moduleName();
                    
67		$importModule->prefix = $prefix;
                    
68		if (!method_exists($importModule, $getMethod))
                    
69			die('{"hasError" : true, "error" : ["not_exist"], "datas" : []}');
                    
                
Json.php https://bitbucket.org/pcelta/zf2.git | PHP | 384 lines
                    
1<?php
                    
2/**
                    
104        if (is_object($valueToEncode)) {
                    
105            if (method_exists($valueToEncode, 'toJson')) {
                    
106                return $valueToEncode->toJson();
                    
106                return $valueToEncode->toJson();
                    
107            } elseif (method_exists($valueToEncode, 'toArray')) {
                    
108                return static::encode($valueToEncode->toArray(), $cycleCheck, $options);
                    
218     *
                    
219     * This function converts the SimpleXMLElement object into a PHP array by
                    
220     * calling a recursive (protected static) function in this class. Once all
                    
220     * calling a recursive (protected static) function in this class. Once all
                    
221     * the XML elements are stored in the PHP array, it is returned to the caller.
                    
222     *
                    
298     *
                    
299     * This function converts the XML formatted string into a PHP array by
                    
300     * calling a recursive (protected static) function in this class. Then, it
                    
                
Lexer.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 362 lines
                    
1<?php
                    
2
                    
99                    if (class_exists('DOMDocument') &&
                    
100                        method_exists('DOMDocument', 'loadHTML') &&
                    
101                        !extension_loaded('domxml')
                    
136
                    
137        // once PHP DOM implements native line numbers, or we
                    
138        // hack out something using XSLT, remove this stipulation
                    
                
JsHelper.php https://gitlab.com/tixture55/cakeATM | PHP | 436 lines
                    
4 *
                    
5 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.View.Helper
                    
14 * @package       Cake.View.Helper
                    
15 * @since         CakePHP(tm) v 1.2
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
120	public function __call($method, $params) {
                    
121		if ($this->{$this->_engineName} && method_exists($this->{$this->_engineName}, $method)) {
                    
122			$buffer = false;
                    
162 * @return string a JavaScript-safe/JSON representation of $val
                    
163 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelper::value
                    
164 */
                    
                
Controller.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 524 lines
                    
1<?php
                    
2
                    
110
                    
111        if (!method_exists($this, $method)) {
                    
112            throw new \RuntimeException('Page Not Found', 404);
                    
                
reflection_php5.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 386 lines
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reflection_php5.php 1786 2008-04-26 17:32:20Z pp11 $
                    
7 */
                    
27     *    Checks that a class has been declared. Versions
                    
28     *    before PHP5.0.2 need a check that it's not really
                    
29     *    an interface.
                    
41    /**
                    
42     *    Needed to kill the autoload feature in PHP5
                    
43     *    for classes created dynamically.
                    
61    /**
                    
62     *    Needed to kill the autoload feature in PHP5
                    
63     *    for classes created dynamically.
                    
288        }
                    
289        if (version_compare(phpversion(), '5.1.0', '>=')) {
                    
290            if (in_array($name, array('__get', '__isset', $name == '__unset'))) {
                    
                
RendererAbstract.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 540 lines
                    
1<?php
                    
2/**
                    
119            $method = 'set' . $key;
                    
120            if (method_exists($this, $method)) {
                    
121                $this->$method($value);
                    
176        if (!is_numeric($value) || intval($value) < 0) {
                    
177            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
178            throw new Zend_Barcode_Renderer_Exception(
                    
203        if (!is_numeric($value) || intval($value) < 0) {
                    
204            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
205            throw new Zend_Barcode_Renderer_Exception(
                    
240        if (!in_array($value, array('left' , 'center' , 'right'))) {
                    
241            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
242            throw new Zend_Barcode_Renderer_Exception(
                    
267        if (!in_array($value, array('top' , 'middle' , 'bottom'))) {
                    
268            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
269            throw new Zend_Barcode_Renderer_Exception(
                    
                
Default.php https://bitbucket.org/ksekar/campus.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 24613 2012-01-21 14:44:26Z sgehrig $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
142            } else if (is_array($attributeNameTreatment) &&
                    
143                    !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
                    
144                $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
BWGControllerTags_bwg.php https://gitlab.com/edgarze188/sunrise | PHP | 238 lines
                    
1<?php
                    
2
                    
25    echo WDWLibrary::message_id($message);
                    
26    if (method_exists($this, $task)) {
                    
27      $this->$task($id);
                    
34  public function display() {
                    
35    require_once WD_BWG_DIR . "/admin/models/BWGModelTags_bwg.php";
                    
36    $model = new BWGModelTags_bwg();
                    
37
                    
38    require_once WD_BWG_DIR . "/admin/views/BWGViewTags_bwg.php";
                    
39    $view = new BWGViewTags_bwg($model);
                    
45    $page = WDWLibrary::get('page');
                    
46    WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
                    
47  } 
                    
189    $page = WDWLibrary::get('page');
                    
190    WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
                    
191  }
                    
                
Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            #require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            #require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
227        } else {
                    
228            #require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
356        if (!is_string($json)) {
                    
357            #require_once 'Zend/Dojo/Exception.php';
                    
358            throw new Zend_Dojo_Exception('fromJson() expects JSON input');
                    
                
profile.php https://gitlab.com/0072016/wordpress | PHP | 225 lines
                    
1<?php
                    
2/**
                    
42		if ( ! class_exists( 'Facebook_Settings' ) )
                    
43			require_once( dirname(__FILE__) . '/settings.php' );
                    
44
                    
69		if ( ! class_exists( 'Facebook_User' ) )
                    
70			require_once( dirname( dirname(__FILE__) ) . '/facebook-user.php' );
                    
71
                    
92
                    
93		if ( ! ( $wp_user && isset( $wp_user->ID ) && method_exists( $wp_user, 'exists' ) && $wp_user->exists() && user_can( $wp_user, 'edit_posts' ) ) )
                    
94			return;
                    
117			if ( ! class_exists( 'Facebook_WP_Extend' ) )
                    
118				require_once( $facebook_loader->plugin_directory . 'includes/facebook-php-sdk/class-facebook-wp.php' );
                    
119			$permissions = Facebook_WP_Extend::get_permissions_by_facebook_user_id( $facebook_user_data['fb_uid'] );
                    
174				if ( ! class_exists( 'Facebook_WP_Extend' ) )
                    
175					require_once( dirname( dirname(__FILE__) ) . '/includes/facebook-php-sdk/class-facebook-wp.php' );
                    
176
                    
                
Observer.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
91                    }
                    
92                    if (!($model = Mage::getModel($run[1])) || !method_exists($model, $run[2])) {
                    
93                        Mage::throwException(Mage::helper('cron')->__('Invalid callback: %s::%s does not exist', $run[1], $run[2]));
                    
                
JUnit.php https://gitlab.com/techniconline/kmc | PHP | 454 lines
                    
17 */
                    
18class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
                    
19{
                    
118     *
                    
119     * @param PHPUnit_Framework_Test $test
                    
120     * @param Exception $e
                    
157     */
                    
158    public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
                    
159    {
                    
199                    "Incomplete Test\n" .
                    
200                    PHPUnit_Util_Filter::getFilteredStacktrace($e)
                    
201                )
                    
364
                    
365        if ($test instanceof PHPUnit_Framework_TestCase) {
                    
366            $class = new ReflectionClass($test);
                    
                
group.php https://bitbucket.org/moodle/moodle.git | PHP | 278 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27
                    
28require_once("HTML/QuickForm/group.php");
                    
29require_once('templatable_form_element.php');
                    
67    /**
                    
68     * Old syntax of class constructor. Deprecated in PHP7.
                    
69     *
                    
114        foreach ($this->_elements as $element){
                    
115            if (method_exists($element, 'setHiddenLabel')){
                    
116                $element->setHiddenLabel(true);
                    
164
                    
165        include_once('HTML/QuickForm/Renderer/Default.php');
                    
166
                    
190
                    
191            // Replicates the separator logic from 'pear/HTML/QuickForm/Renderer/Default.php'.
                    
192            $separator = '';
                    
                
AbstractToken.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 286 lines
                    
1<?php
                    
2
                    
90    {
                    
91        if (!($user instanceof UserInterface || (is_object($user) && method_exists($user, '__toString')) || is_string($user))) {
                    
92            throw new \InvalidArgumentException('$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.');
                    
                
controller.php https://github.com/concrete5/concrete5.git | PHP | 405 lines
                    
1<?php
                    
2
                    
93                foreach ($blocks as $block) {
                    
94                    if (method_exists($block->instance, 'getSearchableContent')) {
                    
95                        $searchableContent .= $block->instance->getSearchableContent();
                    
229        $p = new Checker($stack);
                    
230        /** @phpstan-ignore-next-line */
                    
231        if ($p->canViewPage()) {
                    
234                $bp = new Checker($b);
                    
235                /** @phpstan-ignore-next-line */
                    
236                if ($bp->canViewBlock()) {
                    
373        $p = new Checker($stack);
                    
374        /** @phpstan-ignore-next-line */
                    
375        if ($p->canViewPage()) {
                    
                
AbstractFtpAdapter.php https://gitlab.com/techniconline/kmc | PHP | 613 lines
                    
1<?php
                    
2
                    
107
                    
108            if (method_exists($this, $method)) {
                    
109                $this->$method($config[$setting]);
                    
                
Lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 298 lines
                    
1<?php
                    
2
                    
97                    class_exists('DOMDocument') &&
                    
98                    method_exists('DOMDocument', 'loadHTML') &&
                    
99                    !extension_loaded('domxml')
                    
129
                    
130        // once PHP DOM implements native line numbers, or we
                    
131        // hack out something using XSLT, remove this stipulation
                    
                
DumpDataCollector.php https://gitlab.com/ealexis.t/trends | PHP | 295 lines
                    
1<?php
                    
2
                    
44        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
45        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
46        $this->requestStack = $requestStack;
                    
96                        $name = $info->getTemplateName();
                    
97                        $src = method_exists($info, 'getSource') ? $info->getSource() : $info->getEnvironment()->getLoader()->getSource($name);
                    
98                        $info = $info->getDebugInfo();
                    
150            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
151                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
152            } else {
                    
152            } else {
                    
153                $this->dumper = new CliDumper('php://output', $this->charset);
                    
154            }
                    
192    {
                    
193        $data = fopen('php://memory', 'r+b');
                    
194
                    
                
Repository.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 275 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26// require_once 'Zend/Tool/Framework/Provider/Signature.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
103
                    
104        if (method_exists($provider, 'getName')) {
                    
105            $providerName = $provider->getName();
                    
114        {
                    
115            // require_once 'Zend/Tool/Framework/Provider/Exception.php';
                    
116            throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerName
                    
                
Show.php https://github.com/intraface/intraface.dk.git | PHP | 283 lines
                    
1<?php
                    
2class Intraface_modules_intranetmaintenance_Controller_User_Show extends k_Component
                    
201        }
                    
202        if (method_exists($this->context, 'getIntranet') and $this->context->getIntranet()->getId() > 0) {
                    
203            return $this->intranetmaintenance = new IntranetMaintenance($this->context->getIntranet()->getId());
                    
                
 

Source

Language