100+ results results for 'php array_key_exists repo:StasPiv/playzone' (1330 ms)
1<?php 2/* 234 foreach ($this->_columns as $tableName => $table) { 235 if (array_key_exists('fields', $table)) { 236 foreach ($table['fields'] as $fieldName => $field) { 369 // If the email address has been deleted 370 if (array_key_exists('civicrm_email_email', $row)) { 371 if (empty($rows[$rowNum]['civicrm_email_email'])) { 378 // convert display name to links 379 if (array_key_exists('civicrm_contact_sort_name', $row) && 380 array_key_exists('civicrm_contact_id', $row)AbstractAtom.php https://bitbucket.org/pcelta/zf2.git | PHP | 405 lines
1<?php 2/** 146 $generator->appendChild($text); 147 if (array_key_exists('uri', $gdata)) { 148 $generator->setAttribute('uri', $gdata['uri']); 149 } 150 if (array_key_exists('version', $gdata)) { 151 $generator->setAttribute('version', $gdata['version']); 184 $flinks = $this->getDataContainer()->getFeedLinks(); 185 if (!$flinks || !array_key_exists('atom', $flinks)) { 186 $message = 'Atom 1.0 feed elements SHOULD contain one atom:link ' 233 $name->appendChild($text); 234 if (array_key_exists('email', $data)) { 235 $email = $this->dom->createElement('email'); 239 } 240 if (array_key_exists('uri', $data)) { 241 $uri = $this->dom->createElement('uri');helpers.php https://bitbucket.org/gmmcal/laravel.git | PHP | 598 lines
1<?php 2 68 { 69 if ( ! is_array($array) or ! array_key_exists($segment, $array)) 70 { 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)));Parser.php https://github.com/mrwabu/urlcatcher.git | PHP | 482 lines
1<?php 2 11/* removed since it now use the doctrine autoload feature 12 * require_once(dirname(__FILE__).'/Yml_Inline.class.php'); 13 */ 20 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 21 * @version SVN: $Id: YamlSfParser.class.php 8869 2008-05-09 00:22:57Z dwhittle $ 22 */ 43 /** 44 * Parses a YAML string to a PHP value. 45 * 47 * 48 * @return mixed A PHP value 49 */ 108 $isInPlace = substr($values['value'], 1); 109 if ( !array_key_exists($isInPlace, $this->refs)) 110 {Mcrypt.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
24 */ 25require_once 'Zend/Filter/Encrypt/Interface.php'; 26 86 87 if (array_key_exists('compression', $options)) { 88 $this->setCompression($options['compression']); 117 if (!is_array($options)) { 118 require_once 'Zend/Filter/Exception.php'; 119 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 135 if (!mcrypt_module_self_test($options['algorithm'], $options['algorithm_directory'])) { 136 require_once 'Zend/Filter/Exception.php'; 137 throw new Zend_Filter_Exception('The given algorithm can not be used due an internal mcrypt problem'); 171 $this->_srand(); 172 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { 173 $method = MCRYPT_RAND;ObjectManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 316 lines
1<?php 2/** 26 * 27 * @var \PHPUnit_Framework_TestCase 28 */ 33 * 34 * @param \PHPUnit_Framework_TestCase $testObject 35 */ 35 */ 36 public function __construct(\PHPUnit_Framework_TestCase $testObject) 37 { 45 * @param array $originalArguments 46 * @return null|object|\PHPUnit_Framework_MockObject_MockObject 47 */ 83 * 84 * @return \Magento\Framework\Module\ResourceInterface|\PHPUnit_Framework_MockObject_MockObject 85 */condition.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 292 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 100 $course = $info->get_course(); 101 if (!array_key_exists($this->groupid, self::$groupnames)) { 102 $coursegroups = $DB->get_records( 109 // If it still doesn't exist, it must have been misplaced. 110 if (!array_key_exists($this->groupid, self::$groupnames)) { 111 $name = get_string('missing', 'availability_group'); 201 202 require_once($CFG->libdir . '/grouplib.php'); 203 $course = $info->get_course(); 222 // Always include users with access all groups. 223 if (array_key_exists($id, $aagusers)) { 224 $result[$id] = $user; 227 // Other users are included or not based on group membership. 228 $allow = array_key_exists($id, $groupusers); 229 if ($not) {User.php https://gitlab.com/rsilveira1987/Expresso | PHP | 444 lines
1<?php 2/** 122 /** 123 * (non-PHPdoc) 124 * @see Tinebase/Record/Tinebase_Record_Abstract#setFromArray($_data) 142 143 if (! array_key_exists('accountFullName', $_data)) { 144 $_data['accountFullName'] = $_data['accountLastName'];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)));Parser.php https://github.com/ninjapenguin/kohana-Doctrine-module.git | PHP | 482 lines
1<?php 2 11/* removed since it now use the doctrine autoload feature 12 * require_once(dirname(__FILE__).'/Yml_Inline.class.php'); 13 */ 20 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 21 * @version SVN: $Id: YamlSfParser.class.php 8869 2008-05-09 00:22:57Z dwhittle $ 22 */ 43 /** 44 * Parses a YAML string to a PHP value. 45 * 47 * 48 * @return mixed A PHP value 49 */ 108 $isInPlace = substr($values['value'], 1); 109 if (!array_key_exists($isInPlace, $this->refs)) 110 {PresenterComponent.php https://gitlab.com/paveltizek/shop | PHP | 406 lines
1<?php 2 159 160 } elseif (array_key_exists($name, $params)) { // NULLs are skipped 161 continue;LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 105 } 106 if (!array_key_exists($state, $this->_actionTable)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 107 114 if ($nextToken === '') $nextToken = new Text_Tokenizer_Token('', ''); 115 if (!array_key_exists($nextToken->getId(), $row)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 116 if ($row[$nextToken->getId()]['action'] == 'lookahead') { 139 if (!is_array($this->_gotoTable)) throw new Text_Parser_InvalidParserException('This parser has not been configured. It has no goto table'); 140 if (!array_key_exists($state, $this->_gotoTable) || !array_key_exists($nextToken->getId(), $this->_gotoTable[$state])) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 141AbstractClient.php https://github.com/Exercise/zf2.git | PHP | 326 lines
1<?php 2/** 295 foreach ($methodParameters as $methodParameterName => $methodParameterValue) { 296 if (!array_key_exists($methodParameterName, $requestParameters) && $methodParameterValue['optional'] == false) { 297 if ($this instanceof Interactive\InteractiveInput) { 307 } else { 308 $callParameters[] = (array_key_exists($methodParameterName, $requestParameters)) ? $requestParameters[$methodParameterName] : $methodParameterValue['default']; 309 }ReportInstance.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 406 lines
1<?php 2/* 140 if (!empty($params['is_navigation'])) { 141 if (!array_key_exists('navigation', $params)) { 142 $params['navigation'] = []; 360 * but I didn't have the right classes). ie adding 'class' => 'crm-i fa-print' to print / class looked 361 * wrong, but at the php level it worked https://github.com/civicrm/civicrm-core/pull/8529#issuecomment-227639091 362 * - general script-add.class-sensei-analysis-lesson-list-table.php https://gitlab.com/ezgonzalez/integral | PHP | 357 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 79 if ( !empty( $_GET['orderby'] ) ) { 80 if ( array_key_exists( esc_html( $_GET['orderby'] ), $this->get_sortable_columns() ) ) { 81 $orderby = esc_html( $_GET['orderby'] ); 141 if ( !empty( $_GET['orderby'] ) ) { 142 if ( array_key_exists( esc_html( $_GET['orderby'] ), $this->get_sortable_columns() ) ) { 143 $orderby = esc_html( $_GET['orderby'] ); 235 if ( !$this->csv_output ) { 236 $url = add_query_arg( array( 'page' => $this->page_slug, 'user_id' => $item->user_id, 'course_id' => $this->course_id ), admin_url( 'admin.php' ) ); 237 330 $report = sanitize_title( $lesson->post_title ) . '-learners-overview'; 331 $url = add_query_arg( array( 'page' => $this->page_slug, 'lesson_id' => $this->lesson_id, 'sensei_report_download' => $report ), admin_url( 'admin.php' ) ); 332 echo '<a class="button button-primary" href="' . esc_url( wp_nonce_url( $url, 'sensei_csv_download-' . $report, '_sdl_nonce' ) ) . '">' . __( 'Export all rows (CSV)', 'woothemes-sensei' ) . '</a>';PropertyPath.php https://github.com/fernanDOTdo/symfony.git | PHP | 400 lines
1<?php 2 242 // arrays need to be treated separately (due to PHP bug?) 243 // http://bugs.php.net/bug.php?id=52133 244 } else { 244 } else { 245 if (!array_key_exists($property, $objectOrArray)) { 246 $objectOrArray[$property] = $currentIndex + 1 < $this->length ? array() : null; 280 // arrays need to be treated separately (due to PHP bug?) 281 // http://bugs.php.net/bug.php?id=52133 282 } else { 282 } else { 283 if (!array_key_exists($property, $objectOrArray)) { 284 $objectOrArray[$property] = array();Number.php https://github.com/bhaumik25/zend-framework.git | PHP | 398 lines
1<?php 2/** 25 */ 26require_once 'Zend/Measure/Abstract.php'; 27require_once 'Zend/Locale.php'; 150 if (!$this->_Locale = Zend_Locale::isLocale($locale, true)) { 151 require_once 'Zend/Measure/Exception.php'; 152 throw new Zend_Measure_Exception("Language ($locale) is unknown"); 160 161 if (!array_key_exists($type, $this->_UNITS)) { 162 require_once 'Zend/Measure/Exception.php'; 183 if (empty($this->_UNITS[$type])) { 184 require_once 'Zend/Measure/Exception.php'; 185 throw new Zend_Measure_Exception('unknown type of number:' . $type); 236 } catch (Exception $e) { 237 require_once 'Zend/Measure/Exception.php'; 238 throw new Zend_Measure_Exception($e->getMessage());Connection.php https://github.com/TimLangley/Zend_RabbitMQ.git | PHP | 455 lines
1<?php 2/** 30 "library" => array( 31 'S', "PHP Simple AMQP lib" 32 ), "library_version" => array( 151 for ($i = 1; $i <= $this->channel_max; $i++) 152 if (!array_key_exists($i, $this->channels)) 153 return $i; 271 { 272 if (array_key_exists($channel_id, $this->channels)) 273 return $this->channels[$channel_id];question.php https://github.com/hit-moodle/moodle.git | PHP | 357 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot . '/question/type/numerical/questiontype.php'); 30 89 public function is_gradable_response(array $response) { 90 return array_key_exists('answer', $response) && 91 ($response['answer'] || $response['answer'] === '0' || $response['answer'] === 0);MultipartStream.php https://gitlab.com/ealexis.t/trends | PHP | 153 lines
1<?php 2namespace GuzzleHttp\Psr7; 81 foreach (['contents', 'name'] as $key) { 82 if (!array_key_exists($key, $element)) { 83 throw new \InvalidArgumentException("A '{$key}' key is required"); 90 $uri = $element['contents']->getMetadata('uri'); 91 if (substr($uri, 0, 6) !== 'php://') { 92 $element['filename'] = $uri;Product.php https://gitlab.com/MohammadShakil/POS_Management_System | PHP | 120 lines
1<?php 2namespace App\Product; 27 { 28 if (array_key_exists('CategoryID', $data)) { 29 $this->CategoryID = filter_var($data['CategoryID'], FILTER_SANITIZE_STRING); 30 } 31 if (array_key_exists('name', $data)) { 32 $this->name = filter_var($data['name'], FILTER_SANITIZE_STRING); 33 } 34 if (array_key_exists('code', $data)) { 35 $this->code = filter_var($data['code'], FILTER_SANITIZE_STRING); 36 } 37 if (array_key_exists('size', $data)) { 38 $this->size = filter_var($data['size'], FILTER_SANITIZE_STRING); 39 } 40 if (array_key_exists('price', $data)) { 41 $this->price = filter_var($data['price'], FILTER_SANITIZE_STRING);CommentTestTrait.php https://gitlab.com/reasonat/test8 | PHP | 121 lines
1<?php 2 54 // needed. 55 if (!array_key_exists($field_name, $entity_manager->getFieldStorageDefinitions($entity_type))) { 56 $entity_manager->getStorage('field_storage_config')->create(array( 66 // Create the field if needed, and configure its form and view displays. 67 if (!array_key_exists($field_name, $entity_manager->getFieldDefinitions($entity_type, $bundle))) { 68 $entity_manager->getStorage('field_config')->create(array(Field.php https://github.com/michaelmcandrew/vaw.git | PHP | 146 lines
1<?php 2 29 30require_once 'CRM/Utils/Type.php'; 31require_once 'CRM/Event/PseudoConstant.php'; 137 } 138 if (!array_key_exists($customFieldID, $customFields)) { 139 return false;MessageStack.php https://gitlab.com/donyradjah/cvglobal | PHP | 182 lines
1<?php 2/** 4 * 5 * @link http://github.com/particle-php for the canonical source repository 6 * @copyright Copyright (c) 2005-2016 Particle (http://particle-php.com) 6 * @copyright Copyright (c) 2005-2016 Particle (http://particle-php.com) 7 * @license https://github.com/particle-php/validator/blob/master/LICENSE New BSD License 8 */ 77 78 if (array_key_exists($reason, $this->defaultMessages)) { 79 return $this->defaultMessages[$reason]; 138 foreach ($messageStack->defaultMessages as $key => $message) { 139 if (!array_key_exists($key, $this->defaultMessages)) { 140 $this->defaultMessages[$key] = $message;toolsettings.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 138 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 80 foreach ($systemsettings as $key => $value) { 81 if ((!empty($contextsettings) && array_key_exists($key, $contextsettings)) || 82 (!empty($linksettings) && array_key_exists($key, $linksettings))) { 88 foreach ($contextsettings as $key => $value) { 89 if (!empty($linksettings) && array_key_exists($key, $linksettings)) { 90 unset($contextsettings[$key]);ImageUploader.php https://gitlab.com/Hoq/lab_exem7_B21_Rakib_SEIP124310 | PHP | 145 lines
1<?php 2namespace App\Bitm\SEIP124310\ProfilePicture; 22 { 23 if (array_key_exists("name", $data)) { 24 $this->name = filter_var($data['name'], FILTER_SANITIZE_STRING); 25 } 26 if (array_key_exists("image", $data)) { 27 $this->image_name = filter_var($data['image'], FILTER_SANITIZE_STRING); 28 } 29 if (array_key_exists("id", $data)) { 30 $this->id = $data['id']; 60 Message::message("Data has benn stored successfully"); 61 Utility::redirect('index.php'); 62 64 Message::message("Data has not been stored successfully"); 65 Utility::redirect('index.php'); 66 }Google_WPIO.php https://gitlab.com/iamgraeme/royalmile | PHP | 165 lines
1<?php 2/* 62 63 if ( array_key_exists( $request->getRequestMethod(), 64 self::$ENTITY_HTTP_METHODS ) ) {search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
1<?php 2/** 145 { 146 if (array_key_exists($value["crmEntity"], $searchResult)) 147 {IsCompressed.php https://bitbucket.org/kdms/sh-magento.git | PHP | 149 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: IsCompressed.php 22668 2010-07-25 14:50:46Z thomas $ 20 */ 24 */ 25#require_once 'Zend/Validate/File/MimeType.php'; 26 102 $temp = $mimetype; 103 if (array_key_exists('magicfile', $temp)) { 104 unset($temp['magicfile']); 106 107 if (array_key_exists('headerCheck', $temp)) { 108 unset($temp['headerCheck']); 124 * Throws an error of the given type 125 * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2 126 *BookTitle.php https://gitlab.com/Afsana/Afsana_148423_B35_Session_29 | PHP | 201 lines
1<?php 2 31 32 if(array_key_exists('id',$data)){ 33 $this->id=$data['id']; 35 36 if(array_key_exists('book_title',$data)){ 37 $this->book_title=$data['book_title']; 39 40 if(array_key_exists('author_name',$data)){ 41 $this->author_name=$data['author_name']; 56 57 Utility::redirect('create.php'); // redirect korte hobe create.php te tai utility.php use korechi // 58 99 100 Utility::redirect('index.php'); 101derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 71 $this->flags |= self::IS_MIMETYPE; 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) 73 { 74 $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; 75 $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); 76 } 97 } 98 elseif (!array_key_exists('width', $infos)) 99 { 379 $rel_url = 'i'; 380 if ($conf['php_extension_in_urls']) $rel_url .= '.php'; 381 if ($conf['question_mark_in_urls']) $rel_url .= '?';Transition.php https://github.com/sergiosgc/Text_Parser_Generator.git | PHP | 135 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 75 foreach($other->getLookahead() as $i => $otherLookahead) { 76 if (!array_key_exists($i, $this->lookahead)) $this->lookahead[$i] = $grammar->getNonTerminalSymbolSet(); 77 if ($this->lookahead[$i]->isDisjoint($otherLookahead)) break;IsCompressed.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 149 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: IsCompressed.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/File/MimeType.php'; 26 102 $temp = $mimetype; 103 if (array_key_exists('magicfile', $temp)) { 104 unset($temp['magicfile']); 106 107 if (array_key_exists('headerCheck', $temp)) { 108 unset($temp['headerCheck']); 124 * Throws an error of the given type 125 * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2 126 *Identical.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 193 lines
1<?php 2/** 59 60 if (is_array($token) && array_key_exists('token', $token)) { 61 if (array_key_exists('strict', $token)) { 64 65 if (array_key_exists('literal', $token)) { 66 $this->setLiteral($token['literal']);Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**SessionNamespace.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 237 lines
1<?php 2 86 { 87 if ($this->warnOnUndefined && !array_key_exists($name, $this->data)) { 88 trigger_error("The variable '$name' does not exist in session namespace", E_USER_NOTICE);Gender.php https://gitlab.com/dhimanbarua/Atomic_Project_SEIP141617_B36 | PHP | 178 lines
1<?php 2namespace App\Gender; 21 { 22 if(array_key_exists('id',$data)) 23 { 25 } 26 if(array_key_exists('name',$data)) 27 { 29 } 30 if(array_key_exists('gender',$data)) 31 { 51 } 52 Utility::redirect('create.php'); 53 88 89 Utility::redirect('index.php'); 90Router.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 394 lines
1<?php 2 123 'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 124 'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', 125 'generator_cache_class' => 'ProjectUrlGenerator', 127 'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher', 128 'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper', 129 'matcher_cache_class' => 'ProjectUrlMatcher', 136 foreach ($options as $key => $value) { 137 if (array_key_exists($key, $this->options)) { 138 $this->options[$key] = $value; 158 { 159 if (!array_key_exists($key, $this->options)) { 160 throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key)); 176 { 177 if (!array_key_exists($key, $this->options)) { 178 throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));session.php https://gitlab.com/alexprowars/bitrix | PHP | 317 lines
1<?php 2 93 } 94 $match_value_set = array_key_exists($key."_EXACT_MATCH", $arFilter); 95 $key = strtoupper($key); 258 S.LAST_HIT_ID, 259 S.PHPSESSID, 260 S.ADV_ID,rounding.php https://gitlab.com/alexprowars/bitrix | PHP | 410 lines
1<?php 2namespace Bitrix\Catalog; 373 global $USER; 374 /** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */ 375 $currentUserID = (isset($USER) && $USER instanceof \CUser ? (int)$USER->getID() : null); 379 $setField = true; 380 if (array_key_exists($index, $data)) 381 $setField = ($data[$index] !== null && (int)$data[$index] <= 0); 401 $setField = true; 402 if (array_key_exists($index, $data)) 403 $setField = ($data[$index] !== null && !is_object($data[$index]));index.php https://gitlab.com/ranjoy/AtomicProject | PHP | 153 lines
62 <h2>All Book List</h2> 63 <a href="create.php" class="btn btn-primary" role="button">Create again</a> <a href="trashed.php" class="btn btn-primary" role="button">View Trashed list</a> 64 <div id="message"> 77 <option <?php if($itemPerPage==20 ):?>selected<?php endif ?>>20</option> 78 <option <?php if($itemPerPage==25 ):?>selected<?php endif ?>>25</option> 79 108 <a href="delete.php?id=<?php echo $book->id?>" class="btn btn-danger" role="button" id="delete" Onclick="return ConfirmDelete()">Delete</a> 109 <a href="trash.php?id=<?php echo $book->id ?>" class="btn btn-info" role="button">Trash</a> 110 </td> 120 <?php if($pageNumber>1):?> 121 <li><a href="index.php?pageNumber=<?php echo $pageNumber-1?>">Prev</a></li><?php endif;?> 122 <?php echo $pagination?> 123 <?php if($pageNumber<$totalPage):?> 124 <li><a href="index.php?pageNumber=<?php echo $pageNumber+1?>">Next</a></li><?php endif;?> 125ClassMethod.php https://gitlab.com/jjpa2018/dashboard | PHP | 159 lines
1<?php declare(strict_types=1); 2 2 3namespace PhpParser\Node\Stmt; 4 4 5use PhpParser\Node; 6use PhpParser\Node\FunctionLike; 21 public $stmts; 22 /** @var Node\AttributeGroup[] PHP attribute groups */ 23 public $attrGroups; 52 * 'stmts' => array() : Statements 53 * 'attrGroups' => array() : PHP attribute groups 54 * @param array $attributes Additional attributes 63 $this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType; 64 $this->stmts = array_key_exists('stmts', $subNodes) ? $subNodes['stmts'] : []; 65 $this->attrGroups = $subNodes['attrGroups'] ?? [];ArrayStore.php https://gitlab.com/jjpa2018/dashboard | PHP | 218 lines
1<?php 2 140 { 141 if (array_key_exists($key, $this->storage)) { 142 unset($this->storage[$key]);Addon.class.php https://gitlab.com/xuebutayan/yshop | PHP | 149 lines
1<?php 2// +---------------------------------------------------------------------- 29 * 'status'=>1, 30 * 'author'=>'thinkphp', 31 * 'version'=>'0.1' 47 C('TMPL_PARSE_STRING', $TMPL_PARSE_STRING); 48 if(is_file($this->addon_path.'config.php')){ 49 $this->config_file = $this->addon_path.'config.php'; 102 foreach ($info_check_keys as $value) { 103 if(!array_key_exists($value, $this->info)) 104 return FALSE;Profiler.php https://gitlab.com/luisrepo/ClienteWS | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**Backend.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 313 lines
1<?php 2/** 86 // NOTE: at the moment we only support a predefined set of colors 87// if ((isset($properties['{http://apple.com/ns/ical/}calendar-color']) || array_key_exists('{http://apple.com/ns/ical/}calendar-color', $properties))) { 88// $color = substr($properties['{http://apple.com/ns/ical/}calendar-color'], 0, 7); 155 $transactionId = Tinebase_TransactionManager::getInstance()->startTransaction(Tinebase_Core::getDb()); 156 if ((isset($properties['{DAV:}displayname']) || array_key_exists('{DAV:}displayname', $properties))) { 157 Tinebase_Container::getInstance()->setContainerName($calendarId, $properties['{DAV:}displayname']); 160 // NOTE: at the moment we only support a predefined set of colors 161// if ((isset($properties['{http://apple.com/ns/ical/}calendar-color']) || array_key_exists('{http://apple.com/ns/ical/}calendar-color', $properties))) { 162// $color = substr($properties['{http://apple.com/ns/ical/}calendar-color'], 0, 7);Feed.php https://gitlab.com/guillaumev/alkarama | PHP | 536 lines
1<?php 2/** 44 { 45 if (array_key_exists('authors', $this->data)) { 46 return $this->data['authors']; 81 { 82 if (array_key_exists('copyright', $this->data)) { 83 return $this->data['copyright']; 109 { 110 if (array_key_exists('datecreated', $this->data)) { 111 return $this->data['datecreated']; 137 { 138 if (array_key_exists('datemodified', $this->data)) { 139 return $this->data['datemodified']; 165 { 166 if (array_key_exists('description', $this->data)) { 167 return $this->data['description'];admin_tools_user_selector.php https://gitlab.com/neuser/bitrix-core | PHP | 315 lines
38 39 if(!is_array($val) || !array_key_exists("VALUE",$val)) 40 $val = array("VALUE"=>$val, "DESCRIPTION"=>""); 42 $html .= '<tr><td>'; 43 if(array_key_exists("GetPropertyFieldHtml", $arUserType)) 44 $html .= call_user_func_array($arUserType["GetPropertyFieldHtml"], 103 $html .= '<tr><td>'; 104 if(array_key_exists("GetPropertyFieldHtml", $arUserType)) 105 $html .= call_user_func_array($arUserType["GetPropertyFieldHtml"], 159 $select = "CU"; 160 $res = "[<a title='".GetMessage("LEARNING_USER_SELECTOR_USER_PROFILE")."' href='/bitrix/admin/user_edit.php?ID=".$USER->GetID()."&lang=".LANG."'>".$USER->GetID()."</a>] (".htmlspecialcharsbx($USER->GetLogin()).") ".htmlspecialcharsbx($USER->GetFirstName())." ".htmlspecialcharsbx($USER->GetLastName()); 161 } 166 if ($arUser = $rsUsers->Fetch()) 167 $res = "[<a title='".GetMessage("LEARNING_USER_SELECTOR_USER_PROFILE")."' href='/bitrix/admin/user_edit.php?ID=".$arUser["ID"]."&lang=".LANG."'>".$arUser["ID"]."</a>] (".htmlspecialcharsbx($arUser["LOGIN"]).") ".htmlspecialcharsbx($arUser["NAME"])." ".htmlspecialcharsbx($arUser["LAST_NAME"]); 168 elseProfiler.php https://bitbucket.org/kdms/sh-magento.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 280 */ 281 #require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 #require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 #require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**IsCompressed.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 149 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: IsCompressed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25// require_once 'Zend/Validate/File/MimeType.php'; 26 102 $temp = $mimetype; 103 if (array_key_exists('magicfile', $temp)) { 104 unset($temp['magicfile']); 106 107 if (array_key_exists('headerCheck', $temp)) { 108 unset($temp['headerCheck']); 124 * Throws an error of the given type 125 * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2 126 *course.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 134 lines
1<?php 2 18 19require_once '../../../config.php'; 20require_once $CFG->dirroot.'/grade/lib.php'; 20require_once $CFG->dirroot.'/grade/lib.php'; 21require_once $CFG->libdir.'/gradelib.php'; 22 49foreach ($courseused as $oid) { 50 if (!array_key_exists($oid, $standardoutcomes) and !array_key_exists($oid, $co_custom)) { 51 delete_records('grade_outcomes_courses', 'outcomeid', $oid, 'courseid', $courseid); 72 foreach ($realused as $oid) { 73 if (array_key_exists($oid, $standardoutcomes)) { 74 104 $add = clean_param($add, PARAM_INT); 105 if (!array_key_exists($add, $standardoutcomes)) { 106 continue;Config.php https://github.com/alvarotala/phpLightMVC.git | PHP | 196 lines
1<?php 2/** 132 { 133 if (array_key_exists($name, $this->connections)) 134 return $this->connections[$name]; 145 { 146 return array_key_exists($this->default_connection,$this->connections) ? 147 $this->connections[$this->default_connection] : null;generage-wiki.php https://github.com/bhaumik25/zend-framework.git | PHP | 337 lines
1<?php 2 4 5require_once dirname(__FILE__) . '/config.php'; 6require_once dirname(__FILE__) . '/library/Confluence/Book.php'; 6require_once dirname(__FILE__) . '/library/Confluence/Book.php'; 7require_once dirname(__FILE__) . '/library/Confluence/Chapter.php'; 8 114 115 if (array_key_exists($compareKey, $compare)) { 116 echo 'existing page - updating'; 169 170 if (array_key_exists($compareKey, $compare)) { 171 echo ' existing page - updating'; 224 225 if (array_key_exists($compareKey, $compare)) { 226 echo ' existing page - updating';Profiler.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
1<?php 2/** 156 case 'model': 157 $filename = strtolower($parts['name']) . '.php'; 158 break; 235 { 236 if (array_key_exists('name', $config)) 237 { 246 // Set the model state 247 if (array_key_exists('state', $config)) 248 { 256 // Set the model dbo 257 if (array_key_exists('dbo', $config)) 258 { 266 // Set the default view search path 267 if (array_key_exists('table_path', $config)) 268 {lib.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 352 lines
1<?php 2 7 8require_once($CFG->dirroot . '/lib/portfoliolib.php'); 9require_once($CFG->dirroot . '/mnet/lib.php'); 70 $hosts = $this->get_mnet_hosts(); 71 if (!array_key_exists($this->get_config('mnethostid'), $hosts)) { 72 return PORTFOLIO_MAHARA_ERR_INVALIDHOST; 164 // send the 'content_ready' request to mahara 165 require_once($CFG->dirroot . '/mnet/xmlrpc/client.php'); 166 $client = new mnet_xmlrpc_client(); 166 $client = new mnet_xmlrpc_client(); 167 $client->set_method('portfolio/mahara/lib.php/send_content_ready'); 168 $client->add_param($this->token); 218 global $CFG; 219 return $CFG->wwwroot . '/portfolio/type/mahara/preconfig.php?id=' . $this->exporter->get('id'); 220 }lib.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 394 lines
1<?php // $Id: lib.php,v 1.55 2009/04/29 20:58:07 skodak Exp $ 2 25 26require_once($CFG->dirroot.'/lib/gradelib.php'); 27require_once($CFG->dirroot.'/grade/lib.php'); 27require_once($CFG->dirroot.'/grade/lib.php'); 28require_once($CFG->dirroot.'/grade/export/grade_export_form.php'); 29 69 foreach ($itemids as $itemid) { 70 if (array_key_exists($itemid, $this->grade_items)) { 71 $this->columns[$itemid] =& $this->grade_items[$itemid]; 98 foreach ($formdata->itemids as $itemid=>$selected) { 99 if ($selected and array_key_exists($itemid, $this->grade_items)) { 100 $this->columns[$itemid] =& $this->grade_items[$itemid]; 272 /** 273 * Returns array of parameters used by dump.php and export.php. 274 * @return arrayAmorphousModel.php https://gitlab.com/e0/X2CRM | PHP | 134 lines
1<?php 2/*********************************************************************************** 98 public function hasAttribute($name){ 99 return array_key_exists($name,$this->_attributes); 100 }hardware.php https://gitlab.com/7slayer/h-node | PHP | 567 lines
1<?php 2 58 { 59 if (array_key_exists($string,self::$translations)) 60 { 148 { 149 if (array_key_exists($type,self::$typeToController)) 150 { 157 { 158 if (array_key_exists($type,self::$typeToWorksField)) 159 { 168 $temp = array_flip(self::$typeToController); 169 if (array_key_exists($controller,$temp)) 170 { 177 { 178 if (array_key_exists($class,self::$deviceClasses)) 179 {settings_connections.php https://gitlab.com/x33n/platform | PHP | 225 lines
1<?php 2$page_data_object = new CASHConnection(AdminHelper::getPersistentData('cash_effective_user')); 43 if (!isset($_POST['dosettingsadd'])) { 44 if (array_key_exists($settings_type, $settings_types_data)) { 45 $cash_admin->page_data['state_markup'] = '<h4>' . $settings_types_data[$settings_type]['name'] . '</h4><p>' . $settings_types_data[$settings_type]['instructions'] . '</p>'; 123 $return_url = rtrim(CASHSystem::getCurrentURL(),'/') . '/finalize'; 124 // PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::getRedirectMarkup', $return_url); 125 $cash_admin->page_data['state_markup'] = $seed_name::getRedirectMarkup($return_url); 128 $_REQUEST['connections_base_uri'] = $connections_base_uri; 129 // PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::handleRedirectReturn', $_REQUEST); 130 $cash_admin->page_data['state_markup'] = $seed_name::handleRedirectReturn($_REQUEST); 199 200 if (array_key_exists($data['type'],$settings_types_data)) { 201 $cash_admin->page_data['state_markup'] .= '<p><strong>' . $settings_types_data[$data['type']]['name'] . '</strong>';IsCompressed.php https://github.com/juntarou/zend.git | PHP | 149 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: IsCompressed.php 22668 2010-07-25 14:50:46Z thomas $ 20 */ 24 */ 25require_once 'Zend/Validate/File/MimeType.php'; 26 102 $temp = $mimetype; 103 if (array_key_exists('magicfile', $temp)) { 104 unset($temp['magicfile']); 106 107 if (array_key_exists('headerCheck', $temp)) { 108 unset($temp['headerCheck']); 124 * Throws an error of the given type 125 * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2 126 *Openssl.php https://gitlab.com/jalon/doadoronline | PHP | 469 lines
1<?php 2/** 84 85 if (array_key_exists('passphrase', $options)) { 86 $this->setPassphrase($options['passphrase']); 89 90 if (array_key_exists('compression', $options)) { 91 $this->setCompression($options['compression']); 94 95 if (array_key_exists('package', $options)) { 96 $this->setPackage($options['package']);Feed.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'Config.php https://github.com/blanketCMS/zf2.git | PHP | 536 lines
1<?php 2/** 132 $result = $default; 133 if (array_key_exists($name, $this->_data)) { 134 $result = $this->_data[$name]; 211 /** 212 * Support isset() overloading on PHP 5.1 213 * 222 /** 223 * Support unset() overloading on PHP 5.1 224 * 389 foreach($merge as $key => $item) { 390 if(array_key_exists($key, $this->_data)) { 391 if($item instanceof Config && $this->$key instanceof Config) { 472 $extendedSectionCurrent = $extendedSection; 473 while (array_key_exists($extendedSectionCurrent, $this->_extends)) { 474 if ($this->_extends[$extendedSectionCurrent] == $extendingSection) {PregReplace.php https://github.com/basdog22/Qool.git | PHP | 174 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: PregReplace.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Filter/Interface.php'; 26 104 105 if (array_key_exists('match', $options)) { 106 $this->setMatchPattern($options['match']); 108 109 if (array_key_exists('replace', $options)) { 110 $this->setReplacement($options['replace']); 166 if ($this->_matchPattern == null) { 167 require_once 'Zend/Filter/Exception.php'; 168 throw new Zend_Filter_Exception(get_class($this) . ' does not have a valid MatchPattern set.');AbstractTest.php https://github.com/tanduy/zf.git | PHP | 316 lines
1<?php 2/** 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Validate_AbstractTest::main'); 27/** Test helper */ 28require_once dirname(__FILE__) . '/../../TestHelper.php'; 29 30/** Zend_Validate_Abstract */ 31require_once 'Zend/Validate/Abstract.php'; 32 33/** Zend_Translate */ 34require_once 'Zend/Translate.php'; 35 36/** Zend_Registry */ 37require_once 'Zend/Registry.php'; 38Entry.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 266 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/EntryAbstract.php'; 31 34 */ 35require_once 'Zend/Date.php'; 36 69 { 70 if (array_key_exists('authors', $this->_data)) { 71 return $this->_data['authors'];Client.php https://gitlab.com/aleritty/yaitb | PHP | 397 lines
1<?php 2namespace GuzzleHttp; 215 // conditional headers and as headers passed to a request ctor. 216 if (array_key_exists('headers', $options)) { 217 // Allows default headers to be unset. 349 if (is_array($value)) { 350 $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986); 351 }TransparentRedirect.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 323 lines
1<?php 2 251 $message = null; 252 if(array_key_exists('bt_message', $params)) { 253 $message = $params['bt_message'];RateLimitInstance.php https://gitlab.com/D-apos-software/Alcesac | PHP | 150 lines
1<?php 2 125 public function __get(string $name) { 126 if (\array_key_exists($name, $this->properties)) { 127 return $this->properties[$name];Count.php https://gitlab.com/yousafsyed/easternglamor | PHP | 251 lines
1<?php 2/** 204 { 205 if (($file !== null) && !array_key_exists('destination', $file)) { 206 $file['destination'] = dirname($value); 208 209 if (($file !== null) && array_key_exists('tmp_name', $file)) { 210 $value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name']; 239 if (is_array($file)) { 240 if (array_key_exists('name', $file)) { 241 $this->value = $file['name'];ServiceException.php https://gitlab.com/yousafsyed/easternglamor | PHP | 211 lines
1<?php 2 32 */ 33#require_once 'Zend/Gdata/Gapps/Error.php'; 34 35/** @see Zend_Xml_Security */ 36#require_once 'Zend/Xml/Security.php'; 37 88 if ($error->getErrorCode() == null) { 89 #require_once 'Zend/Gdata/App/Exception.php'; 90 throw new Zend_Gdata_App_Exception("Error encountered without corresponding error code."); 129 public function getError($errorCode) { 130 if (array_key_exists($errorCode, $this->_errors)) { 131 $result = $this->_errors[$errorCode]; 170 #require_once 'Zend/Gdata/App/Exception.php'; 171 // $php_errormsg is automatically generated by PHP if 172 // an error occurs while calling loadXML(), above.Feed.php https://bitbucket.org/simukti/zf1.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'IndexController.php https://bitbucket.org/acidel/buykoala.git | PHP | 399 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 */ 80 81 if(is_array($loginData) && array_key_exists('username', $loginData)) { 82 $data['username'] = $loginData['username'];html.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 265 lines
1<?php 2/** 228 public function __construct($uniqueItemHandle = array()) { 229 if (is_array($uniqueItemHandle) && array_key_exists('handle', $uniqueItemHandle) && !empty($uniqueItemHandle['handle'])) { 230 $this->handle = array( 231 'handle' => $uniqueItemHandle['handle'], 232 'version' => array_key_exists('version', $uniqueItemHandle) ? $uniqueItemHandle['version'] : '0', 233 );Node.php https://bitbucket.org/acidel/buykoala.git | PHP | 257 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 */ 93 { 94 return array_key_exists($key, $this->_metadata); 95 } 106 { 107 if (array_key_exists($key, $this->_metadata)) { 108 return $this->_metadata[$key]; 124 { 125 if (array_key_exists($key, $this->_metadata)) { 126 unset($this->_metadata[$key]);class.cache.driver.apc.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 596 lines
1<?php 2 4 * BP-MEDIA MEMORY CACHE - APC DRIVER 5 * Stores keys to PHP's built-in APC caching system @link http://php.net/manual/en/book.apc.php 6 * providing *server level* persistent caching that *survives a reboot*. 20 21 // VERY IMPORTANT: The following must be set in your php.ini file: 22 // ====================================================================== 23 // [PECL] 24 // extension=php_apc.dll (on XAMPP installations remove the ";" in front of it) 25 // [APC] 25 // [APC] 26 // apc.slam_defense = 0 (workaround for "cache slam error" defect in PHP's APC lib) 27 // apc.write_lock = 1 331 // NOTE: apc_store() has a different error reporting format when 332 // passed an array @see http://php.net/manual/en/function.apc-store.php 333class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
1<?php 2/** 136 // Add our menu item after the Orders tab if it exists, otherwise just add it to the end 137 if ( array_key_exists( 'orders', $menu_items ) ) { 138 $menu_items = wcs_array_insert_after( 'orders', $menu_items, 'subscriptions', $label ); 175 176 wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) ); 177 } 253 254 wp_redirect( $url ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect 255 exit();ImageToolkitOperationBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 191 lines
1<?php 2 108 if ($argument['required']) { 109 if (!array_key_exists($id, $arguments)) { 110 // If the argument is required throw an exception. 117 // want to fail fast here, i.e. at development time. 118 if (!array_key_exists('default', $argument)) { 119 // The plugin did not define a default, so throw a plugin exception, 124 // Use the default value if the argument is not passed in. 125 if (!array_key_exists($id, $arguments)) { 126 $arguments[$id] = $argument['default'];Feed.php https://bitbucket.org/ksekar/campus.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'AbstractPartialQuery.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 346 lines
1<?php 2/* 122 while ($dao->fetch()) { 123 if (!array_key_exists($dao->table_name, $tables)) { 124 $tables[$dao->table_name] = [Arr.php https://gitlab.com/leon0399/damnit-engine | PHP | 475 lines
1<?php 2 235 foreach (explode('.', $key) as $segment) { 236 if (! is_array($array) || ! array_key_exists($segment, $array)) { 237 return value($default); 258 259 if (array_key_exists($key, $array)) { 260 return true; 263 foreach (explode('.', $key) as $segment) { 264 if (! is_array($array) || ! array_key_exists($segment, $array)) { 265 return false;BigMath.php https://github.com/umbecr/camilaframework.git | PHP | 471 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 20 */ 21require_once dirname(__FILE__).'/CryptUtil.php'; 22 25 */ 26require_once dirname(__FILE__).'/../OpenID.php'; 27 39 * 40 * @param integer $long The long number (can be a normal PHP 41 * integer or a number created by one of the available long number 148 149 if (array_key_exists($rbytes, $duplicate_cache)) { 150 list($duplicate, $nbytes) = $duplicate_cache[$rbytes];ThumbBase.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 323 lines
1<?php 2/** 2/** 3 * PhpThumb Base Class Definition File 4 * 7 * PHP Version 5 with GD 2.0+ 8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com> 9 * Copyright (c) 2009, Ian Selby/Gen X Design 17 * @copyright Copyright (c) 2009 Gen X Design 18 * @link http://phpthumb.gxdlabs.com 19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 20 * @version 3.0 21 * @package PhpThumb 22 * @filesource 31 * 32 * @package PhpThumb 33 * @subpackage Corelib.php https://bitbucket.org/moodle/moodle.git | PHP | 314 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 34 35require_once("$CFG->libdir/blocklib.php"); 36 135 $positions->contextid = $usercontext->id; 136 if (array_key_exists($positions->blockinstanceid, $newblockinstanceids)) { 137 // For block instances that were defined on the default dashboard and copied to the user dashboard 221 // This may take a while. Raise the execution time limit. 222 core_php_time_limit::raise(); 223ParameterizedHeader.php https://gitlab.com/dsasmita/talita-shop | PHP | 265 lines
1<?php 2 102 103 return array_key_exists($parameter, $params) 104 ? $params[$parameter]Rss.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 329 lines
1<?php 2/** 183 $name = $data['name']; 184 if (array_key_exists('email', $data)) { 185 $name = $data['email'] . ' (' . $data['name'] . ')';RateTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 299 lines
1<?php 2/** 206 * @param array $rateClassData 207 * @SuppressWarnings(PHPMD.NPathComplexity) 208 */ 294 $this->assertTrue($result['success'] == false); 295 $this->assertTrue(!array_key_exists('result', $result)); 296 $this->assertArrayHasKey('error_message', $result);Repository.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 249 lines
1<?php 2/** 16 * Class Repository 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 182 foreach ($newValues as $newValue) { 183 if (array_key_exists('option_type_id', $newValue)) { 184 $existingValuesIds[] = $newValue['option_type_id'];Combine.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 339 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 */ 55 56 if (!array_key_exists($modelClass, self::$_conditionModels)) { 57 $model = Mage::getModel($modelClass);Type.php https://bitbucket.org/kdms/sh-magento.git | PHP | 227 lines
1<?php 2/** 184 foreach ($types as $typeId=>$typeInfo) { 185 if (array_key_exists('composite', $typeInfo) && $typeInfo['composite']) { 186 self::$_compositeTypes[] = $typeId;Invoice.php https://github.com/balupton/balphp.git | PHP | 687 lines
1<?php 2 10 * @author ##NAME## <##EMAIL##> 11 * @version SVN: $Id: Builder.php 6508 2009-10-14 06:28:49Z jwage $ 12 */ 199 $name = delve($details,'name',$column); 200 $value = array_key_exists('value',$details) ? $details['value'] : delve($Invoice,$key,''); 201Rss.php https://github.com/wangzifeng/magento-mirror.git | PHP | 532 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 19044 2009-11-19 16:44:24Z padraic $ 20 */ 24 */ 25#require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30#require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 34 */ 35#require_once 'Zend/Feed/Reader/Extension/DublinCore/Feed.php'; 36 39 */ 40#require_once 'Zend/Date.php'; 41Helpers.php https://gitlab.com/fabiorf/chat | PHP | 285 lines
1<?php 2/** 3 * This file is part of Handlebars-php 4 * Base on mustache-php https://github.com/bobthecow/mustache.php 5 * 5 * 6 * PHP version 5.3 7 * 167 { 168 return array_key_exists($name, $this->helpers); 169 }Breadcrumbs.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 181 lines
1<?php 2/** 81 * 82 * ```php 83 * [ 96 * 97 * ```php 98 * [ 106 * 107 * ```php 108 * [ 163 $encodeLabel = ArrayHelper::remove($link, 'encode', $this->encodeLabels); 164 if (array_key_exists('label', $link)) { 165 $label = $encodeLabel ? Html::encode($link['label']) : $link['label'];managedcache.php https://gitlab.com/neuser/bitrix-core | PHP | 196 lines
1<?php 2/** 50 } 51 return $this->cache_init[$uniqueId] || array_key_exists($uniqueId, $this->vars); 52 } 74 { 75 if (array_key_exists($uniqueId, $this->vars)) 76 { 170 { 171 if (array_key_exists($uniqueId, $cacheManager->vars)) 172 {store_docs_element.php https://gitlab.com/neuser/bitrix-core | PHP | 127 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/general/store_docs_element.php"); 3 88 $boolNavStartParams = (!empty($arNavStartParams) && is_array($arNavStartParams)); 89 if ($boolNavStartParams && array_key_exists('nTopCount', $arNavStartParams)) 90 {Birthday.php https://gitlab.com/Sajibcse/ATOMIC_PROJECT_SEIP143979_SAJIB_B37 | PHP | 402 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: DELL 33 { 34 if(array_key_exists('id',$data)){ 35 $this->id=$data['id']; 36 } 37 if(array_key_exists('name',$data)){ 38 $this->name=$data['name']; 40 } 41 if(array_key_exists('birthday',$data)){ 42 $this->birthday=$data['birthday']; 44 } 45 if(array_key_exists('checkbox',$data)) 46 {Feed.php https://github.com/zf/ZendFramework-Library.git | PHP | 361 lines
1<?php 2/** 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only' 142 if (iconv_strlen($key, $this->getEncoding()) > 255) { 143 require_once 'Zend/Feed/Exception.php'; 144 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'Book.php https://gitlab.com/shahriarnowshad/atomicfinal | PHP | 236 lines
1<?php 2namespace App\Bitm\SEIP129575\Book; 14 { 15 if (array_key_exists("title", $data)) { 16 $this->title = $data['title']; 17 } 18 if (array_key_exists("id", $data)) { 19 $this->id = $data['id']; 35</div>"); 36 Utility::redirect('index.php'); 37 42</div>"); 43 Utility::redirect('index.php'); 44 74</div>"); 75 Utility::redirect('index.php'); 76Abstract.php https://github.com/bhaumik25/zend-framework.git | PHP | 180 lines
1<?php 2 25 */ 26require_once 'Zend/Validate/Interface.php'; 27 140 if (!isset($this->_messageTemplates[$messageKey])) { 141 require_once 'Zend/Validate/Exception.php'; 142 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'"); 169 } 170 if (array_key_exists($property, $this->_messageVariables)) { 171 return $this->{$this->_messageVariables[$property]}; 175 */ 176 require_once 'Zend/Validate/Exception.php'; 177 throw new Zend_Validate_Exception("No property exists by the name '$property'");arr.php https://github.com/azhai2012/calf.git | PHP | 585 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 103 { 104 if (array_key_exists($path, $array)) 105 { 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies the 353 * same callback to all elements in an array, including sub-arrays. 394 * Merges one or more arrays recursively and preserves all keys. 395 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 396 *functions.php https://github.com/tremby/questionbank.git | PHP | 445 lines
1<?php 2 21function db() { 22 if (array_key_exists("db", $GLOBALS)) 23 return $GLOBALS["db"]; 150 $_SESSION["nextpage"] = $_SERVER["REQUEST_URI"]; 151 include "content/login.php"; 152 exit; 270 ?> 271 <script type="text/javascript" src="<?php echo (string) $script["src"]; ?>"></script> 272 <?php 282 ?> 283 <link rel="stylesheet" type="text/css"<?php if (isset($link["media"])) { ?> media="<?php echo (string) $link["media"]; ?>"<?php } ?> href="<?php echo (string) $link["href"]; ?>"> 284 <?php 297// also add [] to the end of the name attributes of checkboxes if it's not 298// already there so that PHP receives them back properly when posted 299function qtiengine_bodydiv_html(SimpleXMLElement $page, $divid = "qtienginebodydiv") {plugin.php https://gitlab.com/ppapadatis/Videolearn | PHP | 481 lines
1<?php 2 51 // set config 52 if (!array_key_exists('type', $config)) { 53 $config['type'] = 'standard'; 55 56 if (!array_key_exists('base_path', $config)) { 57 $config['base_path'] = WF_EDITOR_PLUGINS . '/' . $plugin; 63 64 if (!array_key_exists('view_path', $config)) { 65 $config['view_path'] = WF_EDITOR_PLUGINS . '/' . $plugin; 67 68 if (!array_key_exists('layout', $config)) { 69 $config['layout'] = 'default'; 71 72 if (!array_key_exists('template_path', $config)) { 73 $config['template_path'] = WF_EDITOR_PLUGIN . '/tmpl';ACLBasic.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 180 lines
1<?php 2/* 111 while ($dao->fetch()) { 112 if (!array_key_exists($dao->entity_id, $acl)) { 113 $acl[$dao->entity_id] = [];PdoSessionHandler.php https://bitbucket.org/gmmcal/laravel.git | PHP | 221 lines
1<?php 2 47 { 48 if (!array_key_exists('db_table', $dbOptions)) { 49 throw new \InvalidArgumentException('You must provide the "db_table" option for a PdoSessionStorage.');ConnectionManager.php https://gitlab.com/grlopez90/servipro | PHP | 270 lines
1<?php 2/** 4 * 5 * Provides an interface for loading and enumerating connections defined in app/Config/database.php 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake.Model 16 * @package Cake.Model 17 * @since CakePHP(tm) v 0.10.x.1402 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 26 * Provides an interface for loading and enumerating connections defined in 27 * app/Config/database.php 28 *