100+ results results for 'php array_keys' (297 ms)
1<?php 2 $vars = get_defined_vars(); 6 if (isset($page)) 7 foreach (array_keys($page) as $name) 8 $$name = & $page[$name]; 27<div class="art-logo"> 28 <?php if (!empty($site_name)) { echo '<h1 class="art-logo-name"><a href="'.check_url($front_page).'" title = "'.$site_name.'">'.$site_name.'</a></h1>'; } ?> 29 <?php if (!empty($site_slogan)) { echo '<h2 class="art-logo-text">'.$site_slogan.'</h2>'; } ?> 46 <div class="art-sheet-body"> 47<?php if (!empty($navigation) || !empty($extra1) || !empty($extra2)): ?> 48<div class="art-nav"> 151<?php if (!empty($messages)) { echo $messages; } ?> 152<?php if (isset($action_links) && !empty($action_links)): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?> 153 210<?php if (!empty($messages)) { echo $messages; } ?> 211<?php if (isset($action_links) && !empty($action_links)): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?> 212<?php echo art_content_replace(render($content)); ?>ShowController.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 210 lines
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));Api.php https://bitbucket.org/jokusafet/magento2.git | PHP | 349 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 276 { 277 return array_keys($this->_typeMap); 278 }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;Legend.php https://github.com/axxtel/agilebill.git | PHP | 385 lines
1<?php 2 7 * 8 * PHP versions 4 and 5 9 * 26 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 27 * @version CVS: $Id: Legend.php,v 1.16 2006/02/28 22:48:07 nosey Exp $ 28 * @link http://pear.php.net/package/Image_Graph 31/** 32 * Include file Image/Graph/Layout.php 33 */ 33 */ 34require_once 'Image/Graph/Layout.php'; 35 51 * @version Release: @package_version@ 52 * @link http://pear.php.net/package/Image_Graph 53 */feed.php https://github.com/mysnip/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, becauseplugins.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/code26/selah | 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 }services_ctools_export_ui.class.php https://bitbucket.org/luksak/services.git | PHP | 399 lines
1<?php 2 114 115 foreach (array_keys($endpoint->authentication) as $module) { 116 if (isset($form_state['values'][$module])) {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);RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | 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(helpers.php https://bitbucket.org/daevski/shop-by-recipe.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)));class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | 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 ) {?>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 ),upgrade-2.0.0.php https://bitbucket.org/adatux_/uakami.git | PHP | 266 lines
1<?php 2function icl_upgrade_2_0_0_steps($step, $stepper){ 19 20 $post_types = array_keys($wp_post_types); 21 foreach($post_types as $pt){ 209 210// $iclsettings defined in upgrade.php 211if(empty($iclsettings['migrated_2_0_0'])){ 221 .'<p>' . __('This normally takes a few seconds, but may last up to several minutes of very large databases.', 'sitepress') . '</p>' 222 . '<p><a href="index.php?icl_ajx_action=wpml_upgrade_2_0_0" style="" id="icl-migrate-start">' . $txt . '</a></p>' 223 . '<div id="icl-migrate-progress" style="display:none; margin: 10px 0 20px 0;">' 232 $message = __('Starting the upgrade process...', 'sitepress'); 233 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/2.0.0/stepper.php'; 234 include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/upgrade-2.0.0.php';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);scheduled_task.php https://github.com/alanbarrett/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();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);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 )history.php https://github.com/eeggenberger/ezpublish.git | PHP | 376 lines
1<?php 2/** 193 { 194 $versionID = array_keys( $Module->actionParameter( 'VersionKeyArray' ) ); 195 $versionID = $versionID[0]; 230 { 231 $versionID = array_keys( $Module->actionParameter( 'VersionKeyArray' ) ); 232 $versionID = $versionID[0];Serializer.php https://github.com/duoduo/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 *cron.php https://github.com/sharpmachine/wakeupmedia.com.git | 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 )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 ());ValidatingArrayLoader.php https://github.com/pborreli/composer.git | PHP | 358 lines
1<?php 2 144 145 foreach (array_keys(BasePackage::$supportedLinkTypes) as $linkType) { 146 if ($this->validateArray($linkType) && isset($this->config[$linkType])) { 176 if (!isset(BasePackage::$stabilities[$this->config['minimum-stability']])) { 177 $this->errors[] = 'minimum-stability : invalid value ('.$this->config['minimum-stability'].'), must be one of '.implode(', ', array_keys(BasePackage::$stabilities)); 178 unset($this->config['minimum-stability']);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';SurveyDBClass.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 732 lines
1<?php 2 7 * 8 * @file SurveyDBClass.php 9 * @ingroup Survey 164 if ( is_null( $fields ) ) { 165 $fields = array_keys( static::getFieldTypes() ); 166 } 365 public static function getFieldNames() { 366 return array_keys( static::getFieldTypes() ); 367 } 376 public function getSetFieldNames() { 377 return array_keys( $this->fields ); 378 }index.php https://github.com/rsinger/Jangle.git | PHP | 384 lines
1<?php 2 2 3require 'lib/jangle.php'; 4require 'lib/spyc.php5'; 4require 'lib/spyc.php5'; 5require 'lib/models.php'; 6 217 $query_args = array(); 218 foreach(array_keys($c["parameters"]) as $key) { 219 $query_arg = $key."="; 285 if(count($ctx_sets) > 0) { 286 foreach(array_keys($ctx_sets) as $ctx_set) { 287 $ident = $config["context-sets"][$ctx_set]["identifier"]; 311 } 312 if(!in_array($vars["resource"], array_keys($config["entities"]))) { 313 header("HTTP/1.1 404 Not Found");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'); 275DataTransclusionSource.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 378 lines
1<?php 2/** 34 * even if they are returned by the data source. If not given, this defaults to 35 * $spec['keyFields'] + array_keys( $spec['fieldInfo'] ). 36 * * $spec['fieldInfo']: Assiciative array mapping logical field names to additional 41 * 'int' for integers, 'float' or 'decimal' for decimals, or 'string' for 42 * string fields. Serialization types 'json', 'wddx' and 'php' are also 43 * supported. Defaults to 'string'. 111 } elseif ( isset( $spec[ 'fieldInfo' ] ) ) { 112 $this->fieldNames = array_keys( $spec[ 'fieldInfo' ] ); 113 } else { 116 if ( !empty( $this->fieldInfo ) ) { 117 $this->fieldNames = array_merge( $this->fieldNames, array_keys( $this->fieldInfo ) ); 118 } 186 return DataTransclusionSource::parseXml( $value ); #WARNING: returns DOM 187 } elseif ( $format == 'php' || $format == 'pser' ) { 188 return DataTransclusionSource::decodeSerialized( $value );LayoutProcessor.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();forms.php https://github.com/luthercollege/reason_package.git | PHP | 412 lines
1<?php 2/** 19<body> 20<?php 21include ('reason_header.php'); 21include ('reason_header.php'); 22include_once(CARL_UTIL_INC.'db/db_selector.php'); 23reason_include_once('classes/entity_selector.php'); 23reason_include_once('classes/entity_selector.php'); 24reason_include_once('function_libraries/util.php'); 25reason_include_once('function_libraries/user_functions.php'); 25reason_include_once('function_libraries/user_functions.php'); 26reason_include_once('function_libraries/admin_actions.php'); 27reason_include_once('classes/field_to_entity_table_class.php'); 91 { 92 $field_string = '"'.implode('","', array_keys($fields)).'"'; 93 $form_table = current($table);YamlFileLoaderTest.php https://bitbucket.org/vladap/symfony.git | PHP | 214 lines
1<?php 2 23 24class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase 25{ 41 self::$fixturesPath = realpath(__DIR__.'/../Fixtures/'); 42 require_once self::$fixturesPath.'/includes/foo.php'; 43 require_once self::$fixturesPath.'/includes/ProjectExtension.php'; 102 $expected = array('foo' => 'bar', 'values' => array(true, false), 'bar' => '%foo%', 'escape' => '@escapeme', 'foo_bar' => new Reference('foo_bar'), 'mixedcase' => array('MixedCaseKey' => 'value'), 'imported_from_ini' => true, 'imported_from_xml' => true); 103 $this->assertEquals(array_keys($expected), array_keys($actual), '->load() imports and merges imported files'); 104 121 $this->assertEquals('getInstance', $services['constructor']->getFactoryMethod(), '->load() parses the factory_method attribute'); 122 $this->assertEquals('%path%/foo.php', $services['file']->getFile(), '->load() parses the file tag'); 123 $this->assertEquals(array('foo', new Reference('foo'), array(true, false)), $services['arguments']->getArguments(), '->load() parses the argument tags');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);compresseur.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 314 lines
1<?php 2 77 if (list($src,$comms) = filtre_cache_static($scripts,'js')){ 78 $scripts = array_keys($scripts); 79 $flux = str_replace(reset($scripts), 107 AND ( 108 // regarder si c'est du format spip.php?page=xxx 109 preg_match(',^('.$dir.')(.*)$,', $src, $r) 133 if (list($src,$comms) = filtre_cache_static($s,'css')){ 134 $s = array_keys($s); 135 $flux = str_replace(reset($s),Query.php https://github.com/mako-framework/framework.git | PHP | 612 lines
1<?php 2 19use function array_filter; 20use function array_keys; 21use function array_merge; 285 { 286 $withCriterion = array_filter(array_keys($includes), 'is_string'); 287Abstract.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);Invoiced.php https://github.com/rgranadino/magento-mirror.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/rgranadino/magento-mirror.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) {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 }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);Invoiced.php https://bitbucket.org/sevenly/magento-ce.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) 2012 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);Validator.php https://bitbucket.org/sevenly/magento-ce.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 {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 ) {WireSaveableItems.php https://bitbucket.org/webbear/processwire-base-installation.git | PHP | 405 lines
1<?php 2 105 $item = $this->makeBlankItem(); 106 $fields = array_keys($item->getTableData()); 107 $database = $this->wire('database');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);Validator.php https://bitbucket.org/jokusafet/magento2.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 X.commerce, 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 {RootPackageLoader.php https://github.com/pborreli/composer.git | PHP | 277 lines
1<?php 2 123 // parse explicit stability flags 124 if (preg_match('{^[^,\s]*?@('.implode('|', array_keys($stabilities)).')$}i', $reqVersion, $match)) { 125 $name = strtolower($reqName); 235 $driver = new HgDriver($config, new NullIO(), $this->config, $this->process); 236 $branches = array_keys($driver->getBranches()); 237 252 $branch = preg_replace('{^dev-}', '', $version); 253 $length = PHP_INT_MAX; 254 foreach ($branches as $candidate) {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;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 }Mongo.php https://github.com/akentner/mediathek.git | PHP | 475 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Db.php 23775 2011-03-01 17:25:24Z ralph $ 22 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 30 */ 31require_once 'Lexsign/Queue/Adapter/Mongo/Message.php'; 32 35 */ 36require_once 'Shanty/Mongo/Document.php'; 37 87 if (!array_key_exists('host', $options)) { 88 require_once 'Zend/Queue/Exception.php'; 89 throw new Zend_Queue_Exception("Configuration array must have a key for 'host' for the host to use");questiontype.php https://github.com/mackensen/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]);RuntimeDefinition.php https://gitlab.com/jalon/doadoronline | PHP | 353 lines
1<?php 2/** 100 { 101 return array_keys($this->classes); 102 }SchemaStructure_3_2_beta4.php https://github.com/timstephenson/NatureBridge.git | PHP | 279 lines
1<?php 2/* 274 if (!$result) { 275 $result = array_keys(self::columns()); 276 }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 *AssetFactory.php https://github.com/macolu/assetic.git | PHP | 366 lines
1<?php 2 221 { 222 foreach (array_diff(array_keys($options), array('output', 'debug', 'root')) as $key) { 223 unset($options[$key]);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 }PgCacheFlush.php https://bitbucket.org/adatux_/uakami.git | PHP | 440 lines
1<?php 2 6 7require_once W3TC_LIB_W3_DIR . '/PgCache.php'; 8 13 /** 14 * PHP5 Constructor 15 */ 20 /** 21 * PHP4 Constructor 22 */ 307 if ($this->_mobile) { 308 $mobile_groups = array_merge($mobile_groups, array_keys($this->_mobile->groups)); 309 } 322 if ($this->_referrer) { 323 $referrer_groups = array_merge($referrer_groups, array_keys($this->_referrer->groups)); 324 }CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
1<?php 2/** 8 * 9 * PHP5 10 * 10 * 11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 18 * @link http://cakephp.org CakePHP(tm) Project 19 * @package Cake.Routing.Route 19 * @package Cake.Routing.Route 20 * @since CakePHP(tm) v 1.3 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 155 krsort($routeParams); 156 $parsed = str_replace(array_keys($routeParams), array_values($routeParams), $parsed); 157 $this->_compiledRoute = '#^' . $parsed . '[/]*$#';Validation.php https://bitbucket.org/rybadour/todo_list_site.git | 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');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 285 { 286 $keys = array_keys($rules); 287 foreach ($keys as $spec) { 460 // all of the values of processedParts would have been str_replace('\\', '\\\\', ..)'d to disable preg_replace backreferences 461 $inflectedTarget = preg_replace(array_keys($processedParts), array_values($processedParts), $this->_target); 462Inflector.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 285 { 286 $keys = array_keys($rules); 287 foreach ($keys as $spec) { 460 // all of the values of processedParts would have been str_replace('\\', '\\\\', ..)'d to disable preg_replace backreferences 461 $inflectedTarget = preg_replace(array_keys($processedParts), array_values($processedParts), $this->_target); 462media-upload.php https://bitbucket.org/kenaku/karate.git | PHP | 303 lines
233 <tr> 234 <td rowspan='4'><img class='thumbnail' alt='<?php echo esc_attr( $picture->alttext ); ?>' src='<?php echo esc_attr( $picture->thumbURL ); ?>'/></td> 235 <td><?php esc_html( _e('Image ID:', "nggallery") ); ?><?php echo $picid ?></td> 241 <td class="label"><label for="image[<?php echo $picid ?>][alttext]"><?php esc_attr_e('Alt/Title text', "nggallery") ;?></label></td> 242 <td class="field"><input id="image[<?php echo $picid ?>][alttext]" name="image[<?php echo $picid ?>][alttext]" value="<?php esc_attr_e( stripslashes($picture->alttext) ); ?>" type="text"/></td> 243 </tr> 245 <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php esc_attr_e("Description","nggallery") ; ?></label></td> 246 <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php esc_attr_e( stripslashes($picture->description) ); ?></textarea></td> 247 </tr> 248 <tr class="align"> 249 <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php esc_attr_e("Alignment"); ?></label></td> 250 <td class="field"> 265 <input name="image[<?php echo $picid ?>][size]" id="image-size-thumb-<?php echo $picid ?>" type="radio" checked="checked" value="thumbnail" /> 266 <label for="image-size-thumb-<?php echo $picid ?>"><?php esc_attr_e("Thumbnail") ; ?></label> 267 <input name="image[<?php echo $picid ?>][size]" id="image-size-full-<?php echo $picid ?>" type="radio" value="full" />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)); 78ExporterTest.php https://bitbucket.org/d1rk/lithium.git | PHP | 413 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 113 $result = Exporter::get('create', $doc->export()); 114 $this->assertEqual(array('create'), array_keys($result)); 115 $this->assertEqual($expected, $result['create']); 277 278 $this->assertEqual(array_keys($data), array_keys($result)); 279 $this->assertTrue($result['_id'] instanceof MongoId);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' ) ";Compiler.php https://bitbucket.org/iiic/iszp.git | PHP | 369 lines
1<?php 2 120 if ($extra = array_diff_key($this->config, self::$reserved, $this->extensions)) { 121 $extra = implode("', '", array_keys($extra)); 122 throw new Nette\InvalidStateException("Found sections '$extra' in configuration, but corresponding extensions are missing."); 171 ksort($defs); 172 $list = array_keys($defs); 173 foreach (array_reverse($defs, TRUE) as $name => $def) { 177 $class->documents = preg_replace("#\\S+(?= \\$$name\\z)#", $def->class, $class->documents); 178 $classes[] = $accessor = new Nette\Utils\PhpGenerator\ClassType($def->class); 179 foreach ($found as $item) { 265 266 if ($error = array_diff(array_keys($config), $known)) { 267 throw new Nette\InvalidStateException("Unknown key '" . implode("', '", $error) . "' in definition of service.");cake_test_fixture.test.php https://github.com/campagsi/bisad.git | PHP | 408 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.cake.tests.libs 17 * @since CakePHP(tm) v 1.2.0.4667 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 187 $expected = array('id', 'name', 'created'); 188 $this->assertEqual(array_keys($Fixture->fields), $expected); 189FormFactory.php https://github.com/castillojorge/SemdropsMobile.git | PHP | 401 lines
1<?php 2 211 $knownOptions = array(); 212 $passedOptions = array_keys($options); 213 $optionValues = array(); 234 $options = array_replace($defaultOptions, $options); 235 $knownOptions = array_merge($knownOptions, array_keys($defaultOptions)); 236 array_unshift($types, $type);override_form.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 266 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->libdir . '/formslib.php'); 30 101 // Generate an error. 102 $link = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id)); 103 print_error('groupsnone', 'quiz', $link); 144 'u.id, u.firstname, u.lastname, u.email', 145 $sort, '', '', array_keys($groups), 146 '', false, true); 154 // Generate an error. 155 $link = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id)); 156 print_error('usersnone', 'quiz', $link);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)));sfPropelBuildTask.class.php https://github.com/bheneka/gitta.git | PHP | 257 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php'); 12 113 { 114 throw new InvalidArgumentException(sprintf("You must include one or more of the following build options:\n--%s\n\nSee this task's help page for more information:\n\n php symfony help propel:build", join(', --', array_keys($this->getBuildOptions())))); 115 }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);