100+ results for 'php unset'
Not the results you expected?
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
Editor.php (https://github.com/adaykin/zf2.git) PHP · 601 lines
1 <?php
2 /**
3 * Zend Framework
129 return $this;
130 }
131 unset($captureEvents[$index]);
132 $this->setDijitParam('captureEvents', $captureEvents);
133 return $this;
227 return $this;
228 }
229 unset($events[$index]);
230 $this->setDijitParam('events', $events);
231 return $this;
325 return $this;
326 }
327 unset($plugins[$index]);
328 $this->setDijitParam('plugins', $plugins);
329 return $this;
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
277 }
279 public function offsetUnset($score)
280 {
281 $value = $this->offsetGet($score);
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
AbstractPaginator.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 487 lines
PropertyPathBuilder.php (https://github.com/deviantintegral/symfony.git) PHP · 299 lines
SimpleHeaderSet.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 387 lines
CakeValidationSetTest.php (https://bitbucket.org/invokelabs/cakephp2-core.git) PHP · 337 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
14 * @package Cake.Test.Case.Model.Validator
15 * @since CakePHP(tm) v 2.2.0
16 * @license http://www.opensource.org/licenses/mit-license.php MIT License
17 */
JErrorTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 470 lines
1 <?php
2 /**
3 * @package Joomla.UnitTest
8 */
10 require_once __DIR__ . '/JErrorInspector.php';
12 /**
46 JErrorInspector::inspectStack(),
47 $this->equalTo(array('Error1', 'Error2')),
48 'The stack was changed by getError even though unset was false'
49 );
58 JErrorInspector::inspectStack(),
59 $this->equalTo(array('Error2')),
60 'The stack was either not changed or changed the wrong way by getError (with unset true)'
61 );
FormSelectTest.php (https://github.com/Exercise/zf2.git) PHP · 302 lines
shipping.php (https://gitlab.com/shapcy/opencart) PHP · 268 lines
1 <?php
2 class ControllerApiShipping extends Controller {
3 public function address() {
6 // Delete old shipping address, shipping methods and method so not to cause any issues if there is an error
7 unset($this->session->data['shipping_address']);
8 unset($this->session->data['shipping_methods']);
9 unset($this->session->data['shipping_method']);
11 $json = array();
127 $json['success'] = $this->language->get('text_address');
129 unset($this->session->data['shipping_method']);
130 unset($this->session->data['shipping_methods']);
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
95 {
96 $this->platforms = $platforms;
97 unset($platforms);
98 $return = TRUE;
99 }
102 {
103 $this->browsers = $browsers;
104 unset($browsers);
105 $return = TRUE;
106 }
HelperRegistryTest.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 334 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 2.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
61 {
62 Plugin::unload();
63 unset($this->Helpers, $this->View);
64 parent::tearDown();
65 }
TraceableEventDispatcher.php (https://github.com/deviantintegral/symfony.git) PHP · 335 lines
1 <?php
3 /*
70 if ($wrappedListener->getWrappedListener() === $listener) {
71 $listener = $wrappedListener;
72 unset($this->wrappedListeners[$eventName][$index]);
73 break;
74 }
272 private function postProcess($eventName)
273 {
274 unset($this->wrappedListeners[$eventName]);
275 $skipped = false;
276 foreach ($this->dispatcher->getListeners($eventName) as $listener) {
%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines
1 <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:12
2 compiled from author/submission/layout.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>
91 </td>
92 </tr>
93 <?php endif; unset($_from); ?>
94 <tr>
95 <td colspan="5" class="separator"> </td>
123 </td>
124 </tr>
125 <?php endif; unset($_from); ?>
126 <tr>
127 <td colspan="5" class="separator"> </td>
popup_sub_siteaccess_menus-9fbb87e1df86d9d03f18e0263f7c2ae8.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 504 lines
1 <?php
2 // URI: design/admin2/templates/popupmenu/popup_sub_siteaccess_menus.tpl
3 // Filename: design/admin2/templates/popupmenu/popup_sub_siteaccess_menus.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 // def $siteAccessList
65 ';
66 unset( $loopItem );
67 unset( $loopItem );
106 {
107 $loopKey = $loopKeys[$index];
108 unset( $item );
109 $item = $loopItem[$loopKey];
110 }
model_field_12.cache.php (https://github.com/hxzyzz/ddc.git) PHP · 812 lines
1 <?php
2 return array (
3 'qiyeleixing' =>
31 )',
32 'formattribute' => '',
33 'unsetgroupids' => '',
34 'unsetroleids' => '',
77 )',
78 'formattribute' => '',
79 'unsetgroupids' => '',
80 'unsetroleids' => '',
109 'setting' => '',
110 'formattribute' => '',
111 'unsetgroupids' => '',
112 'unsetroleids' => '',
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
weight_class.php (https://bitbucket.org/deringer/opencart.git) PHP · 412 lines
tax_class.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 413 lines
GetExtendedCampaignStats.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 535 lines
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
247 if(isset($this->_db[$linkNum])) {
248 $this->_db[$linkNum]->close();
249 unset($this->_db[$linkNum]);
250 return true;
251 }
Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
111 if (isset($options['prefixPath'])) {
112 $this->addPrefixPaths($options['prefixPath']);
113 unset($options['prefixPath']);
114 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
PropelTableComparator.php (https://github.com/esimionato/Propel2.git) PHP · 312 lines
1 <?php
3 /**
227 foreach ($fromTableIndices as $fromTableIndexPos => $fromTableIndex) {
228 if (PropelIndexComparator::computeDiff($fromTableIndex, $toTableIndex, $caseInsensitive) === false) {
229 unset($fromTableIndices[$fromTableIndexPos]);
230 unset($toTableIndices[$toTableIndexPos]);
236 // same name, but different columns
237 $this->tableDiff->addModifiedIndex($fromTableIndex->getName(), $fromTableIndex, $toTableIndex);
238 unset($fromTableIndices[$fromTableIndexPos]);
239 unset($toTableIndices[$toTableIndexPos]);
276 foreach ($toTableFks as $toTableFkPos => $toTableFk) {
277 if (PropelForeignKeyComparator::computeDiff($fromTableFk, $toTableFk, $caseInsensitive) === false) {
278 unset($fromTableFks[$fromTableFkPos]);
279 unset($toTableFks[$toTableFkPos]);
collator_test.php (https://github.com/vadimonus/moodle.git) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58 $this->error = 'Collation aware sorting not supported';
59 } else {
60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
61 }
62 parent::setUp();
PKPGiftDAO.inc.php (https://github.com/davekisly/pkp-lib.git) PHP · 497 lines
ClassRegistry.php (https://github.com/masihnewbie/cakephp.git) PHP · 341 lines
1 <?php
2 /**
3 * Class collections.
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package Cake.Utility
18 * @since CakePHP(tm) v 0.9.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
PropelTableComparator.php (https://gitlab.com/Isaki/le331.fr) PHP · 312 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . '/../Table.php';
12 require_once dirname(__FILE__) . '/PropelTableDiff.php';
13 require_once dirname(__FILE__) . '/PropelColumnComparator.php';
14 require_once dirname(__FILE__) . '/PropelColumnDiff.php';
15 require_once dirname(__FILE__) . '/PropelIndexComparator.php';
16 require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
228 foreach ($fromTableIndices as $fromTableIndexPos => $fromTableIndex) {
229 if (PropelIndexComparator::computeDiff($fromTableIndex, $toTableIndex, $caseInsensitive) === false) {
230 unset($fromTableIndices[$fromTableIndexPos]);
231 unset($toTableIndices[$toTableIndexPos]);
ConfigListener.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 383 lines
YamlFileLoader.php (https://bitbucket.org/cryofrost/portal.git) PHP · 339 lines
Module.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 383 lines
1 <?php
3 /*
31 /**
32 * Compiles the node to PHP.
33 *
34 * @param Twig_Compiler A Twig_Compiler instance
48 if (!$this->getAttribute('index'))
49 {
50 $compiler->write('<?php');
51 }
131 $compiler
132 ->write("\n\n")
133 // if the filename contains */, add a blank to avoid a PHP parse error
134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")
135 ->write('class ' . $compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))
Cloud.php (https://github.com/komola/ZendFramework.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
111 if (isset($options['prefixPath'])) {
112 $this->addPrefixPaths($options['prefixPath']);
113 unset($options['prefixPath']);
114 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
admin_snippets_edit.php (https://github.com/Thoronador/Frogsystem-2.git) PHP · 326 lines
1 <?php if (!defined('ACP_GO')) die('Unauthorized access!');
3 /////////////////////////////
28 $FD->text("admin", "info"), FALSE, $FD->text("admin", "icon_save_ok") );
30 // Unset Vars
31 unset ( $_POST );
62 }
64 // Unset Vars
65 unset ( $_POST );
162 systext ( $FD->text("admin", "select_only_one_to_edit"),
163 $FD->text("admin", "error"), TRUE, $FD->text("admin", "icon_error") );
164 unset ( $_POST['snippet_id'] );
165 }
theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines
1 <?php
3 //fire up some globals to use.
323 $tagIndex++;
324 if($tagIndex >= count($tags)) {
325 unset($tags);
326 $tagIndex = -1;
327 return false;
419 $catIndex++;
420 if($catIndex >= count($categories)) {
421 unset($categories);
422 $catIndex = -1;
423 return false;
514 $indexItemIndex++;
515 if($indexItemIndex >= $api->getIndexItemCount($index)) {
516 unset($index);
517 $IndexItemIndex = -1;
518 return false;
Store.php (https://github.com/speedupmate/Magento-CE-Mirror.git) PHP · 510 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_Adminhtml
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 */
234 }
235 if (empty($out[$websiteId]['children'][$groupId]['children'])) {
236 unset($out[$websiteId]['children'][$groupId]);
237 }
238 }
OfertaActividad.php (https://gitlab.com/bluedrayco/Portafolio) PHP · 568 lines
1 <?php
3 namespace ControlEscolar\CalendarioBundle\Entity;
505 if (false !== $key = array_search(strtoupper($acceso), $this->control_acceso[$tipo], true)) {
506 $controlAuxiliar = $this->control_acceso[$tipo];
507 unset($controlAuxiliar[$key]);
508 $this->control_acceso[$tipo] = array_values($controlAuxiliar);
509 }
Form.class.php (https://github.com/bassta/onphp-framework.git) PHP · 498 lines
1 <?php
2 /****************************************************************************
3 * Copyright (C) 2004-2009 by Konstantin V. Arkhipov, Anton E. Lebedevich *
16 * @ingroup Module
17 *
18 * @see http://onphp.org/examples.Form.en.html
19 **/
20 final class Form extends RegulatedForm
75 $result[$name] = $errors;
76 } else {
77 unset($result[$name]);
78 }
79 }
154 {
155 if (isset($this->primitives[$primitiveName]))
156 unset($this->errors[$primitiveName]);
157 elseif (isset($this->rules[$primitiveName]))
158 unset($this->violated[$primitiveName]);
SimpleHeaderSet.php (https://gitlab.com/madwanz64/laravel) PHP · 399 lines
Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
prg.test.php (https://github.com/manubamba/cakephp-search-plugin-v1.1.git) PHP · 373 lines
1 <?php
2 /**
3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
126 */
127 function endTest() {
128 unset($this->Controller);
129 ClassRegistry::flush();
130 }
GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines
1 <?php
3 namespace GifCreator;
8 * @link https://github.com/Sybio/GifCreator
9 * @author Sybio (Clément Guillemain / @Sybio01)
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @copyright Clément Guillemain
12 * @modified by Max Korlaar
151 }
153 unset($resourceImg);
154 }
length_class.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 412 lines
Collect.php (https://gitlab.com/svillegas/magento2) PHP · 313 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
211 foreach ($changesArrayKeys as $changesKey) {
212 if ($changesKey != 'state' && $changesKey != 'active' && $changesKey != 'setup_version') {
213 unset($changes[$changesKey]);
214 }
215 }
265 foreach ($configModules as $moduleName => $module) {
266 unset($module['sequence']);
267 $state = $this->getState($moduleName);
268 $active = $this->getActive($moduleName);
module_db.php (https://github.com/joechen2010/0775168.git) PHP · 876 lines
test.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 305 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_Sales
23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
26 include "lib/Varien/Object.php";
266 if ($this->matchOrderStatus('order', 'void')) {
267 unset($actions['ship'], $actions['invoice'], $actions['ship'], $actions['hold']);
268 }
store.php (https://gitlab.com/alexprowars/bitrix) PHP · 415 lines
ElggMenuItem.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 568 lines
1 <?php
2 /**
3 * Elgg Menu Item
107 $item = new ElggMenuItem($options['name'], $options['text'], $options['href']);
108 unset($options['name']);
109 unset($options['text']);
110 unset($options['href']);
112 // special catch in case someone uses context rather than contexts
113 if (isset($options['context'])) {
114 $options['contexts'] = $options['context'];
115 unset($options['context']);
116 }
class.splqueue.html (https://bitbucket.org/thncr/manuals.git) HTML · 216 lines
10 <div class="next" style="text-align: right; float: right;"><a href="splqueue.construct.html">SplQueue::__construct</a></div>
11 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.splqueue" class="reference">
14 <h1 class="title">The SplQueue class</h1>
17 <div class="partintro"><p class="verinfo">(PHP 5 >= 5.3.0)</p>
125 )</div>
126 <div class="methodsynopsis dc-description">
127 <span class="type">void</span> <span class="methodname"><a href="spldoublylinkedlist.offsetunset.html" class="methodname">SplDoublyLinkedList::offsetUnset</a></span>
128 ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$index</code></span>
129 )</div>
webhooks.php (https://gitlab.com/0072016/woocommerce) PHP · 501 lines
AppFeedItem.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 373 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/ads/googleads/v9/common/extensions.proto
128 public function clearLinkText()
129 {
130 unset($this->link_text);
131 }
167 public function clearAppId()
168 {
169 unset($this->app_id);
170 }
286 public function clearTrackingUrlTemplate()
287 {
288 unset($this->tracking_url_template);
289 }
return_status.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 375 lines
HashMap.class.php (https://bitbucket.org/stk2k/charcoalphp2.1.git) PHP · 386 lines
Files.php (https://github.com/jaws-project/jaws.git) PHP · 282 lines
1 <?php
2 /**
3 * Directory Gadget
36 function UpdateFile($id, $data)
37 {
38 unset($data['id']);
39 $data['public'] = (bool)$data['public'];
40 $data['parent'] = (int)$data['parent'];
63 // extract tags
64 $tags = $data['tags'];
65 unset($data['tags']);
67 $data['is_dir'] = false;
112 $data['host_filename'] = $dbFileInfo['host_filename'];
113 } else {
114 unset($data['host_filename']);
115 unset($data['user_filename']);
Parser.php (https://bitbucket.org/icosplays/friendica.git) PHP · 349 lines
1 <?php
3 /**
9 * @copyright 2006
10 * @license BSD
11 * @version CVS: $Id: Parser.php 322327 2012-01-15 17:55:59Z cweiske $
12 * @link http://pear.php.net/package/Text_LanguageDetect/
330 if (isset($dropone)) {
331 if ($this->_trigram[$dropone] == 1) {
332 unset($this->_trigram[$dropone]);
333 } else {
334 $this->_trigram[$dropone]--;
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 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: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
class-cp-interactions-cluster.php (https://gitlab.com/dev73/clusterpress) PHP · 345 lines
1 <?php
2 /**
3 * Interactions Cluster.
192 // Remove the Slugs settings if not using pretty URLs
193 if ( ! clusterpress()->permalink_structure || ( ! cp_interactions_are_mentions_enabled() && ! cp_interactions_is_like_enabled() ) ) {
194 unset( $settings['sections']['interactions_cluster_slug_settings'] );
195 }
197 // Remove the Mentions Slug setting if mentions are not enabled.
198 if ( ! cp_interactions_are_mentions_enabled() ) {
199 unset( $settings['fields']['interactions_cluster_slug_settings']['clusterpress_user_mentions_slug'] );
200 }
202 // Remove the Likes Slug setting if likes are not enabled.
203 if ( ! cp_interactions_is_like_enabled() ) {
204 unset( $settings['fields']['interactions_cluster_slug_settings']['clusterpress_user_likes_slug'] );
205 }
ast_tree_output.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 550 lines
1 <?php
2 /**
3 * File containing the ezcTemplateAstNodeGenerator class
456 /**
457 * visitUnsetAstNode
458 *
459 * @param ezcTemplateUnsetAstNode $node
460 * @return void
461 */
462 public function visitUnsetAstNode( ezcTemplateUnsetAstNode $node )
463 {
464 $this->text .= $this->outputNode( $node );
NumberHelperTest.php (https://bitbucket.org/floresj/notetime.git) PHP · 107 lines
1 <?php
2 /**
3 * NumberHelperTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
12 *
13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
15 * @package Cake.Test.Case.View.Helper
16 * @since CakePHP(tm) v 1.2.0.4206
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
PhpReferenceCompatibility.php (https://gitlab.com/x33n/ImpressPages) PHP · 433 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 *
21 * This ArrayObject is a rewrite of the implementation to fix
22 * issues with php's implementation of ArrayObject where you
23 * are unable to unset multi-dimensional arrays because you
24 * need to fetch the properties / lists as references.
25 */
26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
27 {
28 /**
110 /**
111 * Unsets the value at the specified key
112 *
113 * @param mixed $key
table_torch.php (https://github.com/splitfeed/Table-Torch.git) PHP · 374 lines
LocationFeedItem.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 385 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/ads/googleads/v9/common/extensions.proto
112 public function clearBusinessName()
113 {
114 unset($this->business_name);
115 }
148 public function clearAddressLine1()
149 {
150 unset($this->address_line_1);
151 }
184 public function clearAddressLine2()
185 {
186 unset($this->address_line_2);
187 }
TargetCpaSimulationPoint.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 488 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/ads/googleads/v9/common/simulation.proto
159 public function clearBiddableConversions()
160 {
161 unset($this->biddable_conversions);
162 }
195 public function clearBiddableConversionsValue()
196 {
197 unset($this->biddable_conversions_value);
198 }
283 public function clearClicks()
284 {
285 unset($this->clicks);
286 }
register.php (https://github.com/sansanwawa/e-commerse.git) PHP · 187 lines
1 <?php
2 class ControllerCheckoutRegister extends Controller {
3 public function index() {
94 $this->tax->setZone($this->request->post['country_id'], $this->request->post['zone_id']);
96 unset($this->session->data['guest']);
97 unset($this->session->data['shipping_methods']);
98 unset($this->session->data['shipping_method']);
99 unset($this->session->data['payment_methods']);
100 unset($this->session->data['payment_method']);
101 }
102 } else {
SideKick.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 624 lines
✨ Summary
This Java code is part of a plugin for the JEdit text editor, implementing syntax highlighting and auto-completion features for a specific programming language (SideKick). It uses SwingWorker to run parsing tasks in the background, updating the editor’s status and displaying parsing messages. The plugin also handles key press events to trigger parsing on keystrokes.
This Java code is part of a plugin for the JEdit text editor, implementing syntax highlighting and auto-completion features for a specific programming language (SideKick). It uses SwingWorker to run parsing tasks in the background, updating the editor’s status and displaying parsing messages. The plugin also handles key press events to trigger parsing on keystrokes.
InfoTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 255 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
10 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
12 class InfoTest extends \PHPUnit_Framework_TestCase
13 {
14 /** @var \Magento\Payment\Model\InfoInterface */
18 protected $objectManagerHelper;
20 /** @var \Magento\Framework\Model\Context|\PHPUnit_Framework_MockObject_MockObject */
21 protected $contextMock;
23 /** @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject */
24 protected $registryMock;
ArrayHydrator.php (https://github.com/jaikdean/doctrine2.git) PHP · 280 lines
Rsa.php (https://github.com/sidealice/zf2.git) PHP · 306 lines
1 <?php
2 /**
3 * Zend Framework
188 if (isset($configargs['passPhrase'])) {
189 $passPhrase = $configargs['passPhrase'];
190 unset($configargs['passPhrase']);
191 }
192 $config = $this->_parseConfigArgs($configargs);
196 $publicKey = null;
197 $resource = openssl_pkey_new($config);
198 // above fails on PHP 5.3
200 openssl_pkey_export($resource, $private, $passPhrase);
Form.php (https://github.com/flubbers/cloudFutbol.git) PHP · 390 lines
1 <?php
3 /*
124 /**
125 * Gets the field values as PHP.
126 *
127 * This method converts fields with th array notation
128 * (like foo[bar] to arrays) like PHP does.
129 *
130 * @return array An array of field values.
132 * @api
133 */
134 public function getPhpValues()
135 {
136 $qs = http_build_query($this->getValues());
tests.php (https://github.com/pyrsmk/Chernozem.git) PHP · 515 lines
1 <?php
3 use Symfony\Component\ClassLoader\Psr4ClassLoader;
7 error_reporting(E_ALL);
9 require __DIR__.'/vendor/autoload.php';
10 require __DIR__.'/../vendor/autoload.php';
94 ->that(function($suite) {
95 $suite['chernozem']['final'] = 'fantasy';
96 unset($suite['chernozem']['final']);
97 return isset($suite['chernozem']['final']);
98 })
lavaPages.php (https://github.com/volcanicpixels/Privacy-Plugin.git) PHP · 360 lines
PrettyPrinterAbstract.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 262 lines
118 * Preprocesses the top-level nodes to initialize pretty printer state.
119 *
120 * @param PHPParser_Node[] $nodes Array of nodes
121 */
122 protected function preprocessNodes(array $nodes) {
133 * Pretty prints an array of nodes (statements) and indents them optionally.
134 *
135 * @param PHPParser_Node[] $nodes Array of nodes
136 * @param bool $indent Whether to indent the printed nodes
137 *
168 }
170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) {
171 list($precedence, $associativity) = $this->precedenceMap[$type];
Media.php (https://bitbucket.org/acidel/buykoala.git) PHP · 228 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_Catalog
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 */
104 } elseif ($fileToId[$result[$index]['file']] != $result[$index]['value_id']) {
105 $this->deleteGallery($result[$index]['value_id']);
106 unset($result[$index]);
107 }
108 }
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
PrototypedArrayNode.php (https://github.com/kimihito/symfony.git) PHP · 280 lines
1 <?php
3 /*
14 use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
15 use Symfony\Component\Config\Definition\Exception\DuplicateKeyException;
16 use Symfony\Component\Config\Definition\Exception\UnsetKeyException;
18 /**
140 * @param mixed $value
141 * @return mixed The finalised value
142 * @throws UnsetKeyException
143 * @throws InvalidConfigurationException if the node doesn't have enough children
144 */
154 try {
155 $value[$k] = $this->prototype->finalize($v);
156 } catch (UnsetKeyException $unset) {
157 unset($value[$k]);
Shipping.php (https://gitlab.com/svillegas/magento2) PHP · 254 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
137 * @return $this
138 * @throws \Exception
139 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
140 */
141 protected function _aggregateByShippingCreatedAt($from, $to)
216 $select->where('source_table.entity_id = (?)', new \Zend_Db_Expr($filterSubSelect));
217 unset($filterSubSelect);
219 $select->group(
ZendQueue.php (https://github.com/MontmereLimited/zf2.git) PHP · 303 lines
grid.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 470 lines
1 <?php
2 /**
3 * JGrid class to dynamically generate HTML tables
157 if ($index !== false)
158 {
159 unset($this->columns[$index]);
160 $this->columns = array_values($this->columns);
161 }
359 public function deleteRow($id)
360 {
361 unset($this->rows[$id]);
363 if (in_array($id, $this->specialRows['header']))
364 {
365 unset($this->specialRows['header'][array_search($id, $this->specialRows['header'])]);
366 }
WordTypedListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 342 lines
✨ Summary
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
53 {
54 /** Value of the lastCaret when it is not set. */
55 private static final int CARET_UNSET = -1;
57 /** How much logging shall be printed to jEdit's log. */
61 /** Offset of the previously inserted word. */
62 int lastCaret = CARET_UNSET;
64 /** The word being currently typed. */
97 // Set the caret after a reset
98 //
99 if (lastCaret == CARET_UNSET)
100 {
101 // If not at word beginning (pref. char. non-word), ignore the
SqlPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 172 lines
shBrushBash.js
(git://github.com/alexgorbatchev/SyntaxHighlighter.git)
JavaScript · 44 lines
✨ Summary
This JavaScript code defines a syntax highlighting brush for Bash shell scripting language, called “Bash”. It creates a custom syntax highlighter that can be used to colorize Bash code in various editors and IDEs. The brush is designed to recognize keywords, functions, comments, strings, and other syntax elements specific to the Bash shell.
This JavaScript code defines a syntax highlighting brush for Bash shell scripting language, called “Bash”. It creates a custom syntax highlighter that can be used to colorize Bash code in various editors and IDEs. The brush is designed to recognize keywords, functions, comments, strings, and other syntax elements specific to the Bash shell.
19 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
20 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
21 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
22 'vi watch wc whereis which who whoami Wget xargs yes'
23 ;
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
1 <?php
3 /**
31 // Legacy bbPress config location
32 'bb-config-location' => ABSPATH . 'bb-config.php',
34 /** XProfile **********************************************************/
325 }
327 // Unset the query - We'll be resetting it soon
328 unset( $root_blog_options_meta );
331 foreach ( $root_blog_options as $old_meta_key => $old_meta_default ) {
332 // Clear out the value from the last time around
333 unset( $old_meta_value );
335 if ( isset( $existing_options[$old_meta_key] ) ) {
tests.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 233 lines
✨ Summary
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
1 <?php
3 // do we have true global vars or just GETSET functions?
17 if (! is_array($extra)) {
18 $df=array_flip(get_declared_classes());
19 foreach($_original_classes as $class) unset($df[$class]);
20 $extra=array_keys($df);
21 }
33 $df=get_defined_functions();
34 $df=array_flip($df[internal]);
35 foreach($_original_functions[internal] as $func) unset($df[$func]);
36 // Now chop out any get/set accessors
37 foreach(array_keys($df) as $func)
60 if (! is_array($extra)) {
61 $df=array_flip(array_keys($GLOBALS));
62 foreach($_original_globals as $func) unset($df[$func]);
63 // MASK xxxx_LOADED__ variables
64 foreach(array_keys($df) as $func) if (ereg('_LOADED__$',$func)) unset($df[$func]);
browseClass.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 43 lines
class.bp-sql-schema-parser.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 615 lines
1 <?php
2 /**
3 * Parses SQL schema statements for comparison to real table structures
108 // Tidy the table attributes
109 $_attributes = preg_replace( '@\s+@', ' ', trim( $_matches[4] ) );
110 unset( $_matches );
112 // Initialise some temporary arrays
140 );
141 }
142 unset( $_index_type, $_index_name, $_index_columns, $_index_columns_index, $_index_column, $_matches_column );
144 } elseif ( preg_match( "@^`?(\w+)`?\s+(?:(\w+)(?:\s*\(\s*(\d+)\s*\))?(?:\s+(unsigned)){0,1})(?:\s+(NOT\s+NULL))?(?:\s+(auto_increment))?(?:\s+(default)\s+(?:(NULL|'[^']*'|\d+)))?@im", $_column_index, $_matches ) ) {
157 }
158 }
159 unset( $_matches, $_columns_indices, $_column_index );
161 // Tidy up the original query
ModeCatalogHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 96 lines
✨ Summary
This Java code defines a class ModeCatalogHandler
that extends DefaultHandler
. It handles XML files for mode catalogs, parsing attributes and setting properties for modes in a text editor. The handler resolves entity references, starts elements, and sets properties such as file paths, glob patterns, and initialization flags for each mode.
This Java code defines a class ModeCatalogHandler
that extends DefaultHandler
. It handles XML files for mode catalogs, parsing attributes and setting properties for modes in a text editor. The handler resolves entity references, starts elements, and sets properties such as file paths, glob patterns, and initialization flags for each mode.
SystemShellBuiltIn.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 732 lines
✨ Summary
This Java code defines a set of shell commands for a console plugin, including cd
, pwd
, pushd
, popd
, and others. It provides basic directory navigation functionality, allowing users to change directories, print their current working directory, and manage aliases and variables. The commands are designed to work within the context of a text editor or IDE, likely for a Java-based project.
This Java code defines a set of shell commands for a console plugin, including cd
, pwd
, pushd
, popd
, and others. It provides basic directory navigation functionality, allowing users to change directories, print their current working directory, and manage aliases and variables. The commands are designed to work within the context of a text editor or IDE, likely for a Java-based project.
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1205 lines
✨ Summary
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
893 Name should evaluate to a variable.
894 */
895 public void unset( String name )
896 throws EvalError
897 {
898 /*
899 We jump through some hoops here to handle arbitrary cases like
900 unset("bsh.foo");
901 */
902 CallStack callstack = new CallStack();
907 if ( lhs.type != LHS.VARIABLE )
908 throw new EvalError("Can't unset, not a variable: "+name,
909 SimpleNode.JAVACODE, new CallStack() );
VFS.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1149 lines
✨ Summary
This Java code is part of a file system browser for a text editor, likely NetBeans. It provides functionality to list files and directories in a file system, filter by type and name, and colorize file names based on regular expressions. The code also handles recursive directory traversal, symlinks, and binary files. It uses an internal configuration system to store user preferences, such as colorizing file names.
This Java code is part of a file system browser for a text editor, likely NetBeans. It provides functionality to list files and directories in a file system, filter by type and name, and colorize file names based on regular expressions. The code also handles recursive directory traversal, symlinks, and binary files. It uses an internal configuration system to store user preferences, such as colorizing file names.
BeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 813 lines
✨ Summary
This Java code implements a BeanShell interpreter, a JavaScript-like scripting language for Java applications. It provides an interface to interact with a Java application’s UI components and perform operations on them using JavaScript-like syntax. The code includes classes for managing class loaders, handling exceptions, and creating an interpreter instance.
This Java code implements a BeanShell interpreter, a JavaScript-like scripting language for Java applications. It provides an interface to interact with a Java application’s UI components and perform operations on them using JavaScript-like syntax. The code includes classes for managing class loaders, handling exceptions, and creating an interpreter instance.
Mode.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 628 lines
✨ Summary
This HTML code is a documentation page for a Java class, specifically the Mode
class. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes, a summary of the class’s contents, and a detailed view of each section.
This HTML code is a documentation page for a Java class, specifically the Mode
class. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes, a summary of the class’s contents, and a detailed view of each section.
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <CODE> void</CODE></FONT></TD>
274 <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#unsetProperty(java.lang.String)">unsetProperty</A></B>(java.lang.String key)</CODE>
276 <BR>
277 Unsets a mode property.</TD>
278 </TR>
279 </TABLE>
460 <HR>
462 <A NAME="unsetProperty(java.lang.String)"><!-- --></A><H3>
463 unsetProperty</H3>
464 <PRE>
465 public void <B>unsetProperty</B>(java.lang.String key)</PRE>
466 <DL>
467 <DD>Unsets a mode property.
Buffer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2124 lines
✨ Summary
This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.
This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.
tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 458 lines
ProjectPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 223 lines
✨ Summary
This is a Java plugin for the jEdit text editor. It provides features such as project management, file import/export, and configuration storage. The plugin loads and saves project data, including settings and resources, when the application starts and stops. It also handles messages from the EditBus to update the plugin’s behavior accordingly.
This is a Java plugin for the jEdit text editor. It provides features such as project management, file import/export, and configuration storage. The plugin loads and saves project data, including settings and resources, when the application starts and stops. It also handles messages from the EditBus to update the plugin’s behavior accordingly.
163 * controls because of being shown too small.
164 */
165 jEdit.unsetProperty(projectviewer.gui.ImportDialog.class.getName() + ".height");
166 jEdit.unsetProperty(projectviewer.gui.ImportDialog.class.getName() + ".width");
167 jEdit.unsetProperty(projectviewer.gui.ImportDialog.class.getName() + ".x");
168 jEdit.unsetProperty(projectviewer.gui.ImportDialog.class.getName() + ".y");
rebol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 547 lines
192 <KEYWORD1>unique</KEYWORD1>
193 <KEYWORD1>unprotect</KEYWORD1>
194 <KEYWORD1>unset</KEYWORD1>
195 <KEYWORD1>until</KEYWORD1>
196 <KEYWORD1>update</KEYWORD1>
453 <KEYWORD2>time?</KEYWORD2>
454 <KEYWORD2>tuple?</KEYWORD2>
455 <KEYWORD2>unset?</KEYWORD2>
456 <KEYWORD2>url?</KEYWORD2>
457 <KEYWORD2>word?</KEYWORD2>
535 <KEYWORD3>time!</KEYWORD3>
536 <KEYWORD3>tuple!</KEYWORD3>
537 <KEYWORD3>unset!</KEYWORD3>
538 <KEYWORD3>url!</KEYWORD3>
539 <KEYWORD3>word!</KEYWORD3>
BrowserColorsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 346 lines
✨ Summary
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
ccache.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 1389 lines
✨ Summary
This C code implements a caching system for compilers and other build tools. It allows users to specify a directory where cached results can be stored, and provides options for managing cache limits, clearing caches, and setting verbosity levels. The program also handles errors and networking issues, such as duping stderr to prevent caching of error messages.
This C code implements a caching system for compilers and other build tools. It allows users to specify a directory where cached results can be stored, and provides options for managing cache limits, clearing caches, and setting verbosity levels. The program also handles errors and networking issues, such as duping stderr to prevent caching of error messages.
XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines
session.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 106 lines
✨ Summary
This PHP code initializes and configures a Workbench application, setting up session management, error handling, and security measures to ensure a secure connection with Salesforce. It also checks for user authentication, validates CSRF tokens, and monitors user activity to prevent idle sessions from expiring prematurely.
This PHP code initializes and configures a Workbench application, setting up session management, error handling, and security measures to ensure a secure connection with Salesforce. It also checks for user authentication, validates CSRF tokens, and monitors user activity to prevent idle sessions from expiring prematurely.
9 require_once 'config.php';
10 if(is_file('configOverrides.php')) require_once 'configOverrides.php';
12 foreach ($config as $configKey => $configValue) {
50 //clear ResultsWithData and retrievedZips from session unless downloading them
51 if (isset($_SESSION['resultsWithData']) && basename($_SERVER['PHP_SELF']) != 'downloadResultsWithData.php') {
52 unset($_SESSION['resultsWithData']);
53 }
55 if (isset($_SESSION['retrievedZips']) && basename($_SERVER['PHP_SELF']) != 'metadataStatus.php') {
56 unset($_SESSION['retrievedZips']);
94 if (isLoggedIn()) {
95 // todo: should this be in the ctx?
96 if (!in_array(basename($_SERVER['PHP_SELF'], ".php"), array("login", "logout")) && isset($_SESSION['lastRequestTime'])) {
97 $idleTime = microtime(true) - $_SESSION['lastRequestTime'];
98 if ($idleTime > (getConfig("sessionIdleMinutes") * 60)) {
BiblioField.php
(https://bitbucket.org/mstetson/obiblio/)
PHP · 157 lines
✨ Summary
This PHP class, BiblioField
, represents a library bibliography subfield with business rules for data validation. It contains fields such as tag, subfield code, and field data, along with getter and setter methods to access and modify these fields. The validateData
method checks the validity of the data based on predefined rules and returns a boolean indicating success or failure.
This PHP class, BiblioField
, represents a library bibliography subfield with business rules for data validation. It contains fields such as tag, subfield code, and field data, along with getter and setter methods to access and modify these fields. The validateData
method checks the validity of the data based on predefined rules and returns a boolean indicating success or failure.
1 <?php
2 /* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
3 * See the file COPYRIGHT.html for more details.
4 */
6 require_once("../classes/Localize.php");
8 /******************************************************************************
52 $this->_subfieldCdError = $loc->getText("biblioFieldError1");
53 }
54 unset($loc);
55 return $valid;
56 }
vpx_mem.h
(git://github.com/zpao/v8monkey.git)
C Header · 179 lines
✨ Summary
This C header file provides a custom memory management system, replacing standard library functions with vpx_ equivalents. It includes various memory allocation and deallocation functions, as well as tracking and integrity checks for memory usage. The header also allows for configuration options to customize its behavior, such as enabling or disabling memory tracking and replacement of built-in functions.
This C header file provides a custom memory management system, replacing standard library functions with vpx_ equivalents. It includes various memory allocation and deallocation functions, as well as tracking and integrity checks for memory usage. The header also allows for configuration options to customize its behavior, such as enabling or disabling memory tracking and replacement of built-in functions.
ngx_http_ajp_module.c
(git://github.com/yaoweibin/nginx_ajp_module.git)
C · 1071 lines
✨ Summary
This C code is part of an Nginx module for handling AJP (Apache Jserv Protocol) connections. It processes configuration options and initializes various data structures, such as cache zones and hash tables, to manage AJP requests. The code also sets up functions for hiding headers in responses and intercepting errors. Its purpose is to enable AJP protocol support in Nginx web servers.
This C code is part of an Nginx module for handling AJP (Apache Jserv Protocol) connections. It processes configuration options and initializes various data structures, such as cache zones and hash tables, to manage AJP requests. The code also sets up functions for hiding headers in responses and intercepting errors. Its purpose is to enable AJP protocol support in Nginx web servers.
462 ngx_http_script_compile_t sc;
464 if ((alcf->upstream.store != NGX_CONF_UNSET) ||
465 alcf->upstream.store_lengths)
466 {
480 if (alcf->upstream.cache > 0)
481 #else
482 if (alcf->upstream.cache != NGX_CONF_UNSET_PTR
483 && alcf->upstream.cache != NULL)
484 #endif
560 #if (nginx_version >= 1007009)
561 if (alcf->upstream.cache != NGX_CONF_UNSET) {
562 #else
563 if (alcf->upstream.cache != NGX_CONF_UNSET_PTR) {
stream.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 1454 lines
27 * @see http://php.net/manual/en/function.stream-get-wrappers.php
28 * @see http://php.net/manual/en/intro.stream.php PHP Stream Manual
29 * @see http://php.net/manual/en/wrappers.php Stream Wrappers
30 * @see http://php.net/manual/en/filters.php Stream Filters
31 * @see http://php.net/manual/en/transports.php Socket Transports (used by some options, particularly HTTP proxy)
525 * @return mixed
526 *
527 * @see http://php.net/manual/en/function.fread.php
528 * @since 11.1
529 */
941 * @see http://php.net/stream_context_create Stream Context Creation
942 * @see http://php.net/manual/en/context.php Context Options for various streams
943 * @since 11.1
944 */
tests.php4
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 228 lines
✨ Summary
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
1 <?php
3 // do we have true global vars or just GETSET functions?
17 if (! is_array($extra)) {
18 $df=array_flip(get_declared_classes());
19 foreach($_original_classes as $class) unset($df[$class]);
20 $extra=array_keys($df);
21 }
33 $df=get_defined_functions();
34 $df=array_flip($df[internal]);
35 foreach($_original_functions[internal] as $func) unset($df[$func]);
36 // Now chop out any get/set accessors
37 foreach(array_keys($df) as $func) if (GETSET && ereg('_[gs]et$',$func)) $extrags[]=$func;
57 if (! is_array($extra)) {
58 $df=array_flip(array_keys($GLOBALS));
59 foreach($_original_globals as $func) unset($df[$func]);
60 // MASK xxxx_LOADED__ variables
61 foreach(array_keys($df) as $func) if (ereg('_LOADED__$',$func)) unset($df[$func]);