100+ results for 'php array_key_exists'
Not the results you expected?
CellQuery.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 417 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: CellQuery.php 23805 2011-03-16 00:55:40Z tjohns $
22 */
25 * Zend_Gdata_App_util
26 */
27 // // // // // // // // require_once('Zend/Gdata/App/Util.php');
29 /**
30 * Zend_Gdata_Query
31 */
32 // // // // // // // // require_once('Zend/Gdata/Query.php');
34 /**
ObjectManager.php (https://gitlab.com/AlexandrSy/magento.xxx) PHP · 316 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
25 * Test object
26 *
27 * @var \PHPUnit_Framework_TestCase
28 */
29 protected $_testObject;
32 * Class constructor
33 *
34 * @param \PHPUnit_Framework_TestCase $testObject
35 */
36 public function __construct(\PHPUnit_Framework_TestCase $testObject)
44 * @param string $argClassName
45 * @param array $originalArguments
46 * @return null|object|\PHPUnit_Framework_MockObject_MockObject
47 */
48 protected function _createArgumentMock($argClassName, array $originalArguments)
galleries2.php (https://github.com/chrisgraham/ocPortal.git) PHP · 339 lines
1 <?php /*
3 ocPortal
150 require_lang("workflows");
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));
154 if ($edit_workflow)
206 require_lang("workflows");
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));
210 if ($edit_workflow)
259 require_lang("workflows");
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);
263 if ($edit_workflow)
IsCompressed.php (https://github.com/quarkness/piwik.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 // require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
h5p-metadata.class.php (https://github.com/markn86/moodle.git) PHP · 154 lines
course.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 134 lines
1 <?php
3 // This file is part of Moodle - http://moodle.org/
19 require_once '../../../config.php';
20 require_once $CFG->dirroot.'/grade/lib.php';
21 require_once $CFG->libdir.'/gradelib.php';
23 $courseid = required_param('id', PARAM_INT);
48 // fix wrong entries in outcomes_courses
49 foreach ($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);
52 }
FormFactory.php (https://github.com/castillojorge/SemdropsMobile.git) PHP · 401 lines
MultipartStream.php (https://gitlab.com/ealexis.t/trends) PHP · 153 lines
1 <?php
2 namespace GuzzleHttp\Psr7;
80 {
81 foreach (['contents', 'name'] as $key) {
82 if (!array_key_exists($key, $element)) {
83 throw new \InvalidArgumentException("A '{$key}' key is required");
84 }
89 if (empty($element['filename'])) {
90 $uri = $element['contents']->getMetadata('uri');
91 if (substr($uri, 0, 6) !== 'php://') {
92 $element['filename'] = $uri;
93 }
IsCompressed.php (https://github.com/kervin/kyzstudio.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 #require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
SMW_SparqlResultParser.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 153 lines
1 <?php
2 /**
3 * Parser class for the SPARQL XML result format.
99 $this->m_xml_opentags[] = $tagName;
100 if ( ( $tagName == 'binding' ) && ( $prevTag == 'result' ) ) {
101 if ( ( array_key_exists( 'name', $attributes ) ) &&
102 ( array_key_exists( $attributes['name'], $this->m_header ) ) ) {
110 $this->m_data[] = $row;
111 } elseif ( ( $tagName == 'literal' ) && ( $prevTag == 'binding' ) ) {
112 if ( array_key_exists( 'datatype', $attributes ) ) {
113 $this->m_xml_datatype = $attributes['datatype'];
114 } else {
117 /// TODO handle xml:lang attributes here as well?
118 } elseif ( ( $tagName == 'variable' ) && ( $prevTag == 'head' ) ) {
119 if ( array_key_exists( 'name', $attributes ) ) {
120 $this->m_header[$attributes['name']] = count( $this->m_header );
121 }
ParserFunctions.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 189 lines
CommentTestTrait.php (https://gitlab.com/reasonat/test8) PHP · 121 lines
1 <?php
3 namespace Drupal\comment\Tests;
53 // Add a comment field to the host entity type. Create the field storage if
54 // needed.
55 if (!array_key_exists($field_name, $entity_manager->getFieldStorageDefinitions($entity_type))) {
56 $entity_manager->getStorage('field_storage_config')->create(array(
57 'entity_type' => $entity_type,
65 }
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(
69 'label' => 'Comments',
Product.php (https://gitlab.com/MohammadShakil/POS_Management_System) PHP · 120 lines
1 <?php
2 namespace App\Product;
3 use App\Message\Message;
26 public function prepareData($data=array())
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 }
fatal.php (https://github.com/adampatterson/Spoke-Calculator.git) PHP · 168 lines
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-ca">
3 <head>
4 <title><?php echo $error['prefix']; ?> Error</title>
5 <style type="text/css" media="screen">
6 body {
106 <h1><?php echo $error['prefix']; ?> Error in <?php echo route::controller(),'.',route::method() ?>();</h1>
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 <?
147 echo '<pre'.($odd === FALSE ? '' : ' class="Odd"').'>';
149 if (array_key_exists('file', $backtrace[$i])) {
150 $file = '['.$backtrace[$i]['file'].':'
151 .$backtrace[$i]['line'].'] ';
152 }
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'] : '::'
ObjectManager.php (https://gitlab.com/daigiangaitu91/magento) PHP · 316 lines
1 <?php
2 /**
3 * Copyright © 2015 Magento. All rights reserved.
25 * Test object
26 *
27 * @var \PHPUnit_Framework_TestCase
28 */
29 protected $_testObject;
32 * Class constructor
33 *
34 * @param \PHPUnit_Framework_TestCase $testObject
35 */
36 public function __construct(\PHPUnit_Framework_TestCase $testObject)
44 * @param string $argClassName
45 * @param array $originalArguments
46 * @return null|object|\PHPUnit_Framework_MockObject_MockObject
47 */
48 protected function _createArgumentMock($argClassName, array $originalArguments)
Field.php (https://github.com/michaelmcandrew/vaw.git) PHP · 146 lines
toolsettings.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 138 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
79 if (!empty($systemsettings)) {
80 foreach ($systemsettings as $key => $value) {
81 if ((!empty($contextsettings) && array_key_exists($key, $contextsettings)) ||
82 (!empty($linksettings) && array_key_exists($key, $linksettings))) {
87 if (!empty($contextsettings)) {
88 foreach ($contextsettings as $key => $value) {
89 if (!empty($linksettings) && array_key_exists($key, $linksettings)) {
90 unset($contextsettings[$key]);
91 }
MessageStack.php (https://gitlab.com/donyradjah/cvglobal) PHP · 182 lines
1 <?php
2 /**
3 * Particle.
4 *
5 * @link http://github.com/particle-php for the canonical source repository
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 */
9 namespace Particle\Validator;
76 }
78 if (array_key_exists($reason, $this->defaultMessages)) {
79 return $this->defaultMessages[$reason];
80 }
reload.class.php (https://bitbucket.org/orchdork10159/dnsman.ly.git) PHP · 105 lines
1 <?php
2 /**
3 * save resource form data for reload
77 }
79 if(array_key_exists('create-resource-token', $scriptProperties) && !empty($scriptProperties['create-resource-token'])) {
80 $topic = '/resourcereload/';
81 $this->reg->subscribe($topic);
83 if(array_key_exists('id', $scriptProperties) && is_numeric($scriptProperties['id']) && intval($scriptProperties['id']) > 0) {
84 $return = $modx->error->success('', array(
85 'id'=> $scriptProperties['id']
ImageUploader.php (https://gitlab.com/Hoq/lab_exem7_B21_Rakib_SEIP124310) PHP · 145 lines
1 <?php
2 namespace App\Bitm\SEIP124310\ProfilePicture;
21 public function prepare($data = array())
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'];
31 }
Google_WPIO.php (https://gitlab.com/iamgraeme/royalmile) PHP · 165 lines
Collection.php (https://bitbucket.org/larryg/powerhut.git) PHP · 174 lines
1 <?php namespace Basset;
3 class Collection {
119 // the array of assets has been reversed, so if the last asset was told to be first
120 // then when we finally get to the first added asset it's added second.
121 if (array_key_exists($order, $assets))
122 {
123 array_splice($assets, $order, 0, array(null));
FilterTypeGuesser.php (https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle.git) PHP · 141 lines
1 <?php
3 declare(strict_types=1);
12 */
14 namespace Sonata\DoctrinePHPCRAdminBundle\Guesser;
16 use Doctrine\Bundle\PHPCRBundle\Form\Type\DocumentType;
17 use Doctrine\Bundle\PHPCRBundle\ManagerRegistry;
18 use Doctrine\ODM\PHPCR\Mapping\ClassMetadata;
19 use Doctrine\ODM\PHPCR\Mapping\MappingException;
20 use Sonata\AdminBundle\Guesser\TypeGuesserInterface;
21 use Sonata\AdminBundle\Model\ModelManagerInterface;
IniAcl.php (https://bitbucket.org/ManiAdil/jardinorient.git) PHP · 172 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
8 *
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
12 * @since CakePHP(tm) v 0.10.0.1076
13 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
14 */
15 App::uses('AclInterface', 'Controller/Component/Acl');
17 /**
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 *
21 * @package Cake.Controller.Component.Acl
IsCompressed.php (https://bitbucket.org/haichau59/manga.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 //require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
IsCompressed.php (https://bitbucket.org/hmancvs/farmis.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
IsCompressed.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
SessionNamespace.php (https://github.com/PJK/Nette-Exceptions---Independent-Components.git) PHP · 237 lines
lavaBase.php (https://github.com/volcanicpixels/Privacy-Plugin.git) PHP · 419 lines
1 <?php
2 /**
3 * The lava base class
111 {
113 echo "<h2>LavaError thrown on line 110 of lavaBase.php</h2> <br/>";
114 echo "Could not find method '{$methodName}' on object of class '" . get_class( $this ) . "'. We also tried the current child which has class '" . get_class( $this->getContext() ) . "' and the parent which has class '" . get_class( $this->getContext() ) . "'.";
165 $this->chain[ $handle ] = $context;
166 }
167 if( array_key_exists($handle, $this->chain) ) {
168 return $this->chain[ $handle ];
169 } else {
197 final function getContext( $handle = "current" )
198 {
199 if( array_key_exists( $handle, $this->chain ) )
200 {
201 return $this->chain[ $handle ];
BookTitle.php (https://gitlab.com/Afsana/Afsana_148423_B35_Session_29) PHP · 201 lines
1 <?php
3 namespace App\BookTitle;
30 public function setData($data=NULL){
32 if(array_key_exists('id',$data)){
33 $this->id=$data['id'];
34 }
36 if(array_key_exists('book_title',$data)){
37 $this->book_title=$data['book_title'];
38 }
55 Message::message("Failed! Data Has Not Been Inserted Successfully :(");
57 Utility::redirect('create.php'); // redirect korte hobe create.php te tai utility.php use korechi //
59 }//end of store method
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: */
3 namespace sergiosgc;
74 {
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;
78 $this->lookahead[$i]->complement($otherLookahead);
IsCompressed.php (https://gitlab.com/grayhamster/open-social-media-monitoring) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines
1 <?php
2 namespace Parser;
3 /*
17 */
19 use Meta\AbstractPHPStructure;
20 use Meta\DocBlock;
33 /**
34 * Responsible for parsing a php class
35 *
36 * @author Richard Downes <richard@sculpt.ie>
44 * Responsible for storing the information about the structure being parsed
45 *
46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure
47 */
48 protected $structure;
plugin.php (https://bitbucket.org/valmy/openx.git) PHP · 154 lines
Gender.php (https://gitlab.com/dhimanbarua/Atomic_Project_SEIP141617_B36) PHP · 178 lines
1 <?php
2 namespace App\Gender;
3 use App\Model\Database as DB;
20 public function setData($data=NULL)
21 {
22 if(array_key_exists('id',$data))
23 {
24 $this->id = $data['id'];
25 }
26 if(array_key_exists('name',$data))
27 {
28 $this->name= $data['name'];
29 }
30 if(array_key_exists('gender',$data))
31 {
32 $this->gender = $data['gender'];
Config.php (https://github.com/double-z/phpLightMVC.git) PHP · 196 lines
1 <?php
2 /**
3 * @package ActiveRecord
131 public function get_connection($name)
132 {
133 if (array_key_exists($name, $this->connections))
134 return $this->connections[$name];
144 public function get_default_connection_string()
145 {
146 return array_key_exists($this->default_connection,$this->connections) ?
147 $this->connections[$this->default_connection] : null;
148 }
MenuManagerComponent.php (https://bitbucket.org/FuscaSoftware/candycane.git) PHP · 162 lines
1 <?php
2 class MenuManagerComponent extends Component
3 {
59 // TODO : now support only project menu
60 $actions = $this->controller->params['action'];
61 if (array_key_exists('only', $options)) {
62 $actions = $options['only'];
63 }
96 $this->_select($val);
97 }
98 if (array_key_exists('params', $val)) {
99 $params = $val['params'];
100 if (!is_array($params)) {
102 }
103 foreach ($params as $param) {
104 if (array_key_exists($param, $this->controller->request->params)) {
105 $val[$param] = $this->controller->request->params[$param];
106 }
IniAcl.php (https://bitbucket.org/allanxyh/project.git) PHP · 172 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
8 *
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
12 * @since CakePHP(tm) v 0.10.0.1076
13 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
14 */
15 App::uses('AclInterface', 'Controller/Component/Acl');
17 /**
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 *
21 * @package Cake.Controller.Component
Identical.php (https://gitlab.com/jalon/doadoronline) PHP · 193 lines
rb_plan_programs_embedded.php (https://github.com/moodlehq/totara.git) PHP · 131 lines
1 <?php
2 /*
3 * This file is part of Totara LMS
23 */
25 require_once($CFG->dirroot . '/totara/program/lib.php');
27 class rb_plan_programs_embedded extends rb_base_embedded {
33 public function __construct($data) {
35 $userid = array_key_exists('userid', $data) ? $data['userid'] : null;
36 $rolstatus = array_key_exists('rolstatus', $data) ? $data['rolstatus'] : null;
37 $exceptionstatus = array_key_exists('exceptionstatus', $data) ? $data['exceptionstatus'] : null;
39 $this->url = '/totara/plan/record/programs.php';
ClassMethod.php (https://gitlab.com/jjpa2018/dashboard) PHP · 159 lines
1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Stmt;
5 use PhpParser\Node;
6 use PhpParser\Node\FunctionLike;
20 /** @var Node\Stmt[]|null Statements */
21 public $stmts;
22 /** @var Node\AttributeGroup[] PHP attribute groups */
23 public $attrGroups;
51 * 'returnType' => null : Return type
52 * 'stmts' => array() : Statements
53 * 'attrGroups' => array() : PHP attribute groups
54 * @param array $attributes Additional attributes
55 */
ArrayStore.php (https://gitlab.com/jjpa2018/dashboard) PHP · 218 lines
Addon.class.php (https://gitlab.com/xuebutayan/yshop) PHP · 149 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | OneThink [ WE CAN DO IT JUST THINK IT ]
28 * 'description'=>'用于增强整站长文本的输入和显示',
29 * 'status'=>1,
30 * 'author'=>'thinkphp',
31 * 'version'=>'0.1'
32 * )
46 $TMPL_PARSE_STRING['__ADDONROOT__'] = __ROOT__ . '/Addons/'.$this->getName();
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';
101 $info_check_keys = array('name','title','description','status','author','version');
102 foreach ($info_check_keys as $value) {
103 if(!array_key_exists($value, $this->info))
104 return FALSE;
105 }
Entry.php (https://bitbucket.org/skudatech/azure-sdk-for-php.git) PHP · 630 lines
17 * @category Microsoft
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
163 }
165 if (array_key_exists('content', $entryArray)) {
166 $content = new Content();
167 $content->parseXml($entryArray['content']->asXML());
AlertInstance.php (https://github.com/trob/fabrik.git) PHP · 133 lines
serverconfig.class.php (https://github.com/ultramega/tempservers.git) PHP · 143 lines
1 <?php
2 /**
3 * ServerConfig class
123 $newConfigArray = array();
124 $oldConfigArray = self::get(true);
125 if(array_key_exists('hostname', $oldConfigArray)) {
126 $newConfigArray['hostname'] = $oldConfigArray['hostname'];
127 }
129 $newConfigArray['hostname'] = $this->defaultCvars['hostname'];
130 }
131 if(array_key_exists('sv_password', $oldConfigArray)) {
132 $newConfigArray['sv_password'] = $oldConfigArray['sv_password'];
133 }
134 if(array_key_exists('mp_timelimit', $oldConfigArray)) {
135 $newConfigArray['mp_timelimit'] = $oldConfigArray['mp_timelimit'];
136 }
Field.php (https://github.com/michaelmcandrew/lbc.git) PHP · 146 lines
StatusResponse.php (https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git) PHP · 193 lines
1 <?php
3 /**
19 * aren't present.
20 *
21 * @package simpleSAMLphp
22 * @version $Id$
23 */
95 */
96 public function isSuccess() {
97 assert('array_key_exists("Code", $this->status)');
99 if ($this->status['Code'] === SAML2_Const::STATUS_SUCCESS) {
143 */
144 public function setStatus(array $status) {
145 assert('array_key_exists("Code", $status)');
147 $this->status = $status;
SurveyDBClass.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 732 lines
1 <?php
3 /**
6 * @since 0.1
7 *
8 * @file SurveyDBClass.php
9 * @ingroup Survey
10 *
393 $fields = static::getFieldTypes();
395 if ( array_key_exists( $name, $fields ) ) {
396 switch ( $fields[$name] ) {
397 case 'int':
484 */
485 public function hasField( $name ) {
486 return array_key_exists( $name, $this->fields );
487 }
AmorphousModel.php (https://gitlab.com/e0/X2CRM) PHP · 134 lines
services12.php (https://github.com/gimler/symfony.git) PHP · 155 lines
1 <?php
3 use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
79 $name = (string) $name;
81 if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) {
82 throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
83 }
93 $name = (string) $name;
95 return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters);
96 }
150 return array(
151 'bar' => __DIR__,
152 'baz' => (__DIR__.'/PhpDumperTest.php'),
153 );
154 }
Client.php (https://github.com/Kalyse/IndexTank-API--Zend-Framework-.git) PHP · 314 lines
1 <?php
2 require_once 'Zend/Http/Client.php';
35 private function _getClient(){
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");
39 }
70 $this->_options['public_search'] = false;
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 }
PdoSessionHandler.php (https://bitbucket.org/shadywallas/user-management-system.git) PHP · 221 lines
Node.php (https://bitbucket.org/acidel/buykoala.git) PHP · 257 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Connect
23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
92 public function metadataKeyExists($key)
93 {
94 return array_key_exists($key, $this->_metadata);
95 }
PregReplace.php (https://github.com/basdog22/Qool.git) PHP · 174 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Filter_Interface
24 */
25 require_once 'Zend/Filter/Interface.php';
27 /**
103 }
105 if (array_key_exists('match', $options)) {
106 $this->setMatchPattern($options['match']);
107 }
Count.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 251 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
203 public function isValid($value, $file = null)
204 {
205 if (($file !== null) && !array_key_exists('destination', $file)) {
206 $file['destination'] = dirname($value);
207 }
209 if (($file !== null) && array_key_exists('tmp_name', $file)) {
210 $value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name'];
211 }
238 if ($file !== null) {
239 if (is_array($file)) {
240 if (array_key_exists('name', $file)) {
241 $this->value = $file['name'];
242 }
Entry.php (https://bitbucket.org/Sinfin/pawtucket.git) PHP · 266 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Feed_Reader
24 */
25 require_once 'Zend/Feed/Reader.php';
27 /**
28 * @see Zend_Feed_Reader_Extension_EntryAbstract
29 */
30 require_once 'Zend/Feed/Reader/Extension/EntryAbstract.php';
32 /**
ImageToolkitOperationBase.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 191 lines
1 <?php
3 namespace Drupal\Core\ImageToolkit;
107 // Check if the argument is required and, if so, has been provided.
108 if ($argument['required']) {
109 if (!array_key_exists($id, $arguments)) {
110 // If the argument is required throw an exception.
111 throw new \InvalidArgumentException("Argument '$id' expected by plugin '{$this->getPluginId()}' but not passed");
116 // We check this even if the argument is provided by the caller, as we
117 // want to fail fast here, i.e. at development time.
118 if (!array_key_exists('default', $argument)) {
119 // The plugin did not define a default, so throw a plugin exception,
120 // not an invalid argument exception.
124 // Use the default value if the argument is not passed in.
125 if (!array_key_exists($id, $arguments)) {
126 $arguments[$id] = $argument['default'];
127 }
AssetInstance.php (https://gitlab.com/D-apos-software/Alcesac) PHP · 149 lines
Arr.php (https://gitlab.com/leon0399/damnit-engine) PHP · 475 lines
1 <?php
3 namespace Illuminate\Support;
235 foreach (explode('.', $key) as $segment) {
236 if (! is_array($array) || ! array_key_exists($segment, $array)) {
237 return value($default);
238 }
257 }
259 if (array_key_exists($key, $array)) {
260 return true;
261 }
263 foreach (explode('.', $key) as $segment) {
264 if (! is_array($array) || ! array_key_exists($segment, $array)) {
265 return false;
266 }
RateTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 299 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
205 *
206 * @param array $rateClassData
207 * @SuppressWarnings(PHPMD.NPathComplexity)
208 */
209 public function testAjaxLoadAction($rateClassData)
293 $this->assertArrayHasKey('success', $result);
294 $this->assertTrue($result['success'] == false);
295 $this->assertTrue(!array_key_exists('result', $result));
296 $this->assertArrayHasKey('error_message', $result);
297 $this->assertTrue(strlen($result['error_message'])>0);
ThumbBase.php (https://gitlab.com/gregtyka/SiberianCMS) PHP · 323 lines
1 <?php
2 /**
3 * PhpThumb Base Class Definition File
7 * PHP Version 5 with GD 2.0+
8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>
9 * Copyright (c) 2009, Ian Selby/Gen X Design
10 *
16 * @author Ian Selby <ian@gen-x-design.com>
17 * @copyright Copyright (c) 2009 Gen X Design
18 * @link http://phpthumb.gxdlabs.com
19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
20 * @version 3.0
21 * @package PhpThumb
22 * @filesource
23 */
ACLBasic.php (https://github.com/nysenate/Bluebird-CRM.git) PHP · 180 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------+
110 $permissions = CRM_Core_Permission::basicPermissions();
111 while ($dao->fetch()) {
112 if (!array_key_exists($dao->entity_id, $acl)) {
113 $acl[$dao->entity_id] = [];
114 $acl[$dao->entity_id]['name'] = $dao->name;
ParameterizedHeader.php (https://gitlab.com/dsasmita/talita-shop) PHP · 265 lines
Repository.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 249 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
15 /**
16 * Class Repository
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18 */
19 class Repository implements \Magento\Catalog\Api\ProductCustomOptionRepositoryInterface
182 foreach ($newValues as $newValue) {
183 if (array_key_exists('option_type_id', $newValue)) {
184 $existingValuesIds[] = $newValue['option_type_id'];
185 }
Request.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 295 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Request.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
145 public function getParam($index)
146 {
147 if (array_key_exists($index, $this->_params)) {
148 return $this->_params[$index];
149 }
254 public function loadJson($json)
255 {
256 require_once 'Zend/Json.php';
257 $options = Json\Json::decode($json);
258 $this->setOptions($options);
IsCompressed.php (https://github.com/cpatrick/Midas3.git) PHP · 149 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 * @see Zend_Validate_File_MimeType
24 */
25 // require_once 'Zend/Validate/File/MimeType.php';
27 /**
101 if (is_array($mimetype)) {
102 $temp = $mimetype;
103 if (array_key_exists('magicfile', $temp)) {
104 unset($temp['magicfile']);
105 }
Abstract.php (https://github.com/jorgenils/zend-framework.git) PHP · 180 lines
1 <?php
3 /**
24 * @see Zend_Validate_Interface
25 */
26 require_once 'Zend/Validate/Interface.php';
28 /**
139 }
140 if (!isset($this->_messageTemplates[$messageKey])) {
141 require_once 'Zend/Validate/Exception.php';
142 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
143 }
168 return $this->_value;
169 }
170 if (array_key_exists($property, $this->_messageVariables)) {
171 return $this->{$this->_messageVariables[$property]};
172 }
MailTips.php (https://github.com/xiebruce/PicUploader.git) PHP · 389 lines
1 <?php
2 /**
3 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4 *
5 * MailTips File
6 * PHP version 7
7 *
8 * @category Library
35 public function getEmailAddress()
36 {
37 if (array_key_exists("emailAddress", $this->_propDict)) {
38 if (is_a($this->_propDict["emailAddress"], "Microsoft\Graph\Model\EmailAddress")) {
39 return $this->_propDict["emailAddress"];
68 public function getAutomaticReplies()
69 {
70 if (array_key_exists("automaticReplies", $this->_propDict)) {
71 if (is_a($this->_propDict["automaticReplies"], "Microsoft\Graph\Model\AutomaticRepliesMailTips")) {
72 return $this->_propDict["automaticReplies"];
services9_compiled.php (https://github.com/nattaphat/hgis.git) PHP · 243 lines
1 <?php
3 use Symfony\Component\DependencyInjection\ContainerInterface;
165 protected function getMethodCall1Service()
166 {
167 require_once '%path%foo.php';
169 $this->services['method_call1'] = $instance = new \FooClass();
192 $name = strtolower($name);
194 if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
195 throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
196 }
206 $name = strtolower($name);
208 return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
209 }
Helpers.php (https://gitlab.com/fabiorf/chat) PHP · 285 lines
managedcache.php (https://gitlab.com/neuser/bitrix-core) PHP · 196 lines
1 <?php
2 /**
3 * Bitrix Framework
49 $this->cache_init[$uniqueId] = $this->cache[$uniqueId]->initCache($ttl, $uniqueId, $this->cachePath[$uniqueId], "managed_cache");
50 }
51 return $this->cache_init[$uniqueId] || array_key_exists($uniqueId, $this->vars);
52 }
73 public function get($uniqueId)
74 {
75 if (array_key_exists($uniqueId, $this->vars))
76 {
77 return $this->vars[$uniqueId];
169 foreach ($cacheManager->cache as $uniqueId => $val)
170 {
171 if (array_key_exists($uniqueId, $cacheManager->vars))
172 {
173 $cache->startDataCache($cacheManager->ttl[$uniqueId], $uniqueId, $cacheManager->cachePath[$uniqueId], $cacheManager->vars[$uniqueId], "managed_cache");
store_docs_element.php (https://gitlab.com/neuser/bitrix-core) PHP · 127 lines
1 <?
2 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/general/store_docs_element.php");
4 class CCatalogStoreDocsElement
87 $intTopCount = 0;
88 $boolNavStartParams = (!empty($arNavStartParams) && is_array($arNavStartParams));
89 if ($boolNavStartParams && array_key_exists('nTopCount', $arNavStartParams))
90 {
91 $intTopCount = intval($arNavStartParams["nTopCount"]);
Type.php (https://bitbucket.org/kdms/sh-magento.git) PHP · 227 lines
ConnectionManager.php (https://bitbucket.org/koronios/cakephp.git) PHP · 273 lines
1 <?php
2 /**
3 * Datasource connection manager
4 *
5 * Provides an interface for loading and enumerating connections defined in app/Config/database.php
6 *
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
15 *
16 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
17 * @link http://cakephp.org CakePHP(tm) Project
18 * @package Cake.Model
19 * @since CakePHP(tm) v 0.10.x.1402
Node.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 257 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Connect
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
92 public function metadataKeyExists($key)
93 {
94 return array_key_exists($key, $this->_metadata);
95 }
Rss.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 329 lines
Tbx.php (https://bitbucket.org/blackriver/openx.git) PHP · 174 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 require_once 'Zend/Translate/Adapter.php';
courses.php (https://gitlab.com/Sazzad_Ahmed/bitmlabmanagement) PHP · 220 lines
1 <?php
2 namespace Apps\Course;
3 use PDO;
21 //print_r($data);
22 if(array_key_exists('email', $data))
23 {
24 $this->email=$data['email'];
25 }
26 if(array_key_exists('password', $data))
27 {
28 $this->password=$data['password'];
29 }
30 if(array_key_exists('unique_id', $data))
31 {
32 $this->unique_id=$data['unique_id'];
Book.php (https://gitlab.com/shahriarnowshad/atomicfinal) PHP · 236 lines
1 <?php
2 namespace App\Bitm\SEIP129575\Book;
3 use App\Bitm\SEIP129575\Message\Message;
13 public function prepare($data="")
14 {
15 if (array_key_exists("title", $data)) {
16 $this->title = $data['title'];
17 }
18 if (array_key_exists("id", $data)) {
19 $this->id = $data['id'];
20 }
34 <strong>Success!</strong> Data has been stored successfully.
35 </div>");
36 Utility::redirect('index.php');
38 }
ConnectionManager.php (https://gitlab.com/grlopez90/servipro) PHP · 270 lines
1 <?php
2 /**
3 * Datasource connection manager
5 * Provides an interface for loading and enumerating connections defined in app/Config/database.php
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://cakephp.org CakePHP(tm) Project
16 * @package Cake.Model
17 * @since CakePHP(tm) v 0.10.x.1402
18 * @license http://www.opensource.org/licenses/mit-license.php MIT License
19 */
ScopeOverriddenValue.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 181 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
17 /**
18 * Class ScopeOverriddenValue
19 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20 */
21 class ScopeOverriddenValue
88 return isset($this->attributesValues[$storeId])
89 && array_key_exists($attributeCode, $this->attributesValues[$storeId]);
90 }
Request.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 289 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Request.php 23775 2011-03-01 17:25:24Z ralph $
21 */
139 public function getParam($index)
140 {
141 if (array_key_exists($index, $this->_params)) {
142 return $this->_params[$index];
143 }
248 public function loadJson($json)
249 {
250 // // // // // // // // // // require_once 'Zend/Json.php';
251 $options = Zend_Json::decode($json);
252 $this->setOptions($options);
average.php (https://gitlab.com/OnBlox/OnBlox-Template) PHP · 375 lines
1 <?php
2 /**
3 * File containing the ezcGraphDataSetAverage class
50 * Calculated averation polynom
51 *
52 * @var ezcGraphPolynom
53 */
54 protected $polynom = false;
151 public function __get( $propertyName )
152 {
153 if ( array_key_exists( $propertyName, $this->properties ) )
154 {
155 return $this->properties[$propertyName];
213 * using the least squares algorithm.
214 *
215 * @return ezcGraphPolynom Polynom
216 */
217 public function getPolynom()
arr.php (https://github.com/mihalyf/gallery3-contrib.git) PHP · 275 lines
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Array helper class.
4 *
5 * $Id: arr.php 4680 2009-11-10 01:57:00Z isaiah $
6 *
7 * @package Core
8 * @author Kohana Team
9 * @copyright (c) 2007-2009 Kohana Team
10 * @license http://kohanaphp.com/license
11 */
12 class arr_Core {
76 public static function remove($key, & $array)
77 {
78 if ( ! array_key_exists($key, $array))
79 return NULL;
ObjectConverter.php (https://github.com/arbyte/FLOW3-X-TYPO3.FLOW3.git) PHP · 176 lines
1 <?php
2 namespace TYPO3\FLOW3\Property\TypeConverter;
161 $constructorArguments = array();
162 foreach ($constructorSignature as $constructorArgumentName => $constructorArgumentInformation) {
163 if (array_key_exists($constructorArgumentName, $possibleConstructorArgumentValues)) {
164 $constructorArguments[] = $possibleConstructorArgumentValues[$constructorArgumentName];
165 unset($possibleConstructorArgumentValues[$constructorArgumentName]);
DijitMulti.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 324 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Dojo_Form_Element_Dijit */
23 require_once 'Zend/Dojo/Form/Element/Dijit.php';
25 /**
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
34 * @license http://framework.zend.com/license/new-bsd New BSD License
35 * @version $Id: DijitMulti.php 24593 2012-01-05 20:35:02Z matthew $
36 */
37 abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_Dijit
129 foreach ($options as $option => $value) {
130 if (is_array($value)
131 && array_key_exists('key', $value)
132 && array_key_exists('value', $value)
properties.php (https://github.com/F5/zetacomponents.git) PHP · 238 lines
Count.php (https://github.com/tmccormi/openemr.git) PHP · 254 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
206 public function isValid($value, $file = null)
207 {
208 if (($file !== null) && ! array_key_exists('destination', $file)) {
209 $file['destination'] = dirname($value);
210 }
212 if (($file !== null) && array_key_exists('tmp_name', $file)) {
213 $value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name'];
214 }
241 if ($file !== null) {
242 if (is_array($file)) {
243 if (array_key_exists('name', $file)) {
244 $this->value = $file['name'];
245 }
SpecialBannerAllocation.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 248 lines
XMLRPC.php (https://gitlab.com/merial/WETE_Ryhma3) PHP · 164 lines
1 <?php
3 namespace Codeception\Module;
12 * Module for testing XMLRPC WebService.
13 *
14 * This module can be used either with frameworks or PHPBrowser.
15 * It tries to guess the framework is is attached to.
16 *
17 * Whether framework is used it operates via standard framework modules.
18 * Otherwise sends raw HTTP requests to url via PHPBrowser.
19 *
20 * ## Requirements
21 *
22 * * Module requires installed php_xmlrpc extension
23 *
24 * ## Status
LanguageMixer.php (https://gitlab.com/gideonmarked/newlifetrainingcenter-v2) PHP · 201 lines
1 <?php namespace RainLab\Builder\Classes;
3 use Yaml;
54 public static function arrayMergeRecursive(&$array1, &$array2)
55 {
56 // The native PHP implementation of array_merge_recursive
57 // generates unexpected results when two scalar elements with a
58 // same key is found, so we use a custom one.
119 }
121 if (!array_key_exists($currentPath, $currentArray)) {
122 return false;
123 }
HeaderBag.php (https://gitlab.com/hoangduys4k5/laravelproject) PHP · 273 lines
IsImageTest.php (https://github.com/cgmartin/zf2.git) PHP · 208 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
17 * @group Zend_Validator
18 */
19 class IsImageTest extends \PHPUnit_Framework_TestCase
20 {
21 protected function getMagicMime()
22 {
23 // As of PHP >= 5.3.11 and >= 5.4.1 the magic database format has changed.
24 // http://doc.php.net/downloads/pdf/split/de/File-Information.pdf (page 11)
25 if (version_compare(PHP_VERSION, '5.3.11', '<')
26 || (version_compare(PHP_VERSION, '5.4', '>=')
pbxt.lib.php (https://github.com/drbowen/openemr.git) PHP · 142 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * The PBXT storage engine
5 *
6 * @package PhpMyAdmin-Engines
7 */
8 if (! defined('PHPMYADMIN')) {
13 * The PBXT storage engine
14 *
15 * @package PhpMyAdmin-Engines
16 */
17 class PMA_StorageEngine_pbxt extends PMA_StorageEngine
117 function getPage($id)
118 {
119 if (! array_key_exists($id, $this->getInfoPages())) {
120 return false;
121 }
Atom.php (https://github.com/ButuzGOL/Yii-blog-new.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Atom.php 16963 2009-07-22 14:39:31Z padraic $
20 */
23 * @see Zend_Feed_Reader_FeedAbstract
24 */
25 require_once 'Zend/Feed/Reader/FeedAbstract.php';
27 /**
28 * @see Zend_Feed_Reader_Extension_Atom_Feed
29 */
30 require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php';
32 /**
ACL.php (https://github.com/Xavy/SDS.git) PHP · 307 lines
1 <?php
3 /**
4 * Generic library for access control lists.
5 *
6 * @package simpleSAMLphp
7 * @version $Id$
8 */
57 assert('is_string($id)');
59 $config = SimpleSAML_Configuration::getOptionalConfig('acl.php');
60 if (!$config->hasValue($id)) {
61 throw new SimpleSAML_Error_Exception('No ACL with id ' . var_export($id, TRUE) . ' in config/acl.php.');
157 $attributeName = array_shift($rule);
159 if (!array_key_exists($attributeName, $attributes)) {
160 $attributeValues = array();
161 } else {
HtmlTag.php (https://gitlab.com/devtoannh/cafe) PHP · 257 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Form_Decorator_Abstract
24 */
25 require_once 'Zend/Form/Decorator/Abstract.php';
27 /**
46 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
47 * @license http://framework.zend.com/license/new-bsd New BSD License
48 * @version $Id: HtmlTag.php 24428 2011-09-02 14:10:03Z matthew $
49 */
50 class Zend_Form_Decorator_HtmlTag extends Zend_Form_Decorator_Abstract
85 $key = htmlspecialchars($key, ENT_COMPAT, $enc);
86 if (is_array($val)) {
87 if (array_key_exists('callback', $val)
88 && is_callable($val['callback'])
89 ) {
RbamPhpAuthManagerBehavior.php (https://github.com/moravianlibrary/Projekt-Ceska-knihovna.git) PHP · 230 lines
1 <?php
2 /* SVN FILE: $Id: RbamPhpAuthManagerBehavior.php 15 2010-12-20 09:01:13Z Chris $*/
3 /**
4 * RBAM PhpAuthManager Behavior class file.
5 * Provides additional features used by RBAM to CPhpAuthmanager.
6 *
7 * @copyright Copyright © 2010 PBM Web Development - All Rights Reserved
12 */
13 /**
14 * RBAM PhpAuthManager Behavior class
15 * @package RBAM
16 */
17 class RbamPhpAuthManagerBehavior extends RbamAuthManagerBehavior {
18 /**
19 * Returns the assignments authorised for the specified item.
HeaderBag.php (https://github.com/thewiredman/symfony.git) PHP · 269 lines
1 <?php
3 namespace Symfony\Component\HttpFoundation;
85 $key = strtr(strtolower($key), '_', '-');
87 if (!array_key_exists($key, $this->headers)) {
88 return $first ? null : array();
89 }
127 public function has($key)
128 {
129 return array_key_exists(strtr(strtolower($key), '_', '-'), $this->headers);
130 }
182 public function setCookie($name, $value, $domain = null, $expires = null, $path = '/', $secure = false, $httponly = true)
183 {
184 // from PHP source code
185 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {
186 throw new \InvalidArgumentException(sprintf('The cookie name "%s" contains invalid characters.', $name));
Hobby.php (https://gitlab.com/raihan920/atomicproject_137086_crud_public) PHP · 216 lines
1 <?php
2 namespace App\Bitm\SEIP137086\Hobby;
3 use App\Bitm\SEIP137086\Message\Message;
18 public function prepare($data=""){
19 if(array_key_exists("hobby",$data)){
20 $this->hobbies=$data['hobby'];
21 }
22 if(array_key_exists("id",$data)){
23 $this->id=$data['id'];
24 }
39 </div>"
40 );
41 Utility::redirect("index.php");
42 } else {
43 echo "Error";
BookTitle.php (https://gitlab.com/istiyakaminsanto/LAB_EXAM8_istiyak_142691_B35) PHP · 294 lines
1 <?php
2 namespace App\BookTitle;
3 use App\Message\Message;
18 public function setData($postVariableData=NULL){
20 if(array_key_exists('id',$postVariableData)){
21 $this->id = $postVariableData['id'];
22 }
24 if(array_key_exists('book_title',$postVariableData)){
25 $this->book_title = $postVariableData['book_title'];
26 }
28 if(array_key_exists('author_name',$postVariableData)){
29 $this->author_name = $postVariableData['author_name'];
30 }
Message.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 256 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 /**
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
26 * logged to Firebug instead of a variable.
27 *
32 * @license http://framework.zend.com/license/new-bsd New BSD License
33 */
34 class Zend_Wildfire_Plugin_FirePhp_Message
35 {
36 /**
Upload.php (https://github.com/tmccormi/openemr.git) PHP · 237 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
44 self::NO_TMP_DIR => "No temporary directory was found for file '%value%'",
45 self::CANT_WRITE => "File '%value%' can't be written",
46 self::EXTENSION => "A PHP extension returned an error while uploading the file '%value%'",
47 self::ATTACK => "File '%value%' was illegally uploaded. This could be a possible attack",
48 self::FILE_NOT_FOUND => "File '%value%' was not found",
65 public function __construct($options = [])
66 {
67 if (is_array($options) && ! array_key_exists('files', $options)) {
68 $options = ['files' => $options];
69 }
145 $files = [];
146 $this->setValue($value);
147 if (array_key_exists($value, $this->getFiles())) {
148 $files = array_merge($files, $this->getFiles($value));
149 } else {
IcingaTemplateResolver.php (https://github.com/Icinga/icingaweb2-module-director.git) PHP · 479 lines
1 <?php
3 namespace Icinga\Module\Director\Objects;
102 $type = $this->type;
104 if (array_key_exists($id, self::$idIdx[$type])) {
105 return array_keys(self::$idIdx[$type][$id]);
106 }
139 $type = $this->type;
141 if (array_key_exists($name, self::$nameIdx[$type])) {
142 return array_keys(self::$nameIdx[$type][$name]);
143 }
174 {
175 $this->requireTemplates();
176 if (array_key_exists($name, self::$nameIdx[$type])) {
177 return array_keys(self::$nameIdx[$type][$name]);
178 }
CellQuery.php (https://github.com/kpike/moodle.git) PHP · 417 lines
1 <?php
3 /**
25 * Zend_Gdata_App_util
26 */
27 require_once('Zend/Gdata/App/Util.php');
29 /**
30 * Zend_Gdata_Query
31 */
32 require_once('Zend/Gdata/Query.php');
34 /**
197 public function getMinRow()
198 {
199 if (array_key_exists('min-row', $this->_params)) {
200 return $this->_params['min-row'];
201 } else {
Repository.php (https://github.com/grandison/budo16.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Repository.php 16972 2009-07-22 18:44:24Z ralph $
21 */
24 * @see Zend_Tool_Framework_Provider_Signature
25 */
26 // require_once 'Zend/Tool/Framework/Provider/Signature.php';
28 /**
29 * @see Zend_Tool_Framework_Registry_EnabledInterface
30 */
31 // require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
33 /**