100+ results results for 'php method_exists repo:alx/openid-server' (294 ms)
1<?php 2 25 */ 26class RouterTest extends \PHPUnit_Framework_TestCase 27{ 183 { 184 if (!method_exists('Symfony\Component\Routing\Route', 'setHost')) { 185 $this->markTestSkipped('host() is only supported in the Symfony Routing 2.2+');eztemplateattributeoperator.php https://github.com/Yannix/ezpublish.git | PHP | 187 lines
1<?php 2/** 11/*! 12 \class eZTemplateAttributeOperator eztemplateattributeoperator.php 13 \ingroup eZTemplateOperators 167 { 168 if ( !method_exists( $value, "attributes" ) or 169 !method_exists( $value, "attribute" ) )view.html.php https://github.com/sherdog/GitWitty.git | PHP | 151 lines
1<?php 2/** 3 * @copyright Copyright (C) 2009-2011 ACYBA SARL - All rights reserved. 4 * @license http://www.acyba.com/commercial_license.php 5 */ 7?> 8<?php 9class FilterViewFilter extends JView 13 $function = $this->getLayout(); 14 if(method_exists($this,$function)) $this->$function(); 15 parent::display($tpl);class.resourcespage.php https://github.com/nils-werner/symphony-2.git | PHP | 410 lines
1<?php 2 13 */ 14 require_once(TOOLKIT . '/class.administrationpage.php'); 15 require_once(TOOLKIT . '/class.resourcemanager.php'); 15 require_once(TOOLKIT . '/class.resourcemanager.php'); 16 require_once(CONTENT . '/class.sortable.php'); 17 167 } 168 else if(isset($r['source']) && class_exists($r['source']['name']) && method_exists($r['source']['name'], 'getSourceColumn')) { 169 $class = call_user_func(array($manager, '__getClassName'), $r['handle']);class-config.php https://gitlab.com/remyvianne/krowkaramel | PHP | 305 lines
1<?php 2/** 123 if ( $log_notice && ! $available && defined( 'WP_DEBUG' ) && WP_DEBUG ) { 124 trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error 125 sprintf( 125 sprintf( 126 /* translators: %1$s is a PHP class name. */ 127 esc_html__( 148 $method = 'enable_' . $feature; 149 if ( ! method_exists( $this, $method ) ) { 150 return self::FEATURE_NOT_AVAILABLE; 153 $method_options = 'ensure_options_' . $feature; 154 if ( method_exists( $this, $method_options ) ) { 155 $this->{ $method_options }(); 270 $options = $this->get_feature_options( 'sync' ); 271 if ( method_exists( 'Automattic\Jetpack\Sync\Main', 'set_sync_data_options' ) ) { 272 Sync_Main::set_sync_data_options( $options );CodeIgniter.php https://github.com/ibnoe/Microweber.git | PHP | 280 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 * 55 * ------------------------------------------------------ 56 * Define a custom error handler so we can log PHP errors 57 * ------------------------------------------------------ 60 61if ( ! is_php('5.3')) 62{ 129 * 130 * Note: Due to the poor object handling in PHP 4 we'll 131 * conditionally load different versions of the base 131 * conditionally load different versions of the base 132 * class. Retaining PHP 4 compatibility requires a bit of a hack. 133 *gallery.php https://gitlab.com/hunt9310/ras | PHP | 433 lines
1<?php 2 28 'gallery', 29 /** This filter is documented in modules/widgets/facebook-likebox.php */ 30 apply_filters( 'jetpack_widget_name', __( 'Gallery', 'jetpack' ) ), 83 if ( 'carousel' == $instance['link'] ) { 84 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../carousel/jetpack-carousel.php' ) ) . 'jetpack-carousel.php'; 85 97 98 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 99 $title = apply_filters( 'widget_title', $instance['title'] ); 237 238 require_once plugin_dir_path( realpath( dirname( __FILE__ ) . '/../shortcodes/slideshow.php' ) ) . 'slideshow.php'; 239 403 404 if ( 'widgets.php' == $pagenow || 'customize.php' == $pagenow ) { 405 wp_enqueue_media();class-wp-image-editor-imagick.php https://gitlab.com/thisishayat/itv-2016 | 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(Query.php https://github.com/brtriver/sukonv.git | PHP | 510 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 108 foreach ($this->_config as $key => $val) { 109 if (method_exists($this, $key) && $val !== null) { 110 $this->_config[$key] = is_array($this->_config[$key]) ? array() : null;FormMultiCheckbox.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 467 lines
1<?php 2/** 126 // Render hidden element 127 $useHiddenElement = method_exists($element, 'useHiddenElement') && $element->useHiddenElement() 128 ? $element->useHiddenElement() 434 435 if (method_exists($this->view, 'plugin')) { 436 $this->inputHelper = $this->view->plugin('form_input'); 456 457 if (method_exists($this->view, 'plugin')) { 458 $this->labelHelper = $this->view->plugin('form_label');cache.php https://github.com/Mr-Wiredancer/MyFirstWebsite.git | PHP | 503 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 112 { 113 if (method_exists($this, $key)) 114 { 256 * 257 * // Alternatively, in PHP 5.3 use a closure 258 * $http_cache->cache_key_callback(function (Request $request) {Widgets.php https://github.com/marcoscoelho/pyrocms.git | PHP | 497 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2 185 186 $data = method_exists($this->_widget, 'run') ? call_user_func(array($this->_widget, 'run'), $options) : array(); 187 241 // Check for default data if there is any 242 $data = method_exists($this->_widget, 'form') ? call_user_func(array(&$this->_widget, 'form'), $options) : array(); 243 433 434 if (method_exists($this->_widget, 'save')) 435 {Feed.php https://github.com/quarkness/piwik.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 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'LiveDocx.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 415 lines
1<?php 2/** 79 * {code} 80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 81 * array ( 95 * {code} 96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 97 * array ( 107 * {code} 108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 109 * 109 * 110 * $phpLiveDocx->setUsername('myUsername') 111 * ->setPassword('myPassword'); 116 * {code} 117 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 118 *JsHelper.php https://github.com/Nervie/Beta.git | PHP | 427 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. 14 * @link http://cakephp.org CakePHP Project 15 * @package Cake.View.Helper 15 * @package Cake.View.Helper 16 * @since CakePHP v 1.2 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 124 public function __call($method, $params) { 125 if ($this->{$this->__engineName} && method_exists($this->{$this->__engineName}, $method)) { 126 $buffer = false;methodsTest.php https://github.com/istos/DrupalRooms.git | PHP | 365 lines
1<?php 2require_once('../geoPHP.inc'); 2require_once('../geoPHP.inc'); 3require_once('PHPUnit/Autoload.php'); 4 4 5class MethodsTests extends PHPUnit_Framework_TestCase { 6 16 $value = file_get_contents('./input/'.$file); 17 $geometry = geoPHP::load($value, $format); 18 62 63 if (!method_exists($geometry, $method_name)) { 64 $this->fail("Method ".$method_name.'() doesn\'t exists.'); 292 // Cannot test methods if GEOS is not intstalled 293 if (!geoPHP::geosInstalled()) return; 294Grammar.php https://gitlab.com/ealexis.t/trends | 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));Data.php https://github.com/mfairchild365/zf2.git | PHP | 520 lines
1<?php 2/** 499 if (is_object($item)) { 500 if (method_exists($item, 'toArray')) { 501 $item = $item->toArray();Abstract.php https://github.com/kervin/kyzstudio.git | PHP | 333 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 23204 2010-10-21 15:35:21Z ralph $ 21 */ 25 */ 26#require_once 'Zend/Loader/Autoloader.php'; 27 30 */ 31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 82 $setMethodName = 'set' . $optionName; 83 if (method_exists($this, $setMethodName)) { 84 $this->{$setMethodName}($optionValue); 115 if (!$this->_debugLogger instanceof Zend_Log) { 116 #require_once 'Zend/Log.php'; 117 #require_once 'Zend/Log/Writer/Null.php';ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
1<?php namespace Backend\Behaviors; 2 258 { 259 if (method_exists($this->controller, 'onDelete')) { 260 return call_user_func_array([$this->controller, 'onDelete'], func_get_args()); 345 346 return implode(PHP_EOL, $collection); 347 }Converter.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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'];Converter.php https://github.com/rgranadino/magento-mirror.git | PHP | 336 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];openlayers_layers_ui.class.php https://bitbucket.org/asanchez75/openlayers.git | PHP | 312 lines
1<?php 2/** 46 $layer_options_form = array(); 47 if (method_exists($layer_type_object, 'options_form')) { 48 // This is because the class openlayers_layer_type 125 126 if (method_exists($layer, 'options_form_validate')) { 127 $layer->options_form_validate($form, $form_state['values']); 179 $layer = openlayers_layer_type_load($item->data['layer_type']); 180 if (method_exists($layer, 'delete')) { 181 $layer->delete($item);InstalledExtensions.php https://gitlab.com/campus-academy/krowkaramel | PHP | 347 lines
1<?php 2/** 102 if ( 'activated' === $data['status'] && function_exists( 'AW' ) ) { 103 $data['settingsUrl'] = admin_url( 'admin.php?page=automatewoo-settings' ); 104 $data['docsUrl'] = 'https://automatewoo.com/docs/'; 127 $data['docsUrl'] = 'https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-woocommerce/'; 128 $data['settingsUrl'] = admin_url( 'admin.php?page=mailchimp-woocommerce' ); 129 188 $data['status'] = 'configured'; 189 $data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/pinterest/settings' ); 190 } else { 190 } else { 191 $data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/pinterest/landing' ); 192 } 218 $data['status'] = 'configured'; 219 $data['settingsUrl'] = admin_url( 'admin.php?page=wc-admin&path=/google/settings' ); 220 } else {Reader.php https://gitlab.com/jjpa2018/dashboard | PHP | 464 lines
24use Maatwebsite\Excel\Transactions\TransactionHandler; 25use PhpOffice\PhpSpreadsheet\Cell\Cell; 26use PhpOffice\PhpSpreadsheet\Reader\Exception; 26use PhpOffice\PhpSpreadsheet\Reader\Exception; 27use PhpOffice\PhpSpreadsheet\Reader\IReader; 28use PhpOffice\PhpSpreadsheet\Spreadsheet; 149 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException 150 * @throws \PhpOffice\PhpSpreadsheet\Exception 151 * @throws NoTypeDetectedException 193 * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException 194 * @throws \PhpOffice\PhpSpreadsheet\Exception 195 * @throws NoTypeDetectedException 362 * 363 * @throws \PhpOffice\PhpSpreadsheet\Exception 364 * @throws SheetNotFoundExceptionConverter.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 336 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];SassNode.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 349 lines
1<?php 2/* SVN FILE: $Id$ */ 11 12require_once('SassContext.php'); 13require_once('SassCommentNode.php'); 13require_once('SassCommentNode.php'); 14require_once('SassDebugNode.php'); 15require_once('SassDirectiveNode.php'); 15require_once('SassDirectiveNode.php'); 16require_once('SassImportNode.php'); 17require_once('SassMixinNode.php'); 17require_once('SassMixinNode.php'); 18require_once('SassMixinDefinitionNode.php'); 19require_once('SassPropertyNode.php'); 19require_once('SassPropertyNode.php'); 20require_once('SassRootNode.php'); 21require_once('SassRuleNode.php');SassNode.php https://github.com/vivid-planet/library.git | PHP | 392 lines
1<?php 2/* SVN FILE: $Id$ */ 11 12require_once 'SassContext.php'; 13require_once 'SassCommentNode.php'; 13require_once 'SassCommentNode.php'; 14require_once 'SassDebugNode.php'; 15require_once 'SassDirectiveNode.php'; 15require_once 'SassDirectiveNode.php'; 16require_once 'SassImportNode.php'; 17require_once 'SassMixinNode.php'; 17require_once 'SassMixinNode.php'; 18require_once 'SassMixinDefinitionNode.php'; 19require_once 'SassPropertyNode.php'; 19require_once 'SassPropertyNode.php'; 20require_once 'SassRootNode.php'; 21require_once 'SassRuleNode.php';Converter.php https://bitbucket.org/jokusafet/magento2.git | PHP | 337 lines
1<?php 2 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/osl-3.0.php 12 * If you did not receive a copy of the license and are unable to 24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 189 190 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 191 $mName = get_class($pearObject)."::".$rules['getter']; 194 195 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 196 $mName = get_class($mageObject)."::".$rules['setter']; 201 202 if($useConverter && false === method_exists($this, $rules['converter'])) { 203 $mName = get_class($this)."::".$rules['converter'];Converter.php https://bitbucket.org/jokusafet/magento2.git | PHP | 336 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];view.html.php https://github.com/sherdog/GitWitty.git | PHP | 291 lines
1<?php 2/** 3 * @copyright Copyright (C) 2009-2011 ACYBA SARL - All rights reserved. 4 * @license http://www.acyba.com/commercial_license.php 5 */ 7?> 8<?php 9class SubscriberViewSubscriber extends JView 15 $function = $this->getLayout(); 16 if(method_exists($this,$function)) $this->$function(); 17 parent::display($tpl); 140 i = 0; 141 mylink = 'index.php?option=com_acymailing&ctrl=filter&tmpl=component&subid='; 142 while(window.document.getElementById('cb'+i)){ 245 if(!empty($subid) && acymailing::level(2)){ 246 $bar->appendButton( 'Popup', 'send', JText::_('SEND'), "index.php?option=com_acymailing&ctrl=send&task=addqueue&tmpl=component&subid=".$subid); 247 JToolBarHelper::divider();RecordList.php https://gitlab.com/gideonmarked/yovelife | PHP | 335 lines
1<?php namespace RainLab\Builder\Components; 2 290 291 if (!method_exists($model, $scopeMethod)) { 292 throw new SystemException('Scope method not found.');interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
27 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_download_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> | 28 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_delete_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a> 29 71 function hmbkp_safe_mode_warning() { 72 echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>'; 73 } 119 if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) ) 120 $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] ); 121 251 <?php if ( $schedule->get_type() !== 'database' ) { ?> 252 <a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a> | 253 <?php } ?> 254 255 <a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a> | 256Query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 366 lines
1<?php 2declare (strict_types=1); 33use function md5; 34use function method_exists; 35use function reset; 148 } 149 $cache = method_exists(QueryCacheProfile::class, 'getResultCache') ? $this->_queryCacheProfile->getResultCache() : $this->_queryCacheProfile->getResultCacheDriver(); 150 assert($cache !== null);ArchivableBehaviorObjectBuilderModifierTest.php https://github.com/1989gaurav/Propel.git | PHP | 443 lines
1<?php 2 11 12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/archivable/ArchivableBehavior.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/archivable/ArchivableBehavior.php'; 14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php'; 15 22 */ 23class ArchivableBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase 24{ 87 { 88 $this->assertTrue(method_exists('ArchivableTest10', 'getArchive')); 89 } 120 { 121 $this->assertTrue(method_exists('ArchivableTest10', 'archive')); 122 }DumpDataCollector.php https://gitlab.com/guillaumev/alkarama | PHP | 310 lines
44 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 45 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 46 $this->requestStack = $requestStack; 73 $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS; 74 if (PHP_VERSION_ID >= 50400) { 75 $trace = debug_backtrace($trace, 7); 101 $name = $template->getTemplateName(); 102 $src = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : false); 103 $info = $template->getDebugInfo(); 105 $line = $info[$trace[$i - 1]['line']]; 106 $file = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getPath() : null; 107 160 } else { 161 $this->dumper = new CliDumper('php://output', $this->charset); 162 }Resource.php https://gitlab.com/x33n/respond | PHP | 325 lines
1<?php 2 54 foreach ($methodMetadata as $conditionName => $conditions) { // process each method condition 55 if (method_exists($this, $conditionName)) { 56 $this->currentMethodName = $key;Observer.php https://github.com/gryzz/crystal_magento.git | PHP | 255 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 87 } 88 if (!($model = Mage::getModel($run[1])) || !method_exists($model, $run[2])) { 89 Mage::throwException(Mage::helper('cron')->__('Invalid callback: %s::%s does not exist', $run[1], $run[2]));ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
1<?php 2/* 31 $m = 'run' . $type; 32 $r = method_exists($this, $m) ? $this->$m($id) : array('pass' => 0, 'info' => 'not supported'); 33 sleep(1);Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
1<?php 2/* 121 $method = "set" . $name; 122 if (method_exists($this, $method)) { 123 $this->$method($value);Image.php https://github.com/nicodmf/Imagine.git | PHP | 473 lines
93 /** 94 * (non-PHPdoc) 95 * @see Imagine\Image\ManipulatorInterface::flipHorizontally() 110 /** 111 * (non-PHPdoc) 112 * @see Imagine\Image\ManipulatorInterface::flipVertically() 160 /** 161 * @see http://pecl.php.net/bugs/bug.php?id=22435 162 */ 219 /** 220 * (non-PHPdoc) 221 * @see Imagine\Image\ManipulatorInterface::save() 374 /** 375 * (non-PHPdoc) 376 * @see Imagine\ImageInterface::mask()customize.php https://gitlab.com/kishikeisuke/estatesale | PHP | 252 lines
1<?php 2/** 48 echo '<h2 class="wpthk-customize-title">', esc_html( str_replace( array( '<h2>', '</h2>' ), '', get_admin_page_title() ) ), 49 '<spna class="wpthk-title-button-block"><span class="wpthk-title-button"><a href="', esc_url( admin_url( 'customize.php?return=/wp-admin/admin.php?page=' . $this->_page . '&wpthk=custom' ) ) ,'" ', 50 'class="button button-primary">', __( 'Customizing the Appearance', 'wpthk' ), '</a></span>', 50 'class="button button-primary">', __( 'Customizing the Appearance', 'wpthk' ), '</a></span>', 51 '<span class="wpthk-title-button"><a href="', esc_url( admin_url( 'admin.php?page=wpthk_sns' ) ) ,'" ', 52 'class="button button-primary">SNS ' . __( 'Counter', 'wpthk' ) . '</a></span></span></h2>'; 73 'edit_footer' => __( 'Footer', 'wpthk' ), 74 'edit_functions' => 'functions.php', 75 ); 83 register_setting( $key, $key, 'esc_attr' ); 84 echo '<a href="', esc_url( admin_url( 'admin.php?page=' . $this->_page . '&active=' . $key ) ) ,'" ', 85 'class="nav-tab', $this->_active === $key ? ' nav-tab-active' : '', '">', esc_html( $val ), '</a>'; 100 101 // options.php は経由しないので、nonce のチェックは check_admin_referer でやる 102 if( $form === true ) echo '<form id="wpthk-customize" method="post" action="">';BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
1<?php 2/** 56 if ($highlight) { 57 $result = highlight_string("<?php\n" . self::$_output, true); 58 self::$_output = preg_replace('/<\\?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);Abstract.php https://github.com/luisbraschi/ursp.git | PHP | 333 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 20967 2010-02-07 18:17:49Z ralph $ 21 */ 25 */ 26#require_once 'Zend/Loader/Autoloader.php'; 27 30 */ 31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 82 $setMethodName = 'set' . $optionName; 83 if (method_exists($this, $setMethodName)) { 84 $this->{$setMethodName}($optionValue); 115 if (!$this->_debugLogger instanceof Zend_Log) { 116 #require_once 'Zend/Log.php'; 117 #require_once 'Zend/Log/Writer/Null.php';BladeCompiler.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 714 lines
1<?php namespace Illuminate\View\Compilers; 2 115 // Here we will loop through all of the tokens returned by the Zend lexer and 116 // parse each one into the corresponding valid PHP. We will then have this 117 // template as the correctly rendered PHP that can be rendered natively. 128 $result = ltrim($result, PHP_EOL) 129 .PHP_EOL.implode(PHP_EOL, array_reverse($this->footer)); 130 } 172 /** 173 * Compile Blade comments into valid PHP. 174 * 181 182 return preg_replace($pattern, '<?php /*$1*/ ?>', $value); 183 } 185 /** 186 * Compile Blade echos into valid PHP. 187 *Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.0 216 /** 217 * Return the key/pairs as a PHP generator 218 * 319 { 320 return is_scalar($value) || (is_object($value) && method_exists($value, '__toString')); 321 }list_generator.php https://github.com/mackensen/moodle.git | PHP | 336 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 119 // Check to see if this is actually a valid event. 120 if (method_exists($functionname, 'get_static_info')) { 121 if ($detail) { 247 // Check that this is actually an event. 248 if (method_exists($plugineventname, 'get_static_info')) { 249 if ($detail) { 295 // Create a link for further event detail. 296 $url = new \moodle_url('eventdetail.php', array('eventname' => $eventfullpath)); 297 $link = \html_writer::link($url, $eventfullpath::get_name_with_info());ezbenchmarkrunner.php https://github.com/eeggenberger/ezpublish.git | PHP | 293 lines
1<?php 2/** 11/*! 12 \class eZBenchmarkrunner ezbenchmarkrunner.php 13 \brief The class eZBenchmarkrunner does 96 $method =& $entry['method']; 97 if ( method_exists( $object, $method ) ) 98 { 98 { 99 if ( method_exists( $object, 'prime' ) ) 100 { 120 121 if ( method_exists( $object, 'cleanup' ) ) 122 $object->cleanup( $this );ThemeSuggestions.php https://gitlab.com/guillaumev/alkarama | PHP | 359 lines
1<?php 2/** 253 $method = 'alter' . implode('', $hook_suggestions); 254 if (method_exists($this, $method)) { 255 $methods[] = $method;Uploader.php https://github.com/guiohm/magento-french.git | PHP | 513 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 224 { 225 if (is_object($params['object']) && method_exists($params['object'], $params['method'])) { 226 $params['object']->$params['method']($filePath);DocBlockFactory.php https://gitlab.com/Sigpot/AirSpot | PHP | 277 lines
1<?php 2/** 2/** 3 * This file is part of phpDocumentor. 4 * 7 * 8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org> 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 10 * @link http://phpdoc.org 11 */ 12 13namespace phpDocumentor\Reflection; 14 14 15use phpDocumentor\Reflection\DocBlock\DescriptionFactory; 16use phpDocumentor\Reflection\DocBlock\StandardTagFactory;core.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 339 lines
1<?php 2/* 10 global $json_api; 11 $php = ''; 12 if (!empty($json_api->query->controller)) { 16 if (file_exists("$dir/json-api.php")) { 17 $php = file_get_contents("$dir/json-api.php"); 18 } else { 18 } else { 19 // Check one directory up, in case json-api.php was moved 20 $dir = dirname($dir); 21 if (file_exists("$dir/json-api.php")) { 22 $php = file_get_contents("$dir/json-api.php"); 23 } 24 } 25 if (preg_match('/^\s*Version:\s*(.+)$/m', $php, $matches)) { 26 $version = $matches[1];Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tag/Item.php'; 27 121 $method = 'set' . ucfirst($key); 122 if (method_exists($this, $method)) { 123 $this->$method($value); 152 } else { 153 #require_once 'Zend/Tag/Cloud/Exception.php'; 154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 174 } else { 175 #require_once 'Zend/Tag/Cloud/Exception.php'; 176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 203 if (null === $this->_tags) { 204 #require_once 'Zend/Tag/ItemList.php'; 205 $this->setItemList(new Zend_Tag_ItemList());Ion_auth.php https://github.com/aletaschile/CodeIgniter-Ion-Auth.git | PHP | 375 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 17* 18* Requirements: PHP5 or above 19* 85 { 86 if (!method_exists( $this->ci->ion_auth_model, $method) ) 87 {Table.php https://github.com/holsinger/openfloor.git | PHP | 439 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 319 { 320 if ( ! method_exists($query, 'list_fields')) 321 {Reader.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 350 lines
1<?php 2/** 5* @license http://opensource.org/licenses/MIT 6* @link https://github.com/thephpleague/csv/ 7* @version 8.1.1 216 /** 217 * Return the key/pairs as a PHP generator 218 * 319 { 320 return is_scalar($value) || (is_object($value) && method_exists($value, '__toString')); 321 }Error.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 267 lines
1<?php 2 17 * is detected in a template, or when rendering a template. Other 18 * errors must use regular PHP exception classes (like when the template 19 * cache directory is not writable for instance). 179 if ($this->name) { 180 if (is_string($this->name) || (is_object($this->name) && method_exists($this->name, '__toString'))) { 181 $name = sprintf('"%s"', $this->name);functions.php https://github.com/cakephp/cakephp.git | PHP | 336 lines
4/** 5 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) 13 * @link https://cakephp.org CakePHP(tm) Project 14 * @since 3.0.0 38 * @return mixed Wrapped text. 39 * @link https://book.cakephp.org/4/en/core-libraries/global-constants-and-functions.html#h 40 */ 146 147 $template = PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' ? '<pre class="pr">%s</pre>' : "\n%s\n\n"; 148 printf($template, trim(print_r($var, true))); 174 175 $template = PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' ? '<pre class="pj">%s</pre>' : "\n%s\n\n"; 176 printf($template, trim(json_encode($var, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)));reflection_php5.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 275 lines
1<?php 2 /** 5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 4378 2006-10-27 10:04:53Z pachanga $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 71 /** 72 * Needed to select the autoload feature in PHP5 73 * for classes created dynamically.handler.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 306 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 86 $getter = 'get_' . $key; 87 if (method_exists($this, $getter)) { 88 return $this->$getter(); 292 293 $replaced = implode(PHP_EOL, array_reverse($reverse)); 294 $message = trim($replaced);DB_utility.php https://gitlab.com/ablu/invertika-backup-web | PHP | 389 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 96 // Note: Due to a bug in current() that affects some versions 97 // of PHP we can not pass function call directly into it 98 return current($res); 124 // Note: Due to a bug in current() that affects some versions 125 // of PHP we can not pass function call directly into it 126 $res = $query->result_array(); 158 // Note: Due to a bug in current() that affects some versions 159 // of PHP we can not pass function call directly into it 160 $res = $query->result_array(); 177 { 178 if ( ! is_object($query) OR ! method_exists($query, 'list_fields')) 179 {Simple.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 326 lines
1<?php 2 9 * 10 * PHP versions 4 and 5 11 * 13 * 14 * Copyright (c) 2002-2008 The PHP Group 15 * All rights reserved. 42 * @package XML_Parser 43 * @author Stephan Schmidt <schst@php.net> 44 * @copyright 2004-2008 Stephan Schmidt <schst@php.net> 46 * @version CVS: $Id$ 47 * @link http://pear.php.net/package/XML_Parser 48 */ 52 */ 53require_once 'XML/Parser.php'; 54data_registry.php https://github.com/mackensen/moodle.git | PHP | 355 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 125 126 if (method_exists('\core_course_category', 'get_all')) { 127 $categories = \core_course_category::get_all(['returnhidden' => true]);Command.php https://gitlab.com/Sigpot/AirSpot | PHP | 523 lines
1<?php 2 166 { 167 $method = method_exists($this, 'handle') ? 'handle' : 'fire'; 168ImageMagick.php https://gitlab.com/crazybutterfly815/magento2 | 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);Parser.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 356 lines
1<?php 2// 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2003 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.02 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+Environment.php https://gitlab.com/alexandresgv/siteentec | PHP | 343 lines
1<?php 2/** 100 // Run the migration 101 if (method_exists($migration, MigrationInterface::CHANGE)) { 102 if ($direction === MigrationInterface::DOWN) { 107 $migration->setAdapter($proxyAdapter); 108 /** @noinspection PhpUndefinedMethodInspection */ 109 $migration->change(); 112 } else { 113 /** @noinspection PhpUndefinedMethodInspection */ 114 $migration->change(); 146 // Run the seeder 147 if (method_exists($seed, SeedInterface::RUN)) { 148 $seed->run();FormBuilderTest.php https://github.com/Exercise/symfony.git | PHP | 228 lines
1<?php 2 16 17class FormBuilderTest extends \PHPUnit_Framework_TestCase 18{ 77 { 78 $this->assertFalse(method_exists($this->builder, 'setName')); 79 }ClassesModule.java https://github.com/GEFFROY/Quercus.git | Java | 372 lines
99 100 // php/[03]9m1 101 return cl != null && ! cl.isInterface(); 147 { 148 // php/1j11 149 185 { 186 // php/1j10 187 232 233 // #3253, php/4as7 - XXX: needs cleanup 234 290 291 // php/[03]9m0 292 return cl != null && cl.isInterface();Abstract.php https://github.com/Enrise/Zend.git | PHP | 333 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26// require_once 'Zend/Loader/Autoloader.php'; 27 30 */ 31// require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 82 $setMethodName = 'set' . $optionName; 83 if (method_exists($this, $setMethodName)) { 84 $this->{$setMethodName}($optionValue); 115 if (!$this->_debugLogger instanceof Zend_Log) { 116 // require_once 'Zend/Log.php'; 117 // require_once 'Zend/Log/Writer/Null.php';admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3require_once(APPPATH.'controllers/project.php'); 4 70 $method = str_replace(" ", "_", $act[0]); 71 if( method_exists($this, $method) ) { 72 call_user_func_array( array( $this,$method ), array()); 109 $method = str_replace(" ", "_", $judul); 110 if( method_exists($this, $method) ) { 111 call_user_func_array( array( $this,$method ), array());Connection.php https://github.com/depage/depage-cms.git | PHP | 509 lines
1<?php 2 184 case Protocol::TYPE_TEXT: 185 if (method_exists($app, 'onData')) { 186 $app->onData((string)$payload, $this); 190 case Protocol::TYPE_BINARY: 191 if (method_exists($app, 'onBinaryData')) { 192 $app->onBinaryData((string)$payload, $this); 270 271 if ($this->application && method_exists($this->application, 'onDisconnect')) { 272 $this->application->onDisconnect($this); 393 394 if (method_exists($this->application, 'onConnect')) { 395 $this->application->onConnect($this);Container.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 421 lines
1<?php 2/** 25 */ 26require_once 'Zend/Tool/Project/Profile/Resource/SearchConstraints.php'; 27 107 if (!is_array($currentConstraint->params)) { 108 require_once 'Zend/Tool/Project/Profile/Exception.php'; 109 throw new Zend_Tool_Project_Profile_Exception('Search parameter specifics must be in the form of an array for key "' 147 if (($parentResource = $this->search($appendResourceOrSearchConstraints)) == false) { 148 require_once 'Zend/Tool/Project/Profile/Exception.php'; 149 throw new Zend_Tool_Project_Profile_Exception('No node was found to append to.'); 173 } else { 174 require_once 'Zend/Tool/Project/Profile/Exception.php'; 175 throw new Zend_Tool_Project_Profile_Exception('Context by name ' . $context . ' was not found in the context registry.'); 177 } elseif (!$context instanceof Zend_Tool_Project_Context_Interface) { 178 require_once 'Zend/Tool/Project/Profile/Exception.php'; 179 throw new Zend_Tool_Project_Profile_Exception('Context must be of type string or Zend_Tool_Project_Context_Interface.');Converter.php https://github.com/su2921iw/ma.git | PHP | 336 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 189 if($useGetter && !method_exists($pearObject, $rules['getter'])) { 190 $mName = get_class($pearObject)."::".$rules['getter']; 193 194 if($useSetter && !method_exists($mageObject, $rules['setter'])) { 195 $mName = get_class($mageObject)."::".$rules['setter']; 200 201 if($useConverter && false === method_exists($this, $rules['converter'])) { 202 $mName = get_class($this)."::".$rules['converter'];FlashMessenger.php https://github.com/tmccormi/openemr.git | PHP | 353 lines
1<?php 2/** 342 343 if (method_exists($this->getView(), 'plugin')) { 344 $this->escapeHtmlHelper = $this->view->plugin('escapehtml');plugin.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 475 lines
1<?php 2 163 164 if (method_exists($model, 'loadLanguages')) { 165 $model->loadLanguages($files, $section); 230 // ini language 231 $document->addScript(array('index.php?option=com_jce&view=editor&' . $document->getQueryString(array('task' => 'loadlanguages'))), 'joomla'); 232 }Json.php https://github.com/orchestra-io/sample-openx.git | PHP | 338 lines
1<?php 2/** 25 */ 26require_once 'Zend/Json/Expr.php'; 27 76 77 require_once 'Zend/Json/Decoder.php'; 78 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 102 { 103 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 104 return $valueToEncode->toJson(); 114 */ 115 require_once "Zend/Json/Encoder.php"; 116 $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions); 122 } else { 123 require_once 'Zend/Json/Encoder.php'; 124 $encodedResult = Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);Abstract.php https://github.com/Freeaqingme/ZF1_Lib.git | PHP | 333 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26// require_once 'Zend/Loader/Autoloader.php'; 27 30 */ 31// require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 82 $setMethodName = 'set' . $optionName; 83 if (method_exists($this, $setMethodName)) { 84 $this->{$setMethodName}($optionValue); 115 if (!$this->_debugLogger instanceof Zend_Log) { 116 // require_once 'Zend/Log.php'; 117 // require_once 'Zend/Log/Writer/Null.php';Repository.php https://github.com/tanduy/zf.git | PHP | 313 lines
1<?php 2/** 25 */ 26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 27 104 if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) { 105 require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 106 throw new Zend_Tool_Framework_Manifest_Exception( 181 if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) { 182 require_once 'Zend/Tool/Framework/Metadata/Dynamic.php'; 183 } 187 if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) { 188 require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 189 throw new Zend_Tool_Framework_Manifest_Exception( 284 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 285 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 286 $string .= $metadataString;Json.php https://github.com/gryzz/crystal_magento.git | PHP | 339 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Json.php 16541 2009-07-07 06:59:03Z bkarwin $ 20 */ 26 */ 27#require_once 'Zend/Json/Expr.php'; 28 77 78 #require_once 'Zend/Json/Decoder.php'; 79 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 103 { 104 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 105 return $valueToEncode->toJson(); 115 */ 116 #require_once "Zend/Json/Encoder.php"; 117 $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);function.html_options.php https://gitlab.com/adamlwalker/generatedata | PHP | 174 lines
1<?php 2/** 26 * 27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image} 28 * (Smarty online manual) 37{ 38 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 39 71 if (is_object($_sel)) { 72 if (method_exists($_sel, "__toString")) { 73 $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); 83 } elseif (is_object($_val)) { 84 if (method_exists($_val, "__toString")) { 85 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 146 if (is_object($value)) { 147 if (method_exists($value, "__toString")) { 148 $value = smarty_function_escape_special_chars((string) $value->__toString());Container.php https://bitbucket.org/jelito/asdf.git | PHP | 337 lines
1<?php 2 115 return isset($this->registry[$name]) 116 || method_exists($this, $method = Container::getMethodName($name)) && $this->getReflection()->getMethod($method)->getName() === $method; 117 } 145 146 } elseif (!method_exists($this, $method) || $this->getReflection()->getMethod($method)->getName() !== $method) { 147 throw new MissingServiceException("Service '$name' not found.");class_image.php https://gitlab.com/ptisky/API_prestashop | PHP | 264 lines
1<?php 2/** 116 $class = __NAMESPACE__ . "\\image_$driver"; 117 if (class_exists($class) && method_exists($class, "available")) { 118 eval("\$avail = $class::available();"); 174 175/** Checks if PHP needs some extra extensions to use the image driver. This 176 * static method should be implemented into driver classes like abstractclass-mb-include-exclude.php https://gitlab.com/code26/selah | PHP | 379 lines
1<?php 2/** 75 $func = "check_{$by}"; 76 if ( ! isset( $conditions[ $by ] ) || ! method_exists( __CLASS__, $func ) ) { 77 continue; 274 */ 275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) { 276 // If edit other's profile, check edited user. 283 return ! empty( $roles ); 284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) { 285 // If edit profile, check current user. 298 protected static function check_edited_user_id( $user_ids ) { 299 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) { 300 // If edit other's profile, check edited user. 303 return in_array( $user_id, self::csv_to_array( $user_ids ) ); 304 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) { 305 // If edit profile, check current user.NestedSetBehaviorPeerBuilderModifierTest.php https://github.com/1989gaurav/Propel.git | PHP | 350 lines
1<?php 2 11 12require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/behavior/BookstoreNestedSetTestBase.php'; 13 31 { 32 $this->assertTrue(method_exists('Table9Peer', 'retrieveRoot'), 'nested_set adds a retrieveRoot() method'); 33 Table9Peer::doDeleteAll(); 59 { 60 $this->assertTrue(method_exists('Table9Peer', 'isValid'), 'nested_set adds an isValid() method'); 61 $this->assertFalse(Table9Peer::isValid(null), 'isValid() returns false when passed null '); 263 { 264 $this->assertTrue(method_exists('Table9Peer', 'updateLoadedNodes'), 'nested_set adds a updateLoadedNodes() method'); 265 $fixtures = $this->initTree(); 299 { 300 $this->assertTrue(method_exists('Table9Peer', 'makeRoomForLeaf'), 'nested_set adds a makeRoomForLeaf() method'); 301 list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree();Stream.php https://gitlab.com/x33n/respond | PHP | 261 lines
1<?php 2namespace GuzzleHttp\Stream; 4/** 5 * PHP stream implementation 6 */ 49 if ($type == 'string') { 50 $stream = fopen('php://temp', 'r+'); 51 if ($resource !== '') { 65 66 if ($type == 'object' && method_exists($resource, '__toString')) { 67 return self::factory((string) $resource, $options);NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
1<?php 2 187 */ 188 public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine) 189 { 270 271 \set_error_handler(array(&$this, 'capturePhpErrorWithException')); 272 365 { 366 if (\method_exists($this, 'Logout') && !$this->bUnreadBuffer && !$this->bRunningCallback) 367 {mssql_odbc.php https://github.com/naderman/phpbb-orchestra.git | PHP | 427 lines
1<?php 2/** 5* @version $Id$ 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 13*/ 14if (!defined('IN_PHPBB')) 15{ 18 19include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 20 25* 26* @note number of bytes returned for returning data depends on odbc.defaultlrl php.ini setting. 27* If it is limited to 4K for example only 4K of data is returned max, resulting in incomplete theme data for example. 44 45 $port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':'; 46 $this->server = $sqlserver . (($port) ? $port_delimiter . $port : '');MediaWikiTestCase.php https://github.com/daevid/MWFork.git | PHP | 250 lines
1<?php 2 2 3abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { 4 public $suite; 34 35 function run( PHPUnit_Framework_TestResult $result = NULL ) { 36 /* Some functions require some kind of caching, and will end up using the db, 171 172 if ( method_exists( $this->suite, $func ) ) { 173 return call_user_func_array( array( $this->suite, $func ), $args); 222 223 if( isset( MediaWikiPHPUnitCommand::$additionalOptions[$offset] ) ) { 224 return MediaWikiPHPUnitCommand::$additionalOptions[$offset]; 230 231 MediaWikiPHPUnitCommand::$additionalOptions[$offset] = $value; 232Blueprint.php https://gitlab.com/x33n/grav | PHP | 432 lines
1<?php 2namespace Grav\Common\Data; 349 $data = call_user_func_array($o, $value); 350 } elseif ($f && method_exists($o, $f)) { 351 $data = call_user_func_array(array($o, $f), $value);Json.php https://gitlab.com/rsilveira1987/Expresso | PHP | 339 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Json.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 26 */ 27require_once 'Zend/Json/Expr.php'; 28 77 78 require_once 'Zend/Json/Decoder.php'; 79 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 103 { 104 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 105 return $valueToEncode->toJson(); 115 */ 116 require_once "Zend/Json/Encoder.php"; 117 $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);message.php https://github.com/lazydaisy/moodle.git | PHP | 304 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 299 $func = "get_$prop"; 300 $eventdata->$prop = method_exists($this, $func) ? $this->$func($processorname) : $this->$prop; 301 }Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 266 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 91 } 92 if (!($model = Mage::getModel($run[1])) || !method_exists($model, $run[2])) { 93 Mage::throwException(Mage::helper('cron')->__('Invalid callback: %s::%s does not exist', $run[1], $run[2]));I18nBehaviorObjectBuilderModifierTest.php https://github.com/1989gaurav/Propel.git | PHP | 387 lines
1<?php 2 3/* 4 * $Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $ 5 * This file is part of the Propel package. 11 12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php'; 14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php'; 15 22 */ 23class I18nBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase 24{ 187 { 188 $this->assertTrue(method_exists('I18nBehaviorTest1', 'setLocale')); 189 $this->assertTrue(method_exists('I18nBehaviorTest1', 'getLocale'));error.php https://github.com/jasoneh/SMS-Can-.git | PHP | 401 lines
1<?php 2/* SVN FILE: $Id$ */ 8 * 9 * PHP versions 4 and 5 10 * 10 * 11 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 12 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 19 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 20 * @package cake 21 * @subpackage cake.cake.libs 22 * @since CakePHP(tm) v 0.10.5.1732 23 * @version $Revision$ 25 * @lastmodified $Date$ 26 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 27 */apis_source.php https://github.com/mb2o/CakePHP-Api-Datasources.git | PHP | 456 lines
1<?php 2/** 29/** 30 * Instance of CakePHP core HttpSocket class 31 * 137 138 if (method_exists($this, 'beforeRequest')) { 139 $request = $this->beforeRequest(&$model, $request); 180 if (substr($this->Http->response['status']['code'], 0, 1) != 2) { 181 if (is_object($model) && method_exists($model, 'onError')) { 182 $model->onError(); 258 // garbage collect the Xml object when we've finished with it, i.e. got 259 // it to transform the xml string response into a php array. 260 App::import('Core', 'Xml');Repository.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 284 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Provider/Signature.php'; 27 30 */ 31require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 108 109 if (method_exists($provider, 'getName')) { 110 $providerName = $provider->getName(); 119 ) { 120 require_once 'Zend/Tool/Framework/Provider/Exception.php'; 121 throw new Zend_Tool_Framework_Provider_Exception( 'A provider by the name ' . $providerNameemogrifier.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; 64Repository.php https://github.com/sidealice/zf2.git | PHP | 319 lines
1<?php 2/** 232 foreach ($searchProperties as $searchPropertyName => $searchPropertyValue) { 233 if (method_exists($metadata, 'get' . $searchPropertyName)) { 234 if ($metadata->{'get' . $searchPropertyName}() != $searchPropertyValue) { 287 foreach ($metadatasByType as $type => $metadatas) { 288 $string .= $type . PHP_EOL; 289 foreach ($metadatas as $metadata) { 290 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 291 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 292 $string .= $metadataString;modaccessibleobject.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 286 lines
1<?php 2/** 33 if (!$userid) $userid = '0'; 34 $xpdo->log(xPDO::LOG_LEVEL_INFO, "Principal {$userid} does not have permission to load object of class {$instance->_class} with primary key: " . (is_object($instance) && method_exists($instance,'getPrimaryKey') ? print_r($instance->getPrimaryKey(), true) : '')); 35 }Item.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 447 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-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 234 $customSetter = '_setAttribute' . ucfirst($name); 235 if (method_exists($this, $customSetter)) { 236 $this->$customSetter($name, $value, $type);functions.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 244 lines
1<?php 2 10 11 if (method_exists($promiseOrValue, 'then')) { 12 $canceller = null; 13 14 if (method_exists($promiseOrValue, 'cancel')) { 15 $canceller = [$promiseOrValue, 'cancel'];Web.php https://bitbucket.org/salimane/webphp.git | PHP | 233 lines
1<?php 2 186 // see if class has any pre-run hooks 187 if (method_exists($loaded_class, 'preRun')) { 188 $retval = $loaded_class->preRun(); 199 // see if currently loaded class even supports it 200 if (!method_exists($loaded_class, $method)) { 201 throw new RequestErrorException("HTTP Method not supported by class.", 405); 208 // see if class has any post-run hooks 209 if (method_exists($loaded_class, 'postRun')) { 210 $retval = $loaded_class->postRun();Adaptable.php https://github.com/brtriver/sukonv.git | PHP | 311 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 179 foreach ($strategies as $strategy) { 180 if (method_exists($strategy, $method)) { 181 $data = $strategy->{$method}($data, $options);FormMonthSelect.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 306 lines
1<?php 2/** 55 throw new Exception\ExtensionNotLoadedException(sprintf( 56 '%s component requires the intl PHP extension', 57 __NAMESPACE__ 299 300 if (method_exists($this->view, 'plugin')) { 301 $this->selectHelper = $this->view->plugin('formselect');PasswordCompatibilityLibrary.php https://gitlab.com/mlnkv/php-login-master | PHP | 222 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 38 case PASSWORD_BCRYPT: 39 // Note that this is a C constant, but not exposed to PHP, so we don't define it here. 40 $cost = 10; 67 case 'object': 68 if (method_exists($options['salt'], '__tostring')) { 69 $salt = (string) $options['salt'];Observer.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 266 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 91 } 92 if (!($model = Mage::getModel($run[1])) || !method_exists($model, $run[2])) { 93 Mage::throwException(Mage::helper('cron')->__('Invalid callback: %s::%s does not exist', $run[1], $run[2]));Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tool/Framework/Provider/Signature.php'; 27 30 */ 31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 103 104 if (method_exists($provider, 'getName')) { 105 $providerName = $provider->getName(); 114 { 115 #require_once 'Zend/Tool/Framework/Provider/Exception.php'; 116 throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerNameRouteListCommand.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | PHP | 246 lines
1<?php 2 175 { 176 if (! method_exists($controller, 'getMiddleware')) { 177 return [];function.html_radios.php https://gitlab.com/fangfangchen/xianpipa | PHP | 200 lines
1<?php 2/** 11 * 12 * File: function.html_radios.php<br> 13 * Type: function<br> 34 * 35 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} 36 * (Smarty online manual) 46{ 47 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 48 71 } elseif (is_object($_val)) { 72 if (method_exists($_val, "__toString")) { 73 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 144 if (is_object($value)) { 145 if (method_exists($value, "__toString")) { 146 $value = (string) $value->__toString();Dispatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 397 398 if (method_exists($class, 'queue')) 399 {Task.php https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 371 lines
1<?php 2/** 85 $method = 'set' . ucfirst($option); 86 if (method_exists($this, $method)) { 87 $this->{$method}($value);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;Modules.php https://bitbucket.org/goandget/goportal.git | PHP | 205 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 2 3/* PHP5 spl_autoload */ 4spl_autoload_register('Modules::autoload'); 6/** 7 * Modular Extensions - PHP5 8 * 15 * 16 * Install this file as application/libraries/Modules.php 17 * 60 61 if (method_exists($class, $method)) { 62 ob_start();ImageMagick.php https://bitbucket.org/jokusafet/magento2.git | PHP | 430 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 143 ); 144 if (method_exists($this->_imageHandler, 'optimizeImageLayers')) { 145 $this->_imageHandler->optimizeImageLayers(); 287 288 if (method_exists($watermark, 'setImageOpacity')) { 289 // available from imagick 6.3.1 364 if (!class_exists('Imagick', false)) { 365 throw new Exception("Required PHP extension 'Imagick' was not loaded."); 366 }reflection_php5.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 1786 2008-04-26 17:32:20Z pp11 $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 288 } 289 if (version_compare(phpversion(), '5.1.0', '>=')) { 290 if (in_array($name, array('__get', '__isset', $name == '__unset'))) {functions.php https://bitbucket.org/imia_de/t3ext-imia-base.git | PHP | 471 lines
1<?php 2namespace GuzzleHttp\Promise; 72 // Return a Guzzle promise that shadows the given promise. 73 if (method_exists($value, 'then')) { 74 $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; 74 $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; 75 $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null; 76 $promise = new Promise($wfn, $cfn); 194 * @throws \Exception on error 195 * @throws \Throwable on error in PHP >=7 196 */Default.php https://bitbucket.org/simukti/zf1.git | PHP | 312 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $ 20 */ 87 */ 88 require_once 'Zend/Ldap/Exception.php'; 89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries'); 142 } else if (is_array($attributeNameTreatment) && 143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) { 144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER; 245 /** @see Zend_Ldap_Exception */ 246 require_once 'Zend/Ldap/Exception.php'; 247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 265 /** @see Zend_Ldap_Exception */ 266 require_once 'Zend/Ldap/Exception.php'; 267 if ($this->_current === false) {Variables.php https://github.com/mrbanzai/zf2.git | PHP | 337 lines
1<?php 2/** 219 if (is_object($spec)) { 220 if (method_exists($spec, 'toArray')) { 221 $spec = $spec->toArray();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;Json.php https://github.com/grandison/budo16.git | PHP | 339 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Json.php 16541 2009-07-07 06:59:03Z bkarwin $ 20 */ 26 */ 27// require_once 'Zend/Json/Expr.php'; 28 77 78 // require_once 'Zend/Json/Decoder.php'; 79 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 103 { 104 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 105 return $valueToEncode->toJson(); 115 */ 116 // require_once "Zend/Json/Encoder.php"; 117 $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);editor.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 407 lines
1<?php 2/** 2/** 3 * @version $Id: editor.php 221 2011-06-11 17:30:33Z happy_noodle_boy $ 4 * @package JCE 153 // Joomla! 1.6+ 154 if (method_exists('JUser', 'getAuthorisedGroups')) { 155 $keys = $user->getAuthorisedGroups();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.6UuidValidator.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 346 lines
1<?php 2 83 84 if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) { 85 throw new UnexpectedTypeException($value, 'string');HelperBroker.php https://bitbucket.org/areeves42/openfisma.git | PHP | 381 lines
1<?php 2/** 25 */ 26// require_once 'Zend/Controller/Action/HelperBroker/PriorityStack.php'; 27 30 */ 31// require_once 'Zend/Loader.php'; 32 69 if ((null !== $loader) && (!$loader instanceof Zend_Loader_PluginLoader_Interface)) { 70 // require_once 'Zend/Controller/Action/Exception.php'; 71 throw new Zend_Controller_Action_Exception('Invalid plugin loader provided to HelperBroker'); 83 if (null === self::$_pluginLoader) { 84 // require_once 'Zend/Loader/PluginLoader.php'; 85 self::$_pluginLoader = new Zend_Loader_PluginLoader(array( 181 if (!isset($stack->{$name})) { 182 // require_once 'Zend/Controller/Action/Exception.php'; 183 throw new Zend_Controller_Action_Exception('Action helper "' . $name . '" has not been registered with the helper broker');Dojo.php https://bitbucket.org/acidel/buykoala.git | PHP | 176 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Dojo.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Registry */ 24#require_once 'Zend/Registry.php'; 25 72 if (!isset($registry[__CLASS__])) { 73 #require_once 'Zend/Dojo/View/Helper/Dojo/Container.php'; 74 $container = new Zend_Dojo_View_Helper_Dojo_Container(); 111 { 112 if (!method_exists($this->_container, $method)) { 113 #require_once 'Zend/Dojo/View/Exception.php';CBaseListView.php https://bitbucket.org/rezanachmad/php-selenium-training.git | PHP | 286 lines
1<?php 2/** 157 $method='render'.$matches[1]; 158 if(method_exists($this,$method)) 159 {Image.php https://github.com/ckdimka/core.git | PHP | 378 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 339 340 $funcName = method_exists($this->getParam(self::PARAM_IMAGE), 'getResizedURL') 341 ? 'getResizedURL'Abstract.php https://github.com/grandison/budo16.git | PHP | 317 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 16971 2009-07-22 18:05:45Z mikaelkael $ 21 */ 25 */ 26// require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 27 30 */ 31// require_once 'Zend/Tool/Framework/Registry.php'; 32 73 $setMethodName = 'set' . $optionName; 74 if (method_exists($this, $setMethodName)) { 75 $this->{$setMethodName}($optionValue); 111 if (!$this->_debugLogger instanceof Zend_Log) { 112 // require_once 'Zend/Log.php'; 113 // require_once 'Zend/Log/Writer/Null.php';Default.php https://github.com/sas05/zf-1.11.x-doctrine-2.x.git | PHP | 312 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 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 ) { 246 /** @see Zend_Ldap_Exception */ 247 require_once 'Zend/Ldap/Exception.php'; 248 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn'); 266 /** @see Zend_Ldap_Exception */ 267 require_once 'Zend/Ldap/Exception.php'; 268 if ($this->_current === false) {