100+ results results for 'php array_values' (557 ms)
1<?php 2/** 234 if ( in_array( 'types', $fields, true ) ) { 235 $data['types'] = array_values( $taxonomy->object_type ); 236 }general_edit.html https://github.com/md-tech/openemr.git | HTML | 332 lines
2<head> 3{php}html_header_show();{/php} 4 71 var f = document.forms[0]; 72 dlgopen('interface/drugs/dispense_drug.php' + 73 {/literal}'?drug_id={$prescription->get_drug_id()}' +{literal} 96 <td><a href=# onclick="submitfun();" class="css_button_small"><span>{xl t='Save'}</span></a> 97 {if $DRUG_ARRAY_VALUES} 98 111 112{php} if ($GLOBALS['enable_amc_prompting']) { {/php} 113 <div style='float:right;margin-right:25px;border-style:solid;border-width:1px;'> 123 </div> 124{php} } {/php} 125CartItemRepositoryTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 327 lines
1<?php 2/** 25 /** 26 * @magentoApiDataFixture Magento/Quote/_files/empty_quote.php 27 * @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable.php 50 // use ID of the first downloadable link 51 $linkId = array_values($product->getDownloadableLinks())[0]->getId(); 52 81 /** 82 * @magentoApiDataFixture Magento/Quote/_files/empty_quote.php 83 * @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable.php 126 /** 127 * @magentoApiDataFixture Magento/Downloadable/_files/quote_with_downloadable_product.php 128 */ 151 // use ID of the first downloadable link 152 $linkId = array_values($product->getDownloadableLinks())[0]->getId(); 153local.php https://gitlab.com/najomie/fit-hippie | PHP | 818 lines
1<?php 2 298 299 $field_group['local'] = 'php'; 300 446 447 return array_values($this->groups); 448ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
1<?php 2 127 { 128 $values = array_values(get_object_vars($this->last_result[$y])); 129 } 163 { 164 return $this->last_result[$y]?array_values(get_object_vars($this->last_result[$y])):null; 165 } 232 { 233 $new_array[$i] = array_values($new_array[$i]); 234 }VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
1<?php 2 64 $fromObjCast = array_keys(array_flip($fromObjCast)) !== $fromObjCast; 65 $refs = $vals = $fromObjCast ? array_values($queue[$i]) : $queue[$i]; 66 foreach ($queue[$i] as $k => $v) { 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 }TableHelper.php https://bitbucket.org/helfreire/tccsite.git | PHP | 459 lines
1<?php 2 120 { 121 $this->headers = array_values($headers); 122 143 { 144 $this->rows[] = array_values($row); 145web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 90 unset($rewrite[$i],$rewrite[$i-1]); 91 $rewrite=array_values($rewrite); 92 $i--; 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 330 self::$vars['HEADERS'][]=$hdr; 331 if (PHP_SAPI!='cli' && $forward) 332 // Forward HTTP headerpearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
27 */ 28if ('/usr/share/php' != '@'.'include_path'.'@') { 29 ini_set('include_path', '/usr/share/php'); 59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
1<?php 2 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 71 if (!empty($this->prefixesPsr0)) { 72 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 73 } 376 377 $file = $this->findFileWithExtension($class, '.php'); 378LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 157 unset($sprintfArgs[0]); 158 $sprintfArgs = array_values($sprintfArgs); 159 call_user_func_array('printf', $sprintfArgs);bookmark.php https://github.com/jywarren/whooz.git | PHP | 346 lines
1<?php 2/** 32 } elseif ( $output == ARRAY_N ) { 33 return array_values(get_object_vars($link)); 34 } else {CakeRoute.php https://github.com/rnmd/cakephp.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 . '[/]*$#';CORElist.php https://github.com/drobbins/s3db.git | PHP | 349 lines
1<?php 2function CORElist($C) 126 $toreplace = array_keys($s3map[$from]); 127 $replacements = array_values($s3map[$from]); 128 $s3ql['select'] = str_replace($toreplace, $replacements, $query_end);DataCollection.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 375 lines
1<?php 2/** 332 if ($metadataName == DataTableFactory::TABLE_METADATA_SITE_INDEX) { 333 $indexKeyValues = array_values($this->sitesId); 334 } elseif ($metadataName == DataTableFactory::TABLE_METADATA_PERIOD_INDEX) {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>';page_link.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 697 lines
1<?php 2 188 189 $archives = array_values($archives); 190admin-sync.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 358 lines
1<?php 2 55 public function add_meta_boxes( $post_type, $post ) { 56 if ( 'post-new.php' == $GLOBALS['pagenow'] && isset( $_GET['from_post'], $_GET['new_lang'] ) && $this->model->is_translated_post_type( $post->post_type ) ) { 57 // capability check already done in post-new.php 305 'field' => 'id', 306 'terms' => array_merge( array( $term_id ), array_values( $translations ) ), 307 'include_children' => false,BakeShell.php https://gitlab.com/vannh/portal_training | PHP | 319 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 0.1.0 12 * @since 0.1.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 27 * 28 * Bake is CakePHP's code generation script, which can help you kickstart 29 * application development by writing fully functional skeleton controllers, 31 * 32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html 33 */character.php https://github.com/bheiskell/Riiga.git | PHP | 524 lines
1<?php 2class Character extends AppModel { 95 // The required validator checks using isset, not array_key_exists. I'm 96 // not sure why, but cakephp's search must null out empty columns. Thus 97 // my pending behavior pulls down non-isset compatible data. This is 226 $key = array_shift(array_keys($check)); 227 $value = array_shift(array_values($check)); 228 254 $key = array_shift(array_keys($check)); 255 $value = array_shift(array_values($check)); 256 310 $key = array_shift(array_keys($check)); 311 $value = array_shift(array_values($check)); 312ActiveRecordFindTest.php https://gitlab.com/bandana/Astro-Veda | PHP | 477 lines
1<?php 2 291 292 public function test_find_all_by_call_static_with_array_values_and_options() 293 { 464 'The Travis CI environment seems to screw this up for unknonwn reasons; ' . 465 'see Github #298 (https://github.com/kla/php-activerecord/issues/298)' 466 );functions.php https://bitbucket.org/imia_de/t3ext-imia-base.git | PHP | 471 lines
1<?php 2namespace GuzzleHttp\Promise; 194 * @throws \Exception on error 195 * @throws \Throwable on error in PHP >=7 196 */ 293 ksort($results); 294 return array_values($results); 295 }Db.php https://bitbucket.org/acidel/buykoala.git | PHP | 305 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 113 $this->_select = $this->_conn->select(); 114 $this->_select->from($this->_table, array_values($fields)); 115 }CurlMulti.php https://gitlab.com/treighton/wpgit | PHP | 423 lines
1<?php 2 87 unset($this->requests[$index]); 88 $this->requests = array_values($this->requests); 89 $this->dispatch(self::REMOVE_REQUEST, array('request' => $request)); 241 if ($active && curl_multi_select($this->multiHandle, $selectTimeout) === -1) { 242 // Perform a usleep if a select returns -1: https://bugs.php.net/bug.php?id=61141 243 usleep(150);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 *user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
116 $active_modules = $theme_my_login_admin->get_option( 'active_modules' ); 117 $active_modules = array_values( array_diff( $active_modules, array( 'user-moderation/user-moderation.php' ) ) ); 118 180 ?> 181 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> /> 182 <label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label> 184 185 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> /> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 187 <p class="description"><?php _e( 'Check this option to require new users to confirm their e-mail address before they may log in.', 'theme-my-login' ); ?></p> 188 188 189 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> /> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>file.php https://github.com/samphippen/srobo-ide.git | PHP | 481 lines
1<?php 2 117 { 118 return array_values($unclean); 119 } 310 311 $output->setOutput('authors', array_values(array_unique($authors))); 312StatementPrefetch.php https://gitlab.com/guillaumev/alkarama | PHP | 537 lines
1<?php 2 275 // and the column number. 276 return $this->currentRow + array_values($this->currentRow); 277 case \PDO::FETCH_NUM: 277 case \PDO::FETCH_NUM: 278 return array_values($this->currentRow); 279 case \PDO::FETCH_LAZY: 464 $result = array(); 465 // Traverse the array as PHP would have done. 466 while (isset($this->currentRow)) { 483 $result = array(); 484 // Traverse the array as PHP would have done. 485 while (isset($this->currentRow)) { 506 $result = array(); 507 // Traverse the array as PHP would have done. 508 while (isset($this->currentRow)) {ManageEvent.php https://github.com/michaelmcandrew/th.git | PHP | 336 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38 111 $params = array( 'id' => $this->_id ); 112 require_once 'CRM/Event/BAO/Event.php'; 113 CRM_Event_BAO_Event::retrieve( $params, $eventInfo ); 115 // its an update mode, do a permission check 116 require_once 'CRM/Event/BAO/Event.php'; 117 if ( ! CRM_Event_BAO_Event::checkPermission( $this->_id, CRM_Core_Permission::EDIT ) ) { 163 164 require_once 'CRM/Event/PseudoConstant.php'; 165 $statusTypes = CRM_Event_PseudoConstant::participantStatus(null, 'is_counted = 1', 'label' ); 166 $statusTypesPending = CRM_Event_PseudoConstant::participantStatus(null, 'is_counted = 0', 'label' ); 167 $findParticipants['statusCounted'] = implode( ', ', array_values( $statusTypes ) ); 168 $findParticipants['statusNotCounted'] = implode( ', ', array_values( $statusTypesPending ) );wpml-post-translation.class.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 367 lines
1<?php 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 2require ICL_PLUGIN_PATH . '/inc/post-translation/wpml-post-duplication.class.php'; 3require 'wpml-post-synchronization.class.php'; 4require_once 'wpml-wordpress-actions.class.php'; 72 update_option( 'sticky_posts', 73 array_values( array_unique( array_filter( array_merge( $posts, $unfiltered ) ) ) ) ); 74 } 82 } 83 $posts = array_values( array_unique( array_filter( $posts ) ) ); 84 } 100 public function pre_update_option_sticky_posts( $posts ) { 101 $updated_sticky_list = array_values( array_unique( array_filter( array_merge( $posts, 102 $this->filtered_sticky_posts ) ) ) ); 240 } 241 require_once ICL_PLUGIN_PATH . '/inc/cache.php'; 242 icl_cache_clear( $post_vars['post_type'] . 's_per_language', true );DefaultTableMapping.php https://gitlab.com/guillaumev/alkarama | PHP | 396 lines
1<?php 2 106 foreach ($this->getFieldNames($table_name) as $field_name) { 107 $this->allColumns[$table_name] = array_merge($this->allColumns[$table_name], array_values($this->getColumnNames($field_name))); 108 } 301 $revision_tables = array_map(function($definition) use ($table_mapping) { return $table_mapping->getDedicatedRevisionTableName($definition); }, $definitions); 302 $dedicated_tables = array_merge(array_values($data_tables), array_values($revision_tables)); 303 return $dedicated_tables;selector.php https://gitlab.com/alexprowars/bitrix | PHP | 435 lines
1<?php 2/** 175 176 $result = array_values($result); 177 usort(AbstractCache.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 463 lines
1<?php 2 92 93 return array_values($contents); 94 }Drupal.php https://github.com/ksecor/civicrm.git | PHP | 258 lines
1<?php 2 95 96 require_once 'CRM/ACL/API.php'; 97 98 $ids = CRM_ACL_API::group( CRM_Core_Permission::VIEW, null, 'civicrm_saved_search', $groups ); 99 foreach ( array_values( $ids ) as $id ) { 100 $title = CRM_Core_DAO::getFieldValue( 'CRM_Contact_DAO_Group', $id, 'title' ); 105 $ids = CRM_ACL_API::group( CRM_Core_Permission::EDIT, null, 'civicrm_saved_search', $groups ); 106 foreach ( array_values( $ids ) as $id ) { 107 $title = CRM_Core_DAO::getFieldValue( 'CRM_Contact_DAO_Group', $id, 'title' ); 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, 180 if ( $group->find( true ) && $group->saved_search_id ) { 181 require_once 'CRM/Contact/BAO/SavedSearch.php'; 182 $clause = CRM_Contact_BAO_SavedSearch::whereClause( $group->saved_search_id,PhpRedisConnection.php https://gitlab.com/madwanz64/laravel | PHP | 557 lines
1<?php 2 14 */ 15class PhpRedisConnection extends Connection implements ConnectionContract 16{ 31 /** 32 * Create a new PhpRedis connection. 33 * 115 116 return array_values($this->command('hmget', [$key, $dictionary])); 117 } 228 229 return $this->command('zadd', array_merge([$key], [$options], array_values($dictionary))); 230 }FileEmbedder.php https://github.com/yvestan/sendnews.git | PHP | 431 lines
1<?php 2 11 12require_once dirname(__FILE__) . "/../ClassLoader.php"; 13Swift_ClassLoader::load("Swift_Events_BeforeSendListener"); 187 { 188 return array_values($this->protocols); 189 }api_test.php https://github.com/CLAMP-IT/moodle.git | PHP | 254 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 45 protected function assert_property_in_array($expected, $array, $propertyname) { 46 $this->assertEquals($expected, array_values(array_map(function($a) use ($propertyname) { 47 return $a->get($propertyname); 226 // Check that each category have fields and store ids for future checks. 227 list($category0, $category1) = array_values(api::get_categories_with_fields($options['component'], 228 $options['area'], $options['itemid']));class-gf-field-list.php https://gitlab.com/plusplusminus/isissoftware | PHP | 442 lines
1<?php 2 106 } else { 107 $vals = array_values( $item ); 108 $val = rgar( $vals, 0 ); 324 325 $list .= implode( ',', array_values( $item ) ); 326 332 foreach ( $value as $item ) { 333 $list .= implode( "|", array_values( $item ) ) . ','; 334 }helpers.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}po.php https://gitlab.com/morganestes/wordpress-develop | PHP | 508 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ 6 * @package pomo 9 10require_once dirname( __FILE__ ) . '/translations.php'; 11 116 117 $string = str_replace( array_keys( $replaces ), array_values( $replaces ), $string ); 118SQLBuilder.php https://gitlab.com/bandana/Astro-Veda | PHP | 422 lines
1<?php 2/** 82 if ($this->data) 83 $ret = array_values($this->data); 84 293 { 294 require_once 'Expressions.php'; 295 $num_args = count($args); 347 { 348 require_once 'Expressions.php'; 349 $keys = join(',',$this->quoted_key_names()); 359 360 $e = new Expressions($this->connection,$sql,array_values($this->data)); 361 return $e->to_s();EsmtpTransport.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 483 lines
1<?php 2 280 { 281 return array_values($this->_handlers); 282 }Topmenu.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 268 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 */ 244 245 $shortCacheId = array_values($shortCacheId); 246 $shortCacheId = implode('|', $shortCacheId);Inflector.php https://gitlab.com/jalon/doadoronline | PHP | 472 lines
1<?php 2/** 436 // all of the values of processedParts would have been str_replace('\\', '\\\\', ..)'d to disable preg_replace backreferences 437 $inflectedTarget = preg_replace(array_keys($processedParts), array_values($processedParts), $this->target); 438DbDumpCommand.php https://gitlab.com/geeta7/drupal | PHP | 430 lines
1<?php 2 58 59 // If not explicitly set, disable ANSI which will break generated php. 60 if ($input->hasParameterOption(['--ansi']) !== TRUE) { 76 * Table patterns for which to only dump the schema, no data. 77 * @return string The PHP script. 78 * The PHP script. 113 protected function getTables(Connection $connection) { 114 $tables = array_values($connection->schema()->findTables('%')); 115 374 * @return string 375 * The template for the generated PHP script. 376 */ 377 protected function getTemplate() { 378 // The template contains an instruction for the file to be ignored by PHPCS. 379 // This is because the files can be huge and coding standards areajax.php https://github.com/boonebgorges/BuddyPress.git | PHP | 485 lines
1<?php 2/** 339 340 $potential_invites->users = array_map( 'bp_nouveau_prepare_group_potential_invites_for_js', array_values( $potential_invites->users ) ); 341 $potential_invites->users = array_filter( $potential_invites->users );class.php https://gitlab.com/neuser/bitrix-core | PHP | 525 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); 97 98 return array_values($relation); 99 } 383 'AVAILABLE_TRIGGERS' => $target ? $target->getAvailableTriggers() : [], 384 'AVAILABLE_ROBOTS' => array_values($availableRobots), 385 'GLOBAL_CONSTANTS' => \Bitrix\Bizproc\Workflow\Type\GlobalConst::getAll(), 492 { 493 return array_values(\Bitrix\Bizproc\Automation\Helper::getDocumentFields($this->getDocumentType(), $filter)); 494 }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 }ModuleHandlerTest.php https://gitlab.com/guillaumev/alkarama | PHP | 321 lines
1<?php 2 77 protected function assertModuleList(array $expected_values, $condition) { 78 $expected_values = array_values(array_unique($expected_values)); 79 $enabled_modules = array_keys($this->container->get('module_handler')->getModuleList());class-terminus-command.php https://gitlab.com/blueprintmrk/cli | PHP | 385 lines
1<?php 2 53 * [string] method GET is default 54 * [mixed] data Native PHP data structure (e.g. int, string array, or 55 * simple object) to be sent along with the request. Will be encoded as 96 97 $return = array('data' => array_values($results)); 98 return $return; 109 * @param [string] $method HTTP method to use 110 * @param [mixed] $options A native PHP data structure (e.g. int, string, 111 * array, or stdClass) to be sent along with the request 186 * [string] method GET is default 187 * [mixed] data Native PHP data structure (e.g. int, string array, or 188 * simple object) to be sent along with the request. Will be encoded asHTML.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 246 lines
1<?php 2/** 143 array_keys($this->_placeholders) 144 ,array_values($this->_placeholders) 145 ,$this->_html 149 array_keys($this->_placeholders) 150 ,array_values($this->_placeholders) 151 ,$this->_htmlCArticle.php https://github.com/mosbth/medes.git | PHP | 443 lines
1<?php 2/** 48 "content", // text, the actual content of the article 49 "filter", // text, function to use to filter the content, is it text, html or php or other? 50 "template", // text, filename och template file to use when rendering the content 232 $q = sprintf(self::SQL('insert new article'), implode(",", array_keys($a)), implode(",", array_fill(1,sizeof($a), "?"))); 233 $this->db->ExecuteQuery($q, array_values($a)); 234 $this->SetId($this->db->LastInsertId()); 257 $q = sprintf(self::SQL('update article'), $assign); 258 $this->db->ExecuteQuery($q, array_values($a)); 259 }VarCloner.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 326 lines
1<?php 2 63 $fromObjCast = array_keys(array_flip($fromObjCast)) !== $fromObjCast; 64 $refs = $vals = $fromObjCast ? array_values($queue[$i]) : $queue[$i]; 65 foreach ($queue[$i] as $k => $v) { 147 case 'object': 148 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 149 $stub = new Stub(); 163 } else { 164 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 165 } 302 $obj = (object) array(); 303 self::$hashOffset = 16 - PHP_INT_SIZE; 304 self::$hashMask = -1; 310 $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush'); 311 foreach (debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) { 312 if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && in_array($frame['function'], $obFuncs)) {EnumUtils.php https://curly.svn.codeplex.com/svn | PHP | 289 lines
1<?php 2/** 28 * 29 * The new enumeration name must obey the rules for class names of the PHP language. 30 * Member names of the new enumeration must obey the rules for method names of the PHP language. 95 96 return array_values( $methods ); 97 } 200 * the name is empty or 201 * the name does not obey the rules for method names of the PHP language or 202 * the name starts with more than one underscore character 215 { 216 // the name doesn't obey the rules for method names of the PHP language 217 throw new \InvalidArgumentException( "Name of an enumeration member contains illegal characters. The name must obey the rules for method names of the PHP language" ); 257 * the name is empty or 258 * the name does not obey the rules for class names of the PHP language or 259 * a class with the specified name already existsclass-wc-report-customers.php https://gitlab.com/webkod3r/tripolis | PHP | 415 lines
107 <ul class="pie-chart-legend"> 108 <li style="border-color: <?php echo $this->chart_colours['customers']; ?>"><?php _e( 'Customer Sales', 'woocommerce' ); ?></li> 109 <li style="border-color: <?php echo $this->chart_colours['guests']; ?>"><?php _e( 'Guest Sales', 'woocommerce' ); ?></li> 222 href="#" 223 download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp') ); ?>.csv" 224 class="export_csv" 317 color: '<?php echo $this->chart_colours['customers']; ?>', 318 bars: { fillColor: '<?php echo $this->chart_colours['customers']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' }, 319 shadowSize: 0, 327 color: '<?php echo $this->chart_colours['guests']; ?>', 328 bars: { fillColor: '<?php echo $this->chart_colours['guests']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' }, 329 shadowSize: 0, 378 timeformat: "<?php if ( $this->chart_groupby == 'day' ) echo '%d %b'; else echo '%b'; ?>", 379 monthNames: <?php echo json_encode( array_values( $wp_locale->month_abbrev ) ) ?>, 380 tickLength: 1,checkbox.php https://gitlab.com/webkod3r/tripolis | PHP | 356 lines
308 <tr> 309 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th> 310 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td> 318 <textarea name="values" class="values" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>"></textarea> 319 <label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><span class="description"><?php echo esc_html( __( "One option per line.", 'contact-form-7' ) ); ?></span></label><br /> 320 <label><input type="checkbox" name="label_first" class="option" /> <?php echo esc_html( __( 'Put a label first, a checkbox last', 'contact-form-7' ) ); ?></label><br /> 329 <tr> 330 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th> 331 <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td> 334 <tr> 335 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th> 336 <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td> 352 353 <p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p> 354</div>search.inc.php https://github.com/harriswong/ATutor.git | PHP | 344 lines
1<?php 2/************************************************************************/ 14 15// NOTE! please see include/html/search.inc.php NOTE! 16 70 $words = explode(' ',$words); 71 $words = array_values(array_diff(array_unique($words), array(''))); 72 $num_words = count($words); 153 $words = explode(' ',$words); 154 $words = array_values(array_diff(array_unique($words), array(''))); 155 $num_words = count($words); 302 if ($_SESSION['course_id'] != $items['course_id']) { 303 echo '<a href="bounce.php?course='.$items['course_id'].SEP.'p='.urlencode('forum/view.php?fid='.$items['forum_id'].SEP.'pid='.$items['post_id'].SEP.'words='.$_GET['words']).'">'.$items['forum_title'].' - '.$items['subject'].'</a> '; 304 } else { 312 if ($_SESSION['course_id'] != $items['course_id']) { 313 echo '<a href="bounce.php?course='.$items['course_id'].SEP.'p='.urlencode('content.php?cid='.$items['content_id'].SEP.'words='.$_GET['words']).'">'.$items['title'].'</a> '; 314 } else {lines.php https://gitlab.com/VxMxPx/mysli | PHP | 463 lines
1<?php 2 423 424 $pool = array_values($pool); 425 }questiontype.php https://github.com/bobpuffer/1.9.12-LAE1.3.git | PHP | 363 lines
1<?php // $Id: questiontype.php 68 2009-07-31 18:23:01Z dlandau $ 2 160 // Shuffle the answers (Do this always because this is a random question type) 161 $subquestionids = array_values(array_map(create_function('$val', 162 'return $val->id;'), $state->options->subquestions)); 254 * 255 * This is used in question/backuplib.php 256 */ 279 * 280 * This is used in question/restorelib.php 281 */qrmask.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 328 lines
1<?php 2/* 2/* 3 * PHP QR Code encoder 4 * 9 * 10 * PHP QR Code is distributed under LGPL 3 11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm> 286 { 287 $minDemerit = PHP_INT_MAX; 288 $bestMaskNum = 0; 298 unset($checked_masks[$remPos]); 299 $checked_masks = array_values($checked_masks); 300 }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); 334OfertaActividad.php https://gitlab.com/bluedrayco/Portafolio | PHP | 568 lines
1<?php 2 507 unset($controlAuxiliar[$key]); 508 $this->control_acceso[$tipo] = array_values($controlAuxiliar); 509 }array.class.php https://github.com/geraintp/frontend.git | PHP | 289 lines
21/** 22 * The <CFArray> object extends PHP's built-in <php:ArrayObject> object by providing convenience methods for 23 * rapidly manipulating array data. Specifically, the `CFArray` object is intended for working with 28 * @copyright See the included NOTICE.md file for more information. 29 * @link http://aws.amazon.com/php/ PHP Developer Center 30 * @link http://php.net/ArrayObject ArrayObject 38 * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>. 39 * @param string $iterator_class (Optional) Specify the class that will be used for iteration of the <php:ArrayObject> object. <php:ArrayIterator> is the default class used. 40 * @return mixed Either an array of matches, or a single <CFSimpleXML> element. 51 * @param integer $flags (Optional) Flags to control the behavior of the ArrayObject object. Defaults to <STD_PROP_LIST>. 52 * @param string $iterator_class (Optional) Specify the class that will be used for iteration of the <php:ArrayObject> object. <php:ArrayIterator> is the default class used. 53 * @return mixed Either an array of matches, or a single <CFSimpleXML> element. 56 { 57 if (version_compare(PHP_VERSION, '5.3.0', '<')) 58 {AtomSourceTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 306 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: AtomTest.php 19168 2009-11-21 17:17:18Z padraic $ 21 */ 22 23require_once 'Zend/Feed/Reader.php'; 24 33 */ 34class Zend_Feed_Reader_Feed_AtomSourceTest extends PHPUnit_Framework_TestCase 35{ 302 $this->assertEquals($this->_expectedCats, (array) $source->getCategories()); 303 $this->assertEquals(array('topic1','Cat & Dog'), array_values($source->getCategories()->getValues())); 304 }pearcmd.php https://github.com/timstephenson/NatureBridge.git | PHP | 445 lines
20if (!defined('PEAR_RUNTYPE')) { 21 // this is defined in peclcmd.php as 'pecl' 22 define('PEAR_RUNTYPE', 'pear'); 59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().Relation.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 349 lines
1<?php 2 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey();EsmtpTransport.php https://github.com/bheneka/gitta.git | PHP | 339 lines
1<?php 2 10 11//@require 'Swift/Transport/AbstractSmtpTransport.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 13//@require 'Swift/Transport/IoBuffer.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 15//@require 'Swift/TransportException.php'; 16//@require 'Swift/Mime/Message.php'; 16//@require 'Swift/Mime/Message.php'; 17//@require 'Swift/Events/EventDispatcher.php'; 18 169 { 170 return array_values($this->_handlers); 171 }sites.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 380 lines
1<?php 2 63 return $membership['name']; 64 }, array_values($cached_site['memberships'])) 65 ); 65 ); 66 }, array_values($cached_sites)); 67 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);MailboxHeader.php https://github.com/nattaphat/hgis.git | PHP | 358 lines
1<?php 2 88 * <code> 89 * <?php 90 * //Sets two mailboxes in the Header, one with a personal name 116 * <code> 117 * <?php 118 * $header = new Swift_Mime_Headers_MailboxHeader('From', 147 * <code> 148 * <?php 149 * $header = new Swift_Mime_Headers_MailboxHeader('From', 175 * <code> 176 * <?php 177 * //Sets three email addresses as the Header data 192 { 193 $this->setNameAddresses(array_values((array) $addresses)); 194 }po.php https://gitlab.com/Gashler/sg | PHP | 409 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/translations.php'; 11 110 111 $string = str_replace(array_keys($replaces), array_values($replaces), $string); 112 163 function prepend_each_line($string, $with) { 164 $php_with = var_export($with, true); 165 $lines = explode("\n", $string); 167 if ("\n" == substr($string, -1)) unset($lines[count($lines) - 1]); 168 $res = implode("\n", array_map(create_function('$x', "return $php_with.\$x;"), $lines)); 169 // give back the empty line, we ignored aboveRest.php https://bitbucket.org/acidel/buykoala.git | PHP | 366 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 */ 225 $stabilities = array_map(array($this, 'shortStateToLong'), array_keys($package)); 226 $versions = array_map('trim', array_values($package)); 227 $package = array_combine($versions, $stabilities);Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 302 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 */ 133 // reset array keys 134 $storeIds = array_values($storeIds); 135Configure.diff.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 433 lines
1<?php 2if ( !defined( 'MEDIAWIKI' ) ) die(); 224 if ( $arrType == 'simple' || $arrType == 'ns-simple' ) { 225 $val = array_values( $setting ); 226 } elseif ( $arrType == 'assoc' ) {allocator_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 324 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 20 * @package workshopallocation_random 21 * @category phpunit 22 * @copyright 2009 David Mudrak <david.mudrak@gmail.com> 29global $CFG; 30require_once($CFG->dirroot . '/mod/workshop/locallib.php'); 31require_once($CFG->dirroot . '/mod/workshop/allocation/random/lib.php'); 288 // verify 289 $this->assertEquals(array_values($newallocations), array(array(2 => 9))); 290 }Class.php https://github.com/samar-tmr/MyVenture.git | PHP | 399 lines
1<?php 2/** 2/** 3 * PHPUnit 4 * 4 * 5 * Copyright (c) 2002-2011, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @package PHPUnit 38 * @subpackage Util 38 * @subpackage Util 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/topic.php https://github.com/mkfmn/cake-forum.git | PHP | 467 lines
1<?php 2/** 6 * @copyright Copyright 2006-2010, Miles Johnson, Inc. 7 * @license http://opensource.org/licenses/mit-license.php - Licensed under The MIT License 8 * @link http://milesj.me/resources/script/forum-plugin 221 public function checkOptions($data) { 222 $data = array_values($data); 223 $options = explode("\n", $data[0]);BelongsTo.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 328 lines
1<?php 2 180 181 return array_values(array_unique($keys)); 182 }InputDefinition.php https://gitlab.com/techniconline/kmc | PHP | 453 lines
1<?php 2 160 161 $arguments = is_int($name) ? array_values($this->arguments) : $this->arguments; 162 176 { 177 $arguments = is_int($name) ? array_values($this->arguments) : $this->arguments; 178 200 { 201 return $this->hasAnArrayArgument ? PHP_INT_MAX : count($this->arguments); 202 }toolbar.php https://github.com/robksawyer/FIND---GET---MAKE.git | PHP | 350 lines
1<?php 2/** 6 * @copyright Copyright 2006-2009, Miles Johnson, Inc. 7 * @license http://www.opensource.org/licenses/mit-license.php - Licensed under The MIT License 8 * @link www.milesj.me/resources/script/forum-plugin 120 } else { 121 $posts = array_values($posts); 122 $flips = array_flip($posts);Schema.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 310 lines
1<?php 2/** 161 } 162 $table->foreignKeys = array_values($table->foreignKeys); 163 216 217 $column->phpType = $this->getColumnPhpType($column); 218 231 } else { 232 $column->defaultValue = $column->phpTypecast($info['Default']); 233 } 258 /** 259 * Determines the PDO type for the given PHP data value. 260 * @param mixed $data the data whose PDO type is to be determined 261 * @return integer the PDO type 262 * @see http://www.php.net/manual/en/pdo.constants.php 263 */Abstract.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 302 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 */ 133 // reset array keys 134 $storeIds = array_values($storeIds); 135core.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 339 lines
1<?php 2/* 10 global $json_api; 11 $php = ''; 12 if (!empty($json_api->query->controller)) { 16 if (file_exists("$dir/json-api.php")) { 17 $php = file_get_contents("$dir/json-api.php"); 18 } else { 18 } else { 19 // Check one directory up, in case json-api.php was moved 20 $dir = dirname($dir); 21 if (file_exists("$dir/json-api.php")) { 22 $php = file_get_contents("$dir/json-api.php"); 23 } 24 } 25 if (preg_match('/^\s*Version:\s*(.+)$/m', $php, $matches)) { 26 $version = $matches[1];Client.php https://bitbucket.org/bytefreak/php-coucher.git | PHP | 294 lines
1<?php 2namespace BF\Coucher; 128 if (is_null($this->selectedDB)) throw new \Exception("no database selected!"); 129 $payload = json_encode(array("docs" => array_values($docs))); 130 $r = $this->connection->sendRequest(Connection::METHOD_POST,"/".$this->selectedDB."/_bulk_docs",$payload);utility.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 255 lines
1<?php 2 110 111 return str_replace(array_keys($CHARS), array_values($CHARS), $subject); 112 }Attribute.php https://github.com/Exercise/zf2.git | PHP | 434 lines
1<?php 2/** 148 if (!isset($data[$attribName])) return; 149 $data[$attribName] = array_values(array_unique($data[$attribName])); 150 } 182 } 183 $resultArray = array_values($resultArray); 184 $data[$attribName] = $resultArray; 214 /** 215 * Converts a PHP data type into its LDAP representation 216 * 217 * @param mixed $value 218 * @return string|null - null if the PHP data type cannot be converted. 219 */ 225 /** 226 * Converts an LDAP value into its PHP data type 227 *UndefinedConstraint.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 286 lines
1<?php 2 220 } 221 $allErrors = array_merge($allErrors, array_values($this->getErrors())); 222 }document.php https://github.com/kodeplay/kodelearn.git | PHP | 272 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2 241 'success' => 0, 242 'errors' => array_values($validator->errors('document')) 243 );FrameworkExtensionTest.php https://github.com/nguyennamtien/TaskBoxx.git | PHP | 251 lines
1<?php 2 105 $this->assertEquals('templating.asset.url_package', $package->getParent()); 106 $arguments = array_values($package->getArguments()); 107 $this->assertEquals(array('http://cdn.example.com'), $arguments[0]); 127 128 $this->assertEquals(array('php', 'twig'), $container->getParameter('templating.engines'), '->registerTemplatingConfiguration() sets a templating.engines parameter'); 129 } 209 { 210 require_once __DIR__ . "/Fixtures/TestBundle/TestBundle.php"; 211query.php https://github.com/kpike/moodle.git | PHP | 400 lines
108 // get all available module types adding third party modules 109 $module_types = array_merge(array('all'), array_values(search_get_document_types())); 110 $module_types = array_merge($module_types, array_values(search_get_document_types('X_SEARCH_TYPE'))); 199 <input type="submit" value="<?php print_string('search', 'search') ?>" /> 200 <a href="query.php?a=1"><?php print_string('advancedsearch', 'search') ?></a> | 201 <a href="stats.php"><?php print_string('statistics', 'search') ?></a> 216 <tr> 217 <td><?php print_string('thesewordsmustnotappear', 'search') ?>:</td> 218 <td><input type="text" name="notappear" length="50" value="<?php p($adv->notappear); ?>" /></td> 272 <td><a href="query.php"><?php print_string('normalsearch', 'search') ?></a> |</td> 273 <td> <a href="stats.php"><?php print_string('statistics', 'search') ?></a></td> 274 </tr> 388 <div align="center"> 389 <?php 390 print_string('ittook', 'search');BaseElementFieldType.php https://gitlab.com/madebycloud/derekman | PHP | 509 lines
1<?php 2namespace Craft; 163 { 164 $criteria->id = array_values(array_filter($value)); 165 $criteria->fixedOrder = true;QueueBaseTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 270 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: QueueBaseTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 31/** Zend_Config */ 32require_once 'Zend/Config.php'; 33 34/** Zend_Queue */ 35require_once 'Zend/Queue.php'; 36 37/** Zend_Queue */ 38require_once 'Zend/Queue/Message.php'; 39 40/** Zend_Queue_Adapter_Array */ 41require_once 'Zend/Queue/Adapter/Array.php'; 42ContentTranslationSyncImageTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 267 lines
1<?php 2 231 ]; 232 $translation->{$this->fieldName}->setValue(array_values($values[$langcode])); 233 $entity = $this->saveEntity($translation);BaseDmPermissionForm.class.php https://github.com/xdade/diem.git | PHP | 299 lines
1<?php 2 174 { 175 $this->object->unlink('Users', array_values($unlink)); 176 } 180 { 181 $this->object->link('Users', array_values($link)); 182 } 212 { 213 $this->object->unlink('Groups', array_values($unlink)); 214 } 218 { 219 $this->object->link('Groups', array_values($link)); 220 } 250 { 251 $this->object->unlink('DmUserPermission', array_values($unlink)); 252 }compiler.php https://bitbucket.org/jokusafet/magento2.git | PHP | 301 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 */ 34 */ 35require_once BP . '/app/code/core/Mage/Core/functions.php'; 36require_once BP . '/app/Mage.php'; 37 38require __DIR__ . '/../../../app/autoload.php'; 39Magento_Autoload_IncludePath::addIncludePath(array( 207 if (isset($definition['parameters']['__construct'])) { 208 $constructorParams = array_values($definition['parameters']['__construct']); 209 }Hashtable.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 421 lines
1<?php 2/** 247 array($this->_getCid($mailbox)), 248 array_values($this->_getMsgCids($mailbox, $this->_mbox[$mailbox]['u'])) 249 )); 293 if (!empty($val['d'])) { 294 $this->_hash->delete(array_values( 295 $this->_getMsgCids($mbox, $val['d'])DateTimeToStringTransformer.php https://github.com/nattaphat/hgis.git | PHP | 230 lines
1<?php 2 34 * Different than the {@link $generateFormat} because formats for parsing 35 * support additional characters in PHP that are not supported for 36 * generating strings. 44 * 45 * This only works as of PHP 5.3.7. 46 * 68 69 // The pipe in the parser pattern only works as of PHP 5.3.7 70 // See http://bugs.php.net/54316 71 $this->parseUsingPipe = null === $parseUsingPipe 72 ? version_compare(phpversion(), '5.3.7', '>=') 73 : $parseUsingPipe; 74 75 // See http://php.net/manual/en/datetime.createfromformat.php 76 // The character "|" in the format makes sure that the parts of a dateJsonApiDocumentTopLevelNormalizer.php https://gitlab.com/mohamed_hussein/prodt | PHP | 335 lines
1<?php 2 27 * 28 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This 29 * class may change at any time and this will break any dependencies on it. 31 * @see https://www.drupal.org/project/drupal/issues/3032787 32 * @see jsonapi.api.php 33 * 128 ->getDefinition($entity_type_id)->getKey('uuid'); 129 $related_entities = array_values($entity_storage->loadByProperties([$uuid_key => $id_list])); 130 $map = [];Complex.php https://github.com/mackensen/moodle.git | PHP | 388 lines
1<?php 2 6 * 7 * @copyright Copyright (c) 2013-2018 Mark Baker (https://github.com/MarkBaker/PHPComplex) 8 * @license https://opensource.org/licenses/MIT MIT 172 // We have an array of (potentially) real and imaginary parts, and any suffix 173 list ($realPart, $imaginaryPart, $suffix) = array_values($realPart) + [0.0, 0.0, 'i']; 174 } elseif ((is_string($realPart)) || (is_numeric($realPart))) {http.php https://gitlab.com/Gashler/dp | PHP | 519 lines
1<?php 2/** 315 if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) { 316 $capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) ); 317 } 319 if ( $url && !isset( $capabilities['ssl'] ) ) { 320 $scheme = parse_url( $url, PHP_URL_SCHEME ); 321 if ( 'https' == $scheme || 'ssl' == $scheme ) {lechapt_calmon.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 472 lines
1<?php 2/* 2/* 3 * formulaires/lechapt_calmon.php 4 * 62/* Tableau des données pour chaque type de tuyau. Ces valeurs sont associées 63 * aux numéros des options du select (voir page lechapt_calmon.php) 64 */ 148 // Permet de tasser le tableau 149 $tChOblig = array_values($tChOblig); 150 } 443 unset($result[0]); 444 $result = array_values($result); 445 unset($tabAbs[0]); 445 unset($tabAbs[0]); 446 $tabAbs = array_values($tabAbs); 447 }moderror.class.php https://github.com/francisreboucas/revolution.git | PHP | 324 lines
1<?php 2/* 199 $f = array (); 200 $errors = array_values(array_filter($this->errors, array($this, 'isFieldError'))); 201 foreach ($errors as $fi) { 224 if (!$includeFields) { 225 $errors = array_values(array_filter($this->errors, array($this, 'isNotFieldError'))); 226 } 283 * 284 * This function also makes sure that any members of the array are not PHP 285 * resource types (e.g. database connections, file handles, etc.).class-lp-quiz-factory.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 255 lines
1<?php 2 222 if ( $checked ) { 223 $checked = array_values( $checked ); 224 }Sqlsrv.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 411 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Sqlsrv.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26// require_once 'Zend/Db/Statement.php'; 27 28/** 29 * Extends for Microsoft SQL Server Driver for PHP 30 * 68 if (!$this->_stmt) { 69 // require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 70 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 79 * @param mixed $parameter Name the parameter, either integer or string. 80 * @param mixed $variable Reference to PHP variable containing the value. 81 * @param mixed $type OPTIONAL Datatype of SQL parameter.SimpleHeaderSet.php https://gitlab.com/madwanz64/laravel | PHP | 399 lines
1<?php 2 187 if ($this->has($name)) { 188 $values = array_values($this->headers[$name]); 189Inflector.php https://github.com/bhaumik25/zend-framework.git | PHP | 495 lines
1<?php 2/** 25 */ 26require_once 'Zend/Filter.php'; 27 30 */ 31require_once 'Zend/Loader/PluginLoader.php'; 32 449 450 $inflectedTarget = preg_replace(array_keys($processedParts), array_values($processedParts), $this->_target); 451 452 if ($this->_throwTargetExceptionsOn && (preg_match('#(?='.$pregQuotedTargetReplacementIdentifier.'[A-Za-z]{1})#', $inflectedTarget) == true)) { 453 require_once 'Zend/Filter/Exception.php'; 454 throw new Zend_Filter_Exception('A replacement identifier ' . $this->_targetReplacementIdentifier . ' was found inside the inflected target, perhaps a rule was not satisfied with a target source? Unsatisfied inflected target: ' . $inflectedTarget); 487 if (!$ruleObject instanceof Zend_Filter_Interface) { 488 require_once 'Zend/Filter/Exception.php'; 489 throw new Zend_Filter_Exception('No class named ' . $rule . ' implementing Zend_Filter_Interface could be found');menu-header.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 238 lines
1<?php 2/** 15 */ 16$self = preg_replace('|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF']); 17$self = preg_replace('|^.*/wp-admin/|i', '', $self); 122 } elseif ( $submenu_as_parent && ! empty( $submenu_items ) ) { 123 $submenu_items = array_values( $submenu_items ); // Re-index. 124 $menu_hook = get_plugin_page_hook( $submenu_items[0][2], $item[2] ); 127 $menu_file = substr( $menu_file, 0, $pos ); 128 if ( ! empty( $menu_hook ) || ( ( 'index.php' != $submenu_items[0][2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) { 129 $admin_is_parent = true; 129 $admin_is_parent = true; 130 echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>$title</div></a>"; 131 } else { 134 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 135 $menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); 136 $menu_file = $item[2];ApacheMatcherDumper.php https://github.com/ivebeenlinuxed/Boiler.git | PHP | 277 lines
1<?php 2 28 * 29 * * script_name: The script name (app.php by default) 30 * * base_uri: The base URI ("" by default) 40 $options = array_merge(array( 41 'script_name' => 'app.php', 42 'base_uri' => '', 93 $rule = array('# 405 Method Not Allowed'); 94 $methodVars = array_values(array_unique($methodVars)); 95 if (in_array('GET', $methodVars) && !in_array('HEAD', $methodVars)) {class-gf-field-password.php https://gitlab.com/level-level/gravityforms | PHP | 178 lines
1<?php 2 61 if ( is_array( $value ) ) { 62 $value = array_values( $value ); 63 }fabriquer_plugin_actions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 380 lines
1<?php 2 37 $order = array_diff($a = explode(',', $valeur_action), array('paquet')); 38 $order = array_values($order); // renumeroter 39 $images = session_get(FABRIQUE_ID_IMAGES); 59 $order = explode(',', $valeur_action[$i]); 60 $order = array_values($order); // renumeroter 61 $new_champs = array(); 96 unset($images['objets'][$i]); 97 array_values($data ['objets']); 98 array_values($images['objets']); 178 unset($data['objets'][$o]['champs'][$c]); 179 array_values($data['objets'][$o]['champs']); 180 session_set(FABRIQUE_ID, $data); 290 $date = date("Y-m-d H-i-s"); 291 $base = basename($fichier, '.php'); 292 $copie = $base . ' ' . $date . '.php';BootstrapFormHelper.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 456 lines
1<?php 2 338 } 339 return array_values($help_markup); 340 }result.php https://bitbucket.org/moodle/moodle.git | PHP | 300 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 168 $data->answerlabel = $this->get_answerlabel(); 169 $data->options = array_values($options); 170 $data->track = true;Attribute.php https://gitlab.com/geeta7/drupal | PHP | 351 lines
1<?php 2 261 262 // Remove the values passed in from the value array. Use array_values() to 263 // ensure that the array index remains sequential. 263 // ensure that the array index remains sequential. 264 $classes = array_values(array_diff($this->storage['class']->value(), $classes)); 265 $this->storage['class']->exchangeArray($classes);SilverStripeNavigator.php https://gitlab.com/brendan2/silverstripe-cms-3.3.2 | PHP | 407 lines
1<?php 2/** 66 // Drop the keys and let the ArrayList handle the numbering, so $First, $Last and others work properly. 67 return new ArrayList(array_values($items)); 68 }Table.php https://gitlab.com/sulistiana/api-mrbn | PHP | 555 lines
1<?php 2/** 325 326 $values = array_values($data); 327 return $this->conn->query(($this->last_sql = $sql->to_s()),$values); 458 { 459 require_once 'Relationship.php'; 460 $namespace = $this->class->getNamespaceName(); 542 /** 543 * @deprecated Model.php now checks for get|set_ methods via method_exists so there is no need for declaring static g|setters. 544 */ 551 trigger_error('static::$getters and static::$setters are deprecated. Please define your setters and getters by declaring methods in your model prefixed with get_ or set_. See 552 http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-setters and http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-getters on how to make use of this option.', E_USER_DEPRECATED); 553 }