100+ results results for 'php array_keys' (1308 ms)
1<?php 2/* ---------------------------------------------------------------------- 2/* ---------------------------------------------------------------------- 3 * includes/ShowController.php 4 * ---------------------------------------------------------------------- 28 29 require_once(__CA_MODELS_DIR__.'/ca_sets.php'); 30 require_once(__CA_MODELS_DIR__.'/ca_objects.php'); 30 require_once(__CA_MODELS_DIR__.'/ca_objects.php'); 31 require_once(__CA_MODELS_DIR__.'/ca_set_items.php'); 32 require_once(__CA_MODELS_DIR__.'/ca_lists.php'); 32 require_once(__CA_MODELS_DIR__.'/ca_lists.php'); 33 require_once(__CA_APP_DIR__.'/helpers/accessHelpers.php'); 34 require_once(__CA_LIB_DIR__.'/ca/ResultContext.php'); 75 $va_sets = caExtractValuesByUserLocale($t_set->getSets(array('table' => 'ca_objects', 'access' => __CA_SET_READ_ACCESS__, 'user_id' => $this->request->getUserID()))); 76 $va_set_first_items = $t_set->getFirstItemsFromSets(array_keys($va_sets), array("version" => "widepreview", "checkAccess" => $va_access_values)); 77 $va_set_descriptions = $t_set->getAttributeFromSets($this->opo_plugin_config->get('set_description_element_code'), array_keys($va_sets), array("checkAccess" => $va_access_values));Resubscribe.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 290 lines
1<?php 2/* 33 34require_once 'Mail/mime.php'; 35 137 138 $group_ids = array_keys($groups); 139 $base_groups = NULL;previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
1<?php 2/** 90 if ($this->providerListDirty) { 91 $keys = array_map('strlen', array_keys($this->providers)); 92 array_multisort($keys, SORT_DESC, $this->providers); 137 $this->registerCoreProviders(); 138 $providerMimeTypes = array_keys($this->providers); 139 foreach ($providerMimeTypes as $supportedMimeType) {Order.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 319 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 */ 306 if ($ordersData) { 307 foreach ($this->_getAddresses(array_keys($ordersData)) as $orderId => $addresses) { 308 $ordersData[$orderId]['addresses'] = $addresses; 309 } 310 foreach ($this->_getItems(array_keys($ordersData)) as $orderId => $items) { 311 $ordersData[$orderId]['order_items'] = $items; 312 } 313 foreach ($this->_getComments(array_keys($ordersData)) as $orderId => $comments) { 314 $ordersData[$orderId]['order_comments'] = $comments;SlackRecord.php https://gitlab.com/madwanz64/laravel | PHP | 387 lines
1<?php declare(strict_types=1); 2 26 * 27 * @phpstan-import-type FormattedRecord from \Monolog\Handler\AbstractProcessingHandler 28 * @phpstan-import-type Record from \Monolog\Logger 123 * 124 * @phpstan-param FormattedRecord $record 125 * @phpstan-return mixed[] 140 if ($this->formatter && !$this->useAttachment) { 141 /** @phpstan-ignore-next-line */ 142 $message = $this->formatter->format($record); 231 $hasSecondDimension = count(array_filter($normalized, 'is_array')); 232 $hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric')); 233 362 * 363 * @phpstan-param FormattedRecord $record 364 *mms-patches.inc.php https://gitlab.com/Gashler/dp | PHP | 150 lines
48 49 if (is_multisite () && is_network_admin () && $pagenow === "update-core.php") 50 if ($message === "Upgrading database…" && c_ws_plugin__s2member_mms_patches::mms_patches ()) 74 75 $wp_login_file = ABSPATH . "wp-login.php"; // This works for both WordPress® 3.0 and 3.1. WordPress® 3.1+ uses: `site_url('wp-signup.php')`. WordPress® 3.5+ uses: `network_site_url('wp-signup.php')`. 76 $wp_login_section = "/([\r\n\t\s ]+)(wp_redirect( *?)\(( *?)apply_filters( *?)\(( *?)['\"]wp_signup_location['\"],( *?)(site_url( *?)\(( *?)['\"]wp-signup\.php['\"]( *?)\)|network_site_url( *?)\(( *?)['\"]wp-signup\.php['\"]( *?)\)|get_bloginfo( *?)\(['\"]wpurl['\"]\)( *?)\.( *?)['\"]\/wp-signup\.php['\"])( *?)\)( *?)\);)([\r\n\t\s ]+)(exit;)/"; 99 else if (!$load_written) // Otherwise, we need to report that /wp-includes/load.php could NOT be updated. Possibly a permissions error. 100 ($display_notices) ? c_ws_plugin__s2member_admin_notices::display_admin_notice ('Your <code>/wp-includes/load.php</code> file could NOT be patched. Patch NOT written.', true) : null; 101 else if (!$load_patched) // Otherwise, we need to report that /wp-includes/load.php could NOT be updated. Wrong WordPress® version? 101 else if (!$load_patched) // Otherwise, we need to report that /wp-includes/load.php could NOT be updated. Wrong WordPress® version? 102 ($display_notices) ? c_ws_plugin__s2member_admin_notices::display_admin_notice ('Your <code>/wp-includes/load.php</code> file could NOT be patched. Unverifiable.', true) : null; 103 } 135 } 136 else // Otherwise, we need to report that /wp-includes/ms-functions.php could NOT be updated. Possibly a permissions error. 137 ($display_notices) ? c_ws_plugin__s2member_admin_notices::display_admin_notice ('Your <code>/wp-includes/ms-functions.php</code> file could NOT be patched. File NOT writable.', true) : null;plugins.php https://github.com/widgetfactory/jce-admin.git | PHP | 361 lines
1<?php 2 14// load base model 15require_once (dirname(__FILE__) . '/model.php'); 16 85 // get all Plugins 86 $folders = JFolder::folders(WF_EDITOR_PLUGINS, '.', false, true, array_merge(array('.svn', 'CVS'), array_keys($plugins))); 87Abstract.php https://github.com/arush/desparation-deprecated.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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 192 { 193 $flatColumns = array_keys($this->_getReadAdapter() 194 ->describeTable( 260 if ($this->_grid) { 261 $this->_gridColumns = array_keys( 262 $this->_getReadAdapter()->describeTable($this->getGridTable())GraphNodeFactory.php https://gitlab.com/lbsastry/idn-api-php | PHP | 392 lines
1<?php 2/** 122 /** 123 * Convenience method for creating a GraphPage collection. 124 * 124 * 125 * @return GraphPage 126 * 128 */ 129 public function makeGraphPage() 130 { 130 { 131 return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphPage'); 132 } 373 // Checks for a sequential numeric array which would be a GraphEdge 374 return array_keys($data) === range(0, count($data) - 1); 375 }Plain.php https://github.com/imr/horde.git | PHP | 316 lines
1<?php 2/** 111 112 $text = $this->_textFilter($text, array_keys($filters), array_values($filters)); 113 176 $status = array(); 177 $text = $this->_textFilter($text, array_keys($filters), array_values($filters)); 178 311 return '<div class="fixed">' . 312 $this->_textFilter(Horde_String::convertCharset(fread($stream, 1024), $this->_mimepart->getCharset(), 'UTF-8'), array_keys($filters), array_values($filters)) . 313 ' [...]</div>';IndexController.php https://gitlab.com/wuhang2003/phpwind | PHP | 419 lines
1<?php 2Wind::import('LIB:base.PwBaseController'); 14 15 /* (non-PHPdoc) 16 * @see WindController::run() 28 $hotTags[$k]['weight'] = 0.7 * $v['content_count'] + 0.3 * $v['attention_count']; 29 $hotTags[$k]['attentions'] = array_keys($attentions); 30 $tagIds[] = $k; 62 $relations = $this->_getTagDs()->getAttentionByUid($this->loginUser->uid,0,50); 63 $relationTagIds = array_keys($relations); 64 $myTagList = array_slice($relationTagIds,0,10);feed.php https://github.com/xiaodi/Core.git | PHP | 341 lines
1<?php 2//////////////////////////////////////////////////////////////////////////////// 30 31require_once PHORUM_PATH.'/include/api/format/messages.php'; 32 101 ); 102 if (!file_exists(PHORUM_PATH.'/include/api/feed/'.$adapter.'.php')) { 103 trigger_error( 118 $thread_id = NULL; 119 $forum_ids = array_keys($forums); 120 $cache_part = implode(',', array_keys($forums)); 136 $thread_id = NULL; 137 $forum_ids = array_keys($forums); 138 $cache_part = $forum['forum_id']; 239 * @todo The formatting of the forum base feed data should 240 * be based on the data in $forum and not the common.php 241 * $PHORUM contents. This is left as is for now, becausehelpers.php https://bitbucket.org/gmmcal/laravel.git | PHP | 598 lines
1<?php 2 231{ 232 return array(array_keys($array), array_values($array)); 233} 504/** 505 * Determine if the current version of PHP is at least the supplied version. 506 * 509 */ 510function has_php($version) 511{ 511{ 512 return version_compare(PHP_VERSION, $version) >= 0; 513}Service.php https://gitlab.com/devtoannh/cafe | PHP | 473 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 23775 2011-03-01 17:25:24Z ralph $ 32 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));RouteCollectionBuilderTest.php https://gitlab.com/milton2913/myBlog | PHP | 324 lines
1<?php 2 18 19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase 20{ 118 $this->assertCount(5, $actualCollection); 119 $actualRouteNames = array_keys($actualCollection->all()); 120 $this->assertEquals(array( 148 $actualCollection = $collectionBuilder->build(); 149 $actualRouteNames = array_keys($actualCollection->all()); 150 $this->assertEquals(array(search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
1<?php 2/** 57 "=EXTERNAL_AUTH_ID" => "replica", 58 "=XML_ID" => array_keys($searchResult), 59 ),class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
50 $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" ); 51 $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts)); 52 foreach ( $matches as $type => $reals ) 202?> 203 <td <?php echo $attributes ?>><?php 204 if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) { 270?> 271 <td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> 272<?php 291?> 292 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 293<?php 313?> 314 <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> 315 <?php if( $user_can_edit ) {?>Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 228 case 'min': 229 $cost = $costs[ min( array_keys( $costs ) ) ]; 230 break; 232 default: 233 $cost = $costs[ max( array_keys( $costs ) ) ]; 234 break;XRDS.php https://github.com/devilzz/metabbs.git | PHP | 419 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 18 */ 19require_once 'Services/Yadis/XML.php'; 20 122 123 $keys = array_keys($uris); 124 sort($keys); 337 338 $pri_keys = array_keys($this->serviceList); 339 sort($pri_keys, SORT_NUMERIC); 406 407 $pri_keys = array_keys($filtered); 408 sort($pri_keys, SORT_NUMERIC);ezcurrencydata.php https://github.com/lserwatka/ezpublish.git | PHP | 346 lines
1<?php 2// 119 { 120 $keys = array_keys( $rows ); 121 foreach ( $keys as $key )DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
1<?php 2 95 public function getTableNames() { 96 return array_unique(array_merge(array_keys($this->fieldNames), array_keys($this->extraColumns))); 97 } 159 $field_columns = array(); 160 foreach (array_keys($storage_definition->getColumns()) as $property_name) { 161 $field_columns[] = $this->getFieldColumnName($storage_definition, $property_name); 188 if (isset($this->fieldStorageDefinitions[$field_name]) && !$this->fieldStorageDefinitions[$field_name]->hasCustomStorage()) { 189 foreach (array_keys($this->fieldStorageDefinitions[$field_name]->getColumns()) as $property_name) { 190 $this->columnMapping[$field_name][$property_name] = $this->getFieldColumnName($this->fieldStorageDefinitions[$field_name], $property_name);scheduled_task.php https://github.com/mchurchward/moodle.git | PHP | 420 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 301 } 302 $result = array_keys($result); 303 sort($result, SORT_NUMERIC); 339 340 // We need to change to the server timezone before using php date() functions. 341 \core_date::set_default_server_timezone();theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11require( ABSPATH . 'wp-admin/includes/theme-install.php' ); 18if ( is_multisite() && ! is_network_admin() ) { 19 wp_redirect( network_admin_url( 'theme-install.php' ) ); 20 exit(); 23$title = __( 'Add Themes' ); 24$parent_file = 'themes.php'; 25 26if ( ! is_network_admin() ) { 27 $submenu_file = 'themes.php'; 28} 41 'canInstall' => current_user_can( 'install_themes' ), 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH )Serializer.php https://github.com/snippet/zf2.git | PHP | 353 lines
1<?php 2/** 33/** 34 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 35 * 159 $i = 0; 160 foreach (array_keys($data) as $key) { 161 // check if it contains non-integer keys 215 /** 216 * Write a PHP array with string or mixed keys. 217 *option-forces.inc.php https://gitlab.com/Gashler/dp | PHP | 259 lines
1<?php 2/** 133 134 foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v; 135 do_action ("ws_plugin__s2member_before_check_register_access", get_defined_vars ()); 169 170 foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v; 171 do_action ("ws_plugin__s2member_before_check_register_access", get_defined_vars ());Service.php https://github.com/basdog22/Qool.git | PHP | 473 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 24594 2012-01-05 21:27:01Z matthew $ 32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));Config.php https://gitlab.com/x33n/grav | PHP | 383 lines
1<?php 2namespace Grav\Common\Config; 7use RocketTheme\Toolbox\Blueprints\Blueprints; 8use RocketTheme\Toolbox\File\PhpFile; 9use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator; 139 } 140 $diff = array_keys(array_diff_key($this->streams, $streams)); 141 if ($diff) { 226 $filename = $filename 227 ? CACHE_DIR . 'compiled/blueprints/' . $filename . '-' . $this->environment . '.php' 228 : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php'; 228 : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php'; 229 $file = PhpFile::instance($filename); 230 $cache = $file->exists() ? $file->content() : null; 273 $filename = $filename 274 ? CACHE_DIR . 'compiled/config/' . $filename . '-' . $this->environment . '.php' 275 : CACHE_DIR . 'compiled/config/' . $checksum . '-' . $this->environment . '.php';PredisClusterHashStrategy.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 398 lines
1<?php 2 178 { 179 return array_keys($this->commands); 180 }UserIntegritySensorPlugin.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 442 lines
1<?php 2 /** 78 $count = 0; 79 $changed_users_ids = array_intersect(array_keys($current_users), array_keys($old_users)); 80 foreach ($changed_users_ids as $changed_user_id) { 252 253 $new_users_id = array_diff(array_keys($current_users), array_keys($expected_users)); 254 296 297 $old_user_ids = array_keys($expected_users); 298 foreach ($old_user_ids as $id) {PublicController.php https://gitlab.com/mautic-master/mautic | PHP | 435 lines
1<?php 2/** 51 if (!empty($tokens)) { 52 $content = str_ireplace(array_keys($tokens), $tokens, $content); 53 $subject = str_ireplace(array_keys($tokens), $tokens, $subject); 187 188 $contentTemplate = $this->factory->getHelper('theme')->checkForTwigTemplate(':' . $template . ':message.html.php'); 189 192 if (in_array('form', $config['features'])) { 193 $contentTemplate = $this->factory->getHelper('theme')->checkForTwigTemplate(':' . $template . ':form.html.php'); 194 } else { 194 } else { 195 $contentTemplate = 'MauticFormBundle::form.html.php'; 196 } 273 274 $logicalName = $this->factory->getHelper('theme')->checkForTwigTemplate(':' . $template . ':message.html.php'); 275LayoutProcessor.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 257 lines
1<?php 2/** 93 { 94 $codes = array_keys($attributesToConvert); 95 foreach (array_keys($elements) as $code) {overrides.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 298 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require_once(dirname(__FILE__) . '/../../config.php'); 27require_once($CFG->dirroot.'/mod/assign/lib.php'); 27require_once($CFG->dirroot.'/mod/assign/lib.php'); 28require_once($CFG->dirroot.'/mod/assign/locallib.php'); 29require_once($CFG->dirroot.'/mod/assign/override_form.php'); 35$action = optional_param('action', '', PARAM_ALPHA); 36$redirect = $CFG->wwwroot.'/mod/assign/overrides.php?cmid=' . $cmid . '&mode=group'; 37 58 59$url = new moodle_url('/mod/assign/overrides.php', array('cmid' => $cm->id, 'mode' => $mode)); 60 96if (!empty($orphaned)) { 97 $DB->delete_records_list('assign_overrides', 'id', array_keys($orphaned)); 98}abstract-wc-shipping-method.php https://gitlab.com/iamgraeme/royalmile | PHP | 509 lines
1<?php 2 307 // Sum the item taxes 308 foreach ( array_keys( $taxes + $item_taxes ) as $key ) { 309 $taxes[ $key ] = ( isset( $item_taxes[ $key ] ) ? $item_taxes[ $key ] : 0 ) + ( isset( $taxes[ $key ] ) ? $taxes[ $key ] : 0 ); 317 // Sum the item taxes 318 foreach ( array_keys( $taxes + $item_taxes ) as $key ) { 319 $taxes[ $key ] = ( isset( $item_taxes[ $key ] ) ? $item_taxes[ $key ] : 0 ) + ( isset( $taxes[ $key ] ) ? $taxes[ $key ] : 0 ); 341 case 'including' : 342 $available = in_array( $package['destination']['country'], array_intersect( $countries, array_keys( WC()->countries->get_shipping_countries() ) ) ); 343 break; 344 case 'excluding' : 345 $available = in_array( $package['destination']['country'], array_diff( array_keys( WC()->countries->get_shipping_countries() ), $countries ) ); 346 break; 347 default : 348 $available = in_array( $package['destination']['country'], array_keys( WC()->countries->get_shipping_countries() ) ); 349 break;class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
1<?php 2/** 175 176 wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) ); 177 } 212 $_query = wp_parse_args( $q->query ); 213 if ( ! empty( $_query ) && array_intersect( array_keys( $_query ), array_keys( $this->query_vars ) ) ) { 214 $q->is_page = true; 253 254 wp_redirect( $url ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect 255 exit();Field.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 316 lines
1<?php 2/* 138 CRM_Core_DAO::storeValues($customFieldBAO, $customField[$customFieldBAO->id]); 139 $action = array_sum(array_keys(self::actionLinks())); 140 if ($customFieldBAO->is_active) { 205 public function edit($action) { 206 // create a simple controller for editing custom dataCRM/Custom/Page/Field.php 207 $controller = new CRM_Core_Controller_Simple('CRM_Custom_Form_Field', ts('Custom Field'), $action);Abstract.php https://gitlab.com/Ltaimao/wecenter | PHP | 448 lines
1<?php 2/** 114 if (!class_exists($this->_rowClass)) { 115 //require_once 'Zend/Loader.php'; 116 Zend_Loader::loadClass($this->_rowClass); 224 * Rewind the Iterator to the first element. 225 * Similar to the reset() function for arrays in PHP. 226 * Required by interface Iterator. 237 * Return the current element. 238 * Similar to the current() function for arrays in PHP 239 * Required by interface Iterator. 254 * Return the identifying key of the current element. 255 * Similar to the key() function for arrays in PHP. 256 * Required by interface Iterator. 266 * Move forward to next element. 267 * Similar to the next() function for arrays in PHP. 268 * Required by interface Iterator.Collection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 442 lines
1<?php 2/** 200 * @return $this 201 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 202 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 219 // Retrieve regular categories product counts 220 $regularIds = array_keys($regular); 221 if (!empty($regularIds)) {Webapi.php https://gitlab.com/yousafsyed/easternglamor | PHP | 336 lines
1<?php 2/** 166 unset($address['default_shipping']); 167 foreach (array_keys($this->mappingData) as $key) { 168 if (isset($address[$key])) { 201 unset($address['default_shipping']); 202 foreach (array_keys($this->mappingData) as $key) { 203 if (isset($address[$key])) {Invoiced.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 296 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 */ 145 $select->having('orders_count > 0'); 146 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 147 $adapter->query($insertQuery); 173 174 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 175 $adapter->query($insertQuery); 261 $helper = Mage::getResourceHelper('core'); 262 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 263 $adapter->query($insertQuery);file.php https://gitlab.com/alexprowars/bitrix | PHP | 487 lines
1<?php 2 68 { 69 $value = array_keys($value); 70 } 88 { 89 return '[url=/bitrix/tools/bizproc_show_file.php?f='.urlencode($file['FILE_NAME']).'&hash=' 90 .md5($file['FILE_NAME']) 206 { 207 $value = array_keys($value); 208 }cron.php https://gitlab.com/gregtyka/WordPress-stable | PHP | 409 lines
1<?php 2/** 220 221 $keys = array_keys( $crons ); 222 if ( isset($keys[0]) && $keys[0] > $local_time ) 239 240 WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' ); 241 return; 246 247 $cron_url = site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ); 248 wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) ); 259 260 // Prevent infinite loops caused by lack of wp-cron.php 261 if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) ) 267 $local_time = microtime( true ); 268 $keys = array_keys( $crons ); 269 if ( isset($keys[0]) && $keys[0] > $local_time )context_export_ui.class.php https://gitlab.com/acdickin/drupal | PHP | 327 lines
1<?php 2 107function context_ui_form(&$form, &$form_state) { 108 $conditions = array_keys(context_conditions()); 109 sort($conditions); 109 sort($conditions); 110 $reactions = array_keys(context_reactions()); 111 sort($reactions);QueryPluginBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 389 lines
1<?php 2 170 if (!isset($group)) { 171 $group = empty($groups) ? 1 : max(array_keys($groups)) + 1; 172 }CartShippingRateSchema.php https://gitlab.com/campus-academy/krowkaramel | PHP | 354 lines
1<?php 2namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas; 342 return array_reduce( 343 array_keys( $meta_data ), 344 function( $return, $key ) use ( $meta_data ) {ThemeInstallerTest.php https://gitlab.com/guillaumev/alkarama | PHP | 398 lines
1<?php 2 44 45 $this->assertFalse(array_keys($this->themeHandler()->listInfo())); 46 $this->assertFalse(array_keys(system_list('theme'))); 71 72 $this->assertEqual(array_keys(system_list('theme')), array_keys($themes)); 73 87 $themes = $this->themeHandler()->listInfo(); 88 $this->assertFalse(array_keys($themes)); 89 109 $themes = $this->themeHandler()->listInfo(); 110 $this->assertFalse(array_keys($themes)); 111 282 $this->assertEqual($themes[$name]->getName(), $name); 283 $this->assertEqual(array_keys(system_list('theme')), array_keys($themes)); 284 $this->assertTrue($this->config("$name.settings")->get());VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 62 $j = -1; // Position in the currently iterated array 63 $fromObjCast = array_keys($queue[$i]); 64 $fromObjCast = array_keys(array_flip($fromObjCast)) !== $fromObjCast; 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1; 321 322 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 323 }Form.php https://gitlab.com/tangsengjiu/Talk | PHP | 408 lines
1<?php 2/** 192 $rows = ceil($rows); 193 $names = array_keys($this->attributes); 194 $values = array_values($this->attributes);videos.php https://github.com/jersub/gallery3-contrib.git | PHP | 302 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 22 $paths = unserialize(module::get_var("videos", "authorized_paths")); 23 foreach (array_keys($paths) as $path) { 24 $files[] = $path; 68 $paths = unserialize(module::get_var("videos", "authorized_paths")); 69 foreach (array_keys($paths) as $path) { 70 $tree->files[] = $path;questiontype.php https://bitbucket.org/moodle/moodle.git | PHP | 277 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 27 28require_once($CFG->dirroot . '/question/type/ddimageortext/questiontypebase.php'); 29 76 $DB->delete_records('qtype_ddimageortext_drops', array('questionid' => $formdata->id)); 77 foreach (array_keys($formdata->drops) as $dropno) { 78 if ($formdata->drops[$dropno]['choice'] == 0) { 95 '', 'no, id'); 96 foreach (array_keys($formdata->drags) as $dragno) { 97 $info = file_get_draft_area_info($formdata->dragitem[$dragno]);Plugin.php https://github.com/phpnode/YiiBlocks.git | PHP | 466 lines
1<?php 2 193 194 $properties = array_keys(Sabre_DAV_XMLUtil::parseProperties($dom->firstChild)); 195cat.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 217 lines
1<?php 2/** 37 $groups = $nv_Request->get_typed_array( 'groups_view', 'post', 'int', array() ); 38 $groups = array_intersect( $groups, array_keys( $groups_list ) ); 39 $data['groups_view'] = implode( ",", $groups ); 55 nv_insert_logs( NV_LANG_DATA, $module_name,$lang_module['add_cat'], $data['title'], $admin_info['userid'] ); 56 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 57 die(); 81 nv_insert_logs( NV_LANG_DATA, $module_name,$lang_module['edit_cat'], $data['title'], $admin_info['userid'] ); 82 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 83 die(); 110 { 111 $array_cat_title[] = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid_i . "\"><strong>" . $global_array_cat[$parentid_i]['title'] . "</strong></a>"; 112 $parentid_i = $global_array_cat[$parentid_i]['parentid']; 114 sort( $array_cat_title, SORT_NUMERIC ); 115 $ptemp = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=0\"><strong>" . $lang_module['root_cat'] . "</strong></a>"; 116 $contents .= $ptemp." -> ".implode( " -> ", $array_cat_title );tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 5// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | 6// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 23 24if( !defined("PHPWG_ROOT_PATH") ) 25{ 28 29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 30check_status(ACCESS_ADMINISTRATOR); 408 array( 409 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags', 410 'PWG_TOKEN' => get_pwg_token(),Arr.php https://gitlab.com/leon0399/damnit-engine | PHP | 475 lines
1<?php 2 82 { 83 return [array_keys($array), array_values($array)]; 84 } 283 { 284 $keys = array_keys($array); 285 285 286 return array_keys($keys) !== $keys; 287 }RuntimeDefinition.php https://gitlab.com/jalon/doadoronline | PHP | 353 lines
1<?php 2/** 100 { 101 return array_keys($this->classes); 102 }Validator.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 481 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 */ 67 $list = $this->getStabilities(); 68 $tmp = array_combine(array_values($list),array_keys($list)); 69 425 /** 426 * Check if PHP extension loaded 427 * 443 */ 444 public function validatePHPVersion($min, $max, $ver = PHP_VERSION) 445 {question_type_test.php https://bitbucket.org/moodle/moodle.git | PHP | 253 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26global $CFG; 27require_once($CFG->dirroot . '/question/type/calculated/questiontype.php'); 28require_once($CFG->dirroot . '/question/type/calculated/tests/helper.php'); 31/** 32 * Unit tests for question/type/calculated/questiontype.php. 33 * 89 'status', 'versionid', 'version', 'questionbankentryid', 'categoryobject', 'options', 'hints'], 90 array_keys(get_object_vars($questiondata))); 91 $this->assertEquals($category->id, $questiondata->category); 226 $this->qtype->find_dataset_names(' 227 <p>If called with $a = {a} and $b = {b}, what does this PHP function return?</p> 228 <pre>arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 32 // Keys of the array 33 $keys = array_keys($array); 34 36 // not be associative (e.g. the keys array looked like {0:0, 1:1...}). 37 return array_keys($keys) !== $keys; 38 } 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *inmate.php https://github.com/m3nt0r/cakephp-jailson.git | PHP | 415 lines
1<?php 2/** 2/** 3 * Jailson for CakePHP 4 * Access Control Plugin 5 * 6 * @category CakePHP 7 * @author Kjell Bublitz <m3nt0r.de@gmail.com> 9 * @subpackage plugins.jailson.behaviors 10 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 11 * @link http://github.com/m3nt0r/cakephp-jailson Repository/Docs 18 * 19 * @category CakePHP 20 * @author Kjell Bublitz <m3nt0r.de@gmail.com> 236 if ($justRoles) 237 return array_keys($result); 238mail.php https://gitlab.com/michield/dokuwiki | PHP | 332 lines
1<?php 2/** 44 // auto constructed address 45 $host = @parse_url(DOKU_URL,PHP_URL_HOST); 46 if(!$host) $host = 'example.com'; 68 // apply replacements 69 $from = str_replace(array_keys($replace), 70 array_values($replace), 82/** 83 * UTF-8 autoencoding replacement for PHPs mail function 84 * 146 // No named recipients for To: in Windows (see FS#652) 147 $usenames = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? false : true; 148 269 * @author umu <umuAThrz.tu-chemnitz.de> 270 * @link http://www.php.net/manual/en/function.imap-8bit.php#61216 271 */CakeMigrationTest.php https://github.com/kiang/olc_baker.git | PHP | 450 lines
1<?php 2App::import('Model', 'Migrations.CakeMigration', false); 392 $this->assertEqual($result['beforeAction'], $expected); 393 $this->assertEqual(array_keys($result), array('beforeMigration', 'beforeAction', 'afterAction', 'afterMigration')); 394 406 $this->assertEqual($result['beforeAction'], $expected); 407 $this->assertEqual(array_keys($result), array('beforeMigration', 'beforeAction', 'afterAction', 'afterMigration')); 408 }OfferRepository.php https://gitlab.com/snips3/rfpr | PHP | 462 lines
1<?php 2 58 59 $products = $this->getProductsByIds(array_keys($offers)); 60 76 77 $products = $this->getProductsByIds(array_keys($offers)); 78Invoiced.php https://github.com/arush/desparation-deprecated.git | PHP | 296 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 */ 145 $select->having('orders_count > 0'); 146 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 147 $adapter->query($insertQuery); 173 174 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 175 $adapter->query($insertQuery); 261 $helper = Mage::getResourceHelper('core'); 262 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 263 $adapter->query($insertQuery);Observer.php https://github.com/arush/desparation-deprecated.git | PHP | 277 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 */ 235 $linkPurchased = Mage::getResourceModel('downloadable/link_purchased_item_collection') 236 ->addFieldToFilter('order_item_id', array('in' => array_keys($downloadableItemsStatuses))); 237 foreach ($linkPurchased as $link) {PublicController.php https://gitlab.com/jankube/mautic | PHP | 405 lines
1<?php 2/** 43 44 $content = str_ireplace(array_keys($tokens), $tokens, $content); 45 } 56 $response = $this->render( 57 'MauticEmailBundle::public.html.php', 58 array( 212 ); 213 $contentTemplate = 'MauticCoreBundle::message.html.php'; 214 217 if (in_array('form', $config['features'])) { 218 $contentTemplate = 'MauticFormBundle::form.html.php'; 219 } 288 289 return $this->render('MauticCoreBundle::message.html.php', array( 290 'message' => $message,class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
1<?php 2/** 59 $_query = wp_parse_args( $q->query ); 60 if ( empty( $_query ) || ! array_diff( array_keys( $_query ), array( 'preview', 'page', 'paged', 'cpage', 'orderby' ) ) ) { 61 $q->is_page = true;admin.php https://github.com/rotinpain/pyrocms.git | PHP | 335 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 75 // Go through all the known fields and get the post values 76 foreach(array_keys($this->rules) as $field) 77 { 190 // Go through all the known fields and get the post values 191 foreach(array_keys($this->rules) as $field) 192 {Drupal.php https://github.com/ksecor/civicrm.git | PHP | 258 lines
1<?php 2 95 96 require_once 'CRM/ACL/API.php'; 97 140 $groups = implode( ', ', self::$_editPermissionedGroups ); 141 $clauses[] = ' ( civicrm_group_contact.group_id IN ( ' . implode( ', ', array_keys( self::$_editPermissionedGroups ) ) . 142 " ) AND civicrm_group_contact.status = 'Added' ) "; 146 // foreach group that is potentially a saved search, add the saved search clause 147 foreach ( array_keys( self::$_editPermissionedGroups ) as $id ) { 148 $group = new CRM_Contact_DAO_Group( ); 150 if ( $group->find( true ) && $group->saved_search_id ) { 151 require_once 'CRM/Contact/BAO/SavedSearch.php'; 152 $clause = CRM_Contact_BAO_SavedSearch::whereClause( $group->saved_search_id, 169 $groups = implode( ', ', self::$_viewPermissionedGroups ); 170 $clauses[] = ' ( civicrm_group_contact.group_id IN (' . implode( ', ', array_keys( self::$_viewPermissionedGroups ) ) . 171 " ) AND civicrm_group_contact.status = 'Added' ) ";Select.php https://github.com/dragos-grosu/solarium.git | PHP | 634 lines
1<?php 2/** 315 { 316 return array_keys($this->_fields); 317 }ComposerInformation.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 379 lines
106 */ 107 public function getRequiredPhpVersion() 108 { 110 $allPlatformReqs = $this->getLocker()->getPlatformRequirements(true); 111 $requiredPhpVersion = $allPlatformReqs['php']->getPrettyConstraint(); 112 } else { 118 if ($packageName === 'magento/product-community-edition') { 119 $phpRequirementLink = $package->getRequires()['php']; 120 if ($phpRequirementLink instanceof Link) { 120 if ($phpRequirementLink instanceof Link) { 121 $requiredPhpVersion = $phpRequirementLink->getPrettyConstraint(); 122 } 127 128 if (!isset($requiredPhpVersion)) { 129 throw new \Exception('Cannot find php version requirement in \'composer.lock\' file');ViewsEntitySchemaSubscriber.php https://gitlab.com/andecode/theme-spark | PHP | 424 lines
1<?php 2 268 foreach ($all_views as $view) { 269 foreach (array_keys($view->get('display')) as $display_id) { 270 $display = &$view->getDisplay($display_id);Compiler.php https://gitlab.com/kubinos/writeoff | PHP | 428 lines
1<?php 2 130 /** 131 * @return Nette\PhpGenerator\ClassType[]|string 132 */ 181 if ($extra = array_diff_key($this->extensions, $extensions, $first)) { 182 $extra = implode("', '", array_keys($extra)); 183 throw new Nette\DeprecatedException("Extensions '$extra' were added while container was being compiled."); 185 } elseif ($extra = key(array_diff_key($this->config, self::$reserved, $this->extensions))) { 186 $hint = Nette\Utils\ObjectMixin::getSuggestion(array_keys(self::$reserved + $this->extensions), $extra); 187 throw new Nette\InvalidStateException( 318 $known = array('class', 'create', 'arguments', 'setup', 'autowired', 'dynamic', 'inject', 'parameters', 'implement', 'run', 'tags'); 319 if ($error = array_diff(array_keys($config), $known)) { 320 throw new Nette\InvalidStateException(sprintf("Unknown or deprecated key '%s' in definition of service.", implode("', '", $error)));guest.php https://gitlab.com/neuser/bitrix-core | PHP | 365 lines
1<?php 2class CAllGuest 297 298 $strSqlGroup = $bGroup? "GROUP BY ".implode(", ", array_keys($arrGroup)): ""; 299helper_loader.php https://github.com/bermi/akelos.git | PHP | 281 lines
1<?php 2 40 * 41 * For example, if a helper TextHelper is located into the file text_helper.php. 42 * An instance is created on current controller 50 $this->instantiateHelpersAsHandlerAttributes($this->getHelperNames()); 51 $this->_storeInstantiatedHelperNames(array_keys($this->_HelperInstances)); 52 return $this->_HelperInstances; 61 if(is_int($file)){ 62 $file = $helpers_dir.DS.$helper_file_name.'.php'; 63 } 94 $this->instantiateHelpersAsHandlerAttributes($helper_names); 95 $this->_storeInstantiatedHelperNames(array_keys($this->_HelperInstances)); 96 return $this->_HelperInstances; 161 foreach (Ak::toArray($handler->app_helpers) as $helper_name){ 162 $helper_names[$helpers_dir.DS.AkInflector::underscore($helper_name).'_helper.php'] = AkInflector::camelize($helper_name); 163 }Refunded.php https://bitbucket.org/acidel/buykoala.git | PHP | 277 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 */ 120 $helper = Mage::getResourceHelper('core'); 121 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 122 $adapter->query($insertQuery); 148 149 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 150 $adapter->query($insertQuery); 239 $helper = Mage::getResourceHelper('core'); 240 $insertQuery = $helper->getInsertFromSelectUsingAnalytic($select, $table, array_keys($columns)); 241 $adapter->query($insertQuery);MessageBag.php https://gitlab.com/Sigpot/AirSpot | PHP | 359 lines
1<?php 2 47 { 48 return array_keys($this->messages); 49 }class.mysql.driver.php https://github.com/dkobia/Garden.git | PHP | 379 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 24 * @copyright 2003 Mark O'Sullivan 25 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL 26 * @package Garden 29 */ 30require_once(dirname(__FILE__).DS.'class.sqldriver.php'); 31 59 if (strpos($String, '.') !== FALSE) { 60 $MungedAliases = implode('.', array_keys($this->_AliasMap)).'.'; 61 $TableName = substr($String, 0, strpos($String, '.')+1); 258 // This is a big insert with a bunch of rows. 259 $Sql .= "\n(".implode(', ', array_keys($Data[0])).') ' 260 ."\nvalues "; 268 } else { 269 $Sql .= "\n(".implode(', ', array_keys($Data)).') ' 270 ."\nvalues (".implode(', ', array_values($Data)).')';AbstractPartialQuery.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 346 lines
1<?php 2/* 300 ", [ 301 1 => [implode(',', array_keys($filesIndex[$dao->{$parentIdColumn}])), 'String'], 302 2 => [$this->getName(), 'String'],Main.php https://github.com/inhale/core.git | PHP | 445 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 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 * @version GIT: $Id: cbeda4699099ad0e95d728538524bfcdd0df08e2 $ 207 { 208 return str_replace(array_keys($entries), $entries, $this->{$template . 'Template'}); 209 }WpdbMirrorBridge.php https://gitlab.com/vanafroo/landingpage | PHP | 447 lines
1<?php 2namespace VersionPress\Database; 228 }, 229 array_keys($where) 230 )functions.php https://github.com/codepassive/dev-nimbus.git | PHP | 408 lines
1<?php 2/** 17/** 18 * Copyright (c) PHPUTF8 19 * http://sourceforge.net/projects/phputf8/ 188 } else { 189 foreach (array_keys($search) as $k) { 190 if (is_array($replace)) { 228 // form feeds, horizontal tabs, vertical tabs, linefeeds and carriage returns 229 // This corresponds to the definition of a "word" defined at http://www.php.net/ucwords 230 $pattern = '/(^|([\x0c\x09\x0b\x0a\x0d\x20]+))([^\x0c\x09\x0b\x0a\x0d\x20]{1})[^\x0c\x09\x0b\x0a\x0d\x20]*/u';Prefs.php https://github.com/imr/horde.git | PHP | 499 lines
1<?php 2/** 162 foreach ($this->_scopes as $key => $val) { 163 $to_remove[$key] = array_keys(iterator_to_array($val)); 164 }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); 97 } else { 98 $keys = array_keys($var); 99 $spaces = str_repeat(' ', $level * 4); 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 *Druid.php https://github.com/Wixel/Druid.git | PHP | 545 lines
1<?php 2 59 ); 60 public static $php_errors = array( 61 E_ERROR => 'Fatal Error', 171 172 $global_variables = array_diff(array_keys($GLOBALS), array( 173 '_COOKIE', 428 { 429 $path = str_replace('_', '/', strtolower($class)).'.php'; 430 483 { 484 if (isset(self::$php_errors[$code])) 485 { 488 489 if (version_compare(PHP_VERSION, '5.3', '<')) // @see http://bugs.php.net/bug.php?id=45895 490 {EnvironmentsDataConnector.php https://github.com/EOL/eol_php_code.git | PHP | 236 lines
1<?php 2namespace php_active_record; 95 { 96 $batches = array_chunk(array_keys($this->taxon_ids_terms), 10000); 97 foreach($batches as $batch) 128 LEFT JOIN names n ON (he.name_id=n.id) 129 WHERE hef.hierarchy_entry_id IN (". implode(",", array_keys($entry_taxon_concept_ids)) .") 130 AND he.rank_id IN (". implode(",", $all_rank_ids) .")") as $row)ui.extension.php https://gitlab.com/pirati.cz/simpleid | PHP | 260 lines
1<?php 2/* 89 90 $fields = array_keys(openid_extension_filter_request(OPENID_NS_UI, $response)); 91 $alias = openid_extension_alias(OPENID_NS_UI);FacetSetTest.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 289 lines
1<?php 2/** 37 38class FacetSetTest extends \PHPUnit_Framework_TestCase 39{ 117 118 $this->assertEquals(array('keyA', 'keyB', 'keyC', 'keyD', 'keyE'), array_keys($facets)); 119 216 217 $this->assertEquals(array('keyA', 'keyB', 'keyC_A', 'keyC_B', 'keyD', 'cat,price'), array_keys($facets)); 218PathProcessorTest.php https://gitlab.com/reasonat/test8 | PHP | 213 lines
1<?php 2 33 * 34 * @var \Drupal\language\ConfigurableLanguageManagerInterface|\PHPUnit_Framework_MockObject_MockBuilder 35 */ 48 // Create a stub configuration. 49 $language_prefixes = array_keys($this->languages); 50 $config = array(Config.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 503 lines
1<?php 2 200 case Config::ENUM: 201 $content = implode("\r\n", array_keys($this->config)); 202 break; 412 public function getAll($keys = false){ 413 return ($keys === true ? array_keys($this->config) : $this->config); 414 }Flat.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 362 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 255 if (is_array($attrData)) { 256 $flatAttributes = array_intersect($this->_getFlatAttributes(), array_keys($attrData)); 257 }Service.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 452 lines
1<?php 2/** 18 * 19 * @todo Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions? 20 */ 153 if (!preg_match($this->nameRegex, $name)) { 154 throw new InvalidArgumentException("Invalid name '{$name} provided for service; must follow PHP method naming conventions"); 155 } 272 foreach ($options as $key => $value) { 273 if (in_array($key, array_keys($this->paramOptionTypes))) { 274 if (null !== ($callback = $this->paramOptionTypes[$key])) { 340 if (null === $param['order']) { 341 if (array_search($index, array_keys($params), true)) { 342 ++$index;_activityFeed.php https://gitlab.com/e0/X2CRM | PHP | 311 lines
106 <h2><?php echo Yii::t('app','Activity Feed'); ?></h2> 107 <span title='<?php echo Yii::t('app', 'Feed Settings'); ?>'> 108 <?php 117 <div id="menu-links" class="title-bar" style='display: none;'> 118 <?php 119 echo CHtml::link( 269 <div class='dialog-explanation'> 270 <?php echo Yii::t('app','Leave colors blank for defaults.');?> 271 </div> 298 <?php foreach ($userModels as $user) { ?> 299 <option value="<?php echo $user->id; ?>"> <?php echo $user->firstName . ' ' . $user->lastName; ?> </option> 300 <?php } ?> 303 <?php echo CHtml::label(Yii::t('app','Do you want to email selected users?'),'email-users'); ?> 304 <?php echo CHtml::checkBox('email-users'); ?> 305 </div>class.wpcom-json-api-site-settings-endpoint.php https://gitlab.com/relacilia/cakra | PHP | 406 lines
1<?php 2 87 $blog_id = (int) $this->api->get_blog_id_for_output(); 88 /** This filter is documented in class.json-api-endpoints.php */ 89 $is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); 90 91 foreach ( array_keys( $response_format ) as $key ) { 92 switch ( $key ) { 301 302 /** This action is documented in modules/widgets/social-media-icons.php */ 303 do_action( 'jetpack_bump_stats_extras', 'google-analytics', $enabled_or_disabled );Session.php https://github.com/sunsetsystems/openemr.git | PHP | 546 lines
1<?php 2/** 81 if ($cntr->offsetExists($ns)) { 82 $keys = array_keys($cntr->offsetGet($ns)); 83 } else { 396 if (!$cntr->offsetExists($ns)) { 397 return array_keys($normalizedKeyValuePairs); 398 }RoleController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 340 lines
1<?php 2/** 167 parse_str($roleUsers, $roleUsers); 168 $roleUsers = array_keys($roleUsers); 169 171 parse_str($oldRoleUsers, $oldRoleUsers); 172 $oldRoleUsers = array_keys($oldRoleUsers); 173external.php https://bitbucket.org/moodle/moodle.git | PHP | 271 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once("$CFG->libdir/externallib.php"); 30 57 /** 58 * Simulate the book/view.php web interface page: trigger events, completion, etc... 59 * 67 global $DB, $CFG; 68 require_once($CFG->dirroot . "/mod/book/lib.php"); 69 require_once($CFG->dirroot . "/mod/book/locallib.php"); 186 $courses = enrol_get_my_courses(); 187 $params['courseids'] = array_keys($courses); 188 }mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
1<?php 2 10if (!function_exists('mysql_connect')) 11 exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.'); 12 253 { 254 $field_data['datatype'] = preg_replace(array_keys($this->datatype_transformations), array_values($this->datatype_transformations), $field_data['datatype']); 255 318 319 $field_type = preg_replace(array_keys($this->datatype_transformations), array_values($this->datatype_transformations), $field_type); 320 332 333 $field_type = preg_replace(array_keys($this->datatype_transformations), array_values($this->datatype_transformations), $field_type); 334ModuleRegistryTest.php https://github.com/TYPO3/TYPO3.CMS.git | PHP | 256 lines
1<?php 2 20use Prophecy\Argument; 21use Prophecy\PhpUnit\ProphecyTrait; 22use Psr\EventDispatcher\EventDispatcherInterface; 130 // Asser correct sorting (flat) 131 self::assertEquals(array_keys($modules), array_keys($registry->getModules())); 132 133 // Assert correct hierarchy 134 self::assertEquals(['b_a', 'b_b', 'b_c', 'b_d'], array_keys($registry->getModule('b')->getSubModules())); 135 self::assertEquals('b', $registry->getModule('b_a')->getParentIdentifier()); 143 144 self::assertEquals(['b_a_a', 'b_a_b', 'b_a_c', 'b_a_d', 'b_a_e'], array_keys($registry->getModule('b_a')->getSubModules())); 145 self::assertEquals('b_a', $registry->getModule('b_a_a')->getParentIdentifier()); 155 156 self::assertEquals(['b_a_c_a', 'b_a_c_b'], array_keys($registry->getModule('b_a_c')->getSubModules())); 157 self::assertEquals('b_a_c', $registry->getModule('b_a_c_a')->getParentIdentifier());Drupal.php https://github.com/michaelmcandrew/citylink.git | PHP | 258 lines
1<?php 2 95 96 require_once 'CRM/ACL/API.php'; 97 140 $groups = implode( ', ', self::$_editPermissionedGroups ); 141 $clauses[] = ' ( civicrm_group_contact.group_id IN ( ' . implode( ', ', array_keys( self::$_editPermissionedGroups ) ) . 142 " ) AND civicrm_group_contact.status = 'Added' ) "; 146 // foreach group that is potentially a saved search, add the saved search clause 147 foreach ( array_keys( self::$_editPermissionedGroups ) as $id ) { 148 $group =& new CRM_Contact_DAO_Group( ); 150 if ( $group->find( true ) && $group->saved_search_id ) { 151 require_once 'CRM/Contact/BAO/SavedSearch.php'; 152 $clause = CRM_Contact_BAO_SavedSearch::whereClause( $group->saved_search_id, 169 $groups = implode( ', ', self::$_viewPermissionedGroups ); 170 $clauses[] = ' ( civicrm_group_contact.group_id IN (' . implode( ', ', array_keys( self::$_viewPermissionedGroups ) ) . 171 " ) AND civicrm_group_contact.status = 'Added' ) ";Template.php https://github.com/radicalsuz/amp.git | PHP | 294 lines
1<?php 2 107 } 108 $this->_output = str_replace( array_keys( $replace_set ), array_values( $replace_set ), $this->_template ); 109 $this->_execute_renderers( ); 143 } 144 $this->_output = str_replace( array_keys( $render_requests ), array_values( $render_requests ), $this->_output ); 145 } 231 } 232 $this->_output = str_replace( array_keys( $helper_output ), array_values( $helper_output ), $this->_output ); 233 } 245 function _populate_properties( ){ 246 $this->_output = str_replace( array_keys( $this->_properties ), array_values( $this->_properties ), $this->_template ); 247 } 254 255 $this->_output = str_replace( array_keys( $this->_methods_output), array_values( $this->_methods_output), $this->_output ); 256 }class-wp-customize-panel.php https://gitlab.com/webkod3r/tripolis | PHP | 389 lines
1<?php 2/** 150 public function __construct( $manager, $id, $args = array() ) { 151 $keys = array_keys( get_object_vars( $this ) ); 152 foreach ( $keys as $key ) { 321 ?> 322 <script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>-content"> 323 <?php $this->content_template(); ?> 324 </script> 325 <script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>"> 326 <?php $this->render_template(); ?> 327 </script> 328 <?php 329 } 346 {{ data.title }} 347 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span> 348 </h3>class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 372 $mime_types = wp_get_mime_types(); 373 $extensions = array_keys( $mime_types ); 374date_functions.php https://gitlab.com/endomorphosis/fusenews | PHP | 302 lines
1<?php 2require_once(BASE."functions/is_daylight.php"); 2require_once(BASE."functions/is_daylight.php"); 3// date_functions.php 4// functions for returning or comparing dates 24function dateOfWeek($Ymd, $day) { 25 global $phpiCal_config; 26 $week_start_day = 'Sunday'; 26 $week_start_day = 'Sunday'; 27 if (isset($phpiCal_config->week_start_day)) $week_start_day = $phpiCal_config->week_start_day; 28 $timestamp = strtotime($Ymd); 111 ); 112 $date = str_replace(array_keys($replacements), array_values($replacements), $format); 113 return $date; 229 230See:http://phpicalendar.org/documentation/index.php/Property_Value_Data_Types#4.3.5___Date-Time 231*/wc-conditional-functions.php https://gitlab.com/hunt9310/ras | PHP | 414 lines
1<?php 2/** 290 $attributes = $product->get_attributes(); 291 return ( in_array( $name, array_keys( $attributes ) ) && in_array( $value, $variation_attributes[ $attributes[ $name ]['name'] ] ) ); 292 } else {functions-load.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 389 lines
30 in_array( trailingslashit( ICL_PLUGIN_FOLDER ) . 'sitepress.php', 31 array_keys( $wpmu_sitewide_plugins ), 32 true ) === false 89 if ( ! isset( $wpml_request_handler ) ) { 90 require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-request.class.php'; 91 require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-backend-request.class.php'; 251 require ICL_PLUGIN_PATH . '/menu/wpml-troubleshooting-terms-menu.class.php'; 252 require ICL_PLUGIN_PATH . '/inc/wpml-post-edit-ajax.class.php'; 253 require ICL_PLUGIN_PATH . '/menu/wpml-post-status-display.class.php'; 333 334 if ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) || defined( 'DOING_AJAX' ) 335 ) { 362 if ( ! isset( $wpml_settings_helper ) ) { 363 require_once ICL_PLUGIN_PATH . '/inc/setup/wpml-settings-helper.class.php'; 364 $wpml_settings_helper = new WPML_Settings_Helper( $wpml_post_translations, $sitepress );class-wc-download-handler.php https://gitlab.com/iamgraeme/royalmile | PHP | 426 lines
1<?php 2 221 222 $file_path = str_replace( array_keys( $replacements ), array_values( $replacements ), $file_path ); 223 $parsed_file_path = parse_url( $file_path ); 338 wc_set_time_limit( 0 ); 339 if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) { 340 set_magic_quotes_runtime( 0 ); 369 * 370 * Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/. 371 *cqalias.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 207 lines
1<?php 2DEFINE("MAXCONTACT", 40); 39 $aliasName = $dbs->get("name"); 40 $arr = array_keys(unserialize($dbs->get("alias"))); 41 $aliasContent = ""; 51 52 $str = "<form name='form' method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?center=search' target='_self'>"; 53 $str .= "<table class='maintable centerareawidth'>"; 62 63 $str .= "<form name='form' method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?center=alias' target='_self'>"; 64 $str .= "<table class='maintable centerareawidth'>"; 70 $str .= "<td class='mainbgtitle'>"; 71 $str .= "<a href='../conquest/conquest.php?center=compose' class='tabmenu'>" . localize('Composer un Message') . "</a> | "; 72 $str .= "<a href='../conquest/conquest.php?center=mail&mail=1' class='tabmenu'>" . localize('Message(s) Reçu(s)') . "</a> | "; 72 $str .= "<a href='../conquest/conquest.php?center=mail&mail=1' class='tabmenu'>" . localize('Message(s) Reçu(s)') . "</a> | "; 73 $str .= "<a href='../conquest/conquest.php?center=mail&mail=2' class='tabmenu'>" . localize('Message(s) Envoyé(s)') . "</a> | "; 74 $str .= "<a href='../conquest/conquest.php?center=contact' class='tabmenu'>" . localize('Contacts') . " </a> |\n";YamlFileLoader.php https://bitbucket.org/cryofrost/portal.git | PHP | 339 lines
1<?php 2 264 265 foreach (array_keys($content) as $namespace) { 266 if (in_array($namespace, array('imports', 'parameters', 'services'))) {sites.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 380 lines
1<?php 2 77 $rows = array_filter($rows, function($site) use ($org_id) { 78 $org_ids = array_keys($site['memberships']); 79 return in_array($org_id, $org_ids); 248 * : Specify the the full path, including the filename, to the alias file you wish to create. 249 * Without this option a default of '~/.drush/pantheon.drushrc.php' will be used. 250 * 255 $json = \Terminus::get_config('json'); 256 $location = Input::optional('location', $assoc_args, getenv("HOME").'/.drush/pantheon.aliases.drushrc.php'); 257 259 if (is_dir($location)) { 260 \Terminus::error("Please provide a full path with filename, e.g. %s/pantheon.aliases.drushrc.php", $location); 261 exit(1); 301 * [--no-updatedb] 302 * : Use flag to skip running update.php after the update has applied 303 *EventListener.php https://gitlab.com/Skull3x/MyPlot | PHP | 189 lines
1<?php 2namespace MyPlot; 48 $config = new Config($filePath, Config::YAML, $default); 49 foreach (array_keys($default) as $key) { 50 $settings[$key] = $config->get($key);StaticConfigTrait.php https://gitlab.com/vannh/portal_training | PHP | 260 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 3.0.0 12 * @since 3.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 147 { 148 return array_keys(static::$_config); 149 }upgrade.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 363 lines
1<?php // $Id$ 2/** 2/** 3 * This file contains dtabase upgrade code that is called from lib/db/upgrade.php, 4 * and also check methods that can be used for pre-install checks via 4 * and also check methods that can be used for pre-install checks via 5 * admin/environment.php and lib/environmentlib.php. 6 * 87 //set the feedback string here and not in xml file since we need something 88 //more complex than just a string picked from admin.php lang file 89 $a = new object(); 108 "ON q.id = qqi.question WHERE q.qtype='random' AND qqi.question IS NULL")){ 109 $qqilist = join(array_keys($qqis), ','); 110 $result = $result && delete_records_select('question', "id IN ($qqilist)"); 154 //empty; 155 $childids = array_keys($categorychildparents, $nextid); 156 foreach ($childids as $childid){DBLockingProvider.php https://gitlab.com/wuhang2003/core | PHP | 280 lines
1<?php 2/** 261 // since we keep shared locks we need to manually clean those 262 $lockedPaths = array_keys($this->sharedLocks); 263 $lockedPaths = array_filter($lockedPaths, function ($path) {PwForumService.php https://gitlab.com/wuhang2003/phpwind | PHP | 279 lines
1<?php 2defined('WEKIT_VERSION') || exit('Forbidden'); 11 * @author Jianmin Chen <sky_hold@163.com> 12 * @license http://www.phpwind.com 13 * @version $Id: PwForumService.php 24758 2013-02-20 06:55:42Z jieyin $ 210 $array = array(); 211 $tmp = Wekit::load('forum.PwForum')->fetchForum(array_keys($result)); 212 foreach ($tmp as $key => $value) {Validation.php https://gitlab.com/lincoln.coutinho/ApplicationKohanaFramework | PHP | 612 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 206 * @param string $field field name 207 * @param callback $rule valid PHP callback or closure 208 * @param array $params extra parameters for the rule 301 // Get a list of the expected fields 302 $expected = Arr::merge(array_keys($original), array_keys($this->_labels)); 303 470 * 471 * // Get errors from messages/forms/login.php 472 * $errors = $Validation->errors('forms/login');