PageRenderTime 352ms queryTime 63ms sortTime 41ms getByIdsTime 89ms findMatchingLines 83ms

100+ results results for 'php array_key_exists repo:jcplat/console-seolan' (352 ms)

Not the results you expected?
question.php https://github.com/kpike/moodle.git | PHP | 356 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
28
                    
29require_once($CFG->dirroot . '/question/type/numerical/questiontype.php');
                    
30
                    
89    public function is_gradable_response(array $response) {
                    
90        return array_key_exists('answer', $response) &&
                    
91                ($response['answer'] || $response['answer'] === '0' || $response['answer'] === 0);
                    
                
Clicks.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 399 lines
                    
1<?php
                    
2/*
                    
234    foreach ($this->_columns as $tableName => $table) {
                    
235      if (array_key_exists('fields', $table)) {
                    
236        foreach ($table['fields'] as $fieldName => $field) {
                    
369      // If the email address has been deleted
                    
370      if (array_key_exists('civicrm_email_email', $row)) {
                    
371        if (empty($rows[$rowNum]['civicrm_email_email'])) {
                    
378      // convert display name to links
                    
379      if (array_key_exists('civicrm_contact_sort_name', $row) &&
                    
380        array_key_exists('civicrm_contact_id', $row)
                    
                
AbstractAtom.php https://bitbucket.org/pcelta/zf2.git | PHP | 405 lines
                    
1<?php
                    
2/**
                    
146        $generator->appendChild($text);
                    
147        if (array_key_exists('uri', $gdata)) {
                    
148            $generator->setAttribute('uri', $gdata['uri']);
                    
149        }
                    
150        if (array_key_exists('version', $gdata)) {
                    
151            $generator->setAttribute('version', $gdata['version']);
                    
184        $flinks = $this->getDataContainer()->getFeedLinks();
                    
185        if (!$flinks || !array_key_exists('atom', $flinks)) {
                    
186            $message = 'Atom 1.0 feed elements SHOULD contain one atom:link '
                    
233            $name->appendChild($text);
                    
234            if (array_key_exists('email', $data)) {
                    
235                $email = $this->dom->createElement('email');
                    
239            }
                    
240            if (array_key_exists('uri', $data)) {
                    
241                $uri = $this->dom->createElement('uri');
                    
                
Parser.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 482 lines
                    
1<?php
                    
2
                    
11/* removed since it now use the doctrine autoload feature
                    
12 * require_once(dirname(__FILE__).'/Yml_Inline.class.php');
                    
13 */
                    
20 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
21 * @version    SVN: $Id: YamlSfParser.class.php 8869 2008-05-09 00:22:57Z dwhittle $
                    
22 */
                    
43  /**
                    
44   * Parses a YAML string to a PHP value.
                    
45   *
                    
47   *
                    
48   * @return mixed  A PHP value
                    
49   */
                    
108            $isInPlace = substr($values['value'], 1);
                    
109            if (!array_key_exists($isInPlace, $this->refs))
                    
110            {
                    
                
helpers.php https://bitbucket.org/daevski/shop-by-recipe.git | PHP | 598 lines
                    
1<?php
                    
2
                    
68	{
                    
69		if ( ! is_array($array) or ! array_key_exists($segment, $array))
                    
70		{
                    
504/**
                    
505 * Determine if the current version of PHP is at least the supplied version.
                    
506 *
                    
509 */
                    
510function has_php($version)
                    
511{
                    
511{
                    
512	return version_compare(PHP_VERSION, $version) >= 0;
                    
513}
                    
                
Service.php https://gitlab.com/devtoannh/cafe | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 23775 2011-03-01 17:25:24Z ralph $
                    
32 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
Parser.php https://github.com/2600hz/bluebox.git | PHP | 482 lines
                    
1<?php
                    
2
                    
11/* removed since it now use the doctrine autoload feature
                    
12 * require_once(dirname(__FILE__).'/Yml_Inline.class.php');
                    
13 */
                    
20 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
21 * @version    SVN: $Id: YamlSfParser.class.php 8869 2008-05-09 00:22:57Z dwhittle $
                    
22 */
                    
43  /**
                    
44   * Parses a YAML string to a PHP value.
                    
45   *
                    
47   *
                    
48   * @return mixed  A PHP value
                    
49   */
                    
108            $isInPlace = substr($values['value'], 1);
                    
109            if ( !array_key_exists($isInPlace, $this->refs))
                    
110            {
                    
                
Indexing.php https://github.com/QnapClub/Plugmedia.git | PHP | 458 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
8*
                    
9* Minimum Requirement: PHP 5
                    
10*/
                    
189				
                    
190				if (!array_key_exists($value_protected, $file_array))
                    
191				{
                    
                
Core.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 316 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * Retrieved from http://code.google.com/p/php-amqplib/
                    
7 *
                    
89    {
                    
90        if(!array_key_exists($method_sig, $this->METHOD_MAP))
                    
91            throw new Exception("Unknown AMQP method $method_sig");
                    
244     * @version     1.3.2
                    
245     * @author      Aidan Lister <aidan@php.net>
                    
246     * @author      Peter Waller <iridum@php.net>
                    
246     * @author      Peter Waller <iridum@php.net>
                    
247     * @link        http://aidanlister.com/repos/v/function.hexdump.php
                    
248     * @param       string  $data        The string to be dumped
                    
                
Mcrypt.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
                    
24 */
                    
25require_once 'Zend/Filter/Encrypt/Interface.php';
                    
26
                    
86
                    
87        if (array_key_exists('compression', $options)) {
                    
88            $this->setCompression($options['compression']);
                    
117        if (!is_array($options)) {
                    
118            require_once 'Zend/Filter/Exception.php';
                    
119            throw new Zend_Filter_Exception('Invalid options argument provided to filter');
                    
135        if (!mcrypt_module_self_test($options['algorithm'], $options['algorithm_directory'])) {
                    
136            require_once 'Zend/Filter/Exception.php';
                    
137            throw new Zend_Filter_Exception('The given algorithm can not be used due an internal mcrypt problem');
                    
171            $this->_srand();
                    
172            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) {
                    
173                $method = MCRYPT_RAND;
                    
                
ObjectManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 316 lines
                    
1<?php
                    
2/**
                    
26     *
                    
27     * @var \PHPUnit_Framework_TestCase
                    
28     */
                    
33     *
                    
34     * @param \PHPUnit_Framework_TestCase $testObject
                    
35     */
                    
35     */
                    
36    public function __construct(\PHPUnit_Framework_TestCase $testObject)
                    
37    {
                    
45     * @param array $originalArguments
                    
46     * @return null|object|\PHPUnit_Framework_MockObject_MockObject
                    
47     */
                    
83     *
                    
84     * @return \Magento\Framework\Module\ResourceInterface|\PHPUnit_Framework_MockObject_MockObject
                    
85     */
                    
                
condition.php https://github.com/pauln/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) {
                    
                
BaseObject.php https://github.com/homer6/Propel.git | PHP | 396 lines
                    
1<?php
                    
2
                    
275	{
                    
276		return array_key_exists($name, $this->virtualColumns);
                    
277	}
                    
335		}
                    
336		return $this->fromArray($parser->toArray($data), BasePeer::TYPE_PHPNAME);
                    
337	}
                    
355		}
                    
356		return $parser->fromArray($this->toArray(BasePeer::TYPE_PHPNAME, true, array(), true));
                    
357	}
                    
381			}
                    
382			// no lcfirst in php<5.3...
                    
383			$virtualColumn[0] = strtolower($virtualColumn[0]);
                    
                
User.php https://gitlab.com/rsilveira1987/Expresso | PHP | 444 lines
                    
1<?php
                    
2/**
                    
122    /**
                    
123     * (non-PHPdoc)
                    
124     * @see Tinebase/Record/Tinebase_Record_Abstract#setFromArray($_data)
                    
142
                    
143                if (! array_key_exists('accountFullName', $_data)) {
                    
144                    $_data['accountFullName'] = $_data['accountLastName'];
                    
                
Service.php https://github.com/basdog22/Qool.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 24594 2012-01-05 21:27:01Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
PresenterComponent.php https://gitlab.com/paveltizek/shop | PHP | 406 lines
                    
1<?php
                    
2
                    
159
                    
160			} elseif (array_key_exists($name, $params)) { // NULLs are skipped
                    
161				continue;
                    
                
Backend.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
86        // NOTE: at the moment we only support a predefined set of colors
                    
87//        if ((isset($properties['{http://apple.com/ns/ical/}calendar-color']) || array_key_exists('{http://apple.com/ns/ical/}calendar-color', $properties))) {
                    
88//            $color = substr($properties['{http://apple.com/ns/ical/}calendar-color'], 0, 7);
                    
155            $transactionId = Tinebase_TransactionManager::getInstance()->startTransaction(Tinebase_Core::getDb());
                    
156            if ((isset($properties['{DAV:}displayname']) || array_key_exists('{DAV:}displayname', $properties))) {
                    
157                Tinebase_Container::getInstance()->setContainerName($calendarId, $properties['{DAV:}displayname']);
                    
160            // NOTE: at the moment we only support a predefined set of colors
                    
161//            if ((isset($properties['{http://apple.com/ns/ical/}calendar-color']) || array_key_exists('{http://apple.com/ns/ical/}calendar-color', $properties))) {
                    
162//                $color = substr($properties['{http://apple.com/ns/ical/}calendar-color'], 0, 7);
                    
                
LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
105        }
                    
106        if (!array_key_exists($state, $this->_actionTable)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state);
                    
107
                    
114        if ($nextToken === '') $nextToken = new Text_Tokenizer_Token('', '');
                    
115        if (!array_key_exists($nextToken->getId(), $row)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state);
                    
116        if ($row[$nextToken->getId()]['action'] == 'lookahead') {
                    
139        if (!is_array($this->_gotoTable)) throw new Text_Parser_InvalidParserException('This parser has not been configured. It has no goto table');
                    
140        if (!array_key_exists($state, $this->_gotoTable) || !array_key_exists($nextToken->getId(), $this->_gotoTable[$state])) throw new Text_Parser_UnexpectedTokenException($nextToken, $state);
                    
141
                    
                
AbstractClient.php https://github.com/Exercise/zf2.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
295        foreach ($methodParameters as $methodParameterName => $methodParameterValue) {
                    
296            if (!array_key_exists($methodParameterName, $requestParameters) && $methodParameterValue['optional'] == false) {
                    
297                if ($this instanceof Interactive\InteractiveInput) {
                    
307            } else {
                    
308                $callParameters[] = (array_key_exists($methodParameterName, $requestParameters)) ? $requestParameters[$methodParameterName] : $methodParameterValue['default'];
                    
309            }
                    
                
ReportInstance.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 406 lines
                    
1<?php
                    
2/*
                    
140    if (!empty($params['is_navigation'])) {
                    
141      if (!array_key_exists('navigation', $params)) {
                    
142        $params['navigation'] = [];
                    
360   *    but I didn't have the right classes). ie adding  'class' => 'crm-i fa-print' to print / class looked
                    
361   *    wrong, but at the php level it worked https://github.com/civicrm/civicrm-core/pull/8529#issuecomment-227639091
                    
362   *  - general script-add.
                    
                
class-sensei-analysis-lesson-list-table.php https://gitlab.com/ezgonzalez/integral | PHP | 357 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
                    
79		if ( !empty( $_GET['orderby'] ) ) {
                    
80			if ( array_key_exists( esc_html( $_GET['orderby'] ), $this->get_sortable_columns() ) ) {
                    
81				$orderby = esc_html( $_GET['orderby'] );
                    
141		if ( !empty( $_GET['orderby'] ) ) {
                    
142			if ( array_key_exists( esc_html( $_GET['orderby'] ), $this->get_sortable_columns() ) ) {
                    
143				$orderby = esc_html( $_GET['orderby'] );
                    
235        if ( !$this->csv_output ) {
                    
236			$url = add_query_arg( array( 'page' => $this->page_slug, 'user_id' => $item->user_id, 'course_id' => $this->course_id ), admin_url( 'admin.php' ) );
                    
237
                    
330		$report = sanitize_title( $lesson->post_title ) . '-learners-overview';
                    
331		$url = add_query_arg( array( 'page' => $this->page_slug, 'lesson_id' => $this->lesson_id, 'sensei_report_download' => $report ), admin_url( 'admin.php' ) );
                    
332		echo '<a class="button button-primary" href="' . esc_url( wp_nonce_url( $url, 'sensei_csv_download-' . $report, '_sdl_nonce' ) ) . '">' . __( 'Export all rows (CSV)', 'woothemes-sensei' ) . '</a>';
                    
                
lib.php https://github.com/lazydaisy/moodle.git | PHP | 277 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
43    // Get the Privacy and policies category.
                    
44    if (!array_key_exists('privacyandpolicies', $tree->__get('categories'))) {
                    
45        // Create the category.
                    
61
                    
62        $url = new moodle_url('/admin/tool/dataprivacy/mydatarequests.php');
                    
63        $node = new core_user\output\myprofile\node('privacyandpolicies', 'datarequests',
                    
71            $exportparams = ['type' => \tool_dataprivacy\api::DATAREQUEST_TYPE_EXPORT];
                    
72            $exporturl = new moodle_url('/admin/tool/dataprivacy/createdatarequest.php', $exportparams);
                    
73            $exportnode = new core_user\output\myprofile\node('privacyandpolicies', 'requestdataexport',
                    
82            $deleteparams = ['type' => \tool_dataprivacy\api::DATAREQUEST_TYPE_DELETE];
                    
83            $deleteurl = new moodle_url('/admin/tool/dataprivacy/createdatarequest.php', $deleteparams);
                    
84            $deletenode = new core_user\output\myprofile\node('privacyandpolicies', 'requestdatadeletion',
                    
97    if ($showsummary) {
                    
98        $summaryurl = new moodle_url('/admin/tool/dataprivacy/summary.php');
                    
99        $summarynode = new core_user\output\myprofile\node('privacyandpolicies', 'retentionsummary',
                    
                
PropertyPath.php https://github.com/fernanDOTdo/symfony.git | PHP | 400 lines
                    
1<?php
                    
2
                    
242        // arrays need to be treated separately (due to PHP bug?)
                    
243        // http://bugs.php.net/bug.php?id=52133
                    
244        } else {
                    
244        } else {
                    
245            if (!array_key_exists($property, $objectOrArray)) {
                    
246                $objectOrArray[$property] = $currentIndex + 1 < $this->length ? array() : null;
                    
280            // arrays need to be treated separately (due to PHP bug?)
                    
281            // http://bugs.php.net/bug.php?id=52133
                    
282            } else {
                    
282            } else {
                    
283                if (!array_key_exists($property, $objectOrArray)) {
                    
284                    $objectOrArray[$property] = array();
                    
                
galleries2.php https://github.com/chrisgraham/ocPortal.git | PHP | 339 lines
                    
1<?php /*
                    
2
                    
151			// See if we have a specific workflow to use
                    
152			$edit_workflow=array_key_exists("workflow",$_REQUEST) && (either_param("workflow") != "wf_-2");
                    
153			$current_workflow=get_workflow_of_content("image",strval($id));
                    
207			// See if we have a specific workflow to use
                    
208			$edit_workflow=array_key_exists("workflow",$_REQUEST) && (either_param("workflow") != "wf_-2");
                    
209			$current_workflow=get_workflow_of_content("video",strval($id));
                    
260		// See if we have a specific workflow to use
                    
261		$edit_workflow=array_key_exists("workflow",$_REQUEST) && (post_param("workflow") != "wf_-2");
                    
262		$current_workflow=get_workflow_of_content("gallery",$name);
                    
                
Connection.php https://github.com/TimLangley/Zend_RabbitMQ.git | PHP | 455 lines
                    
1<?php
                    
2/**
                    
30            "library" => array(
                    
31                'S', "PHP Simple AMQP lib"
                    
32            ), "library_version" => array(
                    
151        for ($i = 1; $i <= $this->channel_max; $i++)
                    
152            if (!array_key_exists($i, $this->channels))
                    
153                return $i;
                    
271    {
                    
272        if (array_key_exists($channel_id, $this->channels))
                    
273            return $this->channels[$channel_id];
                    
                
Number.php https://github.com/jorgenils/zend-framework.git | PHP | 398 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Measure/Abstract.php';
                    
27require_once 'Zend/Locale.php';
                    
150        if (!$this->_Locale = Zend_Locale::isLocale($locale, true)) {
                    
151            require_once 'Zend/Measure/Exception.php';
                    
152            throw new Zend_Measure_Exception("Language ($locale) is unknown");
                    
160
                    
161        if (!array_key_exists($type, $this->_UNITS)) {
                    
162            require_once 'Zend/Measure/Exception.php';
                    
183        if (empty($this->_UNITS[$type])) {
                    
184            require_once 'Zend/Measure/Exception.php';
                    
185            throw new Zend_Measure_Exception('unknown type of number:' . $type);
                    
236                } catch (Exception $e) {
                    
237                    require_once 'Zend/Measure/Exception.php';
                    
238                    throw new Zend_Measure_Exception($e->getMessage());
                    
                
IsCompressed.php https://github.com/quarkness/piwik.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25// require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
MultipartStream.php https://gitlab.com/ealexis.t/trends | PHP | 153 lines
                    
1<?php
                    
2namespace GuzzleHttp\Psr7;
                    
81        foreach (['contents', 'name'] as $key) {
                    
82            if (!array_key_exists($key, $element)) {
                    
83                throw new \InvalidArgumentException("A '{$key}' key is required");
                    
90            $uri = $element['contents']->getMetadata('uri');
                    
91            if (substr($uri, 0, 6) !== 'php://') {
                    
92                $element['filename'] = $uri;
                    
                
IsCompressed.php https://github.com/kervin/kyzstudio.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php 22668 2010-07-25 14:50:46Z thomas $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
FormFactory.php https://github.com/castillojorge/SemdropsMobile.git | PHP | 401 lines
                    
1<?php
                    
2
                    
214
                    
215        if (!array_key_exists('data', $options)) {
                    
216            $options['data'] = $data;
                    
                
SMW_SparqlResultParser.php https://github.com/ChuguluGames/mediawiki-svn.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 );
                    
                
ParserFunctions.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 189 lines
                    
1<?php
                    
2class LqtParserFunctions {
                    
115		
                    
116		if ( array_key_exists( 'show', $args ) ) {
                    
117			$show = explode( ' ', $args['show'] );
                    
                
Product.php https://gitlab.com/MohammadShakil/POS_Management_System | PHP | 120 lines
                    
1<?php
                    
2namespace App\Product;
                    
27    {
                    
28        if (array_key_exists('CategoryID', $data)) {
                    
29            $this->CategoryID = filter_var($data['CategoryID'], FILTER_SANITIZE_STRING);
                    
30        }
                    
31        if (array_key_exists('name', $data)) {
                    
32            $this->name = filter_var($data['name'], FILTER_SANITIZE_STRING);
                    
33        }
                    
34        if (array_key_exists('code', $data)) {
                    
35            $this->code = filter_var($data['code'], FILTER_SANITIZE_STRING);
                    
36        }
                    
37        if (array_key_exists('size', $data)) {
                    
38            $this->size = filter_var($data['size'], FILTER_SANITIZE_STRING);
                    
39        }
                    
40        if (array_key_exists('price', $data)) {
                    
41            $this->price = filter_var($data['price'], FILTER_SANITIZE_STRING);
                    
                
CommentTestTrait.php https://gitlab.com/reasonat/test8 | PHP | 121 lines
                    
1<?php
                    
2
                    
54    // needed.
                    
55    if (!array_key_exists($field_name, $entity_manager->getFieldStorageDefinitions($entity_type))) {
                    
56      $entity_manager->getStorage('field_storage_config')->create(array(
                    
66    // Create the field if needed, and configure its form and view displays.
                    
67    if (!array_key_exists($field_name, $entity_manager->getFieldDefinitions($entity_type, $bundle))) {
                    
68      $entity_manager->getStorage('field_config')->create(array(
                    
                
fatal.php https://github.com/adampatterson/Spoke-Calculator.git | PHP | 168 lines
                    
3<head>
                    
4   <title><?php echo $error['prefix']; ?> Error</title>
                    
5   <style type="text/css" media="screen">
                    
105   <div id="Frame">
                    
106      <h1><?php echo $error['prefix']; ?> Error in <?php echo route::controller(),'.',route::method() ?>();</h1>
                    
107      <div id="Content">
                    
107      <div id="Content">
                    
108         <h2><?php echo $error['prefix']; ?>: <strong><?php echo $error['message']; ?></strong> In <?php echo $error['file']; ?> At Line <?php echo $error['line']; ?></h2>
                    
109			<?
                    
148
                    
149			       if (array_key_exists('file', $backtrace[$i])) {
                    
150			          $file = '['.$backtrace[$i]['file'].':'
                    
153			       echo $file , '<strong>'
                    
154			          ,array_key_exists('class', $backtrace[$i]) ? $backtrace[$i]['class'] : 'PHP'
                    
155			          ,array_key_exists('type', $backtrace[$i]) ? $backtrace[$i]['type'] : '::'
                    
                
IsCompressed.php https://github.com/Doap/iCms---intelligent-Content-management-system.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php 22668 2010-07-25 14:50:46Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
Field.php https://github.com/michaelmcandrew/vaw.git | PHP | 146 lines
                    
1<?php
                    
2
                    
29
                    
30require_once 'CRM/Utils/Type.php';
                    
31require_once 'CRM/Event/PseudoConstant.php';
                    
137            }
                    
138            if (!array_key_exists($customFieldID, $customFields)) {
                    
139                return false;
                    
                
MessageStack.php https://gitlab.com/donyradjah/cvglobal | PHP | 182 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @link      http://github.com/particle-php for the canonical source repository
                    
6 * @copyright Copyright (c) 2005-2016 Particle (http://particle-php.com)
                    
6 * @copyright Copyright (c) 2005-2016 Particle (http://particle-php.com)
                    
7 * @license   https://github.com/particle-php/validator/blob/master/LICENSE New BSD License
                    
8 */
                    
77
                    
78        if (array_key_exists($reason, $this->defaultMessages)) {
                    
79            return $this->defaultMessages[$reason];
                    
138        foreach ($messageStack->defaultMessages as $key => $message) {
                    
139            if (!array_key_exists($key, $this->defaultMessages)) {
                    
140                $this->defaultMessages[$key] = $message;
                    
                
toolsettings.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 138 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
80            foreach ($systemsettings as $key => $value) {
                    
81                if ((!empty($contextsettings) && array_key_exists($key, $contextsettings)) ||
                    
82                    (!empty($linksettings) && array_key_exists($key, $linksettings))) {
                    
88            foreach ($contextsettings as $key => $value) {
                    
89                if (!empty($linksettings) && array_key_exists($key, $linksettings)) {
                    
90                    unset($contextsettings[$key]);
                    
                
Entry.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 630 lines
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal\Atom
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
34 * @package   WindowsAzure\Common\Internal\Atom
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright 2012 Microsoft Corporation
                    
164
                    
165        if (array_key_exists('content', $entryArray)) {
                    
166            $content = new Content();
                    
170
                    
171        if (array_key_exists(Resources::CONTRIBUTOR, $entryArray)) {
                    
172            $this->contributor = $this->processContributorNode($entryArray);
                    
                
reload.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 105 lines
                    
1<?php
                    
2/**
                    
78
                    
79        if(array_key_exists('create-resource-token', $scriptProperties) && !empty($scriptProperties['create-resource-token'])) {
                    
80            $topic = '/resourcereload/';
                    
82
                    
83            if(array_key_exists('id', $scriptProperties) && is_numeric($scriptProperties['id']) && intval($scriptProperties['id']) > 0) {
                    
84                $return = $modx->error->success('', array(
                    
                
ImageUploader.php https://gitlab.com/Hoq/lab_exem7_B21_Rakib_SEIP124310 | PHP | 145 lines
                    
1<?php
                    
2namespace App\Bitm\SEIP124310\ProfilePicture;
                    
22    {
                    
23        if (array_key_exists("name", $data)) {
                    
24            $this->name = filter_var($data['name'], FILTER_SANITIZE_STRING);
                    
25        }
                    
26        if (array_key_exists("image", $data)) {
                    
27            $this->image_name = filter_var($data['image'], FILTER_SANITIZE_STRING);
                    
28        }
                    
29        if (array_key_exists("id", $data)) {
                    
30            $this->id = $data['id'];
                    
60            Message::message("Data has benn stored successfully");
                    
61            Utility::redirect('index.php');
                    
62
                    
64            Message::message("Data has not been stored successfully");
                    
65            Utility::redirect('index.php');
                    
66        }
                    
                
Google_WPIO.php https://gitlab.com/iamgraeme/royalmile | PHP | 165 lines
                    
1<?php
                    
2/*
                    
62
                    
63		if ( array_key_exists( $request->getRequestMethod(),
                    
64			self::$ENTITY_HTTP_METHODS ) ) {
                    
                
Collection.php https://bitbucket.org/larryg/powerhut.git | PHP | 174 lines
                    
1<?php namespace Basset;
                    
2
                    
120        // then when we finally get to the first added asset it's added second.
                    
121        if (array_key_exists($order, $assets))
                    
122        {
                    
                
Router.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 394 lines
                    
1<?php
                    
2
                    
123            'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
                    
124            'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
                    
125            'generator_cache_class' => 'ProjectUrlGenerator',
                    
127            'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher',
                    
128            'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
                    
129            'matcher_cache_class' => 'ProjectUrlMatcher',
                    
136        foreach ($options as $key => $value) {
                    
137            if (array_key_exists($key, $this->options)) {
                    
138                $this->options[$key] = $value;
                    
158    {
                    
159        if (!array_key_exists($key, $this->options)) {
                    
160            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
                    
176    {
                    
177        if (!array_key_exists($key, $this->options)) {
                    
178            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
                    
                
IniAcl.php https://bitbucket.org/ManiAdil/jardinorient.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.Acl
                    
11 * @package       Cake.Controller.Component.Acl
                    
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).
                    
                
IsCompressed.php https://bitbucket.org/haichau59/manga.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25//require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
145		{
                    
146			if (array_key_exists($value["crmEntity"], $searchResult))
                    
147			{
                    
                
Profiler.php https://github.com/kervin/kyzstudio.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
280         */
                    
281        #require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            #require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            #require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
357    {
                    
358        if (!array_key_exists($queryId, $this->_queryProfiles)) {
                    
359            /**
                    
                
IsCompressed.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
IsCompressed.php https://bitbucket.org/hmancvs/farmis.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: IsCompressed.php,v 1.1 2011/11/03 08:27:57 smusoke Exp $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/File/MimeType.php';
                    
26
                    
102            $temp = $mimetype;
                    
103            if (array_key_exists('magicfile', $temp)) {
                    
104                unset($temp['magicfile']);
                    
106
                    
107            if (array_key_exists('headerCheck', $temp)) {
                    
108                unset($temp['headerCheck']);
                    
124     * Throws an error of the given type
                    
125     * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2
                    
126     *
                    
                
Identical.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
59
                    
60        if (is_array($token) && array_key_exists('token', $token)) {
                    
61            if (array_key_exists('strict', $token)) {
                    
64
                    
65            if (array_key_exists('literal', $token)) {
                    
66                $this->setLiteral($token['literal']);
                    
                
BookTitle.php https://gitlab.com/Afsana/Afsana_148423_B35_Session_29 | PHP | 201 lines
                    
1<?php
                    
2
                    
31
                    
32        if(array_key_exists('id',$data)){
                    
33            $this->id=$data['id'];
                    
35
                    
36        if(array_key_exists('book_title',$data)){
                    
37            $this->book_title=$data['book_title'];
                    
39
                    
40        if(array_key_exists('author_name',$data)){
                    
41            $this->author_name=$data['author_name'];
                    
56
                    
57        Utility::redirect('create.php'); // redirect korte hobe create.php te tai utility.php use korechi //
                    
58
                    
99
                    
100        Utility::redirect('index.php');
                    
101
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
97      }
                    
98      elseif (!array_key_exists('width', $infos))
                    
99      {
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
Transition.php https://github.com/sergiosgc/Text_Parser_Generator.git | PHP | 135 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
75        foreach($other->getLookahead() as $i => $otherLookahead) {
                    
76            if (!array_key_exists($i, $this->lookahead)) $this->lookahead[$i] = $grammar->getNonTerminalSymbolSet();
                    
77            if ($this->lookahead[$i]->isDisjoint($otherLookahead)) break;
                    
                
h5p-metadata.class.php https://github.com/mackensen/moodle.git | PHP | 154 lines
                    
1<?php
                    
2
                    
97
                    
98      $exists = array_key_exists($key, $metadata);
                    
99
                    
                
plugin.php https://bitbucket.org/valmy/openx.git | PHP | 154 lines
                    
1<?php
                    
2/*
                    
31
                    
32require_once './init.php';
                    
33
                    
33
                    
34if (array_key_exists('btn_create',$_POST) && array_key_exists('name',$_POST))
                    
35{
                    
                
DibiFluent.php https://github.com/premiumcombination/nts.git | PHP | 502 lines
                    
1<?php
                    
2
                    
141
                    
142		if (array_key_exists($clause, $this->clauses)) {
                    
143			// append to clause
                    
452			$clause = self::$normalizer->$clause;
                    
453			if (array_key_exists($clause, $this->clauses)) {
                    
454				$data = array($clause => $this->clauses[$clause]);
                    
                
IniAcl.php https://bitbucket.org/allanxyh/project.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).
                    
                
Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
357    {
                    
358        if (!array_key_exists($queryId, $this->_queryProfiles)) {
                    
359            /**
                    
                
SessionNamespace.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 237 lines
                    
1<?php
                    
2
                    
86	{
                    
87		if ($this->warnOnUndefined && !array_key_exists($name, $this->data)) {
                    
88			trigger_error("The variable '$name' does not exist in session namespace", E_USER_NOTICE);
                    
                
Feed.php https://gitlab.com/reasonat/test8 | 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'];
                    
                
Gender.php https://gitlab.com/dhimanbarua/Atomic_Project_SEIP141617_B36 | PHP | 178 lines
                    
1<?php
                    
2namespace App\Gender;
                    
21    {
                    
22        if(array_key_exists('id',$data))
                    
23        {
                    
25        }
                    
26        if(array_key_exists('name',$data))
                    
27        {
                    
29        }
                    
30        if(array_key_exists('gender',$data))
                    
31        {
                    
51        }
                    
52        Utility::redirect('create.php');
                    
53
                    
88
                    
89        Utility::redirect('index.php');
                    
90
                    
                
Config.php https://github.com/mrbanzai/zf2.git | PHP | 536 lines
                    
1<?php
                    
2/**
                    
132        $result = $default;
                    
133        if (array_key_exists($name, $this->_data)) {
                    
134            $result = $this->_data[$name];
                    
211    /**
                    
212     * Support isset() overloading on PHP 5.1
                    
213     *
                    
222    /**
                    
223     * Support unset() overloading on PHP 5.1
                    
224     *
                    
389        foreach($merge as $key => $item) {
                    
390            if(array_key_exists($key, $this->_data)) {
                    
391                if($item instanceof Config && $this->$key instanceof Config) {
                    
472        $extendedSectionCurrent = $extendedSection;
                    
473        while (array_key_exists($extendedSectionCurrent, $this->_extends)) {
                    
474            if ($this->_extends[$extendedSectionCurrent] == $extendingSection) {
                    
                
Openssl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 469 lines
                    
1<?php
                    
2/**
                    
84
                    
85        if (array_key_exists('passphrase', $options)) {
                    
86            $this->setPassphrase($options['passphrase']);
                    
89
                    
90        if (array_key_exists('compression', $options)) {
                    
91            $this->setCompression($options['compression']);
                    
94
                    
95        if (array_key_exists('package', $options)) {
                    
96            $this->setPackage($options['package']);
                    
                
MenuManagerComponent.php https://bitbucket.org/FuscaSoftware/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];
                    
                
ClassMethod.php https://gitlab.com/madwanz64/laravel | PHP | 159 lines
                    
1<?php declare(strict_types=1);
                    
2
                    
2
                    
3namespace PhpParser\Node\Stmt;
                    
4
                    
4
                    
5use PhpParser\Node;
                    
6use PhpParser\Node\FunctionLike;
                    
21    public $stmts;
                    
22    /** @var Node\AttributeGroup[] PHP attribute groups */
                    
23    public $attrGroups;
                    
52     *                          'stmts'      => array()        : Statements
                    
53     *                          'attrGroups' => array()        : PHP attribute groups
                    
54     * @param array $attributes Additional attributes
                    
63        $this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType;
                    
64        $this->stmts = array_key_exists('stmts', $subNodes) ? $subNodes['stmts'] : [];
                    
65        $this->attrGroups = $subNodes['attrGroups'] ?? [];
                    
                
Profiler.php https://github.com/StefanRHRO/SCRM.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            /**
                    
                
session.php https://gitlab.com/alexprowars/bitrix | PHP | 317 lines
                    
1<?php
                    
2
                    
93				}
                    
94				$match_value_set = array_key_exists($key."_EXACT_MATCH", $arFilter);
                    
95				$key = strtoupper($key);
                    
258				S.LAST_HIT_ID,
                    
259				S.PHPSESSID,
                    
260				S.ADV_ID,
                    
                
rounding.php https://gitlab.com/alexprowars/bitrix | PHP | 410 lines
                    
1<?php
                    
2namespace Bitrix\Catalog;
                    
373			global $USER;
                    
374			/** @noinspection PhpMethodOrClassCallIsNotCaseSensitiveInspection */
                    
375			$currentUserID = (isset($USER) && $USER instanceof \CUser ? (int)$USER->getID() : null);
                    
379			$setField = true;
                    
380			if (array_key_exists($index, $data))
                    
381				$setField = ($data[$index] !== null && (int)$data[$index] <= 0);
                    
401			$setField = true;
                    
402			if (array_key_exists($index, $data))
                    
403				$setField = ($data[$index] !== null && !is_object($data[$index]));
                    
                
index.php https://gitlab.com/ranjoy/AtomicProject | PHP | 153 lines
                    
62    <h2>All Book List</h2>
                    
63    <a href="create.php" class="btn btn-primary" role="button">Create again</a>  <a href="trashed.php" class="btn btn-primary" role="button">View Trashed list</a>
                    
64    <div id="message">
                    
77                <option <?php if($itemPerPage==20 ):?>selected<?php endif ?>>20</option>
                    
78                <option <?php if($itemPerPage==25 ):?>selected<?php endif ?>>25</option>
                    
79
                    
108                    <a href="delete.php?id=<?php echo $book->id?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
109                    <a href="trash.php?id=<?php echo $book->id ?>"  class="btn btn-info" role="button">Trash</a>
                    
110                </td>
                    
120        <?php if($pageNumber>1):?>
                    
121            <li><a href="index.php?pageNumber=<?php echo $pageNumber-1?>">Prev</a></li><?php endif;?>
                    
122        <?php echo $pagination?>
                    
123        <?php if($pageNumber<$totalPage):?>
                    
124            <li><a href="index.php?pageNumber=<?php echo $pageNumber+1?>">Next</a></li><?php endif;?>
                    
125
                    
                
qbehaviours.php https://github.com/kpike/moodle.git | PHP | 302 lines
                    
1<?php
                    
2
                    
27
                    
28require_once(dirname(__FILE__) . '/../config.php');
                    
29require_once($CFG->libdir . '/questionlib.php');
                    
29require_once($CFG->libdir . '/questionlib.php');
                    
30require_once($CFG->libdir . '/adminlib.php');
                    
31require_once($CFG->libdir . '/tablelib.php');
                    
38admin_externalpage_setup('manageqbehaviours');
                    
39$thispageurl = new moodle_url('/admin/qbehaviours.php');
                    
40
                    
49foreach ($behaviours as $behaviour => $notused) {
                    
50    if (!array_key_exists($behaviour, $counts)) {
                    
51        $counts[$behaviour] = 0;
                    
62foreach ($counts as $behaviour => $count) {
                    
63    if (!array_key_exists($behaviour, $behaviours)) {
                    
64        $counts['missingtype'] += $count;
                    
                
class.moderationcontroller.php https://github.com/abhishekmica/Garden.git | PHP | 319 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
64            
                    
65         if (!array_key_exists($DiscussionID, $CheckedComments)) {
                    
66            $CheckedComments[$DiscussionID] = array();
                    
                
history.php https://github.com/eeggenberger/ezpublish.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
252    $languages = $Module->actionParameter( 'LanguageArray' );
                    
253    if ( $languages && array_key_exists( $versionID, $languages ) )
                    
254    {
                    
                
ArrayStore.php https://gitlab.com/jjpa2018/dashboard | PHP | 218 lines
                    
1<?php
                    
2
                    
140    {
                    
141        if (array_key_exists($key, $this->storage)) {
                    
142            unset($this->storage[$key]);
                    
                
Addon.class.php https://gitlab.com/xuebutayan/yshop | PHP | 149 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
29     *  'status'=>1,
                    
30     *  'author'=>'thinkphp',
                    
31     *  'version'=>'0.1'
                    
47        C('TMPL_PARSE_STRING', $TMPL_PARSE_STRING);
                    
48        if(is_file($this->addon_path.'config.php')){
                    
49            $this->config_file = $this->addon_path.'config.php';
                    
102        foreach ($info_check_keys as $value) {
                    
103            if(!array_key_exists($value, $this->info))
                    
104                return FALSE;
                    
                
BasePhysicalObjectI18n.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 563 lines
                    
340      {
                    
341        if (array_key_exists($column->getPhpName(), $this->values))
                    
342        {
                    
407      {
                    
408        if (!array_key_exists($column->getPhpName(), $this->values))
                    
409        {
                    
420
                    
421        if (array_key_exists($column->getPhpName(), $this->values))
                    
422        {
                    
460      {
                    
461        if (!array_key_exists($column->getPhpName(), $this->values))
                    
462        {
                    
468
                    
469        if (array_key_exists($column->getPhpName(), $this->values))
                    
470        {
                    
                
arr.php https://github.com/mjphaynes/core.git | PHP | 582 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright  2010 - 2011 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
56		{
                    
57			if ( ! is_array($array) or ! array_key_exists($key_part, $array))
                    
58			{
                    
109	/**
                    
110	 * Array_key_exists with a dot-notated key from an array.
                    
111	 *
                    
119		{
                    
120			if ( ! is_array($array) or ! array_key_exists($key_part, $array))
                    
121			{
                    
                
Observer.php https://github.com/speedupmate/Magento-CE-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)) {
                    
                
old.php https://bitbucket.org/Red54/wallproxy.git | PHP | 393 lines
                    
1<?php
                    
2
                    
39function print_notify($method, $url, $status, $content) {
                    
40    $content = "<h2>PHP Server Fetch Info</h2><hr noshade='noshade'><p>$method '$url'</p><p>Return Code: $status</p><p>Message: $content</p>";
                    
41    $headers = array('content-type' => 'text/html');
                    
47    $headers = array('content-type' => 'text/html');
                    
48    $content = "<h2>PHP Server Debug Info</h2><hr noshade='noshade'>";
                    
49    foreach (func_get_args() as $key => $value) {
                    
70            if ($key == 'set-cookie') {
                    
71                if (!array_key_exists('set-cookie', $this->headers)) {
                    
72                    $this->headers['set-cookie'] = $value;
                    
250                if ($key == 'set-cookie') {
                    
251                    if (!array_key_exists('set-cookie', $this->headers)) {
                    
252                        $this->headers['set-cookie'] = $value;
                    
300
                    
301    $request = @gzuncompress(@file_get_contents('php://input'));
                    
302    if ($request === False) {
                    
                
admin_tools_user_selector.php https://gitlab.com/neuser/bitrix-core | PHP | 315 lines
                    
38
                    
39			if(!is_array($val) || !array_key_exists("VALUE",$val))
                    
40				$val = array("VALUE"=>$val, "DESCRIPTION"=>"");
                    
42			$html .= '<tr><td>';
                    
43			if(array_key_exists("GetPropertyFieldHtml", $arUserType))
                    
44				$html .= call_user_func_array($arUserType["GetPropertyFieldHtml"],
                    
103			$html .= '<tr><td>';
                    
104			if(array_key_exists("GetPropertyFieldHtml", $arUserType))
                    
105				$html .= call_user_func_array($arUserType["GetPropertyFieldHtml"],
                    
159			$select = "CU";
                    
160			$res = "[<a title='".GetMessage("LEARNING_USER_SELECTOR_USER_PROFILE")."'  href='/bitrix/admin/user_edit.php?ID=".$USER->GetID()."&lang=".LANG."'>".$USER->GetID()."</a>] (".htmlspecialcharsbx($USER->GetLogin()).") ".htmlspecialcharsbx($USER->GetFirstName())." ".htmlspecialcharsbx($USER->GetLastName());
                    
161		}
                    
166			if ($arUser = $rsUsers->Fetch())
                    
167				$res = "[<a title='".GetMessage("LEARNING_USER_SELECTOR_USER_PROFILE")."'  href='/bitrix/admin/user_edit.php?ID=".$arUser["ID"]."&lang=".LANG."'>".$arUser["ID"]."</a>] (".htmlspecialcharsbx($arUser["LOGIN"]).") ".htmlspecialcharsbx($arUser["NAME"])." ".htmlspecialcharsbx($arUser["LAST_NAME"]);
                    
168			else
                    
                
Profiler.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
357    {
                    
358        if (!array_key_exists($queryId, $this->_queryProfiles)) {
                    
359            /**
                    
                
Profiler.php https://bitbucket.org/hmancvs/farmis.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php,v 1.1 2011/11/03 08:30:06 smusoke Exp $
                    
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            /**
                    
                
course.php https://github.com/nadavkav/MoodleTAO.git | PHP | 134 lines
                    
1<?php
                    
2
                    
18
                    
19require_once '../../../config.php';
                    
20require_once $CFG->dirroot.'/grade/lib.php';
                    
20require_once $CFG->dirroot.'/grade/lib.php';
                    
21require_once $CFG->libdir.'/gradelib.php';
                    
22
                    
49foreach ($courseused as $oid) {
                    
50    if (!array_key_exists($oid, $standardoutcomes) and !array_key_exists($oid, $co_custom)) {
                    
51        delete_records('grade_outcomes_courses', 'outcomeid', $oid, 'courseid', $courseid);
                    
72    foreach ($realused as $oid) {
                    
73        if (array_key_exists($oid, $standardoutcomes)) {
                    
74
                    
104            $add = clean_param($add, PARAM_INT);
                    
105            if (!array_key_exists($add, $standardoutcomes)) {
                    
106                continue;
                    
                
Config.php https://github.com/alvarotala/phpLightMVC.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
132	{
                    
133		if (array_key_exists($name, $this->connections))
                    
134			return $this->connections[$name];
                    
145	{
                    
146		return array_key_exists($this->default_connection,$this->connections) ?
                    
147			$this->connections[$this->default_connection] : null;
                    
                
generage-wiki.php https://github.com/bhaumik25/zend-framework.git | PHP | 337 lines
                    
1<?php
                    
2
                    
4
                    
5require_once dirname(__FILE__) . '/config.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
7require_once dirname(__FILE__) . '/library/Confluence/Chapter.php';
                    
8
                    
114
                    
115    if (array_key_exists($compareKey, $compare)) {
                    
116        echo 'existing page - updating';
                    
169
                    
170        if (array_key_exists($compareKey, $compare)) {
                    
171            echo ' existing page - updating';
                    
224
                    
225    if (array_key_exists($compareKey, $compare)) {
                    
226        echo ' existing page - updating';
                    
                
StatusResponse.php https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git | PHP | 193 lines
                    
1<?php
                    
2
                    
20 *
                    
21 * @package simpleSAMLphp
                    
22 * @version $Id$
                    
96	public function isSuccess() {
                    
97		assert('array_key_exists("Code", $this->status)');
                    
98
                    
144	public function setStatus(array $status) {
                    
145		assert('array_key_exists("Code", $status)');
                    
146
                    
147		$this->status = $status;
                    
148		if (!array_key_exists('SubCode', $status)) {
                    
149			$this->status['SubCode'] = NULL;
                    
150		}
                    
151		if (!array_key_exists('Message', $status)) {
                    
152			$this->status['Message'] = NULL;
                    
                
Profiler.php https://bitbucket.org/yeahyahoo/yeahyahoo.bitbucket.org.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
357    {
                    
358        if (!array_key_exists($queryId, $this->_queryProfiles)) {
                    
359            /**
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
235		{
                    
236			if (array_key_exists('name', $config))
                    
237			{
                    
246		// Set the model state
                    
247		if (array_key_exists('state', $config))
                    
248		{
                    
256		// Set the model dbo
                    
257		if (array_key_exists('dbo', $config))
                    
258		{
                    
266		// Set the default view search path
                    
267		if (array_key_exists('table_path', $config))
                    
268		{
                    
                
lib.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 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
                    
                
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    }
                    
                
AmorphousModel.php https://gitlab.com/e0/X2CRM | PHP | 134 lines
                    
1<?php
                    
2/***********************************************************************************
                    
98    public function hasAttribute($name){
                    
99        return array_key_exists($name,$this->_attributes);
                    
100    }
                    
                
plugin.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 481 lines
                    
1<?php
                    
2
                    
51        // set config
                    
52        if (!array_key_exists('type', $config)) {
                    
53            $config['type'] = 'standard';
                    
55
                    
56        if (!array_key_exists('base_path', $config)) {
                    
57            $config['base_path'] = WF_EDITOR_PLUGINS . '/' . $plugin;
                    
63
                    
64        if (!array_key_exists('view_path', $config)) {
                    
65            $config['view_path'] = WF_EDITOR_PLUGINS . '/' . $plugin;
                    
67
                    
68        if (!array_key_exists('layout', $config)) {
                    
69            $config['layout'] = 'default';
                    
71
                    
72        if (!array_key_exists('template_path', $config)) {
                    
73            $config['template_path'] = WF_EDITOR_PLUGIN . '/tmpl';
                    
                
PdoSessionHandler.php https://github.com/Exercise/symfony.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.');
                    
                
importgradeslib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 190 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
156            if ($userid = $this->assignment->get_user_id_for_uniqueid($id)) {
                    
157                if (array_key_exists($userid, $this->validusers)) {
                    
158                    $result->grade = $record[$this->gradeindex];
                    
                
SurveyDBClass.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 732 lines
                    
1<?php
                    
2
                    
7 * 
                    
8 * @file SurveyDBClass.php
                    
9 * @ingroup Survey
                    
394		
                    
395		if ( array_key_exists( $name, $fields ) ) {
                    
396			switch ( $fields[$name] ) {
                    
485	public function hasField( $name ) {
                    
486		return array_key_exists( $name, $this->fields );
                    
487	}
                    
498	public static function canHasField( $name ) {
                    
499		return array_key_exists( $name, static::getFieldTypes() );
                    
500	}
                    
540		foreach ( static::getFieldTypes() as $name => $type ) {
                    
541			if ( array_key_exists( $name, $this->fields ) ) {
                    
542				$value = $this->fields[$name];
                    
                
hardware.php https://gitlab.com/7slayer/h-node | PHP | 567 lines
                    
1<?php
                    
2
                    
58	{
                    
59		if (array_key_exists($string,self::$translations))
                    
60		{
                    
148	{
                    
149		if (array_key_exists($type,self::$typeToController))
                    
150		{
                    
157	{
                    
158		if (array_key_exists($type,self::$typeToWorksField))
                    
159		{
                    
168		$temp = array_flip(self::$typeToController);
                    
169		if (array_key_exists($controller,$temp))
                    
170		{
                    
177	{
                    
178		if (array_key_exists($class,self::$deviceClasses))
                    
179		{
                    
                
settings_connections.php https://gitlab.com/x33n/platform | PHP | 225 lines
                    
1<?php
                    
2$page_data_object = new CASHConnection(AdminHelper::getPersistentData('cash_effective_user'));
                    
43				if (!isset($_POST['dosettingsadd'])) {
                    
44					if (array_key_exists($settings_type, $settings_types_data)) {
                    
45						$cash_admin->page_data['state_markup'] = '<h4>' . $settings_types_data[$settings_type]['name'] . '</h4><p>' . $settings_types_data[$settings_type]['instructions'] . '</p>';
                    
123						$return_url = rtrim(CASHSystem::getCurrentURL(),'/') . '/finalize';
                    
124						// PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::getRedirectMarkup', $return_url);
                    
125						$cash_admin->page_data['state_markup'] = $seed_name::getRedirectMarkup($return_url);
                    
128						$_REQUEST['connections_base_uri'] = $connections_base_uri;
                    
129						// PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::handleRedirectReturn', $_REQUEST);
                    
130						$cash_admin->page_data['state_markup'] = $seed_name::handleRedirectReturn($_REQUEST);
                    
199
                    
200			if (array_key_exists($data['type'],$settings_types_data)) {
                    
201				$cash_admin->page_data['state_markup'] .= '<p><strong>' . $settings_types_data[$data['type']]['name'] . '</strong>';
                    
                
Feed.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 361 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
74        if (!ctype_alpha($value) && strlen($value) > 0) {
                    
75            require_once 'Zend/Feed/Exception.php';
                    
76            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
79        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
80            require_once 'Zend/Feed/Exception.php';
                    
81            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
110        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
111            require_once 'Zend/Feed/Exception.php';
                    
112            throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
                    
135                if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
136                    require_once 'Zend/Feed/Exception.php';
                    
137                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
                
Client.php https://github.com/Kalyse/IndexTank-API--Zend-Framework-.git | PHP | 314 lines
                    
1<?php 
                    
2require_once 'Zend/Http/Client.php';
                    
36        if(!isset($this->_client)){
                    
37            require_once 'IndexTank/Exception/IndexTank.php';
                    
38            throw new IndexTank_Exception_IndexTank("The Client has not been set yet for the IndexTank_Index_Client");
                    
71          } elseif ( is_array($metaData)){
                    
72              if(array_key_exists("public_search", $metaData)){
                    
73                 $this->setPublic ( $metaData['public_search'] );
                    
74              }
                    
75              if(array_key_exists("status", $metaData)){
                    
76                  $this->setStatus( $metaData['status'] );
                    
77              }
                    
78              if(array_key_exists("code", $metaData)){
                    
79                 $this->setCode( $metaData['code'] );
                    
80              }
                    
81              if(array_key_exists("creation_time", $metaData)){
                    
82                 $this->setCreationDate( $metaData['creation_time'] );
                    
                
SMW_DataValueFactory.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
72		SMWDataItem::TYPE_PROPERTY => '__pro', // Property type
                    
73		// If either of the following two occurs, we want to see a PHP error:
                    
74		//SMWDataItem::TYPE_NOTYPE => '',
                    
91
                    
92		if ( array_key_exists( $typeid, self::$mTypeClasses ) ) {
                    
93			$result = new self::$mTypeClasses[$typeid]( $typeid );
                    
143		self::initDatatypes();
                    
144		if ( array_key_exists( $typeid, self::$mTypeDataItemIds ) ) {
                    
145			return self::$mTypeDataItemIds[$typeid];
                    
310			return $id;
                    
311		} elseif ( ( $useAlias ) && ( array_key_exists( $label, self::$mTypeAliases ) ) ) {
                    
312			return self::$mTypeAliases[$label];
                    
329
                    
330		if ( array_key_exists( $id, self::$mTypeLabels ) ) {
                    
331			return self::$mTypeLabels[$id];
                    
                
PregReplace.php https://github.com/basdog22/Qool.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: PregReplace.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Filter/Interface.php';
                    
26
                    
104
                    
105        if (array_key_exists('match', $options)) {
                    
106            $this->setMatchPattern($options['match']);
                    
108
                    
109        if (array_key_exists('replace', $options)) {
                    
110            $this->setReplacement($options['replace']);
                    
166        if ($this->_matchPattern == null) {
                    
167            require_once 'Zend/Filter/Exception.php';
                    
168            throw new Zend_Filter_Exception(get_class($this) . ' does not have a valid MatchPattern set.');
                    
                
Tags.php https://github.com/Brucee/pyrocms.git | PHP | 542 lines
                    
1<?php
                    
2/**
                    
174		{
                    
175			$orig_content = $this->parse_php($this->parse_conditionals($orig_content), $data);
                    
176			return array('content' => $orig_content, 'tags' => array());
                    
196					$return_data = FALSE;
                    
197					if (array_key_exists($tag['segments'][0], $data))
                    
198					{
                    
267		}
                    
268		$orig_content = $this->parse_php($this->parse_conditionals($orig_content), $data);
                    
269
                    
301
                    
302		$content = preg_replace('#{if (.*?)}#i', '<?php if($1): ?>', $content);
                    
303		$content = preg_replace('#{elseif (.*?)}#i', '<?php elseif($1): ?>', $content);
                    
303		$content = preg_replace('#{elseif (.*?)}#i', '<?php elseif($1): ?>', $content);
                    
304		$content = preg_replace('#{else}#i', '<?php else: ?>', $content);
                    
305		$content = preg_replace('#{/if}#i', '<?php endif; ?>', $content);
                    
                
AbstractTest.php https://github.com/tanduy/zf.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Validate_AbstractTest::main');
                    
27/** Test helper */
                    
28require_once dirname(__FILE__) . '/../../TestHelper.php';
                    
29
                    
30/** Zend_Validate_Abstract */
                    
31require_once 'Zend/Validate/Abstract.php';
                    
32
                    
33/** Zend_Translate */
                    
34require_once 'Zend/Translate.php';
                    
35
                    
36/** Zend_Registry */
                    
37require_once 'Zend/Registry.php';
                    
38
                    
                
Entry.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Reader.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Feed/Reader/Extension/EntryAbstract.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Date.php';
                    
36
                    
69    {
                    
70        if (array_key_exists('authors', $this->_data)) {
                    
71            return $this->_data['authors'];
                    
                
Client.php https://gitlab.com/aleritty/yaitb | PHP | 397 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
215        // conditional headers and as headers passed to a request ctor.
                    
216        if (array_key_exists('headers', $options)) {
                    
217            // Allows default headers to be unset.
                    
349            if (is_array($value)) {
                    
350                $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986);
                    
351            }
                    
                
 

Source

Language