PageRenderTime 898ms queryTime 414ms sortTime 12ms getByIdsTime 57ms findMatchingLines 70ms

100+ results results for 'php method_exists repo:ddonthula/zurmolatest' (898 ms)

Not the results you expected?
Grammar.php https://gitlab.com/btkm/correct_fb | 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://gitlab.com/blingbang2016/shop | 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'];
                    
                
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
                    
                
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;
                    
                
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
                    
                
Dispatcher.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
397
                    
398			if (method_exists($class, 'queue'))
                    
399			{
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/stevie007/cinostaging | 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(
                    
                
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.');
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 273 lines
                    
9endif;
                    
10require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/components/bitrix/webdav/functions.php");
                    
11
                    
161					CBPDocument::AddDocumentToHistory($arParams['DOCUMENT_ID'], $arParams['OBJECT']->arParams["element_name"], $GLOBALS["USER"]->GetID());
                    
162					if (method_exists('CIBlockDocumentWebdav', 'TruncateHistory'))
                    
163						CIBlockDocumentWebdav::TruncateHistory($arParams['OBJECT']->wfParams['DOCUMENT_TYPE'], $arParams["DOCUMENT_ID"][2]);
                    
                
editor.php https://gitlab.com/che234/adn | PHP | 343 lines
                    
1<?php
                    
2
                    
107                // load mobile detect class
                    
108                require_once(dirname(__FILE__) . '/mobile.php');
                    
109            }
                    
122            // Joomla! 1.6+
                    
123            if (method_exists('JUser', 'getAuthorisedGroups')) {
                    
124                $keys = $user->getAuthorisedGroups();
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 185 lines
                    
1<?php
                    
2namespace Bitrix\Landing\Internals;
                    
152
                    
153		if (method_exists($class, 'setAccessFilter'))
                    
154		{
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
9		"SHOW_STATUS" => "Y",
                    
10		"EDIT_URL" => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php",
                    
11	);
                    
15	$arDefaultUrl = array(
                    
16		'EDIT_URL' => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php",
                    
17	);
                    
49	$arParams['NAME_TEMPLATE'] = empty($arParams['NAME_TEMPLATE'])
                    
50		? (method_exists('CSite', 'GetNameFormat') ? CSite::GetNameFormat() : "#NAME# #LAST_NAME#")
                    
51		: $arParams["NAME_TEMPLATE"];
                    
333										{
                    
334											$file_link = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrAns["USER_FILE_HASH"]."&lang=".LANGUAGE_ID;
                    
335
                    
348							$arResultAnswer["ANSWER_FILE"] = array();
                    
349							$arResultAnswer["ANSWER_FILE"]["URL"] = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrA["USER_FILE_HASH"]."&lang=".LANGUAGE_ID;
                    
350							$arResultAnswer["ANSWER_FILE"]["NAME"] = htmlspecialcharsbx($arrA["USER_FILE_NAME"]);
                    
                
Repository.php https://gitlab.com/blingbang2016/shop | 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
                    
                
Lexer.php https://gitlab.com/hop23typhu/list-theme | 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
                    
                
Dispatcher.php https://gitlab.com/Urtekin/ertexAdmin | PHP | 503 lines
                    
1<?php
                    
2
                    
257
                    
258            $queue = method_exists($event, 'onQueue') ? $event->onQueue() : null;
                    
259
                    
411
                    
412            if (method_exists($class, 'queue')) {
                    
413                $this->callQueueMethodOnHandler($class, $method, $arguments);
                    
                
BladeCompiler.php https://gitlab.com/fabian.morales/Spencial | 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	 *
                    
                
Standalone.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
17 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @version    $Id: Standalone.php 11374 2008-09-12 17:06:22Z ralph $
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
22/** Zend_View_Helper_Placeholder_Registry */
                    
23require_once 'Zend/View/Helper/Placeholder/Registry.php';
                    
24
                    
24
                    
25/** Zend_View_Helper_Abstract.php */
                    
26require_once 'Zend/View/Helper/Abstract.php';
                    
220        $container = $this->getContainer();
                    
221        if (method_exists($container, $method)) {
                    
222            $return = call_user_func_array(array($container, $method), $args);
                    
229
                    
230        require_once 'Zend/View/Exception.php';
                    
231        throw new Zend_View_Exception('Method "' . $method . '" does not exist');
                    
                
ServiceContext.php git://github.com/twilio/twilio-php.git | PHP | 223 lines
                    
1<?php
                    
2
                    
203        $property = $this->$name;
                    
204        if (\method_exists($property, 'getContext')) {
                    
205            return \call_user_func_array(array($property, 'getContext'), $arguments);
                    
                
toggle.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 185 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class ToggleController extends JController{
                    
41		$function = $table.$task;
                    
42		if(method_exists($this,$function)){
                    
43			$this->$function($elementId,$value);
                    
120		$function = 'delete'.$table;
                    
121		if(method_exists($this,$function)){
                    
122			$this->$function($value1,$value2);
                    
                
Command.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 387 lines
                    
1<?php namespace Illuminate\Console;
                    
2
                    
112	{
                    
113		$method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
114
                    
                
BaseVarDumper.php https://gitlab.com/piotrbilski/yiiPriceWatcher | 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);
                    
                
init.php https://gitlab.com/che234/smproducciones | PHP | 321 lines
                    
1<?php
                    
2/** @var $gmDB
                    
144    if(isset($settings['commentsBGColor']) || isset($settings['commentsBGAlpha'])) {
                    
145        if(method_exists($gmCore, 'hex2rgb')) {
                    
146            $rgb   = implode(',', $gmCore->hex2rgb($allsettings['commentsBGColor']));
                    
240            jQuery(function() {
                    
241                var settings = <?php echo $json_settings; ?>;
                    
242                var content = <?php echo json_encode($content); ?>;
                    
242                var content = <?php echo json_encode($content); ?>;
                    
243                jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').gmPhantom([content, settings]);
                    
244            });
                    
286                <div class="gmPhantom_ThumbContainer gmPhantom_ThumbLoader<?php echo(!in_array($item['type'], array('image'))? " mfp-iframe" : ''); ?>" data-ratio="<?php echo $thumb_r; ?>" data-no="<?php echo $i++; ?>"><?php
                    
287                ?><a href="<?php echo $gmCore->upload['url'] . $item['src']; ?>" class="gmPhantom_Thumb"><img style="<?php echo $style; ?>" src="<?php echo $item['thumb']; ?>" alt="<?php echo esc_attr($item['title']); ?>"/></a><?php
                    
288                if(in_array($allsettings['thumbsInfo'], array('label', 'label_bottom')) && ($item['title'] != '')) {
                    
293                    <div class="gmPhantom_ThumbLabel"><?php echo $item['title']; ?></div>
                    
294                    <div style="display:none;" class="gmPhantom_ThumbCaption"><?php echo $item['text']; ?></div><?php
                    
295                } ?></div><?php
                    
                
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    }
                    
                
Smd.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 461 lines
                    
1<?php
                    
2/**
                    
99            $method = 'set' . ucfirst($key);
                    
100            if (method_exists($this, $method)) {
                    
101                $this->$method($value);
                    
                
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());
                    
                
Default.php https://gitlab.com/blingbang2016/shop | PHP | 312 lines
                    
1<?php
                    
2/**
                    
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) {
                    
291            /** @see Zend_Ldap_Exception */
                    
292            #require_once 'Zend/Ldap/Exception.php';
                    
293            if ($this->_current === false &&
                    
                
DocBlockFactory.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | 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;
                    
                
UuidValidator.php https://gitlab.com/faisaliqbal/mytripsorter | 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');
                    
                
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		{
                    
                
DBComposite.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 332 lines
                    
1<?php
                    
2
                    
49        // by intentionally avoiding hasMethod()
                    
50        if ($this->hasField($property) && !method_exists($this, "set$property")) {
                    
51            $this->setField($property, $value);
                    
60        // by intentionally avoiding hasMethod()
                    
61        if ($this->hasField($property) && !method_exists($this, "get$property")) {
                    
62            return $this->getField($property);
                    
                
update.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 451 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
48
                    
49	if ( method_exists( $wpdb, 'db_version' ) )
                    
50		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
160		case 'load-plugins.php' :
                    
161		case 'load-update.php' :
                    
162			$timeout = 3600; // 1 hour
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
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);
                    
                
Citation.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 666 lines
                    
1<?php
                    
2
                    
9 * @copyright 2009 California State University
                    
10 * @version $Id: Citation.php 1030 2010-01-05 18:42:09Z dwalker@calstate.edu $
                    
11 * @package Xerxes
                    
107			
                    
108			if ( method_exists($xerxes, $method) )
                    
109			{
                    
337		{
                    
338			if ( method_exists($this, $name) )
                    
339			{
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 186 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class FilterViewFilter extends JView
                    
13		$function = $this->getLayout();
                    
14		if(method_exists($this,$function)) $this->$function();
                    
15		parent::display($tpl);
                    
106					try{
                    
107						new Ajax('index.php?'+document.adminForm.toQueryString()+'&option=com_acymailing&tmpl=component&ctrl=filter&task=countresults&num='+num,{ method: 'post', update: document.getElementById('countresult_'+num)}).request();
                    
108					}catch(err){
                    
110						method: 'post',
                    
111						url: 'index.php?'+document.adminForm.toQueryString()+'&option=com_acymailing&tmpl=component&ctrl=filter&task=countresults&num='+num,
                    
112						onSuccess: function(responseText, responseXML) {
                    
                
customizer.php https://gitlab.com/hop23typhu/list-theme | PHP | 357 lines
                    
1<?php
                    
2/**
                    
24		//** Register new customizer elements
                    
25		if ( method_exists( $this, 'register' ) ) {
                    
26			add_action( 'customize_register', array( $this, 'register'), 15 );
                    
31		//* Customizer scripts
                    
32		if ( method_exists( $this, 'scripts' ) ) {
                    
33			add_action( 'customize_preview_init', 'scripts' );
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 273 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class SubscriberViewSubscriber extends JView
                    
15		$function = $this->getLayout();
                    
16		if(method_exists($this,$function)) $this->$function();
                    
17		parent::display($tpl);
                    
246		if(!empty($subscriber->userid)){
                    
247			if(file_exists(ACYMAILING_ROOT.'components'.DS.'com_comprofiler'.DS.'comprofiler.php')){
                    
248				$editLink = 'index.php?option=com_comprofiler&task=edit&cid[]=';
                    
249			}elseif(version_compare(JVERSION,'1.6.0','<')){
                    
250				$editLink = 'index.php?option=com_users&task=edit&cid[]=';
                    
251			}else{
                    
251			}else{
                    
252				$editLink = 'index.php?option=com_users&task=user.edit&id=';
                    
253			}
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/Gashler/dp | PHP | 477 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
45
                    
46		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
47			return false;
                    
95		// Here, we just say no if you are missing it and aren't loading a jpeg.
                    
96		if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type != 'image/jpeg' )
                    
97				return false;
                    
121
                    
122		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
123		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
                
Router.php https://gitlab.com/freebird/WebApp | PHP | 346 lines
                    
1<?php
                    
2
                    
116            'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
                    
117            'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
                    
118            'generator_cache_class' => 'ProjectUrlGenerator',
                    
120            'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher',
                    
121            'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
                    
122            'matcher_cache_class' => 'ProjectUrlMatcher',
                    
254            $this->matcher = new $this->options['matcher_class']($this->getRouteCollection(), $this->context);
                    
255            if (method_exists($this->matcher, 'addExpressionLanguageProvider')) {
                    
256                foreach ($this->expressionLanguageProviders as $provider) {
                    
264        $class = $this->options['matcher_cache_class'];
                    
265        $cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']);
                    
266        if (!$cache->isFresh()) {
                    
267            $dumper = $this->getMatcherDumperInstance();
                    
268            if (method_exists($dumper, 'addExpressionLanguageProvider')) {
                    
269                foreach ($this->expressionLanguageProviders as $provider) {
                    
                
JsHelper.php https://gitlab.com/chandni.chauhan/Darlie-GumCare | 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 */
                    
                
update.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 354 lines
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the
                    
13 * WordPress server at api.wordpress.org server. Will only check if WordPress
                    
26	global $wp_version, $wpdb, $wp_local_package;
                    
27	$php_version = phpversion();
                    
28
                    
57	$local_package = isset( $wp_local_package )? $wp_local_package : '';
                    
58	$url = "http://api.wordpress.org/core/version-check/1.5/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package&blogs=$num_blogs&users={$user_count['total_users']}&multisite_enabled=$multisite_enabled";
                    
59
                    
136	$new_option->last_checked = time();
                    
137	$timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
                    
138	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
210	if ( !function_exists( 'get_themes' ) )
                    
211		require_once( ABSPATH . 'wp-includes/theme.php' );
                    
212
                    
                
dropdown-menus.php https://gitlab.com/hop23typhu/list-theme | PHP | 260 lines
                    
1<?php
                    
2/*
                    
44function dropdown_add_blank_item( $items, $args ) {
                    
45	if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) ) {
                    
46		if ( ( ! isset( $args->menu ) || empty( $args->menu ) ) && isset( $args->theme_location ) ) {
                    
62function dropdown_remove_empty_items( $items, $args ) {
                    
63	if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) )
                    
64		$items = str_replace( "<option></option>", "", $items );
                    
76		var getElementsByClassName=function(a,b,c){if(document.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||document;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(document.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=document.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=document.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=document.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)},
                    
77			dropdowns = getElementsByClassName( '<?php echo apply_filters( 'dropdown_menus_class', 'dropdown-menu' ); ?>' );
                    
78		for ( i=0; i<dropdowns.length; i++ )
                    
235			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'tfbasedetails' ) ?></label>
                    
236			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $title; ?>" />
                    
237		</p>
                    
238		<p>
                    
239			<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:', 'tfbasedetails' ); ?></label>
                    
240			<select id="<?php echo $this->get_field_id( 'nav_menu' ); ?>" name="<?php echo $this->get_field_name( 'nav_menu' ); ?>">
                    
                
mdl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 309 lines
                    
1<?php
                    
2/**
                    
5 * @package
                    
6 * @version $Id: mdl.messenger.php 1429 2008-04-08 05:22:50Z flaboy $
                    
7 * @copyright 2003-2007 ShopEx
                    
11//adapted into plugin style by Alex 2008-3-14
                    
12require_once('plugin.php');
                    
13
                    
27            $this->_sender[$sender] = &$obj;
                    
28            if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions'))
                    
29                $obj->config = $this->getOptions($sender,true);
                    
29                $obj->config = $this->getOptions($sender,true);
                    
30            if(method_exists($obj,'outgoingConfig')||method_exists($obj,'outgoingconfig'))
                    
31                $obj->outgoingOptions = $this->outgoingConfig($sender,true);
                    
39        if(!$obj->_isReady){
                    
40            if(method_exists($obj,'ready')) $obj->ready($obj->config);
                    
41            if(method_exists($obj,'finish')){
                    
                
CommonModel.php https://gitlab.com/randydanniswara/website | PHP | 279 lines
                    
1<?php
                    
2/**
                    
145            $repo = $this->getRepository();
                    
146            if (method_exists($repo, 'getEntity')) {
                    
147                return $repo->getEntity($id);
                    
                
class_image_gd.php https://gitlab.com/AhmedMedo/Seo | PHP | 354 lines
                    
1<?php
                    
2
                    
189        $method = "output_$type";
                    
190        if (!method_exists($this, $method))
                    
191            return false;
                    
                
OperationResponseParser.php https://gitlab.com/cuitianze/eduwind | PHP | 195 lines
                    
1<?php
                    
2
                    
107        $className = $command->getOperation()->getResponseClass();
                    
108        if (!method_exists($className, 'fromCommand')) {
                    
109            throw new ResponseClassException("{$className} must exist and implement a static fromCommand() method");
                    
                
menu.php https://gitlab.com/alexprowars/bitrix | PHP | 130 lines
                    
13				"text" => htmlspecialcharsbx($res["TITLE"]),
                    
14				"url" => "/bitrix/admin/forum_".($res["TYPE"]=="T"?"letter":"words").".php?DICTIONARY_ID=".$res["ID"]."&amp;lang=".LANG,
                    
15				"more_url" => array(
                    
15				"more_url" => array(
                    
16					"/bitrix/admin/forum_".($res["TYPE"]=="T"?"letter":"words").".php?DICTIONARY_ID=".$res["ID"]."&lang=".LANG,
                    
17					"/bitrix/admin/forum_dictionary_edit.php?DICTIONARY_ID=".$res["ID"]."&lang=".LANG,
                    
17					"/bitrix/admin/forum_dictionary_edit.php?DICTIONARY_ID=".$res["ID"]."&lang=".LANG,
                    
18					"/bitrix/admin/forum_".($res["TYPE"]=="T"?"letter":"words")."_edit.php?DICTIONARY_ID=".$res["ID"]."&lang=".LANG),
                    
19				"title" => htmlspecialcharsbx($res["TITLE"]));
                    
26	if ((
                    
27			method_exists($this, "IsSectionActive") &&
                    
28			($this->IsSectionActive("menu_forum_filter_DW") || $this->IsSectionActive("menu_forum_filter_DT"))
                    
41		"text" => GetMessage("FORUM_CONTROL"),
                    
42		"url" => "/bitrix/admin/forum_index.php?lang=".LANG,
                    
43		"more_url" => [
                    
                
Command.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 523 lines
                    
1<?php
                    
2
                    
166    {
                    
167        $method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
168
                    
                
publicize.php https://gitlab.com/endomorphosis/falkenstein | PHP | 307 lines
                    
1<?php
                    
2/**
                    
18
                    
19		$this->in_jetpack = ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'enable_module_configurable' ) ) ? true : false;
                    
20
                    
20
                    
21		if ( $this->in_jetpack && method_exists( 'Jetpack', 'module_configuration_load' ) ) {
                    
22			Jetpack::enable_module_configurable( __FILE__ );
                    
26
                    
27		require_once dirname( __FILE__ ) . '/publicize/publicize.php';
                    
28
                    
29		if ( $this->in_jetpack )
                    
30			require_once dirname( __FILE__ ) . '/publicize/publicize-jetpack.php';
                    
31		else {
                    
31		else {
                    
32			require_once dirname( dirname( __FILE__ ) ) . '/mu-plugins/keyring/keyring.php';
                    
33			require_once dirname( __FILE__ ) . '/publicize/publicize-wpcom.php';
                    
                
RestController.class.php https://gitlab.com/fangjianwei/weifenxiao | PHP | 234 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
13/**
                    
14 * ThinkPHP REST控制器类
                    
15 */
                    
71        if( 0 === strcasecmp($method,ACTION_NAME.C('ACTION_SUFFIX'))) {
                    
72            if(method_exists($this,$method.'_'.$this->_method.'_'.$this->_type)) { // RESTFul方法支持
                    
73                $fun  =  $method.'_'.$this->_method.'_'.$this->_type;
                    
74                $this->$fun();
                    
75            }elseif($this->_method == $this->defaultMethod && method_exists($this,$method.'_'.$this->_type) ){
                    
76                $fun  =  $method.'_'.$this->_type;
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 244 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class archiveViewArchive extends JView
                    
13    $function = $this->getLayout();
                    
14    if(method_exists($this,$function)) $this->$function();
                    
15    parent::display($tpl);
                    
64			$uri		= JFactory::getURI();
                    
65			$url  = 'index.php?option=com_user&view=login';
                    
66			$url .= '&return='.base64_encode($uri->toString());
                    
                
Repository.php https://gitlab.com/blingbang2016/shop | PHP | 313 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_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;
                    
                
DumpDataCollector.php https://gitlab.com/jed-lagunday/laratuts | 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
                    
                
Webapi.php https://gitlab.com/daigiangaitu91/magento | PHP | 336 lines
                    
1<?php
                    
2/**
                    
113            $methodName = 'prepare' . ucfirst($product->getDataConfig()['type_id']) . 'Options';
                    
114            if (method_exists($this, $methodName)) {
                    
115                $data['cartItem']['product_option'] = $this->$methodName($product);
                    
                
FileDescriptor.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 379 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor
                    
4 *
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
7 * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
                    
8 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @link      http://phpdoc.org
                    
11
                    
12namespace phpDocumentor\Descriptor;
                    
13
                    
335
                    
336            if (method_exists($element, 'getConstants')) {
                    
337                foreach ($element->getConstants() as $item) {
                    
                
create_app.task.php https://github.com/onivan/akelos.git | PHP | 430 lines
                    
1<?php
                    
2
                    
19Example:
                    
20    akelos ~/Code/PHP/weblog
                    
21
                    
21
                    
22    This generates a skeletal Akelos installation in ~/Code/PHP/weblog.
                    
23    See the README in the newly created application to get going.
                    
126            $method_name = 'run'.$evironment.'Tasks';
                    
127            if(method_exists($this, $method_name)){
                    
128                $this->$method_name();
                    
226        $paths = array(
                    
227        $this->options['directory'].DS.'config'.DS.'boot.php',
                    
228        $this->options['directory'].DS.'makelos',
                    
298     *
                    
299     * Giving /path/to/the_framework/lib/Ak.php will rerturn /my/project/path/lib/Ak.php
                    
300     */
                    
                
class_image_imagick.php https://gitlab.com/AhmedMedo/Seo | PHP | 307 lines
                    
1<?php
                    
2
                    
262        $method = "optimize_$type";
                    
263        if (method_exists($this, $method) && !$this->$method($options))
                    
264            return false;
                    
                
CommandCursor.php git://github.com/doctrine/mongodb.git | PHP | 260 lines
                    
47     *
                    
48     * @see http://php.net/manual/en/mongocommandcursor.batchsize.php
                    
49     * @param integer $num
                    
77     *
                    
78     * @see http://php.net/manual/en/iterator.current.php
                    
79     * @see http://php.net/manual/en/mongocommandcursor.current.php
                    
89     *
                    
90     * @see http://php.net/manual/en/mongocommandcursor.dead.php
                    
91     * @return boolean
                    
140     *
                    
141     * @see http://php.net/manual/en/iterator.key.php
                    
142     * @see http://php.net/manual/en/mongocommandcursor.key.php
                    
152     *
                    
153     * @see http://php.net/manual/en/iterator.next.php
                    
154     * @see http://php.net/manual/en/mongocommandcursor.next.php
                    
                
Table.php https://gitlab.com/sandipmavani/rspsms | PHP | 440 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 *
                    
318		{
                    
319			if ( ! method_exists($query, 'list_fields'))
                    
320			{
                    
438
                    
439/* End of file Table.php */
                    
440/* Location: ./system/libraries/Table.php */
                    
                
sparkpagecache.php https://code.google.com/p/sparkplug-framework/ | PHP | 398 lines
                    
1<?php
                    
2
                    
53
                    
54		if (!empty($cache_params['active']) && method_exists($this, 'loadCacher'))
                    
55		{
                    
                
cache.php https://gitlab.com/ken3/bluSky | 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) {
                    
                
TriggerModel.php https://gitlab.com/jankube/mautic | PHP | 398 lines
                    
1<?php
                    
2/**
                    
215                $func = "set" .  ucfirst($f);
                    
216                if (method_exists($event, $func)) {
                    
217                    $event->$func($v);
                    
                
MethodProphecy.php https://gitlab.com/jed-lagunday/laratuts | PHP | 437 lines
                    
1<?php
                    
2
                    
48        $double = $objectProphecy->reveal();
                    
49        if (!method_exists($double, $methodName)) {
                    
50            throw new MethodNotFoundException(sprintf(
                    
71
                    
72        if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) {
                    
73            $type = (string) $reflectedMethod->getReturnType();
                    
                
FormModel.php https://gitlab.com/jankube/mautic | PHP | 465 lines
                    
1<?php
                    
2/**
                    
147                $func = "set" . ucfirst($f);
                    
148                if (method_exists($field, $func)) {
                    
149                    $field->$func($v);
                    
212
                    
213                if (method_exists($action, $func)) {
                    
214                    $action->$func($v);
                    
283        $html = $templating->render(
                    
284            $theme.'MauticFormBundle:Builder:form.html.php',
                    
285            array(
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 217 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class StatsViewStats extends JView
                    
19		$function = $this->getLayout();
                    
20		if(method_exists($this,$function)) $this->$function();
                    
21		parent::display($tpl);
                    
                
PwSpaceModel.php https://gitlab.com/wuhang2003/phpwind | PHP | 134 lines
                    
1<?php
                    
2Wind::import('SRV:space.bo.PwSpaceBo');
                    
5 * @author $Author: jieyin $ Foxsee@aliyun.com
                    
6 * @copyright ©2003-2103 phpwind.com
                    
7 * @license http://www.phpwind.com
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: PwSpaceModel.php 20893 2012-11-16 07:00:39Z jieyin $ 
                    
9 * @package 
                    
25			$method = sprintf('model%sList', ucwords($mod));
                    
26			if (!method_exists($this, $method)) return array();
                    
27			return $this->$method($limit, $page);
                    
29			$method =  sprintf('model%s', ucwords($mod));
                    
30			if (!method_exists($this, $method)) return array();
                    
31			return $this->$method($limit);
                    
                
Collection.php https://gitlab.com/endomorphosis/falkenstein | PHP | 408 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP OpenCloud library.
                    
4 * 
                    
282        foreach (array($class, 'get' . ucfirst($class)) as $method) {
                    
283            if (method_exists($this->service, $method)) {
                    
284                return call_user_func(array($this->service, $method), $data);
                    
288        // Backup method
                    
289        if (method_exists($this->service, 'resource')) {
                    
290            return $this->service->resource($class, $data);
                    
                
payment.php https://gitlab.com/firstrate/firstrate | PHP | 283 lines
                    
1<?php
                    
2class ControllerApiPayment extends Controller {
                    
203							if ($recurring) {
                    
204								if (method_exists($this->{'model_payment_' . $result['code']}, 'recurringPayments') && $this->{'model_payment_' . $result['code']}->recurringPayments()) {
                    
205									$json['payment_methods'][$result['code']] = $method;
                    
                
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());
                    
                
FormSelect.php https://gitlab.com/daigiangaitu91/magento | PHP | 326 lines
                    
1<?php
                    
2/**
                    
139        // Render hidden element
                    
140        $useHiddenElement = method_exists($element, 'useHiddenElement')
                    
141            && method_exists($element, 'getUnselectedValue')
                    
314        if (!$this->formHiddenHelper) {
                    
315            if (method_exists($this->view, 'plugin')) {
                    
316                $this->formHiddenHelper = $this->view->plugin('formhidden');
                    
                
revslider_admin.php https://gitlab.com/hop23typhu/list-theme | PHP | 427 lines
                    
1<?php
                    
2
                    
168					
                    
169			if(method_exists($wpdb, "get_charset_collate"))
                    
170				$charset_collate = $wpdb->get_charset_collate();
                    
211			
                    
212			require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
                    
213			dbDelta($sql);
                    
                
default.php https://gitlab.com/che234/adn | PHP | 182 lines
                    
27	<button type="button" class="close" data-dismiss="alert">×</button>
                    
28	<strong><?php echo JText::_('T3_MSG_WARNING'); ?></strong> <?php echo JText::_('T3_MSG_FILE_NOT_WRITABLE'); ?>
                    
29</div>
                    
31<div class="t3-admin-form clearfix">
                    
32<form action="<?php echo JRoute::_('index.php?option=com_templates&layout=edit&id='.$input->getInt('id')); ?>" method="post" name="adminForm" id="style-form" class="form-validate form-horizontal">
                    
33	<div class="t3-admin-header clearfix">
                    
36				<div class="control-label t3-control-label">
                    
37					<label id="t3-styles-list-lbl" for="t3-styles-list" class="hasTooltip" title="<?php echo JText::_('T3_SELECT_STYLE_DESC'); ?>"><?php echo JText::_('T3_SELECT_STYLE_LABEL'); ?></label>
                    
38				</div>
                    
87					?>
                    
88						<li<?php echo $t3lock == preg_replace( '/\s+/', ' ', $name) ? ' class="active"' : ''?>><a href="#<?php echo preg_replace( '/\s+/', ' ', $name);?>" data-toggle="tab"><?php echo JText::_($label) ?></a></li>
                    
89					<?php
                    
93						<?php if ($canDo->get('core.edit.state')) : ?>
                    
94							<li<?php echo $t3lock == 'assignment' ? ' class="active"' : ''?>><a href="#assignment_params" data-toggle="tab"><?php echo JText::_('T3_MENUS_ASSIGNMENT_LABEL');?></a></li>
                    
95						<?php endif; ?>
                    
                
Feed.php https://gitlab.com/blingbang2016/shop | PHP | 361 lines
                    
1<?php
                    
2/**
                    
74        if (!ctype_alpha($value) && strlen($value) > 0) {
                    
75            #require_once 'Zend/Feed/Exception.php';
                    
76            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
79        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
80            #require_once 'Zend/Feed/Exception.php';
                    
81            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
110        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
111            #require_once 'Zend/Feed/Exception.php';
                    
112            throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
                    
135                if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
136                    #require_once 'Zend/Feed/Exception.php';
                    
137                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
142                if (iconv_strlen($key, $this->getEncoding()) > 255) {
                    
143                    #require_once 'Zend/Feed/Exception.php';
                    
144                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
                
Container.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 282 lines
                    
1<?php
                    
2
                    
64     *
                    
65     * Allowing any PHP callable leads to difficult to debug problems
                    
66     * as function names (strings) are callable (creating a function with
                    
102            || isset($this->protected[$this->values[$id]])
                    
103            || !method_exists($this->values[$id], '__invoke')
                    
104        ) {
                    
159    {
                    
160        if (!method_exists($callable, '__invoke')) {
                    
161            throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.');
                    
181    {
                    
182        if (!method_exists($callable, '__invoke')) {
                    
183            throw new \InvalidArgumentException('Callable is not a Closure or invokable object.');
                    
231
                    
232        if (!is_object($this->values[$id]) || !method_exists($this->values[$id], '__invoke')) {
                    
233            throw new \InvalidArgumentException(sprintf('Identifier "%s" does not contain an object definition.', $id));
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 101 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class QueueViewQueue extends JView
                    
15		$function = $this->getLayout();
                    
16		if(method_exists($this,$function)) $this->$function();
                    
17		parent::display($tpl);
                    
67		$bar = & JToolBar::getInstance('toolbar');
                    
68		if(acymailing_isAllowed($config->get('acl_queue_process','all'))) $bar->appendButton( 'Popup', 'process', JText::_('PROCESS'), "index.php?option=com_acymailing&ctrl=queue&task=process&tmpl=component&mailid=".$selectedMail);
                    
69		if(!empty($pageInfo->elements->total) AND acymailing_isAllowed($config->get('acl_queue_delete','all'))){
                    
                
profile.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 178 lines
                    
1<?php
                    
2/*======================================================================*\
                    
21// ######################### REQUIRE BACK-END ############################
                    
22require_once(DIR . '/includes/functions_user.php');
                    
23
                    
34	// Grab all the bitfields we can
                    
35	require_once(DIR . '/includes/class_bitfield_builder.php');
                    
36	$bitfields = vB_Bitfield_Builder::return_data();
                    
108	// Grab all the bitfields we can
                    
109	require_once(DIR . '/includes/class_bitfield_builder.php');
                    
110	$bitfields = vB_Bitfield_Builder::return_data();
                    
139	
                    
140	$vbulletin->url = 'vbactivity.php?' . $vbulletin->session->vars['sessionurl'] . 'do=profile&action=options';
                    
141	if (version_compare($vbulletin->versionnumber, '4.1.7') >= 0)
                    
166	$templater->register('cpnav', $cpnav);
                    
167	if (method_exists($page_templater, 'render'))
                    
168	{
                    
                
Application.php https://gitlab.com/blingbang2016/shop | PHP | 440 lines
                    
1<?php
                    
2/**
                    
67     *
                    
68     * Initialize application. Potentially initializes include_paths, PHP
                    
69     * settings, and bootstrap class.
                    
80
                    
81        #require_once 'Zend/Loader/Autoloader.php';
                    
82        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
153        if (!empty($options['phpsettings'])) {
                    
154            $this->setPhpSettings($options['phpsettings']);
                    
155        }
                    
166            $autoloader = $this->getAutoloader();
                    
167            if (method_exists($autoloader, 'setZfPath')) {
                    
168                $zfPath    = $options['autoloaderzfpath'];
                    
266    /**
                    
267     * Set PHP configuration settings
                    
268     *
                    
                
Admin_Controller.php https://gitlab.com/sheldonels/pyrocms | PHP | 233 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
94				// If we do not have an admin_menu function, we use the
                    
95				// regular way of checking out the details.php data.
                    
96				if ($module['menu'] and ($this->current_user->hasAccess($module['slug']))) {
                    
99					// re-route and modules should change using their 
                    
100					// upgrade() details.php functions.
                    
101					if ($module['menu'] == 'utilities') $module['menu'] = 'data';
                    
109				// menu array.
                    
110				if (method_exists($module['module'], 'admin_menu')) {
                    
111					$module['module']->admin_menu($menu_items);
                    
                
View.php https://gitlab.com/andriaripratama/dkppu-payment-gateway | PHP | 282 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Slim - a micro PHP 5 framework
                    
4 *
                    
171            // Ensure original behavior is maintained. DO NOT invoke stored Closures.
                    
172            if (is_object($args[1]) && method_exists($args[1], '__invoke')) {
                    
173                $this->data->set($args[0], $this->data->protect($args[1]));
                    
                
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;
                    
                
dispatcher.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 194 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: dispatcher.php 9764 2007-12-30 07:48:11Z ircmaxell $
                    
4* @package		Joomla.Framework
                    
6* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7* @license		GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
159				 */
                    
160				if (method_exists($observer, 'update'))
                    
161				{
                    
166					 */
                    
167					if (method_exists($observer, $event))
                    
168					{
                    
                
Instantiator.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 273 lines
                    
1<?php
                    
2/*
                    
35    /**
                    
36     * Markers used internally by PHP to define whether {@see \unserialize} should invoke
                    
37     * the method {@see \Serializable::unserialize()} when dealing with classes implementing
                    
198    {
                    
199        if (\PHP_VERSION_ID >= 50600) {
                    
200            return ! ($this->hasInternalAncestors($reflectionClass) && $reflectionClass->isFinal());
                    
202
                    
203        return \PHP_VERSION_ID >= 50400 && ! $this->hasInternalAncestors($reflectionClass);
                    
204    }
                    
228     *
                    
229     * @link http://news.php.net/php.internals/74654
                    
230     *
                    
253    {
                    
254        return PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513;
                    
255    }
                    
                
controller.php https://gitlab.com/che234/adn | PHP | 327 lines
                    
1<?php
                    
2
                    
34
                    
35        JSubMenuHelper::addEntry(WFText::_('WF_CPANEL'), 'index.php?option=com_jce&view=cpanel', $view == 'cpanel');
                    
36
                    
48            if (WFModel::authorize($item)) {
                    
49                JSubMenuHelper::addEntry(WFText::_($menu), 'index.php?option=com_jce&view=' . $item, $view == $item);
                    
50            }
                    
112                // load Joomla! core javascript
                    
113                if (method_exists('JHtml', 'core')) {
                    
114                    JHtml::core();
                    
116
                    
117                require_once(JPATH_ADMINISTRATOR . '/includes/toolbar.php');
                    
118
                    
209        JRequest::checkToken() or die('Invalid Token');
                    
210        $this->setRedirect(JRoute::_('index.php?option=com_jce&view=cpanel', false));
                    
211    }
                    
                
AkActsAsList.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
18
                    
19require_once(AK_LIB_DIR.DS.'AkActiveRecord'.DS.'AkObserver.php');
                    
20
                    
80    {
                    
81        if(is_object($ActiveRecordInstance) && method_exists($ActiveRecordInstance,'actsLike')){
                    
82            $this->_ActiveRecordInstance =& $ActiveRecordInstance;
                    
98    {
                    
99        AK_PHP5 ? null : $listObject->list->setActiveRecordInstance(&$listObject);
                    
100    }
                    
                
Backtrace.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 230 lines
                    
1<?php
                    
2
                    
18     * and array notation for class methods.
                    
19     * PHP's debug_backtrace() doesn't allow to inspect the argument names,
                    
20     * so all arguments of the provided functions will be filtered out.
                    
37        array('SilverStripe\\Security\\PasswordValidator', 'validate'),
                    
38        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'encrypt'),
                    
39        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'salt'),
                    
39        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'salt'),
                    
40        array('SilverStripe\\Security\\PasswordEncryptor_LegacyPHPHash', 'encrypt'),
                    
41        array('SilverStripe\\Security\\PasswordEncryptor_LegacyPHPHash', 'salt'),
                    
176            foreach ($item['args'] as $arg) {
                    
177                if (!is_object($arg) || method_exists($arg, '__toString')) {
                    
178                    $sarg = is_array($arg) ? 'Array' : strval($arg);
                    
                
DefaultController.php https://gitlab.com/PragmaticLinux/Yii | PHP | 130 lines
                    
1<?php
                    
2/**
                    
104        $method = 'action' . $name;
                    
105        if (method_exists($generator, $method)) {
                    
106            return $generator->$method();
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 512 lines
                    
91				$strHtml .=
                    
92					"\t\t\t\t\t".'<tr class="mobile-admin-report-header">'.PHP_EOL.
                    
93					"\t\t\t\t\t\t".'<td>'.htmlspecialcharsbx($arViewColumns[$groupColumnIndex]['humanTitle']);
                    
104
                    
105				$strHtml .= "\t\t\t\t\t\t".'</td>'.PHP_EOL;
                    
106
                    
228
                    
229							$strHtml .= "\t\t\t\t\t\t".'</td>'.PHP_EOL;
                    
230							foreach ($arSubTotal as $k => $subValue)
                    
235									$finalSubValue = $subValue;
                    
236									if (method_exists($arResult['helperClassName'], 'formatResultGroupingTotal'))
                    
237									{
                    
409			}
                    
410			$strHtml .= "\t".'</tbody></table>'.PHP_EOL.'</div></div>'.PHP_EOL;
                    
411		}
                    
                
security_session.php https://gitlab.com/alexprowars/bitrix | PHP | 208 lines
                    
1<?php
                    
2
                    
9
                    
10require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
11
                    
68	else
                    
69		LocalRedirect("/bitrix/admin/security_session.php?lang=".LANGUAGE_ID.$returnUrl."&".$tabControl->ActiveTabParam());
                    
70}
                    
72$APPLICATION->SetTitle(GetMessage("SEC_SESSION_ADMIN_TITLE"));
                    
73require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
74
                    
75$session = \Bitrix\Main\Application::getInstance()->getSession();
                    
76if (method_exists($session, 'getSessionHandler'))
                    
77{
                    
149
                    
150<form method="POST" action="security_session.php?lang=<?=LANGUAGE_ID?><?=$returnUrl?>"  enctype="multipart/form-data" name="editform">
                    
151<?
                    
                
MarkdownDescriptor.php https://gitlab.com/jeisoncg/personal_collection_mv | PHP | 366 lines
                    
1<?php
                    
2
                    
183
                    
184        if (method_exists($definition, 'isShared')) {
                    
185            $output .= "\n".'- Shared: '.($definition->isShared() ? 'yes' : 'no');
                    
189
                    
190        if (method_exists($definition, 'isAutowired')) {
                    
191            $output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no');
                    
336
                    
337        if (method_exists($callable, '__invoke')) {
                    
338            $string .= "\n- Type: `object`";
                    
                
FilesystemAdapter.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 383 lines
                    
1<?php
                    
2
                    
121     */
                    
122    public function prepend($path, $data, $separator = PHP_EOL)
                    
123    {
                    
137     */
                    
138    public function append($path, $data, $separator = PHP_EOL)
                    
139    {
                    
240            return '/storage/'.$path;
                    
241        } elseif (method_exists($adapter, 'getUrl')) {
                    
242            return $adapter->getUrl($path);
                    
                
Tabs.php https://gitlab.com/daigiangaitu91/magento | PHP | 484 lines
                    
1<?php
                    
2/**
                    
11 * Tabs block
                    
12 * @SuppressWarnings(PHPMD.NumberOfChildren)
                    
13 */
                    
109     * @throws  \Exception
                    
110     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
111     */
                    
309     * @return bool
                    
310     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
311     */
                    
326        if ($tab instanceof TabInterface) {
                    
327            if (method_exists($tab, 'getTabUrl')) {
                    
328                return $tab->getTabUrl();
                    
356        if ($tab instanceof TabInterface) {
                    
357            if (method_exists($tab, 'getTabClass')) {
                    
358                return $tab->getTabClass();
                    
                
ValidClassNamePass.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
                    
1<?php
                    
2
                    
14use PhpParser\Node;
                    
15use PhpParser\Node\Expr;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
19use PhpParser\Node\Stmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
22use PhpParser\Node\Stmt\Trait_ as TraitStmt;
                    
229
                    
230        if (!method_exists($class, $name) && !method_exists($class, '__callStatic')) {
                    
231            throw $this->createError(sprintf('Call to undefined method %s::%s()', $class, $name), $stmt);
                    
                
Lexer.php https://gitlab.com/PragmaticLinux/Yii | PHP | 357 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
                    
                
ThrowMatcher.php https://gitlab.com/Laolballs/evotting | PHP | 271 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
20use PhpSpec\Exception\Example\MatcherException;
                    
21use PhpSpec\Exception\Example\FailureException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
23use PhpSpec\Exception\Fracture\MethodNotFoundException;
                    
24
                    
188                if (count($invalidProperties) > 0) {
                    
189                    $withProperties = sprintf(' with'.PHP_EOL.'%s,'.PHP_EOL,
                    
190                        implode(",\n", $invalidProperties)
                    
231                list($class, $methodName) = array($subject, $methodName);
                    
232                if (!method_exists($class, $methodName) && !method_exists($class, '__call')) {
                    
233                    throw new MethodNotFoundException(
                    
                
Inspector.php https://gitlab.com/geeta7/drupal | PHP | 428 lines
                    
1<?php
                    
2/**
                    
22 *
                    
23 * @ingroup php_assert
                    
24 */
                    
56   *
                    
57   * @see http://php.net/manual/language.types.callable.php
                    
58   */
                    
121  public static function assertStringable($string) {
                    
122    return is_string($string) || (is_object($string) && method_exists($string, '__toString'));
                    
123  }
                    
140   *
                    
141   * What PHP calls arrays are more formally called maps in most other
                    
142   * programming languages. A map is a datatype that associates values to keys.
                    
151   *
                    
152   * @see http://php.net/manual/language.types.array.php
                    
153   */
                    
                
Router.php https://gitlab.com/Urtekin/ertexAdmin | PHP | 378 lines
                    
1<?php
                    
2
                    
123            'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
                    
124            'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
                    
125            'generator_cache_class' => 'ProjectUrlGenerator',
                    
127            'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher',
                    
128            'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
                    
129            'matcher_cache_class' => 'ProjectUrlMatcher',
                    
271            $this->matcher = new $this->options['matcher_class']($this->getRouteCollection(), $this->context);
                    
272            if (method_exists($this->matcher, 'addExpressionLanguageProvider')) {
                    
273                foreach ($this->expressionLanguageProviders as $provider) {
                    
280
                    
281        $cache = $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/'.$this->options['matcher_cache_class'].'.php',
                    
282            function (ConfigCacheInterface $cache) {
                    
283                $dumper = $this->getMatcherDumperInstance();
                    
284                if (method_exists($dumper, 'addExpressionLanguageProvider')) {
                    
285                    foreach ($this->expressionLanguageProviders as $provider) {
                    
                
Manager.php https://gitlab.com/szlongshu/manaphp | PHP | 272 lines
                    
12     *
                    
13     * A ModelsManager is injected to a model via a Dependency Injector/Services Container such as ManaPHP\Di.
                    
14     *
                    
15     * <code>
                    
16     * $di = new ManaPHP\Di();
                    
17     *
                    
119         *
                    
120         * @param \ManaPHP\Mvc\ModelInterface|string $model
                    
121         *
                    
122         * @return string
                    
123         * @throws \ManaPHP\Mvc\Model\Exception
                    
124         */
                    
251         * @return \ManaPHP\Mvc\Model\Query\BuilderInterface
                    
252         * @throws \ManaPHP\Mvc\Model\Exception|\ManaPHP\Db\ConditionParser\Exception
                    
253         */
                    
                
GetterSetterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 268 lines
                    
1<?php
                    
2/**
                    
7
                    
8class GetterSetterTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
23            $this->assertTrue(
                    
24                method_exists($classObject, $setterName),
                    
25                "Method " . $setterName . " does not exist in " . $className
                    
51            $this->assertTrue(
                    
52                method_exists($classObject, $getterName),
                    
53                "Method " . $getterName . " does not exist in " . $className
                    
69     * @return array
                    
70     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
71     */
                    
                
Dispatcher.php https://gitlab.com/szlongshu/manaphp | PHP | 446 lines
                    
1<?php
                    
2
                    
2
                    
3namespace ManaPHP\Mvc {
                    
4
                    
4
                    
5    use ManaPHP\Component;
                    
6    use ManaPHP\Mvc\Dispatcher\Exception;
                    
6    use ManaPHP\Mvc\Dispatcher\Exception;
                    
7    use ManaPHP\Mvc\Dispatcher\NotFoundActionException;
                    
8    use ManaPHP\Mvc\Dispatcher\NotFoundControllerException;
                    
10    /**
                    
11     * ManaPHP\Mvc\Dispatcher
                    
12     *
                    
18     *
                    
19     *    $di = new ManaPHP\Di();
                    
20     *
                    
                
update.php https://gitlab.com/Gashler/dp | PHP | 449 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
48
                    
49	if ( method_exists( $wpdb, 'db_version' ) )
                    
50		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
160		case 'load-plugins.php' :
                    
161		case 'load-update.php' :
                    
162			$timeout = HOUR_IN_SECONDS;
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
Adapter.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Adapter.php
                    
4 *
                    
4 *
                    
5 * @license	http://www.opensource.org/licenses/bsd-license.php BSD
                    
6 * @link	http://skeletonframework.com/
                    
76	{
                    
77		if (is_object($config) && method_exists($config, 'toArray')) {
                    
78			$config = $config->toArray();
                    
                
login.php git://github.com/concrete5/concrete5.git | PHP | 435 lines
                    
1<?php
                    
2
                    
85        $this->set('authType', $at);
                    
86        if (!method_exists($at->controller, $method)) {
                    
87            return $this->view();
                    
                
AbstractAdapter.php https://gitlab.com/daigiangaitu91/magento | PHP | 310 lines
                    
1<?php
                    
2/**
                    
105        if (!empty($checksum)) {
                    
106            if (method_exists($this, $checksum)) {
                    
107                return $this->$checksum($value);
                    
                
DumpDataCollector.php https://bitbucket.org/cmwdosp/cmwbb3.git | 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            }
                    
                
MethodProphecy.php https://gitlab.com/Laolballs/cbtapp | PHP | 407 lines
                    
1<?php
                    
2
                    
47        $double = $objectProphecy->reveal();
                    
48        if (!method_exists($double, $methodName)) {
                    
49            throw new MethodNotFoundException(sprintf(
                    
                
 

Source

Language