PageRenderTime 3326ms queryTime 75ms sortTime 11ms getByIdsTime 89ms findMatchingLines 185ms

100+ results results for 'php array_key_exists' (3326 ms)

Not the results you expected?
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
                    
333			
                    
                
RateLimitInstance.php git://github.com/twilio/twilio-php.git | 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];
                    
                
NoProxyPattern.php git://github.com/composer/composer.git | PHP | 435 lines
                    
1<?php
                    
2
                    
80    {
                    
81        if (!$host = parse_url($url, PHP_URL_HOST)) {
                    
82            return false;
                    
84
                    
85        $port = parse_url($url, PHP_URL_PORT);
                    
86
                    
87        if (empty($port)) {
                    
88            switch (parse_url($url, PHP_URL_SCHEME)) {
                    
89                case 'http':
                    
180    {
                    
181        if (array_key_exists($index, $this->rules)) {
                    
182            return $this->rules[$index];
                    
                
condition.php git://github.com/moodle/moodle.git | 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) {
                    
                
ErrorStack.php https://github.com/ascorbic/doctrine-tracker.git | PHP | 190 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
28 * @author      Roman Borschel <roman@code-factory.org>
                    
29 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
30 * @link        www.phpdoctrine.org
                    
131    {
                    
132        return array_key_exists($fieldName, $this->_errors);
                    
133    }
                    
                
HeadScript.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
22/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
23require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
24
                    
89     *
                    
90     * Set separator to PHP_EOL.
                    
91     *
                    
96        parent::__construct();
                    
97        $this->setSeparator(PHP_EOL);
                    
98    }
                    
203            if (1 > count($args)) {
                    
204                require_once 'Zend/View/Exception.php';
                    
205                throw new Zend_View_Exception(sprintf('Method "%s" requires at least one argument', $method));
                    
413        if (!empty($item->source)) {
                    
414              $html .= PHP_EOL . $indent . $escapeStart . PHP_EOL . $indent . $indent . $item->source . PHP_EOL . $indent . $escapeEnd . PHP_EOL . $indent;
                    
415        }
                    
                
function.mtsetvar.php https://code.google.com/p/movabletype/ | PHP | 151 lines
                    
1<?php
                    
2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
                    
5#
                    
6# $Id: function.mtsetvar.php 5225 2010-01-27 07:14:14Z takayama $
                    
7
                    
20        # replaces page layout for current page
                    
21        require_once("MTUtil.php");
                    
22        $columns = get_page_column($value);
                    
30    } else {
                    
31        if (array_key_exists('function', $args))
                    
32            $func = $args['function'];
                    
46    } else {
                    
47        if (array_key_exists('index', $args))
                    
48            $index = $args['index'];
                    
48            $index = $args['index'];
                    
49        else if (array_key_exists('key', $args))
                    
50            $key = $args['key'];
                    
                
FormFactory.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 401 lines
                    
1<?php
                    
2
                    
214
                    
215        if (!array_key_exists('data', $options)) {
                    
216            $options['data'] = $data;
                    
                
helpers.php git://github.com/eryx/php-framework-benchmark.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}
                    
                
Abstract.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 398 lines
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 14317 2009-03-13 20:39:31Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
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'");
                    
175        }
                    
176        if (array_key_exists($property, $this->_messageVariables)) {
                    
177            return $this->{$this->_messageVariables[$property]};
                    
181         */
                    
182        require_once 'Zend/Validate/Exception.php';
                    
183        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
                
tgsfMemory.php http://tgsf.googlecode.com/svn/trunk/ | PHP | 349 lines
                    
1<?php defined( 'BASEPATH' ) or die( 'Restricted' );
                    
2/*
                    
30
                    
31				if ( array_key_exists( $name, self::$instances2) )
                    
32				{
                    
56
                    
57		if ( array_key_exists( $className, self::$instances) )
                    
58		{
                    
70
                    
71		if ( array_key_exists( $className, self::$instances) )
                    
72		{
                    
339		{
                    
340			if ( array_key_exists( $class, self::$instances) === false )
                    
341			{
                    
341			{
                    
342				echo $class . " never instantiated" . PHP_EOL;
                    
343			}
                    
                
AdminModulesPositions.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 316 lines
                    
1<?php
                    
2
                    
3/**
                    
4  * Modules positions tab for admin panel, AdminModulesPositions.php
                    
5  * @category admin
                    
8  * @copyright PrestaShop
                    
9  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
                    
10  * @version 1.3
                    
13
                    
14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
                    
15
                    
141	{
                    
142		if (array_key_exists('addToHook', $_GET) OR array_key_exists('editGraft', $_GET) OR (Tools::isSubmit('submitAddToHook') AND $this->_errors))
                    
143			$this->displayForm();
                    
291				<div class="margin-form">
                    
292					<input type="text" name="exceptions" size="40" '.(!empty($excepts) ? 'value="'.$excepts.'"' : '').'><br />Ex: identity.php, history.php, order.php, product.php<br /><br />
                    
293					'.$this->l('Please specify those files in which you do not want the module to be displayed').'.<br />
                    
                
RuntimeUtil.php https://bitbucket.org/zurmo/zurmo/ | PHP | 96 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
58            $key = "$className/$upToAndNotIncludingClassName";
                    
59            if (!array_key_exists($key, RuntimeUtil::$classNamesToHierarchies))
                    
60            {
                    
                
Wsdl_1_1.php git://github.com/moyarada/XSD-to-PHP.git | PHP | 362 lines
                    
1<?php
                    
2namespace com\mikebevz\xsd2php\wsdl;
                    
3
                    
4require_once 'AbstractWsdl.php';
                    
5require_once 'IWsdl.php';
                    
101            if (count($data['params']) == 1) {
                    
102                $type = $this->common->phpTypeToSoap($data['params'][0]['type']);
                    
103                $els = array();
                    
116                foreach ($data['params'] as $input) {
                    
117                    $type = $this->common->phpTypeToSoap($input['type']);
                    
118                    if ($type === false) {
                    
129            
                    
130            if (array_key_exists('return', $data)) {
                    
131                $type = $this->common->phpTypeToSoap($data['return']['type']);
                    
                
Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
                    
1<?php
                    
2#################################################################
                    
51	public function option($sName) {
                    
52		if(array_key_exists($sName, $this->aOptions)) {
                    
53			return $this->aOptions[$sName];
                    
                
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") {
                    
                
sfYamlParser.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 537 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/sfYamlInline.class.php');
                    
12
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfYamlParser.class.php 10832 2008-08-13 07:46:08Z fabien $
                    
20 */
                    
41  /**
                    
42   * Parses a YAML string to a PHP value.
                    
43   *
                    
45   *
                    
46   * @return mixed  A PHP value
                    
47   */
                    
106            $isInPlace = substr($values['value'], 1);
                    
107            if (!array_key_exists($isInPlace, $this->refs))
                    
108            {
                    
                
LoggableCollectionTrait.php git://github.com/doctrine/mongodb.git | PHP | 348 lines
                    
1<?php
                    
2
                    
34    {
                    
35        if ( ! array_key_exists(0, $pipeline)) {
                    
36            $pipeline = func_get_args();
                    
                
IniAcl.php git://github.com/eryx/php-framework-benchmark.git | PHP | 172 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @package       Cake.Controller.Component
                    
11 * @package       Cake.Controller.Component
                    
12 * @since         CakePHP(tm) v 0.10.0.1076
                    
13 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
18 * IniAcl implements an access control system using an INI file.  An example
                    
19 * of the ini file used can be found in /config/acl.ini.php.
                    
20 *
                    
84 * Main ACL check function. Checks to see if the ARO (access request object) has access to the
                    
85 * ACO (access control object).Looks at the acl.ini.php file for permissions
                    
86 * (see instructions in /config/acl.ini.php).
                    
                
manager.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 532 lines
                    
1<?php
                    
2namespace Bitrix\MobileApp\Designer;
                    
257
                    
258		$params = array_key_exists("PARAMS", $targetConfig) ? $targetConfig["PARAMS"]: array() ;
                    
259		$imageParamList = $map->getParamsByType(ParameterType::IMAGE);
                    
269
                    
270			if (array_key_exists($key, $imageParamList))
                    
271			{
                    
278
                    
279			if (array_key_exists($key, $imageSetParamList))
                    
280			{
                    
381			File::putFileContents(
                    
382				Application::getDocumentRoot() . "/bitrix/templates/" . $templateId . "/description.php",
                    
383				str_replace(Array("#mobile_template_name#"), Array($templateId), File::getFileContents(Application::getDocumentRoot() . "/bitrix/templates/" . $templateId . "/description.php"))
                    
                
ImageToolkitOperationBase.php git://github.com/drupal/drupal.git | 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'];
                    
                
Developer.php git://github.com/ci-bonfire/Bonfire.git | PHP | 192 lines
                    
1<?php defined('BASEPATH') || exit('No direct script access allowed');
                    
2/**
                    
163        foreach ($modules as $module => &$mod) {
                    
164            if (! array_key_exists('migrations', $mod)) {
                    
165                continue;
                    
191}
                    
192/* end /migrations/controllers/developer.php */
                    
193
                    
                
__CG__FAPRODUserBundleEntityImage.php https://bitbucket.org/Seymos/mybeautybookingsf2.git | PHP | 488 lines
                    
1<?php
                    
2
                    
85                foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
                    
86                    if ( ! array_key_exists($property, $existingProperties)) {
                    
87                        $proxy->$property = $defaultValue;
                    
                
PayPalExpress.php git://github.com/infinitas/infinitas.git | PHP | 371 lines
                    
1<?php
                    
2App::uses('PayPalSocket', 'InfinitasPayments.Lib/Providers/PayPal');
                    
16			$allowNotes = !empty($request['notes']) ? false : true;
                    
17			if (array_key_exists('allow_notes', $request) && $request['allow_notes'] == false) {
                    
18				$allowNotes = false;
                    
338
                    
339			if (array_key_exists('description', $item) && $item['description']) {
                    
340				$return['L_PAYMENTREQUEST_' . $orderNumber . '_DESC' . $k] = $item['description'];
                    
341			}
                    
342			if (array_key_exists('tax', $item) && $item['tax']) {
                    
343				$return['L_PAYMENTREQUEST_' . $orderNumber . '_TAXAMT' . $k] = $item['tax'];
                    
344			}
                    
345			if (array_key_exists('url', $item) && $item['url']) {
                    
346				$return['L_PAYMENTREQUEST_' . $orderNumber . '_ITEMURL' . $k] = $item['url'];
                    
347			}
                    
348			if (array_key_exists('weight', $item) && $item['weight']) {
                    
349				$return['L_PAYMENTREQUEST_' . $orderNumber . '_ITEMWEIGHTVALUE' . $k] = $item['weight'];
                    
                
Profiler.php git://github.com/michael-romer/zf-boilerplate.git | 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            /**
                    
                
import.php http://gigcalendar3.googlecode.com/svn/trunk/ | PHP | 334 lines
                    
1<?php
                    
2// No direct access to this file
                    
7
                    
8require JPATH_ADMINISTRATOR.'/components/com_gigcal/entity_decode.php';
                    
9 
                    
125      $bandtable->reset();
                    
126      if (array_key_exists((string)$band->bandname, $this->bandlist))
                    
127      {
                    
175      $venuetable->reset();
                    
176      if (array_key_exists((string)$venue->venuename, $this->venuelist))
                    
177      {
                    
234      $name = $band_id.'|'.$venue_id.'|'.(int)$gig->gigdate;
                    
235      if (array_key_exists($name, $this->giglist))
                    
236      {
                    
                
Marketing.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 288 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
70
                    
71            if(array_key_exists('Super Admin', $this->userLevel)) {
                    
72             $where = "marketing.active = '1'";
                    
                
c3f6cb8104ad344bca2a48769776bcac6928c0359df6c8d8400dbe4a04f35044.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 239 lines
                    
1<?php
                    
2
                    
22(isset($context["app"]) ? $context["app"] : null), "request", array()), "attributes", array()), "get", array(0 => "_legacy_controller"), "method"), ((        // line 28
                    
23array_key_exists("layoutTitle", $context)) ? ((isset($context["layoutTitle"]) ? $context["layoutTitle"] : null)) : ("")), ((        // line 29
                    
24array_key_exists("layoutHeaderToolbarBtn", $context)) ? ((isset($context["layoutHeaderToolbarBtn"]) ? $context["layoutHeaderToolbarBtn"] : null)) : (array())), ((        // line 30
                    
24array_key_exists("layoutHeaderToolbarBtn", $context)) ? ((isset($context["layoutHeaderToolbarBtn"]) ? $context["layoutHeaderToolbarBtn"] : null)) : (array())), ((        // line 30
                    
25array_key_exists("layoutDisplayType", $context)) ? ((isset($context["layoutDisplayType"]) ? $context["layoutDisplayType"] : null)) : ("")), ((        // line 31
                    
26array_key_exists("showContentHeader", $context)) ? ((isset($context["showContentHeader"]) ? $context["showContentHeader"] : null)) : (true)), ((        // line 32
                    
26array_key_exists("showContentHeader", $context)) ? ((isset($context["showContentHeader"]) ? $context["showContentHeader"] : null)) : (true)), ((        // line 32
                    
27array_key_exists("headerTabContent", $context)) ? ((isset($context["headerTabContent"]) ? $context["headerTabContent"] : null)) : ("")), ((        // line 33
                    
28array_key_exists("enableSidebar", $context)) ? ((isset($context["enableSidebar"]) ? $context["enableSidebar"] : null)) : (false)), ((        // line 34
                    
28array_key_exists("enableSidebar", $context)) ? ((isset($context["enableSidebar"]) ? $context["enableSidebar"] : null)) : (false)), ((        // line 34
                    
29array_key_exists("help_link", $context)) ? ((isset($context["help_link"]) ? $context["help_link"] : null)) : ("")))), "@PrestaShop/Admin/layout.html.twig", 25);
                    
30    }
                    
                
class.OS_NetBSD.php https://bitbucket.org/jeguejunior/osvaldonogueira.git | PHP | 515 lines
                    
1<?php
                    
2
                    
58	public function getKernel() {
                    
59		return php_uname('r');
                    
60	}
                    
63	public function getHostName() {
                    
64		return php_uname('n');
                    
65	}
                    
197			// See if we successfully found a status, and use it if so
                    
198			switch (array_key_exists($net[1], $statuses) ? $statuses[$net[1]] : 'unknown') {
                    
199				case 'active':
                    
                
TableMapping.php https://bitbucket.org/aoifescanlon/shopware-vanilla-install.git | PHP | 184 lines
                    
1<?php
                    
2/**
                    
68    {
                    
69        if (!array_key_exists($table, $this->tables)) {
                    
70            throw new \Exception(sprintf('Table %s is no attribute table', $table));
                    
88    {
                    
89        if (!array_key_exists($table, $this->tables)) {
                    
90            throw new \Exception(sprintf('Table %s is no attribute table', $table));
                    
105    {
                    
106        if (!array_key_exists($table, $this->tables)) {
                    
107            return null;
                    
139    {
                    
140        return array_key_exists($table, $this->tables);
                    
141    }
                    
                
NewswireCache.php https://gitlab.com/indybay/indybay-active.git | PHP | 327 lines
                    
1<?php
                    
2
                    
133    $newswire_cache_file_name = "newswire_{$page_name}_nonlocal";
                    
134    if (array_key_exists('part_of_bulk_operation', $GLOBALS) && $GLOBALS['part_of_bulk_operation'] == 1 && count($category_list) != 0) {
                    
135      $this->markNewswireFileForRegenerateOnView($newswire_cache_file_name);
                    
150
                    
151    if (array_key_exists('part_of_bulk_operation', $GLOBALS) && $GLOBALS['part_of_bulk_operation'] == 1 && count($category_list) != 0) {
                    
152      $this->markNewswireFileForRegenerateOnView($newswire_cache_file_name);
                    
                
functions.php https://gitlab.com/getsimple-cms/i18n_link_manager.git | PHP | 433 lines
                    
1<?php if (!defined('IN_GS')) {die('you cannot load this page directly.');}
                    
2
                    
60		$categories = lm_get_categories();
                    
61		if (array_key_exists($id, $categories)) {
                    
62			$category = $categories[$id];
                    
65	}
                    
66	include(LM_TEMPLATE_PATH . 'edit_category.php');
                    
67}
                    
76	$categories = lm_get_categories();
                    
77	if (array_key_exists($id, $categories)) {
                    
78		unset($categories[$id]);
                    
202			$languages = return_i18n_languages();
                    
203		if (array_key_exists($id, $links))
                    
204			$link = $links[$id];
                    
205	}
                    
206	include(LM_TEMPLATE_PATH . 'edit_link.php');
                    
207}
                    
                
Router.php https://bitbucket.org/ondemosite/sompo.motor.git | PHP | 388 lines
                    
1<?php
                    
2
                    
131            'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
                    
132            'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
                    
133            'generator_cache_class' => 'ProjectUrlGenerator',
                    
135            'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher',
                    
136            'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
                    
137            'matcher_cache_class' => 'ProjectUrlMatcher',
                    
144        foreach ($options as $key => $value) {
                    
145            if (array_key_exists($key, $this->options)) {
                    
146                $this->options[$key] = $value;
                    
166    {
                    
167        if (!array_key_exists($key, $this->options)) {
                    
168            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
                    
184    {
                    
185        if (!array_key_exists($key, $this->options)) {
                    
186            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
                    
                
customizer.php https://bitbucket.org/Ironika/debranding.git | PHP | 124 lines
                    
1<?php
                    
2/**
                    
52            //return input if valid or return default option
                    
53            return ( array_key_exists( $input, $choices ) ? $input : $setting->default );                
                    
54             
                    
                
site.php https://bitbucket.org/rubbystar/carimod.git | PHP | 195 lines
                    
1<?php
                    
2/**
                    
109			// Create the query array.
                    
110			$url = str_replace('index.php?', '', $item->link);
                    
111			$url = str_replace('&amp;', '&', $url);
                    
182	{
                    
183		if (array_key_exists($language, $this->_default) && $this->app->isSite() && $this->app->getLanguageFilter())
                    
184		{
                    
187
                    
188		if (array_key_exists('*', $this->_default))
                    
189		{
                    
                
Call.php git://github.com/savetheinternet/Tinyboard.git | PHP | 178 lines
                    
1<?php
                    
2
                    
146
                    
147            if (array_key_exists($name, $parameters)) {
                    
148                if (array_key_exists($pos, $parameters)) {
                    
153                unset($parameters[$name]);
                    
154            } elseif (array_key_exists($pos, $parameters)) {
                    
155                $arguments[] = $parameters[$pos];
                    
                
Feed.php git://github.com/michael-romer/zf-boilerplate.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'
                    
                
questiontypebase.php git://github.com/moodle/moodle.git | PHP | 327 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once($CFG->libdir . '/questionlib.php');
                    
28require_once($CFG->dirroot . '/question/engine/lib.php');
                    
28require_once($CFG->dirroot . '/question/engine/lib.php');
                    
29require_once($CFG->dirroot . '/question/format/xml/format.php');
                    
30
                    
140
                    
141            if (array_key_exists($choice->choice_group(), $question->choices)) {
                    
142                $question->choices[$choice->choice_group()][] = $choice;
                    
                
SurveyType.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 145 lines
                    
1<?php
                    
2/*
                    
133      // set db value of filter in params if filter is non editable
                    
134      if ($this->_id && !array_key_exists('filter', $params)) {
                    
135        $params['filter'] = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'filter', 'id');
                    
                
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] = [];
                    
                
CopyableBehavior.php git://github.com/croogo/croogo.git | PHP | 416 lines
                    
1<?php
                    
2
                    
23 * @copyright Jamie Nay
                    
24 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 * @link http://github.com/jamienay/copyable_behavior
                    
181					$record[$key][$innerKey] = $this->_stripFields($Model, $innerVal);
                    
182					if (array_key_exists($val['foreignKey'], $innerVal)) {
                    
183						unset($record[$key][$innerKey][$val['foreignKey']]);
                    
274
                    
275				if (array_key_exists($val['foreignKey'], $joinVal)) {
                    
276					unset($joinInfo[$joinKey][$val['foreignKey']]);
                    
392		foreach ($this->settings[$Model->alias]['stripFields'] as $field) {
                    
393			if (array_key_exists($field, $record)) {
                    
394				unset($record[$field]);
                    
                
ViewEditTest.php git://github.com/drupal/drupal.git | PHP | 237 lines
                    
1<?php
                    
2
                    
64    $this->assertIdentical($displays['test_1']['id'], 'test_1', 'New display ID matches the display ID key.');
                    
65    $this->assertFalse(array_key_exists('attachment_1', $displays), 'Old display ID not found.');
                    
66
                    
                
GeneratePluginBase.php https://bitbucket.org/webstar1987923/mycampaignsio.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
94
                    
95        if (array_key_exists($key, $translations[$pluginName])) {
                    
96            // we do not want to overwrite any existing translations
                    
292     * @param array $whitelistFiles  If not empty, only given files/directories will be copied.
                    
293     *                               For instance array('/Controller.php', '/templates', '/templates/index.twig')
                    
294     */
                    
                
Trees.class.php https://gitlab.com/prenaud76/tuleap.git | PHP | 143 lines
                    
1<?php
                    
2/**
                    
31        $children = null;
                    
32        if (array_key_exists($nodeId, $listOfNodes)) {
                    
33            foreach ($listOfNodes[$nodeId] as $child) {
                    
95            foreach ($array1['children'] as $name1 => $node1) {
                    
96                if (isset($array2['children']) && array_key_exists($name1, $array2['children'])) {
                    
97                    $res['children'][$name1] = self::mergeTagRec($array1['children'][$name1], $array2['children'][$name1]);
                    
                
cfcm.php git://github.com/imagecms/ImageCMS.git | PHP | 391 lines
                    
1<?php
                    
2
                    
57                        foreach (array_keys($fields) as $name) {
                    
58                            if (!array_key_exists($name, $data)) {
                    
59                                $this->db->where('item_id', $item_id);
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
103        if (!empty($__data__['scopedItems'])) {
                    
104            if (array_key_exists('__data__', $__data__['scopedItems'])) {
                    
105                throw new \Exception(t(/*i18n: %1$s is a variable name, %2$s is a function name*/'Illegal variable name \'%1$s\' in %2$s args.', '__data__', __CLASS__.'::'.__METHOD__));
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
my_birthday_widget.php https://bitbucket.org/Noelfhim/no_ftp | PHP | 115 lines
                    
1<?php
                    
2
                    
73
                    
74        if ( (!$isComingSoon && !$params->customizeMode) || !array_key_exists('birthdate', $data[$user->getId()]) )
                    
75        {
                    
                
ProxyEntityWriter.php https://bitbucket.org/sebastian-bogado/crm.git | PHP | 146 lines
                    
1<?php
                    
2
                    
125    {
                    
126        if ($identifier && array_key_exists($identifier, $uniqueItems)) {
                    
127            $this->logSkipped($identifier);
                    
                
QuickAccess.php https://bitbucket.org/fanch1/testlb.git | PHP | 137 lines
                    
1<?php
                    
2/**
                    
126    {
                    
127        if (!array_key_exists('new_window', $this)) {
                    
128            throw new PrestaShopException('property "new_window" is missing in object '.get_class($this));
                    
                
SyncMapItemInstance.php https://bitbucket.org/zacbelldev/admin-portal-under-construction.git | PHP | 150 lines
                    
1<?php
                    
2
                    
125    public function __get($name) {
                    
126        if (array_key_exists($name, $this->properties)) {
                    
127            return $this->properties[$name];
                    
                
Fill.php git://github.com/moodle/moodle.git | PHP | 323 lines
                    
23 * @package    PHPExcel_Style
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
27 */
                    
28class PHPExcel_Style_Fill extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
                    
29{
                    
100        $this->startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional);
                    
101        $this->endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
102
                    
159            } else {
                    
160                if (array_key_exists('type', $pStyles)) {
                    
161                    $this->setFillType($pStyles['type']);
                    
168                }
                    
169                if (array_key_exists('endcolor', $pStyles)) {
                    
170                    $this->getEndColor()->applyFromArray($pStyles['endcolor']);
                    
                
content.sets.php https://github.com/carsten/globalparamloader.git | PHP | 455 lines
                    
1<?php
                    
2
                    
2
                    
3	require_once(TOOLKIT . '/class.administrationpage.php');
                    
4	
                    
48		public function __actionEdit() {
                    
49			if (@array_key_exists('delete', $_POST['action'])) {
                    
50				$this->__actionEditDelete();
                    
                
BaseNpinteresesprestaciones.php https://github.com/cidesa/roraima.git | PHP | 559 lines
                    
1<?php
                    
2
                    
380	
                    
381	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
382	{
                    
417	
                    
418	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
419	{
                    
433	
                    
434	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
435	{
                    
467	
                    
468	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
                    
469	{
                    
471
                    
472		if (array_key_exists($keys[0], $arr)) $this->setCodnom($arr[$keys[0]]);
                    
473		if (array_key_exists($keys[1], $arr)) $this->setCodemp($arr[$keys[1]]);
                    
                
class.CachedThumbnail.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 237 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
20*/
                    
21require_once 'class.Thumbnail.inc.php';
                    
22require_once 'class.PictureCache.inc.php';
                    
29*
                    
30* Tested with Apache 1.3.27 and PHP 4.3.3
                    
31* Last change: 2003-09-25
                    
37* @package Thumbnail
                    
38* @example sample_thumb.php Sample script
                    
39* @version 1.001
                    
146		    $ct = array(1 => 'gif', 2 => 'jpeg', 3 => 'png', 15 => 'vnd.wap.wbmp');
                    
147		    if (array_key_exists($this->thumbnail_type, $ct)) {
                    
148		    	header('Content-type: image/' . $ct[$this->thumbnail_type]);
                    
                
store_docs_element.php https://bitbucket.org/webrise-corp/bullofarmbitrix.git | 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		{
                    
                
Borders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 547 lines
                    
29/** PHPExcel_Style_Border */
                    
30require_once 'PHPExcel/Style/Border.php';
                    
31
                    
32/** PHPExcel_IComparable */
                    
33require_once 'PHPExcel/IComparable.php';
                    
34
                    
40 * @package    PHPExcel_Style
                    
41 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
42 */
                    
42 */
                    
43class PHPExcel_Style_Borders implements PHPExcel_IComparable
                    
44{
                    
170     *
                    
171     * Returns the PHPExcel_Style_Borders that is actual bound to PHPExcel_Style
                    
172	 *
                    
                
DriverTest.php git://github.com/doctrine/dbal.git | PHP | 113 lines
                    
1<?php
                    
2
                    
9use Doctrine\Tests\TestUtil;
                    
10use function array_key_exists;
                    
11use function extension_loaded;
                    
91            // The query column is named "current_query" on PostgreSQL < 9.2
                    
92            $queryColumnName = array_key_exists('current_query', $record) ? 'current_query' : 'query';
                    
93
                    
                
ModuleImplementsAlterTest.php git://github.com/drupal/drupal.git | PHP | 92 lines
                    
1<?php
                    
2
                    
44
                    
45    $this->assertTrue(array_key_exists('module_test', \Drupal::moduleHandler()->getModuleList()),
                    
46      'module_test is in the module list.');
                    
                
Borders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 494 lines
                    
22 * @package    PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
29/** PHPExcel_Style_Border */
                    
30require_once 'PHPExcel/Style/Border.php';
                    
31
                    
32/** PHPExcel_IComparable */
                    
33require_once 'PHPExcel/IComparable.php';
                    
34
                    
40 * @package    PHPExcel_Style
                    
41 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
42 */
                    
42 */
                    
43class PHPExcel_Style_Borders implements PHPExcel_IComparable
                    
44{
                    
                
regsetup.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 189 lines
                    
2
                    
3	require_once('core/kregistry.class.php');
                    
4
                    
8//+	NOTE: expects 'pass' value in GET, matching recovery password, will also accept 'reload' value
                    
9//+	to reload setup.inc.php, and 'set' to set values.
                    
10//+	
                    
22
                    
23	if ((true == array_key_exists('action', $_POST)) && ('logout' == $_POST['action'])) {
                    
24		$_SESSION['regsetup_pass'] = '';
                    
26
                    
27	if ((true == array_key_exists('action', $_POST)) && ('login' == $_POST['action'])) {
                    
28		if (true == array_key_exists('pass', $_POST)) { $userPass = $_POST['pass']; }
                    
31
                    
32	if (true == array_key_exists('regsetup_pass', $_SESSION)) { 
                    
33		$userPass = $_SESSION['regsetup_pass']; 
                    
                
comments.php https://github.com/devimplode/guilddkp.git | PHP | 96 lines
                    
1<?php
                    
2	define('loadet', true);
                    
3	define('api', true);
                    
4	require_once(dirname(__FILE__).'/common.php');
                    
5
                    
87
                    
88			if(array_key_exists('data', $comm))
                    
89				$json=array('li'=>$last_id, 'e'=>0,'d'=>$comm['data']);
                    
                
course_section.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-dev/ | PHP | 254 lines
                    
1<?php
                    
2namespace application\weblcms;
                    
87    {
                    
88	if(!array_key_exists($type, self :: $type_name_mapping))
                    
89	{
                    
                
PopulateDatabases.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 408 lines
                    
1<?php
                    
2
                    
9	 * @license http://www.gnu.org/licenses/
                    
10	 * @version $Id: PopulateDatabases.php 1515 2010-11-25 13:55:26Z helix84@centrum.sk $
                    
11	 * @package Xerxes
                    
250						
                    
251						if ( array_key_exists($objData->metalib_id, $arrDatabases) )
                    
252						{
                    
382		
                    
383	   	/* We need to register a straight function for the XSL to call with php:function. Sorry. */
                    
384   
                    
                
page-es.tpl.php https://gitlab.com/mikamai/ayjoy.git | PHP | 144 lines
                    
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
                    
4  <head>
                    
4  <head>
                    
5    <title>Venta de integradores, Venta de integradores en línea | Integradores alimentarios <?php print $head_title ?> </title>
                    
6 	<meta name="description" content="Venta de integradores alimentarios en línea AYJOY- Descubre los beneficios de la fitoterapia para tu bienestar natural – Integradores en línea" />
                    
8	<meta name="robots" content="index,follow" />
                    
9   <? //php print $head ?>
                    
10    <?php print $styles ?>
                    
10    <?php print $styles ?>
                    
11    <?php print $scripts ?>
                    
12    <!--[if lte IE 6]>
                    
12    <!--[if lte IE 6]>
                    
13      <link rel="stylesheet" href="<?php print base_path() . path_to_theme() ?>/css/ie6.css" type="text/css" media="screen"/>
                    
14    <![endif]-->
                    
                
getmessages.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 90 lines
                    
2
                    
3	require_once($kapenta->installPath . 'modules/live/models/mailbox.mod.php');
                    
4
                    
47	
                    
48	if  (true == array_key_exists('chatsince', $_POST)) {
                    
49		//------------------------------------------------------------------------------------------
                    
                
statisticsGraphicsController.php http://qnet-ua2011.googlecode.com/svn/trunk/ | PHP | 297 lines
                    
1<?php
                    
2
                    
3namespace Qnet\Controller;
                    
4require_once dirname(__FILE__) . '\..\util.php';
                    
5require_dao('queryDAO');
                    
234    private function hasX() { // or has U and V.
                    
235        return array_key_exists('x', $this->varAxisMap);
                    
236    }
                    
238    public function hasZ() { // or not.
                    
239        return array_key_exists('z', $this->varAxisMap);
                    
240    }
                    
                
SilvercartGroupViewHandler.php https://bitbucket.org/silvercart/silvercart/ | PHP | 355 lines
                    
1<?php
                    
2/**
                    
51     * a list of removed group view types. It is implemented to provide the
                    
52     * configuration example in _config.php of silvercart.
                    
53     *
                    
59     * a list of removed group view types. It is implemented to provide the
                    
60     * configuration example in _config.php of silvercart.
                    
61     *
                    
237    public static function setGroupView($groupView) {
                    
238        if (array_key_exists($groupView, self::$groupViews)) {
                    
239            Session::set('SilvercartGroupView', $groupView);
                    
255    public static function setGroupHolderView($groupHolderView) {
                    
256        if (array_key_exists($groupHolderView, self::$groupHolderViews)) {
                    
257            Session::set('SilvercartGroupHolderView', $groupHolderView);
                    
287    public static function getGroupView($code) {
                    
288        if (array_key_exists($code, self::$groupViews)) {
                    
289            return self::$groupViews[$code];
                    
                
Fill.php https://PHPExcel.svn.codeplex.com/svn | PHP | 417 lines
                    
37/** PHPExcel_Style_Color */
                    
38require_once PHPEXCEL_ROOT . 'PHPExcel/Style/Color.php';
                    
39
                    
40/** PHPExcel_IComparable */
                    
41require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php';
                    
42
                    
48 * @package    PHPExcel_Style
                    
49 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
50 */
                    
50 */
                    
51class PHPExcel_Style_Fill implements PHPExcel_IComparable
                    
52{
                    
136		$this->_startColor			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor);
                    
137		$this->_endColor			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
138
                    
                
ExportYaml.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 224 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Plugins\Export;
                    
9
                    
9
                    
10use PhpMyAdmin\DatabaseInterface;
                    
11use PhpMyAdmin\FieldMetadata;
                    
11use PhpMyAdmin\FieldMetadata;
                    
12use PhpMyAdmin\Plugins\ExportPlugin;
                    
13use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
13use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
14use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
15use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
15use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
16use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
                    
17
                    
                
MenuManagerComponent.php git://github.com/yandod/candycane.git | PHP | 162 lines
                    
1<?php
                    
2class MenuManagerComponent extends Component
                    
60    $actions = $this->controller->params['action'];
                    
61    if (array_key_exists('only', $options)) {
                    
62      $actions = $options['only'];
                    
97  		}
                    
98      if (array_key_exists('params', $val)) {
                    
99        $params = $val['params'];
                    
103        foreach ($params as $param) {
                    
104          if (array_key_exists($param, $this->controller->request->params)) {
                    
105            $val[$param] = $this->controller->request->params[$param];
                    
                
sfNamespacedParameterHolder.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 400 lines
                    
1<?php
                    
2
                    
22 * @author     Sean Kerr <sean@code-box.org>
                    
23 * @version    SVN: $Id: sfNamespacedParameterHolder.class.php 9051 2008-05-19 11:43:00Z FabianLange $
                    
24 */
                    
34   * <code>
                    
35   * <?php
                    
36   * $mySpecialPH = new sfNamespacedParameterHolder('symfony/special');
                    
236
                    
237    if (isset($this->parameters[$ns]) && array_key_exists($name, $this->parameters[$ns]))
                    
238    {
                    
                
all.php http://showslow.googlecode.com/svn/trunk/ | PHP | 247 lines
                    
46		} else {
                    
47			?><li><a href="<?php echo $showslow_base.'all.php?'.(is_null($searchstring) ? '' : 'search='.urlencode(trim($_GET['search'])).'&').'group='.$id; ?>"><?php echo $group['title']?></a></li><?php
                    
48		}
                    
204		<td class="score" title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)</td>
                    
205		<td title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><div class="gbox"><div style="width: <?php echo $row['o']+1?>px" class="bar c<?php echo scoreColorStep($row['o'])?>"/></div></td>
                    
206	<?php }?>
                    
213		<td class="score" title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)</td>
                    
214		<td title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><div class="gbox"><div style="width: <?php echo $row['ps_o']+1?>px" class="bar c<?php echo scoreColorStep($row['ps_o'])?>"/></div></td>
                    
215	<?php }?>
                    
222		<td class="score" title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)</td>
                    
223		<td title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><div class="gbox"><div style="width: <?php echo $row['dt_o']+1?>px" class="bar c<?php echo scoreColorStep($row['dt_o'])?>"/></div></td>
                    
224	<?php }?>
                    
225
                    
226	<td class="url"><a href="details/?url=<?php echo urlencode($row['url'])?>"><?php echo htmlentities(substr($row['url'], 0, 100))?><?php if (strlen($row['url']) > 100) { ?>...<?php } ?></a></td>
                    
227	</tr><?php
                    
                
Google_WPIO.php https://gitlab.com/f3z0/tc-site.git | PHP | 166 lines
                    
1<?php
                    
2/*
                    
62
                    
63		if ( array_key_exists( $request->getRequestMethod(),
                    
64			self::$ENTITY_HTTP_METHODS ) ) {
                    
                
class-foogallery-cache.php https://bitbucket.org/hinzanhilmy/hinzan-sample-works.git | PHP | 232 lines
                    
1<?php
                    
2/**
                    
100                //never cache if showing a preview
                    
101                if ( array_key_exists( 'preview', $current_foogallery_arguments ) &&
                    
102                    true === $current_foogallery_arguments['preview'] ) {
                    
198				<div id="foogallery_clear_html_cache_container">
                    
199					<input type="button" data-nonce="<?php echo esc_attr( wp_create_nonce( 'foogallery_clear_html_cache' ) ); ?>" class="button-primary foogallery_clear_html_cache" value="<?php _e( 'Clear Gallery HTML Cache', 'foogallery' ); ?>">
                    
200					<span id="foogallery_clear_html_cache_spinner" style="position: absolute" class="spinner"></span>
                    
201				</div>
                    
202			<?php }
                    
203		}
                    
                
EntityReferenceTimerVisibilityService.php https://bitbucket.org/publicplan/degov.git | PHP | 166 lines
                    
1<?php
                    
2
                    
162  private function timedDisplayFieldsPresent($fields): bool {
                    
163    return \array_key_exists('start_date', $fields) && \array_key_exists('end_date', $fields);
                    
164  }
                    
                
commandLine.inc https://code.google.com/p/alfresco-php-sdk/ | PHP | 246 lines
                    
1<?php
                    
2/**
                    
11# Abort if called from a web server
                    
12if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
                    
13	print "This script must be run from the command line\n";
                    
16
                    
17if( version_compare( PHP_VERSION, '5.0.0' ) < 0 ) {
                    
18	print "Sorry! This version of MediaWiki requires PHP 5; you are running " .
                    
18	print "Sorry! This version of MediaWiki requires PHP 5; you are running " .
                    
19		PHP_VERSION . ".\n\n" .
                    
20		"If you are sure you already have PHP 5 installed, it may be " .
                    
21		"installed\n" .
                    
22		"in a different path from PHP 4. Check with your system administrator.\n";
                    
23	die( -1 );
                    
36}
                    
37$optionsWithArgs[] = 'conf'; # For specifying the location of LocalSettings.php
                    
38
                    
                
SMW_SparqlResultParser.php https://github.com/wiki-data/wiki-data.git | PHP | 153 lines
                    
1<?php
                    
2/**
                    
100		if ( ( $tagName == 'binding' ) && ( $prevTag == 'result' ) ) {
                    
101			if ( ( array_key_exists( 'name', $attributes ) ) &&
                    
102			     ( array_key_exists( $attributes['name'], $this->m_header ) ) ) {
                    
111		} elseif ( ( $tagName == 'literal' ) && ( $prevTag == 'binding' ) ) {
                    
112			if ( array_key_exists( 'datatype', $attributes ) ) {
                    
113				$this->m_xml_datatype = $attributes['datatype'];
                    
118		} elseif ( ( $tagName == 'variable' ) && ( $prevTag == 'head' ) ) {
                    
119			if ( array_key_exists( 'name', $attributes ) ) {
                    
120				$this->m_header[$attributes['name']] = count( $this->m_header );
                    
                
TranslationService.php https://bitbucket.org/fanch1/testlb.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
186                'default' => $key,
                    
187                'xliff' => (array_key_exists($key, (array)$xliffCatalog) ? $xliffCatalog[$key] : null),
                    
188                'database' => (array_key_exists($key, (array)$dbCatalog) ? $dbCatalog[$key] : null),
                    
                
92f61c6acb554399b6ce070e5fad34a3e99b12d7208bcd6c9d5e69c9800efb5d.php https://bitbucket.org/sicomore/next-op-exercise.git | PHP | 266 lines
                    
1<?php
                    
2
                    
96            // line 9
                    
97            if (( !array_key_exists("expanded", $context) ||  !(isset($context["expanded"]) ? $context["expanded"] : null))) {
                    
98                // line 10
                    
118        // line 24
                    
119        if ((array_key_exists("expanded", $context) && (isset($context["expanded"]) ? $context["expanded"] : null))) {
                    
120            // line 25
                    
124            echo "<div class=\"form-group row";
                    
125            if ((( !(isset($context["compound"]) ? $context["compound"] : null) || ((array_key_exists("force_error", $context)) ? (_twig_default_filter((isset($context["force_error"]) ? $context["force_error"] : null), false)) : (false))) &&  !(isset($context["valid"]) ? $context["valid"] : null))) {
                    
126                echo " is-invalid";
                    
151        // line 38
                    
152        if ((( !(isset($context["compound"]) ? $context["compound"] : null) || ((array_key_exists("force_error", $context)) ? (_twig_default_filter((isset($context["force_error"]) ? $context["force_error"] : null), false)) : (false))) &&  !(isset($context["valid"]) ? $context["valid"] : null))) {
                    
153            echo " is-invalid";
                    
                
MultipleAttr.php http://simplesamlphp-labs.googlecode.com/svn/trunk/ | PHP | 203 lines
                    
1<?php
                    
2
                    
55			if ($certArray === NULL) throw new Exception('No certificates found. [1]');
                    
56			if (!array_key_exists('PEM', $certArray)) throw new Exception('No certificates found. [2]');
                    
57
                    
146			if ($certArray === NULL) throw new Exception('No certificates found. [1]');
                    
147			if (!array_key_exists('PEM', $certArray)) throw new Exception('No certificates found. [2]');
                    
148
                    
                
arr.php git://github.com/gallery/gallery3-contrib.git | PHP | 275 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: arr.php 4680 2009-11-10 01:57:00Z isaiah $
                    
6 *
                    
9 * @copyright  (c) 2007-2009 Kohana Team
                    
10 * @license    http://kohanaphp.com/license
                    
11 */
                    
77	{
                    
78		if ( ! array_key_exists($key, $array))
                    
79			return NULL;
                    
124	/**
                    
125	 * Because PHP does not have this function.
                    
126	 *
                    
141	/**
                    
142	 * Because PHP does not have this function, and array_walk_recursive creates
                    
143	 * references in arrays and is not truly recursive.
                    
                
ParseCommand.php https://bitbucket.org/acarolinepassos/tumblr-pando.git | PHP | 160 lines
                    
1<?php
                    
2
                    
13
                    
14use PhpParser\Node;
                    
15use PhpParser\Parser;
                    
26/**
                    
27 * Parse PHP code and show the abstract syntax tree.
                    
28 */
                    
54        $this->presenter->addCasters(array(
                    
55            'PhpParser\Node' => function (Node $node, array $a) {
                    
56                $a = array(
                    
75        $definition = array(
                    
76            new CodeArgument('code', InputArgument::REQUIRED, 'PHP code to parse.'),
                    
77            new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse', 10),
                    
80        if ($this->parserFactory->hasKindsSupport()) {
                    
81            $msg = 'One of PhpParser\\ParserFactory constants: '
                    
82                . implode(', ', ParserFactory::getPossibleKinds())
                    
                
ajax.php https://github.com/andreev-artem/moodle.git | PHP | 113 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30
                    
31require('../config.php');
                    
32require_once("$CFG->dirroot/enrol/locallib.php");
                    
32require_once("$CFG->dirroot/enrol/locallib.php");
                    
33require_once("$CFG->dirroot/enrol/renderer.php");
                    
34require_once("$CFG->dirroot/group/lib.php");
                    
39
                    
40$PAGE->set_url(new moodle_url('/enrol/ajax.php', array('id'=>$id, 'action'=>$action)));
                    
41
                    
79        $roleid = required_param('roleid', PARAM_INT);
                    
80        if (!array_key_exists($roleid, $manager->get_assignable_roles())) {
                    
81            throw new enrol_ajax_exception('invalidrole');
                    
                
listtempfiles.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 147 lines
                    
19
                    
20	if ((true == array_key_exists('action', $_POST)) && ('deleteAll' == $_POST['action'])) {
                    
21		$raw = '';
                    
21		$raw = '';
                    
22		if (true == array_key_exists('junkList', $_POST)) { $raw = $_POST['junkList']; }
                    
23		$raw = str_replace("\r", "\n", $raw);
                    
141	//----------------------------------------------------------------------------------------------
                    
142	$page->load('modules/admin/actions/listtempfiles.page.php');
                    
143	$page->blockArgs['fileList'] = $fileList;
                    
                
daemon.php https://code.google.com/p/overwatch/ | PHP | 130 lines
                    
1<?php abstract class Daemon implements iExtensionsRequired, iReconfigurable, iSignalHandler {
                    
2	protected static $Detached = FALSE;
                    
52	public static function Reconfigure (array $Config) {
                    
53		if (array_key_exists ('sleep', $Config)) {
                    
54			Out::I (Msg::ConfigGot, 'sleep', $Sleep = $Config ['sleep']);
                    
59		// try to change user and group
                    
60		if (array_key_exists ('user', $Config) and strlen ($UID = $Config ['user'])) {
                    
61			Out::I (Msg::ConfigGot, 'user', $UID);
                    
63			$UID = ($UID !== (string) (int) $UID) ? posix_getpwnam ($UID) : posix_getpwuid ((int) $UID);
                    
64			if (array_key_exists ('group', $Config) and strlen ($GID = $Config ['group'])) {
                    
65				Out::I (Msg::ConfigGot, 'group', $GID);
                    
100		Out::I (Msg::SigCaught, $Sig);
                    
101		if (array_key_exists ($Sig, self::$SigMap)) {
                    
102			foreach (self::$SigMap [$Sig] as $Class) {
                    
                
Bootstrap.php git://github.com/johmue/mysql-workbench-schema-exporter.git | PHP | 300 lines
                    
1<?php
                    
2
                    
124        $formatters = $this->getFormatters();
                    
125        if (!array_key_exists($name, $formatters)) {
                    
126            list($module, $exporter) = explode('-', $name, 2);
                    
236        $name = strtolower(is_array($name) ? implode('-', $name) : $name);
                    
237        if (array_key_exists($name, static::$formatters)) {
                    
238            throw new \RuntimeException(sprintf('Formatter %s already registered.', $class));
                    
248     * Try to guess if schema formatter (or exporter) is present in the specified directory
                    
249     * which is named according to convention: MwbExporter\Formatter\*\*\Formatter.php.
                    
250     *
                    
263            if (is_dir($dir)) {
                    
264                $parts = array('*', '*', 'Formatter.php');
                    
265                if (null == $namespace) {
                    
                
Manager.php git://github.com/openid/php-openid.git | PHP | 572 lines
                    
1<?php
                    
2
                    
11 * The base session class used by the Auth_Yadis_Manager.  This
                    
12 * class wraps the default PHP session machinery and should be
                    
13 * subclassed if your application doesn't use PHP sessioning.
                    
16 */
                    
17class Auth_Yadis_PHPSession {
                    
18    /**
                    
39    {
                    
40        if (isset($_SESSION) && array_key_exists($name, $_SESSION)) {
                    
41            return $_SESSION[$name];
                    
111        foreach ($required as $k) {
                    
112            if (!array_key_exists($k, $data)) {
                    
113                return null;
                    
334
                    
335        // Stale flag for cleanup if PHP lib has trouble.
                    
336        $this->stale = false;
                    
                
Feed.php https://bitbucket.org/razum-io/ns-hub.git | 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'];
                    
                
GeneratedQueryDoSelectTest.php git://github.com/propelorm/Propel2.git | PHP | 427 lines
                    
1<?php
                    
2
                    
142        $obj2 = $joinBooks[0];
                    
143        $obj2Array = $obj2->toArray(TableMap::TYPE_PHPNAME, true, [], true);
                    
144        // $joinSize = strlen(serialize($obj2));
                    
149
                    
150        $this->assertTrue(array_key_exists('Author', $obj2Array));
                    
151    }
                    
263     *
                    
264     * @link http://propel.phpdb.org/trac/ticket/464
                    
265     *
                    
297     *
                    
298     * @link http://propel.phpdb.org/trac/ticket/606
                    
299     *
                    
339     *
                    
340     * @link http://propel.phpdb.org/trac/ticket/606
                    
341     *
                    
                
AbstractMigration.php git://github.com/concrete5/concrete5.git | PHP | 243 lines
                    
1<?php
                    
2
                    
223            }
                    
224            if (array_key_exists('cDescription', $attributes)) {
                    
225                $description = (string) $attributes['cDescription'];
                    
                
lib.php https://github.com/cwaclawik/moodle.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    }
                    
                
videozer_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 252 lines
                    
1<?php
                    
2
                    
13
                    
14		$page = $this->GetPage(str_replace('videozer.com/video/', 'videozer.com/player_control/settings.php?v=', $link));
                    
15		is_notpresent ($page, "you still have quota left", "Error: Still have quota left?");
                    
29				$qs = trim($_REQUEST['vzr_qs']);
                    
30				if (array_key_exists($qs, $stream)) {
                    
31					$dllink = $stream[$qs][1];
                    
42			} else {
                    
43				global $PHP_SELF;
                    
44
                    
45				echo "\n<br /><br /><h3 style='text-align: center;'>This video have more than 1 stream, please select one for download.</h4>";
                    
46				echo "\n<br /><center><form name='dl' action='$PHP_SELF' method='post'>\n";
                    
47				echo "<select name='vzr_qs' id='vzr_qs'>\n";
                    
79	private function Get_Reply($page) {
                    
80		if (!function_exists('json_decode')) html_error("Error: Please enable JSON in php.");
                    
81		$json = substr($page, strpos($page,"\r\n\r\n") + 4);
                    
                
server.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 441 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
5$SOAR_DIR="../../../../..";
                    
6include "$SOAR_DIR/common/php/soar/soar.inc";
                    
7
                    
186            $response=$ins->call($request['paras']);
                    
187            if(array_key_exists($svc, stat::$svc))
                    
188                ++stat::$svc[$svc];
                    
267        {
                    
268            if(array_key_exists($active['addr'], stat::$client))
                    
269                unset(stat::$client[$active['addr']]);
                    
                
Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 525 lines
                    
32/** PHPExcel_IComparable */
                    
33require_once 'PHPExcel/IComparable.php';
                    
34
                    
42 */
                    
43class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
44{
                    
136		$this->_strikethrough		= false;
                    
137		$this->_color				= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
                    
138    }
                    
158     *
                    
159     * Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style
                    
160	 *
                    
175     *
                    
176     * If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one.
                    
177	 *
                    
                
view.php http://webpagetest.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php
                    
2chdir('..');
                    
3include 'common.inc';
                    
4include './benchmarks/data.inc.php';
                    
5$page_keywords = array('Benchmarks','Webpagetest','Website Speed Test','Page Speed');
                    
7$aggregate = 'median';
                    
8if (array_key_exists('aggregate', $_REQUEST))
                    
9    $aggregate = $_REQUEST['aggregate'];
                    
10$benchmark = '';
                    
11if (array_key_exists('benchmark', $_REQUEST)) {
                    
12    $benchmark = $_REQUEST['benchmark'];
                    
14}
                    
15if (array_key_exists('f', $_REQUEST)) {
                    
16    $out_data = array();
                    
26        <meta name="author" content="Patrick Meenan">
                    
27        <?php $gaTemplate = 'About'; include ('head.inc'); ?>
                    
28        <script type="text/javascript" src="/js/dygraph-combined.js"></script>
                    
                
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 array
                    
                
data.php https://github.com/carlosefonseca/ER-client-webapp.git | PHP | 139 lines
                    
21//GET GARDENS
                    
22require_once("../common/DBconnect.php");
                    
23$q = "SELECT id, name, status FROM jardins WHERE client = '$client' ".getUserGardens(true)." ORDER BY id";
                    
52	$id=$r["id"]; $jId="j".$id;
                    
53	if (!array_key_exists("j".$id, $data["status"])) {
                    
54		continue;
                    
111			
                    
112			if (array_key_exists("total",$data["mmT1"])) { $mmT1Total = $data["mmT1"]["total"]; } else { $mmT1Total = ""; }
                    
113			?>
                    
                
e6b42366447243d1c09c6ec812cc29e02e167a8a413b8049e1ee3257aa8c1109.php https://bitbucket.org/sicomore/next-op-exercise.git | PHP | 186 lines
                    
65            echo "<span class=\"trace-method\">";
                    
66            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "function", array()), "html", null, true);
                    
67            echo "</span><span class=\"trace-arguments\">(";
                    
81            echo "        ";
                    
82            $context["file_link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 13, $this->source); })()), "file", array()), (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 13, $this->source); })()));
                    
83            // line 14
                    
84            echo "        ";
                    
85            $context["file_path"] = twig_replace_filter(strip_tags($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatFile(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 14, $this->source); })()), "file", array()), (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 14, $this->source); })()))), array((" at line " . (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 14, $this->source); })())) => ""));
                    
86            // line 15
                    
115            echo "    <div id=\"trace-html-";
                    
116            echo twig_escape_filter($this->env, (((isset($context["prefix"]) || array_key_exists("prefix", $context) ? $context["prefix"] : (function () { throw new Twig_Error_Runtime('Variable "prefix" does not exist.', 25, $this->source); })()) . "-") . (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new Twig_Error_Runtime('Variable "i" does not exist.', 25, $this->source); })())), "html", null, true);
                    
117            echo "\" class=\"trace-code sf-toggle-content\">
                    
119            // line 26
                    
120            echo twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 26, $this->source); })()), "file", array()), twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 26, $this->source); })()), "line", array()), 5), array("#DD0000" => "#183691", "#007700" => "#a71d5d", "#0000BB" => "#222222", "#FF8000" => "#969896"));
                    
121            // line 31
                    
                
Route.php https://bitbucket.org/awylie199/s5t.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
160                // Path is longer than a route, it's not a match
                    
161                if (!array_key_exists($pos, $this->_parts)) {
                    
162                    if ($partial) {
                    
231        foreach ($this->_variables as $var) {
                    
232            if (!array_key_exists($var, $return)) {
                    
233                return false;
                    
263            $useDefault = false;
                    
264            if (isset($name) && array_key_exists($name, $data) && $data[$name] === null) {
                    
265                $useDefault = true;
                    
275                    $value = $this->_wildcardData[$name];
                    
276                } elseif (array_key_exists($name, $this->_defaults)) {
                    
277                    $value = $this->_defaults[$name];
                    
278                } else {
                    
279                    //--//require_once 'Zend/Controller/Router/Exception.php';
                    
280                    throw new Am_Mvc_Router_Exception($name . ' is not specified');
                    
                
ms_storage_raw_info_pop.php http://prohits.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
25
                    
26include("./ms_permission.inc.php");
                    
27/*echo "<pre>";
                    
47  foreach($BACKUP_SOURCE_FOLDERS as $baseTable => $var_arr){
                    
48    if(array_key_exists($baseTable, $table_arr)) continue;
                    
49    $bar_color = array_pop($colorArr);
                    
203  if($line_style){
                    
204    $tmp_file = "./line_status_gif.php?tital=$tital&imageWidth=$tableWidth&border=$border&size_unit=$size_unit&tableName=$tableName&file_type=$file_type&bigest_size=$bigest_size&bigest_num_file=$bigest_num_file&show_single=$show_single&show_all=$show_all&content=$content&interval=$interval";
                    
205?>
                    
209      <td width="100">
                    
210      <img src="./line_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$tableWidth?>&border=<?=$border?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&show_all=<?=$show_all?>&content=<?=$content?>&interval=<?=$interval?>">
                    
211      <!--a href="javascript: newpopwin('<?=$tmp_file?>',850,1000);">table</a-->
                    
227      <td width="100">
                    
228      <img src="./bar_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$imageWidth?>&border=<?=$border?>&orientation=<?=$orientation?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&date_time=<?=$time_val?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&content=<?=$content?>">
                    
229      <!--a href="./bar_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$imageWidth?>&border=<?=$border?>&orientation=<?=$orientation?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&date_time=<?=$time_val?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&content=<?=$content?>" class=button>[test]</a-->
                    
                
edit.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 204 lines
                    
46
                    
47    <head><title> <?php echo url::organizationName() ; ?>  </title>
                    
48        
                    
48        
                    
49        <?php
                    
50            include($location->GLOO_META_TAGS);
                    
91
                    
92                                    <?php
                    
93                                        $sticky = $glooWeb->getStickyMap('page_edit_section');
                    
109
                    
110                                        <div id="tabs-1"> <?php include('inc/rename.php'); ?> </div>
                    
111                                        <div id="tabs-2"> <?php include('inc/lock.php'); ?></div>
                    
111                                        <div id="tabs-2"> <?php include('inc/lock.php'); ?></div>
                    
112                                        <div id="tabs-3"> <?php include('inc/seo.php'); ?> </div>
                    
113
                    
                
PHPReportInputCrosstab.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 93 lines
                    
1<?php
                    
2	require_once("PHPReportInputObject.php");
                    
3
                    
3
                    
4	class PHPReportInputCrosstab extends PHPReportInputObject {
                    
5		function run(){
                    
12			// first step - find what columns we have, let's make a query that returns nothing but the columns
                    
13			$stmt = PHPReportsDBI::db_query($this->_con,"select * from (".$this->_sql.") crosstab_table where 1=2");
                    
14			$cols	= Array();
                    
14			$cols	= Array();
                    
15			for($i=1; $i<=PHPReportsDBI::db_colnum($stmt); $i++)
                    
16				array_push($cols,PHPReportsDBI::db_columnName($stmt,$i));	
                    
16				array_push($cols,PHPReportsDBI::db_columnName($stmt,$i));	
                    
17			PHPReportsDBI::db_free($stmt);
                    
18
                    
                
SubAccountInterface.php git://github.com/plivo/plivohelper-php.git | PHP | 213 lines
                    
1<?php
                    
2
                    
58        $responseContents = $response->getContent();
                    
59        if(!array_key_exists("error",$responseContents)){
                    
60
                    
103
                    
104        if(!array_key_exists("error",$responseContents)){
                    
105            return new ResponseUpdate(
                    
                
Syslog.php git://github.com/silverstripe/sapphire.git | PHP | 267 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Syslog.php 23953 2011-05-03 05:47:39Z ralph $
                    
21 */
                    
23/** Zend_Log */
                    
24require_once 'Zend/Log.php';
                    
25
                    
26/** Zend_Log_Writer_Abstract */
                    
27require_once 'Zend/Log/Writer/Abstract.php';
                    
28
                    
40    /**
                    
41     * Maps Zend_Log priorities to PHP's syslog priorities
                    
42     *
                    
197        if (!in_array($facility, $this->_validFacilities)) {
                    
198            require_once 'Zend/Log/Exception.php';
                    
199            throw new Zend_Log_Exception('Invalid log facility provided; please see http://php.net/openlog for a list of valid facility values');
                    
                
Profiler.php git://github.com/pmjones/php-framework-benchmarks.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            /**
                    
                
Config.php git://github.com/eryx/php-framework-benchmark.git | PHP | 537 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) {
                    
                
index.php https://bitbucket.org/tulsagraphics/themes.git | PHP | 82 lines
                    
1<?php 
                    
2	$mts_options = get_option(MTS_THEME_NAME);
                    
9?>
                    
10<?php get_header(); ?>
                    
11<div id="page">
                    
12
                    
13	<?php 
                    
14		foreach($homepage_layout as $key => $section){
                    
16	?>
                    
17		<?php
                    
18            /**
                    
21             if(array_key_exists('twitter',$homepage_layout)) :?>
                    
22            <section id="homepage-twitter" class="homepage-section homepage-twitter" style="background-color:<?php echo $mts_options['homepage_twitter_background_color']; ?>;background-image: url(<?php print $mts_options['homepage_twitter_background_image']; ?>); ">
                    
23                <div class="inside">
                    
31                        if($diff >= $crt || empty($mts_twitter_plugin_last_cache_time)){							
                    
32                        if(!require_once('functions/twitteroauth.php')){ echo '<strong>Couldn\'t find twitteroauth.php!</strong>';  }														
                    
33    
                    
                
class.cookie.php https://github.com/bauhouse/sym-designprojectx.git | PHP | 202 lines
                    
1<?php
                    
2
                    
13 * to determine similar things. The Cookie class is tightly integrated with
                    
14 * PHP's `$_SESSION` global and it's related functions.
                    
15 */
                    
84     * Constructor for the Cookie class intialises all class variables with the
                    
85     * given parameters. Most of the parameters map to PHP's setcookie
                    
86     * function. It creates a new Session object via the `$this->__init()`
                    
88     * @see __init()
                    
89     * @link http://php.net/manual/en/function.setcookie.php
                    
90     * @param string $index
                    
172
                    
173        if (isset($_SESSION[$this->_index]) && is_array($_SESSION[$this->_index]) && array_key_exists($name, $_SESSION[$this->_index])) {
                    
174            return $_SESSION[$this->_index][$name];
                    
184     *
                    
185     * @link http://au2.php.net/manual/en/function.session-destroy.php
                    
186     */
                    
                
PhpUnitDedicateAssertFixer.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 264 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PHP CS Fixer.
                    
5 *
                    
22 */
                    
23final class PhpUnitDedicateAssertFixer extends AbstractFixer
                    
24{
                    
25    private $fixMap = array(
                    
26        'array_key_exists' => array('assertArrayNotHasKey', 'assertArrayHasKey'),
                    
27        'empty' => array('assertNotEmpty', 'assertEmpty'),
                    
49    private $configuration = array(
                    
50        'array_key_exists',
                    
51        'empty',
                    
83        foreach ($configuration as $method) {
                    
84            if (!array_key_exists($method, $this->fixMap)) {
                    
85                throw new InvalidFixerConfigurationException($this->getName(), sprintf('Unknown configuration method "%s".', $method));
                    
                
Atom.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Atom.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Reader/FeedAbstract.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php';
                    
31
                    
82    {
                    
83        if (array_key_exists('authors', $this->_data)) {
                    
84            return $this->_data['authors'];
                    
100    {
                    
101        if (array_key_exists('copyright', $this->_data)) {
                    
102            return $this->_data['copyright'];
                    
                
sfFilesystem.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 401 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfFilesystem.class.php 14523 2009-01-07 10:33:54Z FabianLange $
                    
18 */
                    
51  {
                    
52    if (!array_key_exists('override', $options))
                    
53    {
                    
                
LanguagesPageFieldValue.php https://bitbucket.org/thomas1151/mats.git | PHP | 248 lines
                    
1<?php namespace ProcessWire;
                    
2
                    
117		
                    
118		if(array_key_exists('data', $values)) {
                    
119			if(is_null($values['data'])) $values['data'] = '';
                    
                
SubscriptionDescription.php https://hg.codeplex.com/bukuphpjs | PHP | 414 lines
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\ServiceBus\Models
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
33 * @package   WindowsAzure\ServiceBus\Models
                    
34 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
35 * @copyright 2012 Microsoft Corporation
                    
134
                    
135        if (array_key_exists('RequiresSession', $subscriptionDescriptionArray)) {
                    
136            $subscriptionDescription->setRequiresSession(
                    
                
PdoSessionHandler.php git://github.com/eryx/php-framework-benchmark.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.');
                    
                
dmBaseLinkTag.php https://github.com/leszek/diem.git | PHP | 245 lines
                    
1<?php
                    
2
                    
177
                    
178    if (array_key_exists('params', $attributes))
                    
179    {
                    
                
Dispatcher.php https://code.google.com/p/ontowiki/ | PHP | 160 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW}
                    
6 * @license   http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
7 */
                    
17 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW}
                    
18 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
19 * @author Norman Heino <norman.heino@gmail.com>
                    
36    {
                    
37        if (array_key_exists('url_base', $params)) {
                    
38            $urlBase = (string)$params['url_base'];
                    
96        } else {
                    
97            require_once 'Zend/Controller/Exception.php';
                    
98            throw new Zend_Controller_Exception('No default module defined for this application');
                    
                
form_helper.php https://github.com/mikexstudios/memorize_chinese.git | PHP | 420 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
260	
                    
261	if (is_array($data) AND array_key_exists('checked', $data))
                    
262	{
                    
                
manymany.php https://bitbucket.org/trujka/codegrounds.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
6 *
                    
11 * @copyright  2010 - 2013 Fuel Development Team
                    
12 * @link       http://fuelphp.com
                    
13 */
                    
46		$this->model_from  = $from;
                    
47		$this->model_to    = array_key_exists('model_to', $config)
                    
48			? $config['model_to'] : \Inflector::get_namespace($from).'Model_'.\Inflector::classify($name);
                    
48			? $config['model_to'] : \Inflector::get_namespace($from).'Model_'.\Inflector::classify($name);
                    
49		$this->key_from    = array_key_exists('key_from', $config)
                    
50			? (array) $config['key_from'] : $this->key_from;
                    
50			? (array) $config['key_from'] : $this->key_from;
                    
51		$this->key_to      = array_key_exists('key_to', $config)
                    
52			? (array) $config['key_to'] : $this->key_to;
                    
                
submit_track.php http://airscore.googlecode.com/svn/trunk/ | PHP | 332 lines
                    
1<?php
                    
2require 'authorisation.php';
                    
2require 'authorisation.php';
                    
3require 'format.php';
                    
4require 'hc.php';
                    
36
                    
37if (array_key_exists('foo', $_REQUEST))
                    
38{
                    
47    $id = accept_track($comUnixTo, $comContact);
                    
48    redirect("tracklog_map.php?trackid=$id&comPk=$comPk&ok=1");
                    
49    exit(0);
                    
69<br><br>
                    
70<?php
                    
71function upload_track($file,$pilPk,$contact)
                    
242
                    
243echo "<form enctype=\"multipart/form-data\" action=\"submit_track.php?comPk=$comPk\" method=\"post\">";
                    
244echo '
                    
                
class.dc.namespace.php https://bitbucket.org/dotclear/dotclear/ | PHP | 433 lines
                    
1<?php
                    
2# -- BEGIN LICENSE BLOCK ---------------------------------------
                    
316
                    
317		if (!array_key_exists($oldId,$this->settings) || array_key_exists($newId,$this->settings)) {
                    
318			return false;
                    
                
LdapCommon.php https://github.com/znarf/statusnet-ladistribution.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
80         case 'Net_LDAP2':
                    
81            require_once 'Net/LDAP2.php';
                    
82            return false;
                    
83         case 'Net_LDAP2_Filter':
                    
84            require_once 'Net/LDAP2/Filter.php';
                    
85            return false;
                    
111        $config_id = crc32(serialize($config));
                    
112        if(array_key_exists($config_id,self::$ldap_connections)) {
                    
113            $ldap = self::$ldap_connections[$config_id];
                    
187                if($this->password_encoding=='ad') {
                    
188                    //TODO I believe this code will work once this bug is fixed: http://pear.php.net/bugs/bug.php?id=16796
                    
189                    $oldCryptedPassword = $this->hashPassword($oldpassword, $this->password_encoding);
                    
251    /**
                    
252     * Code originaly from the phpLDAPadmin development team
                    
253     * http://phpldapadmin.sourceforge.net/
                    
                
Container.php https://bitbucket.org/cnavalici/csvgenerator.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to padraic@php.net so we can send you a copy immediately.
                    
14 *
                    
176                // if associative array
                    
177                if(array_key_exists(self::BLOCKS, $arg)) $blocks = $arg[self::BLOCKS]; unset($arg[self::BLOCKS]);
                    
178                $quickdefs = array_shift($args);
                    
                
Items.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 249 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Items.php 22804 2010-08-08 05:08:05Z renanbr $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Service/Ebay/Finding/Response/Histograms.php';
                    
27
                    
87             */
                    
88            require_once 'Zend/Service/Ebay/Finding/Search/Result.php';
                    
89            $this->searchResult = new Zend_Service_Ebay_Finding_Search_Result($node);
                    
96             */
                    
97            require_once 'Zend/Service/Ebay/Finding/PaginationOutput.php';
                    
98            $this->paginationOutput = new Zend_Service_Ebay_Finding_PaginationOutput($node);
                    
114             */
                    
115            require_once 'Zend/Service/Ebay/Finding/Exception.php';
                    
116            throw new Zend_Service_Ebay_Finding_Exception(
                    
                
settings.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 214 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
5 *
                    
6 * PHP version 5
                    
7 * LICENSE: This source file is subject to LGPL license 
                    
33	{
                    
34		return array_key_exists('key', ORM::factory('settings')->reload_columns($force)->table_columns);
                    
35	}
                    
158			// non-existent setting, skip current iteration
                    
159			if (in_array($key, $skip) OR empty($key) OR ! array_key_exists($key, $all_settings))
                    
160				continue;
                    
                
SQLAnywhereStatement.php git://github.com/doctrine/dbal.git | PHP | 368 lines
                    
1<?php
                    
2
                    
13use stdClass;
                    
14use function array_key_exists;
                    
15use function func_get_args;
                    
176        if (is_array($params)) {
                    
177            $hasZeroIndex = array_key_exists(0, $params);
                    
178
                    
                
import.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 293 lines
                    
1<?php
                    
2N2Loader::import('libraries.zip.reader');
                    
37        } else if (!isset($importData['data'])) {
                    
38            if (array_key_exists("slider.ss2", $importData)) {
                    
39                N2Message::error(n2_('You can\'t import sliders from Smart Slider 2.'));
                    
                
breves_pipelines.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 350 lines
                    
1<?php
                    
2
                    
185		// juste les publies ?
                    
186		if (array_key_exists('statut', $flux['args']) and ($flux['args']['statut'] == 'publie')) {
                    
187			$flux['data']['breve'] = sql_countsel(
                    
                
Container.php git://pkgs.fedoraproject.org/php-deepend-Mockery | PHP | 344 lines
                    
1<?php
                    
2/**
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to padraic@php.net so we can send you a copy immediately.
                    
14 *
                    
125            } elseif (is_array($arg)) {
                    
126                if(array_key_exists(self::BLOCKS, $arg)) $blocks = $arg[self::BLOCKS]; unset($arg[self::BLOCKS]);
                    
127                $quickdefs = array_shift($args);
                    
                
Hash.php git://github.com/rchouinard/phpass.git | PHP | 258 lines
                    
31 *     // Just use the defaults (works well in most cases)
                    
32 *     $phpassHash = new \Phpass\Hash;
                    
33 *
                    
83     *     // Just use the defaults (works for most cases)
                    
84     *     $phpassHash = new \Phpass\Hash;
                    
85     *
                    
89     *     ));
                    
90     *     $phpassHash = new \Phpass\Hash($adapter);
                    
91     *
                    
96     *     );
                    
97     *     $phpassHash = new \Phpass\Hash($options);
                    
98     *
                    
170        $options = array_change_key_case($options, CASE_LOWER);
                    
171        if (array_key_exists('hmackey', $options) || array_key_exists('hmacalgo', $options)) {
                    
172            if (!extension_loaded('hash')) {
                    
                
Creating.php http://magento-w2p.googlecode.com/svn/trunk/ | PHP | 339 lines
                    
1<?php
                    
2
                    
108      if ($has_products)
                    
109        if (array_key_exists($template->getGuid(), $used_templates)) {
                    
110          $this->debug("{$line}. Product {$template->getGuid()} already exists");
                    
                
rangeable.php git://github.com/webtechnick/CakePHP-WebTechNick-Plugin.git | PHP | 262 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A CakePHP behavior to facilitate a simple reteival of results via a range search on a lon/lat fields
                    
4 *
                    
13 * @author Alan Blount <Alan@zeroasterisk.com>
                    
14 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
15 * @link https://github.com/zeroasterisk/cakephp-behavior-rangeable
                    
70			foreach ( array($this->settings[$Model->alias]['field_lat'], "{$Model->alias}.{$this->settings[$Model->alias]['field_lat']}") as $key ) { 
                    
71				if (array_key_exists($key, $query['conditions'])) {
                    
72					$lat = $query['conditions'][$key];
                    
77			foreach ( array($this->settings[$Model->alias]['field_lon'], "{$Model->alias}.{$this->settings[$Model->alias]['field_lon']}") as $key ) { 
                    
78				if (array_key_exists($key, $query['conditions'])) {
                    
79					$lon = $query['conditions'][$key];
                    
85				foreach ( array($this->settings[$Model->alias]['field_zip'], "{$Model->alias}.{$this->settings[$Model->alias]['field_zip']}") as $key ) { 
                    
86					if (array_key_exists($key, $query['conditions'])) {
                    
87						$zip = $query['conditions'][$key];
                    
                
hardware.php https://gitlab.com/pravi/h-node.git | 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		{
                    
                
oowp.php https://gitlab.com/outlandishideas/oowp.git | PHP | 470 lines
                    
1<?php
                    
2/*
                    
8
                    
9require_once __DIR__ . '/classes/ooPost.class.php';
                    
10require_once __DIR__ . '/classes/ooRoutemasterPost.class.php';
                    
10require_once __DIR__ . '/classes/ooRoutemasterPost.class.php';
                    
11require_once __DIR__ . '/classes/ooTheme.class.php';
                    
12require_once __DIR__ . '/classes/ooWP_Query.class.php';
                    
29	$autoloader = function($class) use ($dir) {
                    
30		$file = "$dir/$class.class.php";
                    
31		if (file_exists($file)) {
                    
61	add_action('admin_menu', function() {
                    
62		remove_menu_page('edit.php');
                    
63	});
                    
77function oowp_customise_admin_menu() {
                    
78	remove_menu_page('link-manager.php');
                    
79}
                    
                
Session.php git://github.com/zendframework/zf2.git | PHP | 547 lines
                    
1<?php
                    
2/**
                    
158        $data    = $cntr->offsetGet($ns);
                    
159        $success = array_key_exists($normalizedKey, $data);
                    
160        if (!$success) {
                    
186        foreach ($normalizedKeys as $normalizedKey) {
                    
187            if (array_key_exists($normalizedKey, $data)) {
                    
188                $result[$normalizedKey] = $data[$normalizedKey];
                    
210        $data = $cntr->offsetGet($ns);
                    
211        return array_key_exists($normalizedKey, $data);
                    
212    }
                    
231        foreach ($normalizedKeys as $normalizedKey) {
                    
232            if (array_key_exists($normalizedKey, $data)) {
                    
233                $result[] = $normalizedKey;
                    
313
                    
314            if (array_key_exists($normalizedKey, $data)) {
                    
315                return false;
                    
                
date_views_filter_handler.inc git://pkgs.fedoraproject.org/drupal7-date | Pascal | 177 lines
                    
1<?php
                    
2/**
                    
137      foreach ($this->options['date_fields'] as $field) {
                    
138        if (array_key_exists($field, $fields['name'])) {
                    
139          $output[] = $fields['name'][$field]['label'];
                    
167    foreach ((array) $this->options['date_fields'] as $delta => $name) {
                    
168      if (array_key_exists($name, $fields) && $field = $fields[$name]) {
                    
169        $date_handler = new date_sql_handler($field['sql_type'], date_default_timezone());
                    
                
Abstract.php https://github.com/jorgenils/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'");
                    
                
Observer.php https://github.com/OpenMage/magento-mirror.git | PHP | 345 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
165        $loginParams = Mage::app()->getRequest()->getPost('login', array());
                    
166        $login = array_key_exists('username', $loginParams) ? $loginParams['username'] : null;
                    
167        if ($captchaModel->isRequired($login)) {
                    
                
Tests.php https://code.google.com/p/molinos-cms/ | PHP | 520 lines
                    
1<?php
                    
2
                    
316		foreach (array('edit', 'delete', 'publish') as $action)
                    
317			$this->assertTrue(array_key_exists($action, $links));
                    
318	}
                    
                
serendipity_smarty_class.inc.php git://github.com/s9y/Serendipity.git | PHP | 292 lines
                    
1<?php
                    
2// serendipity_smarty_class.inc.php lm 2014-12-10 Ian
                    
15    public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br', 'class_exists', );
                    
16    // to disable all PHP functions
                    
17    #public $php_functions = null;
                    
19    // remove PHP tags
                    
20    public $php_handling = Smarty::PHP_REMOVE; // = 2
                    
21
                    
22    // set allowed modifiers only. (default = array( 'escape', 'count' );)
                    
23    public $php_modifiers = array('escape', 'sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat', 'nl2br', 'array_key_exists');
                    
24
                    
36
                    
37    // to test this - overwrites Serendipity_Smarty::default_modifiers and Serendipity_Smarty_Security_Policy::php_modifiers - modifier 'escape' not allowed by security setting
                    
38    #public $allowed_modifiers = array('escape:"htmlall"');
                    
226        serendipity_event_communityrating.php, serendipity_event_customarchive.php, serendipity_event_microformats.php,
                    
227        serendipity_event_multilingual.php, serendipity_event_smartymarkup.php, serendipity_event_staticpage.php
                    
228    */
                    
                
QTIQuestionMatrix.class.php https://github.com/tremby/questionbank.git | PHP | 379 lines
                    
1<?php
                    
2
                    
144				</tr>
                    
145				<?php if (!isset($this->data["question_0_prompt"])) {
                    
146					// starting from scratch -- initialize first questions
                    
149				}
                    
150				for ($i = 0; array_key_exists("question_{$i}_prompt", $this->data); $i++) { $odd = $i % 2; ?>
                    
151					<tr class="question row<?php echo $odd; ?>" id="question_<?php echo $i; ?>">
                    
151					<tr class="question row<?php echo $odd; ?>" id="question_<?php echo $i; ?>">
                    
152						<td><textarea class="prompt" rows="2" cols="48" name="question_<?php echo $i; ?>_prompt" id="question_<?php echo $i; ?>_prompt"><?php if (isset($this->data["question_{$i}_prompt"])) echo htmlspecialchars($this->data["question_{$i}_prompt"]); ?></textarea></td>
                    
153						<td class="answer">
                    
154							<label id="question_<?php echo $i; ?>_true" class="true">
                    
155								<input type="radio" name="question_<?php echo $i; ?>_answer" value="true"<?php if (isset($this->data["question_{$i}_answer"]) && $this->data["question_{$i}_answer"] == "true") { ?> checked="checked"<?php } ?>>
                    
156								true
                    
158							<label id="question_<?php echo $i; ?>_false" class="false">
                    
159								<input type="radio" name="question_<?php echo $i; ?>_answer" value="false"<?php if (isset($this->data["question_{$i}_answer"]) && $this->data["question_{$i}_answer"] != "true") { ?> checked="checked"<?php } ?>>
                    
160								false
                    
                
Encryption.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 101 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2
                    
70			default:
                    
71				if (array_key_exists($key, $this->metadata)) { return $this->metadata[$key]; }
                    
72			break;
                    
                
Group_manivest_detail.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 304 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
58
                    
59            if(array_key_exists('Super Admin', $this->userLevel)) {
                    
60              $where = "pendaftar.active = '1' AND jadwal.id = '".$id."'";
                    
                
test_system.cache.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 461 lines
                    
1<?php
                    
2
                    
141
                    
142						// PHP does not support arrays with numeric string keys. It silently converts them
                    
143						// to int keys. For example: $test_array["1234"] = "foo"; $test_array["bar"] = "baz";
                    
147						// BPM_sUtil::random_string() can (and does) produce values like (string)7. To avoid
                    
148						// debugging problems, prepend all the key names with "k" to ensure PHP treats them as strings.
                    
149
                    
169					//
                    
170					// But, PHP *doesn't catch* this defect when the variable name is created dynamically
                    
171					// [ $name = "7"; $test_object->{$name} = "foo" ]. Instead, it converts the key's type
                    
249
                    
250		// Load the database and check array with test data. Note that PHPUnit resets ALL the
                    
251		// class variables between tests, so we have to reload the table and reset the cache
                    
266
                    
267		// Load the database and check array with test data. Note that PHPUnit resets ALL the
                    
268		// class variables between tests, so we have to reload the table and reset the cache
                    
                
update.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 268 lines
                    
1<?php
                    
2/**
                    
43	foreach($updates as $update) {
                    
44		if ( array_key_exists( $update->current.'|'.$update->locale, $dismissed ) ) {
                    
45			if ( $options['dismissed'] ) {
                    
102	case 'development' :
                    
103		return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], 'update-core.php');
                    
104	break;
                    
106	case 'upgrade' :
                    
107		return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', 'update-core.php', $cur->current);
                    
108	break;
                    
123
                    
124	if ( 'update-core.php' == $pagenow )
                    
125		return;
                    
132	if ( current_user_can('update_core') )
                    
133		$msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update-core.php' );
                    
134	else
                    
                
FormOptionsHelper.php git://github.com/phpwax/phpwax.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * @package PHP-Wax
                    
5 * @author Ross Riley
                    
10 */
                    
11if(!array_key_exists('COUNTRIES',$GLOBALS)) {
                    
12    $GLOBALS['COUNTRIES'] = 
                    
                
Registry.php https://code.google.com/p/ontowiki/ | PHP | 327 lines
                    
1<?php
                    
2
                    
6 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW}
                    
7 * @license   http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
8 */
                    
17 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW}
                    
18 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
19 * @author Norman Heino <norman.heino@gmail.com>
                    
28    const MODULE_CLASS_POSTFIX = 'Module';
                    
29    const MODULE_FILE_POSTFIX = 'Module.php';
                    
30
                    
139        // create module context if necessary
                    
140        if (!array_key_exists($context, $this->_moduleOrder)) {
                    
141            $this->_moduleOrder[$context] = array();
                    
147
                    
148        if (!array_key_exists($moduleName, $this->_modules)) {
                    
149            // merge defaults
                    
                
pnuserapi.php git://pkgs.fedoraproject.org/zikula | PHP | 228 lines
                    
1<?php
                    
2/**
                    
5 * @link http://www.zikula.org
                    
6 * @version $Id: pnuserapi.php 27832 2009-12-09 11:50:03Z drak $
                    
7 * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
                    
22    $lockName = $args['lockName'];
                    
23    $returnUrl = (array_key_exists('returnUrl', $args) ? $args['returnUrl'] : null);
                    
24    $ignoreEmptyLock = (array_key_exists('ignoreEmptyLock', $args) ? $args['ignoreEmptyLock'] : false);
                    
86    $lockName = $args['lockName'];
                    
87    $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id());
                    
88    $lockedByTitle = $args['lockedByTitle'];
                    
151    $lockName = $args['lockName'];
                    
152    $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id());
                    
153
                    
175    $lockName = $args['lockName'];
                    
176    $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id());
                    
177
                    
                
forms.php git://github.com/andyhd/minim.git | PHP | 434 lines
                    
1<?php
                    
2class Minim_Forms implements Minim_Plugin // {{{
                    
48            $manager = minim('orm')->{$model};
                    
49            $have_data = array_key_exists('instance', $params);
                    
50            foreach ($manager->_fields as $name => $field)
                    
155            {
                    
156                if (array_key_exists($name, $this->_fields))
                    
157                {
                    
202    {
                    
203        if (array_key_exists($name, $this->_fields))
                    
204        {
                    
214    {
                    
215        if (array_key_exists($name, $this->_fields))
                    
216        {
                    
224        {
                    
225            if (array_key_exists($name, $data))
                    
226            {
                    
                
firstrun.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 202 lines
                    
2
                    
3	require_once($kapenta->installPath . 'core/dbdriver/mysqladmin.dbd.php');
                    
4
                    
51	//---------------------------------------------------------------------------------------------
                    
52	if (true == array_key_exists('action', $_POST)) {
                    
53		//-----------------------------------------------------------------------------------------
                    
173		$msg = "<b>Installing module: $moduleName </b><br/>";
                    
174		$installScript = 'modules/' . $moduleName . '/inc/install.inc.php';
                    
175		if (true == $kapenta->fileExists($installScript)) {
                    
                
smarty_internal_compilebase.php git://github.com/benkeen/generatedata.git | PHP | 176 lines
                    
1<?php
                    
2/**
                    
103        foreach ($this->required_attributes as $attr) {
                    
104            if (!array_key_exists($attr, $_indexed_attr)) {
                    
105                $compiler->trigger_template_error("missing \"" . $attr . "\" attribute", $compiler->lex->taglineno);
                    
                
5f7c98779e0d52b3eb0ed6efe2cb8177f8c531b95e38ba565f2eac56e36a5b87.php https://bitbucket.org/sicomore/next-op-exercise.git | PHP | 210 lines
                    
1<?php
                    
2
                    
60        // line 10
                    
61        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 10, $this->source); })()), "id", array()), "html", null, true);
                    
62        echo "</td>
                    
67        // line 14
                    
68        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 14, $this->source); })()), "title", array()), "html", null, true);
                    
69        echo "</td>
                    
74        // line 18
                    
75        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 18, $this->source); })()), "content", array()), "html", null, true);
                    
76        echo "</td>
                    
81        // line 22
                    
82        if (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 22, $this->source); })()), "createdAt", array())) {
                    
83            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 22, $this->source); })()), "createdAt", array()), "Y-m-d H:i:s"), "html", null, true);
                    
90        // line 26
                    
91        if (twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 26, $this->source); })()), "updatedAt", array())) {
                    
92            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new Twig_Error_Runtime('Variable "article" does not exist.', 26, $this->source); })()), "updatedAt", array()), "Y-m-d H:i:s"), "html", null, true);
                    
                
krevisions.class.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
2
                    
3	require_once($kapenta->installPath . 'modules/revisions/models/deleted.mod.php');
                    
4	require_once($kapenta->installPath . 'modules/revisions/models/revision.mod.php');
                    
51
                    
52		if ((true == array_key_exists('archive', $dbSchema)) && ('no' == $dbSchema['archive'])) 
                    
53			{ return false; }
                    
86		//------------------------------------------------------------------------------------------
                    
87		if ((true == array_key_exists('archive', $dbSchema)) && ('no' == $dbSchema['archive'])) {
                    
88			$session->msgAdmin('Objects of this type are not archived or revisioned.');
                    
                
CakeRoute.php git://github.com/cakephp/cakephp.git | PHP | 514 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         CakePHP(tm) v 1.3
                    
11 * @since         CakePHP(tm) v 1.3
                    
12 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
13 */
                    
139				$option = null;
                    
140				if ($name !== 'plugin' && array_key_exists($name, $this->defaults)) {
                    
141					$option = '?';
                    
356		foreach ($this->options['persist'] as $persistKey) {
                    
357			if (array_key_exists($persistKey, $params) && !isset($url[$persistKey])) {
                    
358				$url[$persistKey] = $params[$persistKey];
                    
                
GridFieldPresenter.php git://github.com/silverstripe/sapphire.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
266				
                    
267				if(array_key_exists($name, $this->sorting)) {
                    
268					$data['IsSorted'] = true;
                    
383			// casting
                    
384			if(array_key_exists($fieldName, $this->parent->fieldCasting)) {
                    
385				$value = $this->parent->getCastedValue($value, $this->parent->fieldCasting[$fieldName]);
                    
391			$item = $this->item;
                    
392			if(array_key_exists($fieldName, $this->parent->fieldFormatting)) {
                    
393				$format = str_replace('$value', "__VAL__", $this->parent->fieldFormatting[$fieldName]);
                    
                
comunas_controller.php https://github.com/pvalencia/CoordinaChile.git | PHP | 231 lines
                    
1<?php
                    
2class ComunasController extends AppController {
                    
21		foreach($localidades_operativos as $localidad) {
                    
22			if(!array_key_exists($localidad['Comuna']['id'], $operativos))
                    
23				$operativos[$localidad['Comuna']['id']] = 0;
                    
37		foreach($localidades_catastros as $localidad) {
                    
38			if(!array_key_exists($localidad['Comuna']['id'], $catastros))
                    
39				$catastros[$localidad['Comuna']['id']] = 0;
                    
159			$comuna_id = $comunas_id[$recurso['Operativo']['localidad_id']];
                    
160			if(array_key_exists($comuna_id, $comunas) == false){
                    
161				foreach($comunas_db as $comuna_all){
                    
                
Ibm.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Ibm.php 9577 2008-05-31 01:50:27Z peptolab $
                    
21 */
                    
24/** @see Zend_Db_Adapter_Pdo_Abstract */
                    
25require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
26
                    
27/** @see Zend_Db_Abstract_Pdo_Ibm_Db2 */
                    
28require_once 'Zend/Db/Adapter/Pdo/Ibm/Db2.php';
                    
29
                    
30/** @see Zend_Db_Abstract_Pdo_Ibm_Ids */
                    
31require_once 'Zend/Db/Adapter/Pdo/Ibm/Ids.php';
                    
32
                    
33/** @see Zend_Db_Statement_Pdo_Ibm */
                    
34require_once 'Zend/Db/Statement/Pdo/Ibm.php';
                    
35
                    
                
EntityNormalizeTest.php git://github.com/drupal/drupal.git | PHP | 207 lines
                    
1<?php
                    
2
                    
194    // data.
                    
195    $this->assertFalse(array_key_exists('hostname', $normalized), 'Hostname was not found in normalized comment data.');
                    
196
                    
                
BasePartition.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 543 lines
                    
1<?php
                    
2
                    
353	
                    
354	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
355	{
                    
393	
                    
394	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
395	{
                    
410	
                    
411	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
412	{
                    
447	
                    
448	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
                    
449	{
                    
451
                    
452		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
                    
453		if (array_key_exists($keys[1], $arr)) $this->setSize($arr[$keys[1]]);
                    
                
Border.php https://PHPExcel.svn.codeplex.com/svn | PHP | 332 lines
                    
32/** PHPExcel_IComparable */
                    
33require_once 'PHPExcel/IComparable.php';
                    
34
                    
42 */
                    
43class PHPExcel_Style_Border implements PHPExcel_IComparable
                    
44{
                    
95		$this->_borderStyle			= PHPExcel_Style_Border::BORDER_NONE;
                    
96		$this->_borderColor			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
                    
97    }
                    
117     *
                    
118     * Returns the PHPExcel_Style_Border that is actual bound to PHPExcel_Style_Borders
                    
119	 *
                    
158     *
                    
159     * If no PHPExcel_Style_Border has been bound to PHPExcel_Style_Borders then bind this one. Return the actual bound one.
                    
160	 *
                    
                
SimpleHeaderSet.php git://github.com/snytkine/LampCMS.git | PHP | 394 lines
                    
1<?php
                    
2
                    
151    $lowerName = strtolower($name);
                    
152    return array_key_exists($lowerName, $this->_headers)
                    
153      && array_key_exists($index, $this->_headers[$lowerName]);
                    
212    $lowerName = strtolower($name);
                    
213    if (!array_key_exists($lowerName, $this->_headers))
                    
214    {
                    
356    $lowerB = strtolower($b);
                    
357    $aPos = array_key_exists($lowerA, $this->_order)
                    
358      ? $this->_order[$lowerA]
                    
359      : -1;
                    
360    $bPos = array_key_exists($lowerB, $this->_order)
                    
361      ? $this->_order[$lowerB]
                    
378  {
                    
379    return array_key_exists(strtolower($header->getFieldName()), $this->_required);
                    
380  }
                    
                
CustomMethods.php git://github.com/silverstripe/sapphire.git | PHP | 293 lines
                    
1<?php
                    
2
                    
48        $class = get_class($this);
                    
49		if(!array_key_exists($class, self::$extra_methods)) {
                    
50			$this->defineMethods();
                    
133	 *
                    
134	 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via
                    
135	 * extensions
                    
278	/**
                    
279	 * Add an extra method using raw PHP code passed as a string
                    
280	 *
                    
281	 * @param string $method the method name
                    
282	 * @param string $code the PHP code - arguments will be in an array called $args, while you can access this object
                    
283	 *        by using $obj. Note that you cannot call protected methods, as the method is actually an external
                    
                
spark_cli.php git://github.com/ci-bonfire/Bonfire.git | PHP | 269 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__) . '/spark_utils.php';
                    
4require_once dirname(__FILE__) . '/spark_exception.php';
                    
4require_once dirname(__FILE__) . '/spark_exception.php';
                    
5require_once dirname(__FILE__) . '/spark_source.php';
                    
6
                    
31    {
                    
32        if (!array_key_exists($command, self::$commands))
                    
33        {
                    
50        Spark_utils::line('Spark (v' . SPARK_VERSION . ')');
                    
51        Spark_utils::line('For help: `php tools/spark help`');
                    
52    }
                    
155        $spark_name = $flats[0];
                    
156        $version = array_key_exists('v', $flags) ? $flags['v'] : null;
                    
157
                    
                
Abstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $
                    
21 */
                    
93    {
                    
94        return array_key_exists($name, $this->_options);
                    
95    }
                    
124             */
                    
125            require_once 'Zend/Service/Ebay/Exception.php';
                    
126            throw new Zend_Service_Ebay_Exception('Invalid options provided.');
                    
205                // when there is a root tag, attributes receive flags
                    
206                $hasAttribute = array_key_exists('', $value);
                    
207                foreach ($value as $subName => $subValue) {
                    
244    /**
                    
245     * Translate native PHP values format to ebay format for request.
                    
246     *
                    
                
class-thumbnail-gallery-template.php https://bitbucket.org/hinzanhilmy/hinzan-sample-works.git | PHP | 214 lines
                    
1<?php
                    
2
                    
32		    if ( 'thumbnail' === $template['slug'] && 'thumbnail_dimensions' === $field['id'] ) {
                    
33		        if ( !array_key_exists( 'crop', $value ) ) {
                    
34                    $value['crop'] = true;
                    
183		function build_thumbnail_dimensions_from_arguments( $dimensions, $arguments ) {
                    
184            if ( array_key_exists( 'thumbnail_dimensions', $arguments) ) {
                    
185                return array(
                    
207			) );
                    
208			if ( !array_key_exists( 'crop', $dimensions ) ) {
                    
209			    $dimensions['crop'] = true;
                    
                
sfI18N.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 402 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfI18N.class.php 11700 2008-09-21 10:53:44Z fabien $
                    
18 */
                    
241
                    
242    return (array_key_exists($iso, $countries)) ? $countries[$iso] : '';
                    
243  }
                    
                
CompilerTest.php https://bitbucket.org/crismablanco/magento.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
23/**
                    
24 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
25 */
                    
25 */
                    
26class CompilerTest extends \PHPUnit\Framework\TestCase
                    
27{
                    
74
                    
75        $this->_command = 'php ' . $basePath . '/bin/magento setup:di:compile';
                    
76
                    
143                $parameterName = $classParameter->getName();
                    
144                if (array_key_exists($parameterName, $parameters)) {
                    
145                    unset($parameters[$parameterName]);
                    
158     * @param string $instanceName class name
                    
159     * @throws \PHPUnit\Framework\AssertionFailedError
                    
160     * @return bool
                    
                
Block.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 450 lines
                    
1<?php
                    
2/*
                    
239      if ($blockId) {
                    
240        if (is_array($blockIds) && array_key_exists($blockId, $blockIds)) {
                    
241          unset($blockIds[$blockId]);
                    
                
getconsent.php https://bitbucket.org/bittercreek_projects/supportworks.git | PHP | 154 lines
                    
13 * 
                    
14 * In an vanilla apache-php installation is the php variables set to:
                    
15 *
                    
34
                    
35if (array_key_exists('core:SP', $state)) {
                    
36    $spentityid = $state['core:SP'];
                    
36    $spentityid = $state['core:SP'];
                    
37} else if (array_key_exists('saml:sp:State', $state)) {
                    
38    $spentityid = $state['saml:sp:State']['core:SP'];
                    
52    $statsInfo = array(
                    
53        'remember' => array_key_exists('saveconsent', $_REQUEST),
                    
54    );
                    
59
                    
60    if (   array_key_exists('consent:store', $state) 
                    
61        && array_key_exists('saveconsent', $_REQUEST)
                    
                
twitter_status.php git://github.com/neilcrookes/CakePHP-Twitter-API-Plugin.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
8 * @copyright (c) 2010 Neil Crookes
                    
9 * @license MIT License - http://www.opensource.org/licenses/mit-license.php
                    
10 */
                    
125   *
                    
126   * Twitter's API uses a count parameter where in CakePHP we'd normally use
                    
127   * limit, so we also copy the limit value to count so we can use our familiar
                    
138    if ((empty($options['page']) || empty($options['count']))
                    
139    && array_key_exists($type, $this->allowedFindOptions)
                    
140    && in_array('page', $this->allowedFindOptions[$type])
                    
154    $this->request['uri']['path'] = '1/statuses/' . Inflector::underscore($type);
                    
155    if (array_key_exists($type, $this->allowedFindOptions)) {
                    
156      $this->request['uri']['query'] = array_intersect_key($options, array_flip($this->allowedFindOptions[$type]));
                    
                
HeadScript.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
22/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
23require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
24
                    
89     *
                    
90     * Set separator to PHP_EOL.
                    
91     *
                    
96        parent::__construct();
                    
97        $this->setSeparator(PHP_EOL);
                    
98    }
                    
203            if (1 > count($args)) {
                    
204                require_once 'Zend/View/Exception.php';
                    
205                throw new Zend_View_Exception(sprintf('Method "%s" requires at least one argument', $method));
                    
413        if (!empty($item->source)) {
                    
414              $html .= PHP_EOL . $indent . '    ' . $escapeStart . PHP_EOL . $item->source . $indent . '    ' . $escapeEnd . PHP_EOL . $indent;
                    
415        }
                    
                
class-wc-dropshipping-orders.php https://bitbucket.org/hokbay/dropshipping-for-woocommerce.git | PHP | 311 lines
                    
1<?php
                    
2class WC_Dropshipping_Orders {
                    
139					$prod_info = $this->get_order_product_info($item,$product);
                    
140					if(!array_key_exists($ds['slug'],$order_info['suppliers']))
                    
141					{
                    
189		if (!class_exists('TCPDF')) {
                    
190			require_once( wc_dropshipping_get_base_path() . '/lib/tcpdf_min/tcpdf.php' );
                    
191		}
                    
                
Attachment.php git://github.com/snytkine/LampCMS.git | PHP | 143 lines
                    
1<?php
                    
2
                    
134      
                    
135      if (array_key_exists($extension, $this->_mimeTypes))
                    
136      {
                    
                
Config.php git://github.com/machuga/php-activerecord-spark.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
153	{
                    
154		if (array_key_exists($name, $this->connections))
                    
155			return $this->connections[$name];
                    
166	{
                    
167		return array_key_exists($this->default_connection,$this->connections) ?
                    
168			$this->connections[$this->default_connection] : null;
                    
                
addpackage.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 199 lines
                    
2
                    
3	require_once($kapenta->installPath . 'modules/packages/inc/kupdatemanager.class.php');
                    
4	require_once($kapenta->installPath . 'modules/packages/inc/kpackage.class.php');
                    
4	require_once($kapenta->installPath . 'modules/packages/inc/kpackage.class.php');
                    
5	require_once($kapenta->installPath . 'modules/packages/inc/ksource.class.php');
                    
6
                    
25
                    
26	if (false == array_key_exists('action', $_POST)) { $page->do404('Action not given.', true); }
                    
27	if ('addPackage' != $_POST['action']) { $page->do404('Action not recognized.'); }
                    
28
                    
29	if (true == array_key_exists('source', $_POST)) { $source = $_POST['source']; }
                    
30	if (true == array_key_exists('UID', $_POST)) { $UID = $_POST['UID']; }
                    
30	if (true == array_key_exists('UID', $_POST)) { $UID = $_POST['UID']; }
                    
31	if (true == array_key_exists('username', $_POST)) { $username = $_POST['username']; }
                    
32	if (true == array_key_exists('password', $_POST)) { $username = $_POST['password']; }
                    
                
startwork.php http://stuffpack.googlecode.com/svn/ | PHP | 307 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
15
                    
16	// All of these are set in config.php (and thats it)
                    
17	// $config['user password domain']
                    
17	// $config['user password domain']
                    
18	require_once 'config.php';
                    
19	// set the email right here.
                    
20	$config['email']= $config['user'].'@'.$config['domain'];
                    
21	require_once 'Zend/Loader.php';
                    
22	Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
                    
116	// long opts
                    
117	$debug = (array_key_exists('debug',$cli)) ? true : false;
                    
118	$verbose = (array_key_exists('verbose',$cli)) ? true : false;
                    
118	$verbose = (array_key_exists('verbose',$cli)) ? true : false;
                    
119	$check_config = (array_key_exists('check-config',$cli)) ? true : false;
                    
120
                    
                
course.php https://github.com/henriquecrang/e-UNI.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;
                    
                
sfValidatorSchema.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 366 lines
                    
1<?php
                    
2
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfValidatorSchema.class.php 10836 2008-08-13 12:06:35Z fabien $
                    
20 */
                    
128      // field exists in our schema?
                    
129      if (!array_key_exists($name, $this->fields))
                    
130      {
                    
                
Browser.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
23   *
                    
24   * Note: This default is now handled through setting/*.php.
                    
25   *
                    
152    $exts = $this->getExtensions();
                    
153    if (array_key_exists($key, $exts)) {
                    
154      return $exts[$key];
                    
                
Color.php git://github.com/jyr/MNPP.git | PHP | 409 lines
                    
22 * @package    PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Color implements PHPExcel_IComparable
                    
37{
                    
126	 *
                    
127	 * @return PHPExcel_Style_Color
                    
128	 */
                    
206     * <code>
                    
207     * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
                    
208     * </code>
                    
                
ConditionalGet.php git://github.com/vanillaforums/Garden.git | PHP | 349 lines
                    
1<?php
                    
2/**
                    
183     * 
                    
184     * With most PHP configs, as long as you don't flush() output, this method
                    
185     * is not needed and PHP will buffer all output and set Content-Length for 
                    
210        $headers = $this->_headers;
                    
211        if (array_key_exists('_responseCode', $headers)) {
                    
212            header($headers['_responseCode']);
                    
                
Entry.php https://github.com/openpne/OpenPNE3.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'];
                    
                
Data.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
165    {
                    
166        return array_key_exists($id, $this->_items);
                    
167    }
                    
227        } else {
                    
228            require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
                
 

Source

Language