100+ results results for 'php is_a' (488 ms)
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 0.9 544 { 545 if ($append && is_array($this->_countQueryParams)) { 546 $this->_countQueryParams = array_merge($this->_countQueryParams, $params); 547 } else { 548 if ($params !== null && !is_array($params)) { 549 $params = array($params);Font.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 640 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 153 $this->_strikethrough = NULL; 154 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); 155 } else { 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 }rewrite.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 425 lines
1<?php 2 211 //TODO: I could parse for the Picture name , gallery etc, but this increase the queries 212 //TODO: Class nggdb need to cache the query for the nggfunctions.php 213 265 // XML request 266 $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]' 267 ); 273 /** 274 * Mainly a copy of the same function in wp-includes\rewrite.php 275 * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions. 291 292 $this->index = $wp_rewrite->index; //probably 'index.php' 293 329 //get the 'tagname=$matches[i]' 330 $query = ( isset($queries) && is_array($queries) ) ? $queries[$num_toks - 1] : ''; 331twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
1<?php 2 26 'twitter_timeline', 27 /** This filter is documented in modules/widgets/facebook-likebox.php */ 28 apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ), 35 36 if ( is_active_widget( false, false, $this->id_base ) || is_active_widget( false, false, 'monster' ) || is_customize_preview() ) { 37 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 63 public function admin_scripts( $hook ) { 64 // This is still 'widgets.php' when managing widgets via the Customizer. 65 if ( 'widgets.php' === $hook ) { 83 if ( isset( $instance['title'] ) ) { 84 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 85 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; 102 foreach ( $data_attribs as $att ) { 103 if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) { 104 echo ' data-' . esc_attr( $att ) . '="' . esc_attr( $instance[ $att ] ) . '"';ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
1<?php 2/** 41 if ($color) { 42 if (is_array($color)) { 43 $color = "rgb(" . join(',', $color) . ")"; 237 * @throws \Exception 238 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 239 * @SuppressWarnings(PHPMD.NPathComplexity) 332 if (!class_exists('\Imagick', false)) { 333 throw new \Exception("Required PHP extension 'Imagick' was not loaded."); 334 }catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 97 98 if (is_array($recommendations) && isset($recommendations[$realProductId])) 99 { 156 $data['real_user_id'] = $USER->getId() ?: 0; 157 $data['is_admin'] = (int) $USER->IsAdmin(); 158 $data['admin_section'] = (int) (defined('ADMIN_SECTION') && ADMIN_SECTION); 163 ($data['user_id'] > 0 && $data['user_id'] != $data['real_user_id']) 164 || $data['is_admin'] || $data['admin_section'] || $data['admin_panel'] 165 ); 237 $data['cookie_size'] = count($_COOKIE); 238 $data['is_admin'] = (int) $USER->IsAdmin(); 239 $data['admin_section'] = (int) (defined('ADMIN_SECTION') && ADMIN_SECTION); 244 ($data['user_id'] != $data['real_user_id']) || !$data['cookie_size'] 245 || $data['is_admin'] || $data['admin_section'] || $data['admin_panel'] 246 );arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 44 * Arr::is_array(array()); 45 * Arr::is_array(new ArrayObject); 46 * 96 97 if (is_array($path)) 98 { 433 { 434 if (is_array($val) AND is_array($result[$key])) 435 { 577 { 578 $is_assoc = Arr::is_assoc($array); 579 588 { 589 if ($is_assoc) 590 {Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
1<?php 2 271 static $pathReplace = array(' ' => '%20', '?' => '%3F'); 272 if (is_array($path)) { 273 $path = '/' . implode('/', $path); 424 $this->query = new QueryString($output); 425 } elseif (is_array($query)) { 426 $this->query = new QueryString($query);ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 39require_once 'CRM/Contribute/PseudoConstant.php'; 40 115 // set up tabs 116 require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php'; 117 CRM_Contribute_Form_ContributionPage_TabHeader::build( $this ); 128 $this->_values = $this->get( 'values' ); 129 if ( !is_array( $this->_values ) ) { 130 $this->_values = array( ); 210 $this->_values = $this->get( 'values' ); 211 if ( !is_array( $this->_values ) ) { 212 $this->_values = array( );Store.php https://gitlab.com/ealexis.t/kiosco | PHP | 707 lines
1<?php 2 128 129 if ($data !== false && $data !== null && is_array($data)) { 130 return $data; 312 { 313 $keys = is_array($name) ? $name : func_get_args(); 314 390 { 391 if (! is_array($key)) { 392 $key = [$key => $value]; 477 { 478 $keys = is_array($keys) ? $keys : func_get_args(); 479admin_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 39 40 $this->data["is_admin"] = is_admin($this->data['role_name']); 41 91 92 if( is_array($this->data["project_data"]) ) { 93 $this->get_type($this->data["project_data"][0]["type_id"]); 274 public function publish_project(){ 275 if (!$this->data["is_admin"]) { 276 show_404();SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
1<?php 2 233 $options = explode(',', $exposed_options); 234 if (!$error && is_array($options)) { 235 foreach ($options as $option) { 356 $sanitized_options = []; 357 if (is_array($options)) { 358 foreach ($options as $option) {Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 72 } 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Inflector.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 506 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Inflector.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 25 */ 26// require_once 'Zend/Filter.php'; 27 30 */ 31// require_once 'Zend/Loader/PluginLoader.php'; 32 329 $spec = $this->_normalizeSpec($spec); 330 if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) { 331 if (isset($this->_rules[$spec][$index])) { 377 378 if (!is_array($ruleSet)) { 379 $ruleSet = array($ruleSet);File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $ 20 */ 25 */ 26// require_once 'Zend/Filter.php'; 27 30 */ 31// require_once 'Zend/Loader/PluginLoader.php'; 32 329 $spec = $this->_normalizeSpec($spec); 330 if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) { 331 if (isset($this->_rules[$spec][$index])) { 377 378 if (!is_array($ruleSet)) { 379 $ruleSet = array($ruleSet);CakePdf.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 720 lines
1<?php 2App::uses('File', 'Utility'); 405 406 if (is_array($bottom)) { 407 extract($bottom, EXTR_IF_EXISTS); 574 575 if (is_array($permissions)) { 576 foreach ($permissions as $permission) {Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 72 } 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);ZMO.php https://github.com/ThiloWitt/core.git | PHP | 548 lines
1<?php 2/** 18 * It can read MO files and use them for translating strings. 19 * The files are passed to gettext_reader as a Stream (see streams.php) 20 * 148 if ($magic == -1794895138 || $magic == 2500072158) { 149 // (int)0x950412de; PHP 5.2 wont convert this properly 150 $this->byteorder = 0; 151 } elseif ($magic == -569244523 || $magic == 3725722773) { 152 // (int)0xde120495; PHP 5.2 wont convert this properly 153 $this->byteorder = 1; 313 { 314 if (is_array($this->cache_translations) && is_array($this->table_originals) && is_array($this->table_translations)) { 315 return;HeadLink.php https://gitlab.com/yousafsyed/easternglamor | PHP | 495 lines
1<?php 2/** 61 * 62 * Use PHP_EOL as separator 63 */ 67 68 $this->setSeparator(PHP_EOL); 69 } 163 164 if (is_array($args[0])) { 165 $item = $this->createData($args[0]); 292 if (isset($attributes[$itemKey])) { 293 if (is_array($attributes[$itemKey])) { 294 foreach ($attributes[$itemKey] as $key => $value) { 382 $media = array_shift($args); 383 if (is_array($media)) { 384 $media = implode(',', $media);Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
1<?php 2/** 144 { 145 if (!is_array($headers) && !$headers instanceof Traversable) { 146 throw new Exception\InvalidArgumentException(sprintf( 155 $this->addHeaderLine($value); 156 } elseif (is_array($value) && count($value) == 1) { 157 $this->addHeaderLine(key($value), current($value)); 157 $this->addHeaderLine(key($value), current($value)); 158 } elseif (is_array($value) && count($value) == 2) { 159 $this->addHeaderLine($value[0], $value[1]); 195 $headerKey = static::createKey($headerFieldNameOrLine); 196 if (is_array($fieldValue)) { 197 $fieldValue = implode(', ', $fieldValue); 270 foreach (array_keys($this->headersKeys, $key) as $index) { 271 if (is_array($this->headers[$index])) { 272 $this->lazyLoadHeader($index);CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
1<?php 2/** 17 * @subpackage CookieJar 18 * @version $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $ 19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 25 */ 26require_once "Zend/Uri.php"; 27/** 29 */ 30require_once "Zend/Http/Cookie.php"; 31/** 33 */ 34require_once "Zend/Http/Response.php"; 35 142 } else { 143 require_once 'Zend/Http/Exception.php'; 144 throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
1<?php 2/** 42 * 43 * Most of them have reference functions located in bp-core-functions.php. 44 * The ones that don't can be accessed via their respective WordPress API's. 260 // Place your custom code (actions/filters) in a file called 261 // '/plugins/bp-custom.php' and it will be loaded before anything else. 262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 263 require( WP_PLUGIN_DIR . '/bp-custom.php' ); 264 349 * 350 * @uses is_admin() If in WordPress admin, load additional file 351 */ 354 // Load the WP abstraction file so BuddyPress can run on all WordPress setups. 355 require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' ); 356XmlDumper.php https://github.com/Exercise/symfony.git | PHP | 301 lines
1<?php 2 159 $configurator = $this->document->createElement('configurator'); 160 if (is_array($callable)) { 161 $configurator->setAttribute((is_object($callable[0]) && $callable[0] instanceof Reference ? 'service' : 'class'), $callable[0]); 229 230 if (is_array($value)) { 231 $element->setAttribute('type', 'collection'); 248 } 249 $text = $this->document->createTextNode(self::phpToXml($value)); 250 $element->appendChild($text); 266 foreach ($arguments as $k => $v) { 267 if (is_array($v)) { 268 $args[$k] = $this->escape($v); 279 /** 280 * Converts php types to xml types. 281 *shortcodes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 334 lines
1<?php 2/** 146 147 if (empty($shortcode_tags) || !is_array($shortcode_tags)) 148 return $content; 316 317 if (empty($shortcode_tags) || !is_array($shortcode_tags)) 318 return $content;edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
29 30 if ( strpos($sendback, 'post.php') !== false ) 31 $sendback = admin_url($post_new_file); 40 } else { 41 wp_redirect( admin_url("edit.php?post_type=$post_type") ); 42 } 114 $submenu_file = "edit.php?post_type=$post_type"; 115 $post_new_file = "post-new.php?post_type=$post_type"; 116} else { 163<?php screen_icon(); ?> 164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 165if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 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 */ 206 { 207 if (is_array($customerId) && isset($customerId['null'])) { 208 $condition = ($customerId['null']) ? 'IS NULL' : 'IS NOT NULL';TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main'); 29 */ 30require_once 'Zend/Measure/Temperature.php'; 31 34 */ 35require_once 'Zend/Registry.php'; 36 44 */ 45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase 46{IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 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 */ 78 $loginData = $this->getRequest()->getParam('login'); 79 $username = (is_array($loginData) && array_key_exists('username', $loginData)) ? $loginData['username'] : null; 80 315 $validationErrorMessages = $user->validate(); 316 if (is_array($validationErrorMessages)) { 317 $errorMessages = array_merge($errorMessages, $validationErrorMessages);Mail.php https://github.com/Riges/KawaiViewModel.git | PHP | 430 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Log_Writer_Abstract */ 24require_once 'Zend/Log/Writer/Abstract.php'; 25 26/** Zend_Log_Exception */ 27require_once 'Zend/Log/Exception.php'; 28 29/** Zend_Log_Formatter_Simple*/ 30require_once 'Zend/Log/Formatter/Simple.php'; 31 43 * @license http://framework.zend.com/license/new-bsd New BSD License 44 * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $ 45 */File.php https://github.com/grandison/budo16.git | PHP | 465 lines
25 */ 26// require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31// require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 // require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) { 114 // require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 57 58 if ($this->is_action('update')) { 59 229 function save_post_aliases($false, $saved_aliases, $metakey, $post) { 230 if ($post->post_type == 'revision' || !is_array($saved_aliases)) return true; 231HTMLModuleManager.php https://github.com/squidjam/friendika.git | PHP | 403 lines
1<?php 2 211 212 if (is_array($lookup)) { 213 foreach ($modules as $k => $m) {database_statements.rb https://github.com/Tho85/rails.git | Ruby | 394 lines
22 def select_all(arel, name = nil, binds = []) 23 if arel.is_a?(Relation) 24 relation = arel 50 binds = [] 51 if arel.is_a?(Relation) 52 arel, binds = arel.arel, arel.bind_values 198 # isolation level. However, support is disabled for mysql versions below 5, 199 # because they are affected by a bug[http://bugs.mysql.com/bug.php?id=39170] 200 # which means the isolation level gets persisted outside the transaction. 328 def sanitize_limit(limit) 329 if limit.is_a?(Integer) || limit.is_a?(Arel::Nodes::SqlLiteral) 330 limitsqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 280 { 281 if (is_array($str)) 282 { 497 { 498 if ( ! is_array($tables)) 499 { 658 659/* End of file sqlite_driver.php */ 660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */Alignment.php https://gitlab.com/ptisky/API_prestashop | PHP | 409 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable 37{ 143 * array( 144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, 145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, 307 * @param boolean $pValue 308 * @return PHPExcel_Style_Alignment 309 */registry.php https://github.com/dg482/joomla-platform.git | PHP | 629 lines
1<?php 2/** 11 12JLoader::register('JRegistryFormat', dirname(__FILE__) . '/format.php'); 13 45 // Optionally load supplied data. 46 if (is_array($data) || is_object($data)) 47 { 415 { 416 if ((is_array($v) && JArrayHelper::isAssociative($v)) || is_object($v)) 417 {Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 371 lines
1<?php 2/** 192 { 193 if (!is_array($storeIds)) { 194 $storeIds = array($storeIds); 198 && $currentStoreIds != array(Mage_Core_Model_App::ADMIN_STORE_ID)) { 199 if (!is_array($currentStoreIds)) { 200 $currentStoreIds = array($currentStoreIds);ajax.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 302 lines
1<?php 2/* 2/* 3 * @version $Id: ajax.function.php 14684 2011-06-11 06:32:40Z remi $ 4 ------------------------------------------------------------------------- 170 171 if (is_array($toobserve)) { 172 $zones = $toobserve; 237 $out .= $key."="; 238 if (is_array($val)) { 239 $out .= serialize($val); 272 if (isset($options["update_item"]) 273 && (is_array($options["update_item"]) || strlen($options["update_item"])>0)) { 274 274 275 if (!is_array($options["update_item"])) { 276 $data = unserialize(stripslashes($options["update_item"]));ValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
1<?php 2 153 $data = $this->getTopReviewers(); 154 if ( is_array( $data ) && count( $data ) ) { 155 $wgOut->addWikiMsg( 'validationstatistics-utable', 187 global $wgPhpCli; 188 $ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php'; 189 $path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' ); 279 $data = $dbCache->get( $key ); 280 if ( is_array( $data ) ) { 281 return $data; // cache hitXMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
1<?php 2 3// Handle eval errors that cause the script to finish 4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler(); 5register_shutdown_function(array($wpaeErrorHandler, 'handle')); 45 foreach ($article as $key => $value) { 46 if (!is_array($value) && strpos($value, '#delimiter#') !== FALSE) { 47 $article[$key] = explode('#delimiter#', $value); 172 173 if (is_array($v)) { 174 $delimiter = uniqid(); 283 $v = ''; 284 if (is_array($values)) { 285 $tag = false; 313 314 $is_attribute = false; 315list_generator.php https://github.com/mackensen/moodle.git | PHP | 336 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 64 // We need to filter all classes that extend event base, or the base class itself. 65 if (is_a($event, \core\event\base::class, true) && !in_array($event, $eventsignore)) { 66 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());Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 72 } 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 306 307 if ( ! is_array( $in ) ) { 308 $in = (array) $in; 385 $type = 'col'; 386 if ( is_array( $column ) ) { 387 $type = 'results'; 452 453 if ( is_array( $column ) ) { 454 $column = reset( $column );Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
1<?php 2 232 ->beforeNormalization() 233 ->ifTrue(function($v) { return !is_array($v); }) 234 ->then(function($v) { return array($v); }) 256 ->beforeNormalization() 257 ->ifTrue(function($v){ return !is_array($v); }) 258 ->then(function($v){ return array($v); }) 266 ->beforeNormalization() 267 ->ifTrue(function($v){ return !is_array($v); }) 268 ->then(function($v){ return array($v); }) 286 ->beforeNormalization() 287 ->ifTrue(function($v) { return !is_array($v); }) 288 ->then(function($v) { return array($v); })paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 75 76 if($processing && ($code = $GLOBALS['WS_PLUGIN__']['s2member']['o']['sp_tracking_codes']) && is_array($cv = preg_split('/\|/', $paypal['custom']))) 77 {ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
1<?php 2/** 88 { 89 if (!is_array($modulePaths) && !$modulePaths instanceof Traversable) { 90 throw new Exception\InvalidArgumentException( 134 { 135 if (!is_array($configGlobPaths) && !$configGlobPaths instanceof Traversable) { 136 throw new Exception\InvalidArgumentException( 160 { 161 if (!is_array($configStaticPaths) && !$configStaticPaths instanceof Traversable) { 162 throw new Exception\InvalidArgumentException( 197 { 198 if (!is_array($extraConfig) && !$extraConfig instanceof Traversable) { 199 throw new Exception\InvalidArgumentException( 269 if ($this->getConfigCacheKey()) { 270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php'; 271 }FormErrorsTest.php https://github.com/sidealice/zf2.git | PHP | 295 lines
1<?php 2/** 26 Zend\Form\SubForm, 27 Zend\View\PhpRenderer as View; 28 38 */ 39class FormErrorsTest extends \PHPUnit_Framework_TestCase 40{ 151 152 public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault() 153 { 156 $test = $this->decorator->render($content); 157 $this->assertContains($content . PHP_EOL . '<ul', $test); 158 } 242 } 243 if (false === next($messages) && is_array(prev($messages))) { 244 $messages = current($messages);Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 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 */ 90 $limit = $observer->getEvent()->getLimit(); 91 if (is_array($limit)) { 92 if (isset($limit['upsell'])) {Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 40 * @copyright 1997-2010 Chuck Hagenbuch 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 43 * @link http://pear.php.net/package/Mail/ 44 */ 45 46require_once 'PEAR.php'; 47 76 $driver = strtolower($driver); 77 @include_once 'Mail/' . $driver . '.php'; 78 $class = 'Mail_' . $driver;service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
1<?php 2/** 36 const AUTHORIZE = "/register/"; 37 const REDIRECT_URI = "/bitrix/tools/seo_client.php"; 38 122 static::$clientList = $cache->get(static::CLIENT_LIST_CACHE_ID); 123 static::$clientList = is_array(static::$clientList) ? static::$clientList : []; 124 } 128 $result = $clientDataProvider->getClientList(); 129 if (!is_array($result)) // backward compatibility 130 { 132 $data = $clientDataProvider->getClientInfo(); 133 if (is_array($data)) 134 {Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 56 */ 57class PHPUnit_Util_Type 58{ 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 524 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 */ 363 $xmlObj->appendChild($this->getAfterElementXml()); 364 } elseif (is_array($this->getAfterElementXml())) { 365 foreach ($this->getAfterElementXml() as $afterElement) {index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
128else if (isset($_PHPA)) 129 $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>'; 130else if (ini_get('apc.enabled')) 130else if (ini_get('apc.enabled')) 131 $php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>'; 132else if (ini_get('zend_optimizer.optimization_level')) 204 <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3> 205 <p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p> 206 </div> 213 <li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li> 214 <li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li> 215 <li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li> 226 <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li> 227 <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li> 228<?php endif; ?>tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 32 * @uses preg_replace() 33 * @uses is_array() 34 * @uses $GLOBALS['db'] 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php';RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
1<?php 2 3/** 4 * RbacUsers.php 5 * @package rbac-classes-model 29 */ 30require_once 'classes/model/om/BaseRbacUsers.php'; 31 78 $rs = RbacUsersPeer::doSelect($c); 79 if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') { 80 $aFields = $rs[0]->toArray(BasePeer::TYPE_FIELDNAME); 118 $rs = RbacUsersPeer::doSelect($c); 119 if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') { 120 //return the row for futher check of which Autentificacion method belongs this user 143 144 if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') { 145 $aFields = $rs[0]->toArray(BasePeer::TYPE_FIELDNAME);Mail.php https://gitlab.com/devtoannh/cafe | PHP | 430 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Log_Writer_Abstract */ 24require_once 'Zend/Log/Writer/Abstract.php'; 25 26/** Zend_Log_Exception */ 27require_once 'Zend/Log/Exception.php'; 28 29/** Zend_Log_Formatter_Simple*/ 30require_once 'Zend/Log/Formatter/Simple.php'; 31 43 * @license http://framework.zend.com/license/new-bsd New BSD License 44 * @version $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $ 45 */function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
1<?php 2 6 * 7 * $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $ 8 */ 39 $forum['icon'] = get_forumimg($forum['icon']); 40 $forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>'; 41 } 60 if($lastpost['author']) { 61 $lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>'; 62 } 89 if($selectedfid) { 90 if(!is_array($selectedfid)) { 91 $selected = $selectedfid == $forum['fid'] ? ' selected' : ''; 136 if($fid != $_G['forum']['fid']) { 137 $visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>'; 138 if(++$count >= $_G['setting']['visitedforums']) {admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 160 161 if (is_array($order)) 162 { 543 544 <li id="page_<?php echo $page['id']; ?>"> 545 <div> 545 <div> 546 <a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a> 547 </div> 548 549 <?php if(isset($page['children'])): ?> 550 <ol> 550 <ol> 551 <?php $this->tree_builder($page); ?> 552 </ol>AbstractPaginator.php https://gitlab.com/zan_zan/laravel_sample | PHP | 487 lines
1<?php 2 172 { 173 if (is_array($key)) { 174 return $this->appendArray($key);AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
1<?php 2/** 246 * @TODO fix this malarkey - getResponse() should always return an object 247 * @see https://github.com/facebook/facebook-php-sdk-v4/issues/36 248 */ 248 */ 249 if (is_array($data)) { 250 if (isset($data['access_token'])) {inputfilter.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 551 lines
1<?php 2/** 2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 70 */ 71 if (is_array($source)) 72 { 462 /** 463 * Method to be called by another php script. Processes for SQL injection 464 *Abstract.php https://github.com/cawago/ci_campusync_auth.git | PHP | 354 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 178 if ($value == null) { 179 if (is_array($attr)) { 180 foreach ($attr as $k => $v) { 202 if ($value === null) { 203 if (is_array($name)) { 204 foreach ($name as $k => $v) { 344 { 345 if (is_array($constraint)) { 346 foreach ($constraint as $name => $def) {AbstractCollectionPersister.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 313 lines
1<?php 2 175 // Elements may be an array or a Collection 176 $elements = array_values(is_array($elements) ? $elements : $elements->getValues()); 177 }Value.php https://github.com/hukumonline/zfurl.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35lib.php https://github.com/tcubansk/moodle.git | PHP | 391 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17defined('MOODLE_INTERNAL') OR die('not allowed'); 18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php'); 19 31 global $DB, $CFG; 32 require_once('info_form.php'); 33 59 //build the form 60 $this->item_form = new feedback_info_form('edit_item.php', 61 array('item'=>$item, 150 $data = $analysed_item->data; 151 if (is_array($data)) { 152 echo '<tr><th colspan="2" align="left">'; 171 $data = $analysed_item->data; 172 if (is_array($data)) { 173 $worksheet->write_string($row_offset, 2, $data[0]->show, $xls_formats->value_bold);UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
1<?php 2/** 45 $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf'); 46 $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml'); 47 $this->allowedFileSizes = array('review' => array('coverUpload' => 102400)); 122 // check if a file has been uploaded properly without errors 123 if ((!is_array($file)) || (is_array($file) && ($file['error'] != '0'))) { 124 if (is_array($file)) { 161 $imgInfo = getimagesize($file['tmp_name']); 162 if (!is_array($imgInfo) || !$imgInfo[0] || !$imgInfo[1]) { 163 return LogUtil::registerError(__('Error! This file type seems not to be a valid image.', $dom)); 199 $imgInfo = getimagesize($filePath); 200 if (!is_array($imgInfo)) { 201 return $meta; 325 break; 326 case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini 327 $errmsg = __('File too big', $dom);filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $ 2 // Contains special functions that are particularly useful to filters 84 85 if ( is_array($ignoretagsopen) ) { 86 foreach ($ignoretagsopen as $open) $filterignoretagsopen[] = $open;lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
1<?php // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $ 2 2 3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 4 * http://sourceforge.net/projects/lamplib 165 * Some optimisation to make the sure the 166 * content is only scanned by the PHP regex 167 * parser once. Lexer modes must not start 289 $length = strlen($raw); 290 while (is_array($parsed = $this->_reduce($raw))) { 291 list($unmatched, $matched, $mode) = $parsed;wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
1<?php 2// Pre-2.6 compatibility 5 6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) ) 7 return true; 10 11include( WPCACHEHOME . 'wp-cache-base.php'); 12 26 27require_once( WPCACHEHOME . 'wp-cache-phase2.php'); 28 28 29$plugins = glob( $wp_cache_plugins_dir . '/*.php' ); 30if( is_array( $plugins ) ) { 48function gzip_accepted(){ 49 if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it 50 return false;class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
1<?php 2/** 12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes 13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes. 14 * 14 * 15 * @see config/map.php 16 * @see include/helpers/helpers_api.php 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 212 $values['_category_ids'] = array(); 213 if ( is_array( $categories ) ) { 214 foreach ( $categories as $c ) { 281 public static function getShortCode( $tag ) { 282 return isset(self::$sc[ $tag ]) && is_array(self::$sc[ $tag ]) ? self::$sc[ $tag ] : null; 283 }Alignment.php https://gitlab.com/dmsapiens/physicians | PHP | 409 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable 37{ 143 * array( 144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, 145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, 307 * @param boolean $pValue 308 * @return PHPExcel_Style_Alignment 309 */db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 11 * 12 * @package PhpMyAdmin 13 */ 18 */ 19require_once 'libraries/common.inc.php'; 20require_once 'libraries/mysql_charsets.inc.php'; 20require_once 'libraries/mysql_charsets.inc.php'; 21require_once 'libraries/display_create_table.lib.php'; 22 25 */ 26require_once 'libraries/check_user_privileges.lib.php'; 27require_once 'libraries/operations.lib.php'; 71 72 include_once "libraries/plugin_interface.lib.php"; 73 // remove all foreign key constraints, otherwise we can get errorsUser_agent.php https://github.com/usagi-project/mynets1.git | PHP | 500 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 * 155 { 156 if (is_array($this->platforms) AND count($this->platforms) > 0) 157 { 179 { 180 if (is_array($this->browsers) AND count($this->browsers) > 0) 181 { 206 { 207 if (is_array($this->robots) AND count($this->robots) > 0) 208 { 231 { 232 if (is_array($this->mobiles) AND count($this->mobiles) > 0) 233 {Image.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3809 2008-12-18 12:48:41Z OscarB $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 76 77 // Disable error reporting, to prevent PHP warnings 78 $ER = error_reporting(0); 86 // Make sure that the image is readable and valid 87 if ( ! is_array($image_info) OR count($image_info) < 3) 88 throw new Kohana_Exception('image.file_unreadable', $image);Image.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3917 2009-01-21 03:06:22Z zombor $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 76 77 // Disable error reporting, to prevent PHP warnings 78 $ER = error_reporting(0); 86 // Make sure that the image is readable and valid 87 if ( ! is_array($image_info) OR count($image_info) < 3) 88 throw new Kohana_Exception('image.file_unreadable', $image);photospip_fr.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 142 lines
1<?php 2// This is a SPIP language file -- Ceci est un fichier langue de SPIP 45 'explication_image_nb' => 'Transforme l\'image en noir et blanc', 46 'explication_image_niveau_de_gris_auto' => 'Correction automatique des niveaux de l\'image.<br />(Ne nécessite pas de paramètres).', 47 'explication_image_passe_partout' => 'Ce filtre réduira la taille de l\'image au minimum la faisant entrer dans un cadre des largeurs et hauteurs fournies.', 76 'label_image_nb' => 'Filtre Noir et Blanc', 77 'label_image_niveau_de_gris_auto' => 'Niveaux automatiques', 78 'label_image_passe_partout' => 'Réduire l\'image (passe-partout)',arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
70 $obj = null; 71 if (is_array($array)) 72 { 75 { 76 if (is_array($v)) 77 { 108 { 109 if (is_array($item)) 110 { 352 { 353 if (!is_array($locale) or !is_array($locale[0])) 354 { 436 * 437 * @see http://php.net/manual/en/function.array-unique.php 438 * @since 11.2FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
1<?php 2 103 104 if (!is_array($objects)) { 105 $objects = array($objects);TimeType.php https://gitlab.com/pr0055/symfonypizza | PHP | 264 lines
1<?php 2 178 $placeholderNormalizer = function (Options $options, $placeholder) use ($placeholderDefault) { 179 if (is_array($placeholder)) { 180 $default = $placeholderDefault($options); 195 $choiceTranslationDomainNormalizer = function (Options $options, $choiceTranslationDomain) { 196 if (is_array($choiceTranslationDomain)) { 197 $default = false;factory.cpp https://gitlab.com/philipclaude/avro2 | C++ | 312 lines
7// Licensed under The GNU Lesser General Public License, version 2.1 8// See http://www.opensource.org/licenses/lgpl-2.1.php 9// 36std::shared_ptr<MetricAttachment> 37get_metric( const std::string& name , Points& points , bool& is_analytic , 38 const std::vector<real_t>& params ) { 40 // default to discrete metric field 41 is_analytic = false; 42 53 54 is_analytic = true; 55 if (name == "Uniform") {Response.php https://github.com/beberlei/zf2.git | PHP | 557 lines
1<?php 2 156 $lines = preg_split('/\r\n/', $string); 157 if (!is_array($lines) || count($lines)==1) { 158 $lines = preg_split ('/\n/',$string); 504 * 505 * Currently requires PHP with zlib support 506 * 523 * 524 * Currently requires PHP with zlib support 525 *PhpClass.php https://github.com/adaykin/zf2.git | PHP | 562 lines
90 * @param \Zend\Reflection\ReflectionClass $reflectionClass 91 * @return \Zend\CodeGenerator\Php\PhpClass 92 */ 148 * 149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile 150 */ 150 */ 151 public function setPhpFile(PhpFile $phpFile) 152 { 366 * @param string $propertyName 367 * @return \Zend\CodeGenerator\Php\PhpProperty 368 */ 440 * @param string $methodName 441 * @return \Zend\CodeGenerator\Php\PhpMethod 442 */model_delete.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 587 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.model 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 19 */ 20require_once dirname(__FILE__) . DS . 'model.test.php'; 21survey_invite.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 253 lines
1<?php 2/* For licensing terms, see /license.txt */ 8 * @author Julio Montoya Chamilo: cleanup, refactoring, security improvements 9 * @version $Id: survey_invite.php 10680 2007-01-11 21:26:23Z pcool $ 10 * 19// Including the global initialization file 20require_once '../inc/global.inc.php'; 21 22// Including additional libraries 23require_once 'survey.lib.php'; 24 26 27if (!api_is_allowed_to_edit(false, true)) { 28 Display :: display_header(get_lang('ToolSurvey')); 58// Breadcrumbs 59$interbreadcrumb[] = array('url' => 'survey_list.php', 'name' => get_lang('SurveyList')); 60if (api_is_course_admin()) {Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
1<?php 2/** 67 $this->loadSubPeriods(); 68 if(!is_array($aNames)) 69 { 163 $this->loadSubPeriods(); 164 if(!is_array($aRecordName)) 165 {event.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 418 lines
1<?php 2/** 4 * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5 * @license GNU/GPL, see LICENSE.php 6 * 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 15 16require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR .'helper.php' ); 17jimport( 'joomla.filesystem.file' ); 54 case 'jomsocial': 55 return JFile::exists( JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_community' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . 'core.php' ); 56 break; 92 93 if( !is_array( $ids ) ) 94 {Cloud.php https://gitlab.com/rsilveira1987/Expresso | PHP | 410 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cloud.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 25 */ 26require_once 'Zend/Tag/Item.php'; 27 84 85 if (is_array($options)) { 86 $this->setOptions($options); 149 $itemList[] = $tag; 150 } else if (is_array($tag)) { 151 $itemList[] = new Zend_Tag_Item($tag); 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');ps_function.php https://github.com/Shigaru/shigaru.git | PHP | 342 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_function.php 1674 2009-03-04 02:07:57Z tkahl $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2007 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 69 $db = new ps_DB(); 70 if( is_array( $d["function_id"] )) { 71 foreach( $d["function_id"] as $function ) { 144 } 145 if( is_array( $d[ 'function_perms' ] )) { 146 $d[ 'function_perms' ] = implode( ',', $d[ 'function_perms' ] );Chunk.php https://gitlab.com/kennethgomad01/genisys | PHP | 400 lines
1<?php 2 272 $entities = $nbt->getData(); 273 if(!is_array($entities)){ 274 $entities = [$entities]; 280 $tiles = $nbt->getData(); 281 if(!is_array($tiles)){ 282 $tiles = [$tiles];Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 211 // payload to each of them so that they receive each of these arguments. 212 if ( ! is_array($payload)) $payload = array($payload); 213agreement.php https://gitlab.com/alexprowars/bitrix | PHP | 585 lines
1<?php 2/** 100 101 $this->isAgreementTextHtml = ($this->data['IS_AGREEMENT_TEXT_HTML'] == 'Y'); 102 } 195 196 $this->isAgreementTextHtml = ($this->data['IS_AGREEMENT_TEXT_HTML'] == 'Y'); 197 }User_agent.php https://gitlab.com/sittipongwork/impro_dashboard | PHP | 550 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 87 { 88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php')) 89 { 89 { 90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'); 91 } 91 } 92 elseif (is_file(APPPATH.'config/user_agents.php')) 93 { 93 { 94 include(APPPATH.'config/user_agents.php'); 95 }Observer.php https://github.com/gryzz/crystal_magento.git | PHP | 282 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 */ 90 $limit = $observer->getEvent()->getLimit(); 91 if (is_array($limit)) { 92 if (isset($limit['upsell'])) {Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
1<?php 2/** 6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl) 7 * @license http://www.opensource.org/licenses/mit-license.php MIT 8 * @link https://github.com/barryvdh/laravel-ide-helper 63 * 64 * @param string $format The format to generate the helper in (php/json) 65 * @return string; 66 */ 67 public function generate($format = 'php') 68 { 74 75 return $this->generatePhpHelper(); 76 } 77 78 public function generatePhpHelper() 79 {Value.php https://github.com/doctoralex/ch3-dev-preview.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 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 */ 123 } else { 124 if (is_array($this->_queryText)) { 125 $this->_queryText = null; 324 foreach ($index as $key => $value) { 325 if (!is_array($value)) { 326 $_index[] = $value;CBaseController.php https://github.com/sassman/django-benchmark.git | PHP | 296 lines
1<?php 2/** 55 * @author Qiang Xue <qiang.xue@gmail.com> 56 * @version $Id: CBaseController.php 2172 2010-06-07 19:56:01Z qiang.xue $ 57 * @package system.web 100 * Renders a view file. 101 * This method includes the view file as a PHP script 102 * and captures the display result if required. 110 // we use special variable names here to avoid conflict when extracting data 111 if(is_array($_data_)) 112 extract($_data_,EXTR_PREFIX_SAME,'data');Listings.php https://github.com/ksecor/civicrm.git | PHP | 359 lines
1<?php 2 35 36require_once 'CRM/Profile/Selector/Listings.php'; 37require_once 'CRM/Core/Selector/Controller.php'; 37require_once 'CRM/Core/Selector/Controller.php'; 38require_once 'CRM/Core/Page.php'; 39 112 113 require_once 'CRM/Core/BAO/UFGroup.php'; 114 $this->_fields = 154 $value = CRM_Utils_Request::retrieve( $name, 'String', $this, false, null, 'REQUEST' ); 155 if ( ! is_array($value) ) $value = explode(CRM_Core_BAO_CustomOption::VALUE_SEPERATOR, substr($value,1,-1)); 156 } else { 160 161 if ( ( $name == 'group' || $name == 'tag' ) && ! empty( $value ) && ! is_array( $value ) ) { 162 $v = explode( ',', $value );