100+ results for 'php is_array'

Not the results you expected?

posts.php (https://gitlab.com/Ltaimao/wecenter) PHP · 514 lines

1 <?php

2 /*

3 +--------------------------------------------------------------------------

157 }

158

159 if (is_array($topic_ids))

160 {

161 foreach ($topic_ids AS $key => $val)

232 }

233

234 if (is_array($topic_ids))

235 {

236 foreach ($topic_ids AS $key => $val)

402 public function get_posts_list_by_topic_ids($post_type, $topic_type, $topic_ids, $category_id = null, $answer_count = null, $order_by = 'post_id DESC', $is_recommend = false, $page = 1, $per_page = 10)

403 {

404 if (!is_array($topic_ids))

405 {

406 return false;

SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines

1 <?php

2

3 namespace Lazy\Test;

14

15

16 class SequenceTest extends \PHPUnit_Framework_TestCase {

17

18 /**

45 foreach($args as $with) {

46 // Make sure that $with is an array, even if it has a single element

47 $with = is_array($with) ? $with : array($with);

48 // Capture the expectation so we can use call_user_func_array with it

49 $expectation = $mock->expects($this->at($count))->method('__invoke');

Filesystem.php (https://gitlab.com/judielsm/Handora) PHP · 442 lines

1 <?php

2

3 namespace Illuminate\Filesystem;

118 public function delete($paths)

119 {

120 $paths = is_array($paths) ? $paths : func_get_args();

121

122 $success = true;

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 */

26

391 {

392 $name = '';

393 if (is_array($storeId)) {

394 $names = array();

395 foreach ($storeId as $id) {

admin_snippets_edit.php (https://github.com/Sweil/Frogsystem-2.git) PHP · 326 lines

1 <?php if (!defined('ACP_GO')) die('Unauthorized access!');

2

3 /////////////////////////////

69 //// Display Forms ////

70 ///////////////////////

71 if ( isset ( $_POST['snippet_id'] ) && is_array ( $_POST['snippet_id'] ) && $_POST['snippet_action'] )

72 {

73 // Security Function

PodsTermSplitting.php (https://gitlab.com/najomie/ljm) PHP · 515 lines

1 <?php

2

3 /**

52

53 // Is the taxonomy a Pod?

54 if ( is_array( $taxonomy_pod ) ) {

55 $this->update_podsrel_taxonomy( $taxonomy_pod[ 'id' ] );

56

151 $all_pods = pods_api()->load_pods();

152

153 if ( ! is_array( $all_pods ) ) {

154 return;

155 }

488 // Get the current progress array

489 $current_progress = $this->get_progress();

490 if ( ! is_array( $current_progress ) ) {

491 $current_progress = array();

492 }

ObjectManager.php (https://gitlab.com/yousafsyed/easternglamor) 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)

class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines

1 <?php

2 /**

3 * ClusterPress User Relationships.

305 }

306

307 if ( ! is_array( $in ) ) {

308 $in = (array) $in;

309 }

384

385 $type = 'col';

386 if ( is_array( $column ) ) {

387 $type = 'results';

388 $column = join( ', ', $column );

451 }

452

453 if ( is_array( $column ) ) {

454 $column = reset( $column );

455 }

Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines

1 <?php

2

3 /**

13 * limitations under the License.

14 *

15 * PHP version 5

16 *

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

Permission.php (https://bitbucket.org/FuscaSoftware/candycane.git) PHP · 248 lines

1 <?php

2 /* vim: fenc=utf8 ff=unix

3 *

107 $actions = array();

108 foreach($hash as $controller=>$value) {

109 if (is_array($value)) {

110 foreach($value as $action) {

111 $actions[] = $controller.'/'.$action;

150 }

151

152 // from role.php

153 function setable_permissions_name($builtin = null)

154 {

156 }

157

158 // from role.php

159 function setable_permissions($builtin = null)

160 {

Session.class.php (https://bitbucket.org/zjut/labs.git) PHP · 628 lines

1 <?php

2 // +----------------------------------------------------------------------

3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]

4 // +----------------------------------------------------------------------

5 // | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.

6 // +----------------------------------------------------------------------

7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

9 // | Author: liu21st <liu21st@gmail.com>

10 // +----------------------------------------------------------------------

11 // $Id: Session.class.php 2702 2012-02-02 12:35:01Z liu21st $

12

13 define("HTTP_SESSION_STARTED", 1);

22 * @subpackage Util

23 * @author liu21st <liu21st@gmail.com>

24 * @version $Id: Session.class.php 2702 2012-02-02 12:35:01Z liu21st $

25 +------------------------------------------------------------------------------

26 */

LengthTest.php (https://github.com/bhaumik25/zend-framework.git) PHP · 423 lines

1 <?php

2

3 /**

26 * Zend_Measure_Length

27 */

28 require_once 'Zend/Measure/Length.php';

29

30 /**

31 * PHPUnit test case

32 */

33 require_once 'PHPUnit/Framework/TestCase.php';

34

35

38 * @subpackage UnitTests

39 */

40 class Zend_Measure_LengthTest extends PHPUnit_Framework_TestCase

41 {

42

Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines

1 <?php

2 /*

3 * CKFinder

21 * Include access control config class

22 */

23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";

24 /**

25 * Include resource type config class

26 */

27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";

28 /**

29 * Include thumbnails config class

30 */

31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";

32 /**

33 * Include thumbnails config class

FlattenException.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 297 lines

1 <?php

2

3 /*

15

16 /**

17 * FlattenException wraps a PHP Exception to be able to serialize it.

18 *

19 * Basically, this class removes all objects from the trace.

56

57 /**

58 * FlattenException wraps a PHP Exception to be able to serialize it.

59 *

60 * Basically, this class removes all objects from the trace.

266 if (is_object($value)) {

267 $result[$key] = array('object', get_class($value));

268 } elseif (is_array($value)) {

269 if ($level > 10) {

270 $result[$key] = array('array', '*DEEP NESTED ARRAY*');

Relation.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 349 lines

1 <?php

2

3 namespace Illuminate\Database\Eloquent\Relations;

294 $map = static::buildMorphMapFromModels($map);

295

296 if (is_array($map)) {

297 static::$morphMap = $merge ? array_merge(static::$morphMap, $map) : $map;

298 }

Filesystem.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 406 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use FilesystemIterator;

111 public function delete($paths)

112 {

113 $paths = is_array($paths) ? $paths : func_get_args();

114

115 $success = true;

class.sidemenumodule.php (https://github.com/Emaratilicious/Garden.git) PHP · 261 lines

1 <?php if (!defined('APPLICATION')) exit();

2 /*

3 Copyright 2008, 2009 Vanilla Forums Inc.

215

216 // Apply a sort to the items if given.

217 if (is_array($this->Sort)) {

218 $Sort = array_flip($this->Sort);

219 foreach ($this->Items as $Group => &$Item) {

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)

Main_Category_Picker_Test.php (https://bitbucket.org/ltumedei/wp-plugin-main-category-picker.git) PHP · 232 lines

1 <?php

2

3 require_once ROOT . '/main_category_picker.php';

4 require_once ROOT . '/tests/libs/utils.php';

5 require_once ROOT . '/tests/libs/Term_Factory.php';

24

25 function test_get_selected_post_types_from_options_returns_an_array(){

26 $this->assertTrue(is_array($this->plugin->get_selected_post_types_from_options() ) );

27 }

28

Tax.php (https://github.com/seosamba/ecommerce.git) PHP · 263 lines

1 <?php

2 /**

3 * Handy tools for work with taxes

119 if($withTaxable){

120 $taxableZones = Models_Mapper_Tax::getInstance()->fetchAll();

121 if(is_array($taxableZones) && !empty($taxableZones)) {

122 foreach($taxableZones as $taxZone){

123 $zoneIds[] = $taxZone->getZoneId();

133 }

134

135 if(is_array($zones) && !empty($zones)) {

136 $zoneMatch = 0;

137 $maxRate = 0;

219 break;

220 }

221 if(is_array($zoneParts) && !empty($zoneParts)) {

222 if($type == self::ZONE_TYPE_STATE) {

223 foreach($zoneParts as $zonePart) {

QueueBaseTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 270 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: QueueBaseTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

30

31 /** Zend_Config */

32 require_once 'Zend/Config.php';

33

34 /** Zend_Queue */

35 require_once 'Zend/Queue.php';

36

37 /** Zend_Queue */

BaseDmPermissionForm.class.php (https://github.com/xdade/diem.git) PHP · 299 lines

1 <?php

2

3 /**

165 $existing = $this->object->Users->getPrimaryKeys();

166 $values = $this->getValue('users_list');

167 if (!is_array($values))

168 {

169 $values = array();

203 $existing = $this->object->Groups->getPrimaryKeys();

204 $values = $this->getValue('groups_list');

205 if (!is_array($values))

206 {

207 $values = array();

241 $existing = $this->object->DmUserPermission->getPrimaryKeys();

242 $values = $this->getValue('dm_user_permission_list');

243 if (!is_array($values))

244 {

245 $values = array();

smarty_internal_compile_foreach.php (https://github.com/cabenitez/factuweb.git) PHP · 229 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Compile Foreach

100 $usesPropTotal = $usesSmartyTotal || $usesSmartyShow || $usesPropShow || $usesPropLast || strpos($compiler->lex->data, $ItemVarName . 'total') !== false;

101 // generate output code

102 $output = "<?php ";

103 $output .= " \$_smarty_tpl->tpl_vars[$item] = new Smarty_Variable; \$_smarty_tpl->tpl_vars[$item]->_loop = false;\n";

104 if ($key != null) {

105 $output .= " \$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable;\n";

106 }

107 $output .= " \$_from = $from; if (!is_array(\$_from) && !is_object(\$_from)) { settype(\$_from, 'array');}\n";

108 if ($usesPropTotal) {

109 $output .= " \$_smarty_tpl->tpl_vars[$item]->total= \$_smarty_tpl->_count(\$_from);\n";

192 $this->openTag($compiler, 'foreachelse', array('foreachelse', $nocache, $item, $key));

193

194 return "<?php }\nif (!\$_smarty_tpl->tpl_vars[$item]->_loop) {\n?>";

195 }

196

DatabaseStorage.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 328 lines

1 <?php

2

3 namespace Drupal\Core\Config;

256 public function decode($raw) {

257 $data = @unserialize($raw);

258 return is_array($data) ? $data : FALSE;

259 }

260

Spider.php (https://gitlab.com/lalbert/daric) PHP · 395 lines

1 <?php

2

3 namespace Daric;

114 {

115 $links = $this->linkExtractor->extract($this->content);

116 if (!\is_array($links)) {

117 throw new \InvalidArgumentException('linkExtractor must return an array.');

118 }

176 * Set GuzzleClient config.

177 *

178 * @see http://docs.guzzlephp.org/en/latest/request-options.html

179 *

180 * @param array $config

String.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 256 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_Core

23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

138 $translations = $object->getStoreTranslations();

139

140 if (is_array($translations)) {

141 foreach ($translations as $storeId => $translate) {

142 if (is_null($translate) || $translate=='') {

HasManyThrough.php (https://gitlab.com/kimting254/wbms) PHP · 340 lines

1 <?php namespace Illuminate\Database\Eloquent\Relations;

2

3 use Illuminate\Database\Eloquent\Model;

230 public function find($id, $columns = ['*'])

231 {

232 if (is_array($id))

233 {

234 return $this->findMany($id, $columns);

DerivativeDiscoveryDecorator.php (https://gitlab.com/reasonat/test8) PHP · 244 lines

1 <?php

2

3 namespace Drupal\Component\Plugin\Discovery;

204 protected function getDeriverClass($base_definition) {

205 $class = NULL;

206 if ((is_array($base_definition) || ($base_definition = (array) $base_definition)) && (isset($base_definition['deriver']) && $class = $base_definition['deriver'])) {

207 if (!class_exists($class)) {

208 throw new InvalidDeriverException(sprintf('Plugin (%s) deriver "%s" does not exist.', $base_definition['id'], $class));

Upload.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 251 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: Upload.php 22398 2010-06-09 19:05:46Z thomas $

20 */

21

28 * @see Zend_Validate_Abstract

29 */

30 require_once 'Zend/Validate/Abstract.php';

31

32 /**

65 self::NO_TMP_DIR => "No temporary directory was found for file '%value%'",

66 self::CANT_WRITE => "File '%value%' can't be written",

67 self::EXTENSION => "A PHP extension returned an error while uploading the file '%value%'",

68 self::ATTACK => "File '%value%' was illegally uploaded. This could be a possible attack",

69 self::FILE_NOT_FOUND => "File '%value%' was not found",

view.php (https://github.com/Sipcms/SipCMS.git) PHP · 346 lines

1 <?php defined('SYSPATH') or die('No direct script access.');

2 /**

3 * Acts as an object wrapper for HTML pages with embedded PHP, called "views".

86 public static function set_global($key, $value = NULL)

87 {

88 if (is_array($key))

89 {

90 foreach ($key as $key2 => $value)

193 * isset($view->foo);

194 *

195 * [!!] `NULL` variables are not considered to be set by [isset](http://php.net/isset).

196 *

197 * @param string variable name

279 public function set($key, $value = NULL)

280 {

281 if (is_array($key))

282 {

283 foreach ($key as $name => $value)

String.php (https://bitbucket.org/mkrasuski/magento-ce.git) PHP · 256 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_Core

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

138 $translations = $object->getStoreTranslations();

139

140 if (is_array($translations)) {

141 foreach ($translations as $storeId => $translate) {

142 if (is_null($translate) || $translate=='') {

meta-box-saves.inc.php (https://gitlab.com/Gashler/dp) PHP · 148 lines

1 <?php

2 /**

3 * Meta box saves.

67 unset($pages[$n][$i]);

68

69 if (isset ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]]) && is_array ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]]))

70 if ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]] !== array ("all")&& !in_array ("all-pages", $posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))

71 array_push ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]], (string)$page_id);

93 unset($posts[$n][$i]);

94

95 if (isset ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]]) && is_array ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))

96 if ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]] !== array ("all")&& !in_array ("all-" . $_p["post_type"] . "s", $posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))

97 array_push ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]], (string)$post_id);

Types.php (https://bitbucket.org/hhteam/moodle_thrift_tools.git) PHP · 337 lines

1 <?php

2 namespace moodle_enrol_manual;

3

49 );

50 }

51 if (is_array($vals)) {

52 if (isset($vals['errorCode'])) {

53 $this->errorCode = $vals['errorCode'];

139 }

140 if ($this->userData !== null) {

141 if (!is_array($this->userData)) {

142 throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);

143 }

202 );

203 }

204 if (is_array($vals)) {

205 if (isset($vals['roleid'])) {

206 $this->roleid = $vals['roleid'];

ArrayObject.php (https://gitlab.com/guillaumev/alkarama) PHP · 404 lines

1 <?php

2 /**

3 * @file

188 */

189 public function exchangeArray($data) {

190 if (!is_array($data) && is_object($data) && !($data instanceof ArrayObject)) {

191 throw new \InvalidArgumentException('Passed variable is not an array or an instance of \Drupal\bootstrap\Utility\ArrayObject.');

192 }

color.php (https://github.com/Proudio-Interactive/phpUnderControl.git) PHP · 290 lines

1 <?php

2 /**

3 * File containing the ezcGraphColor class

218 return ezcGraphColor::fromHex( $color );

219 }

220 elseif ( is_array( $color ) )

221 {

222 $testElement = reset( $color );

AbstractOutline.php (https://github.com/MarcelloDuarte/zf2.git) PHP · 381 lines

1 <?php

2 /**

3 * Zend Framework

249 'target' => $param2));

250 } else {

251 if (!is_array($param1) || $param2 !== null) {

252 throw new Exception\InvalidArgumentException('Outline create method takes $title (string) and $destination (\Zend\Pdf\InternalStructure\NavigationTarget) or an array as an input');

253 }

SplObjectStorage.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 382 lines

1 <?php

2

3 // This doc comment block generated by idl/sysdoc.php

4 /**

5 * ( excerpt from http://docs.hhvm.com/manual/en/class.splobjectstorage.php )

6 *

7 * The SplObjectStorage class provides a map from objects to data or, by

16 private $__key = 0;

17

18 // This doc comment block generated by idl/sysdoc.php

19 /**

20 * ( excerpt from http://docs.hhvm.com/manual/en/splobjectstorage.rewind.php )

29 }

30

31 // This doc comment block generated by idl/sysdoc.php

32 /**

33 * ( excerpt from http://docs.hhvm.com/manual/en/splobjectstorage.valid.php )

Boolean.php (https://bitbucket.org/acidel/buykoala.git) PHP · 375 lines

53 self::EMPTY_ARRAY => 'array',

54 self::NULL => 'null',

55 self::PHP => 'php',

56 self::FALSE_STRING => 'false',

57 self::YES => 'yes',

89 if ($options instanceof Zend_Config) {

90 $options = $options->toArray();

91 } elseif (!is_array($options)) {

92 $options = func_get_args();

93 $temp = array();

155

156 if (!is_int($type) || ($type < 0) || ($type > self::ALL)) {

157 #require_once 'Zend/Filter/Exception.php';

158 throw new Zend_Filter_Exception('Unknown type');

159 }

Multi.php (https://github.com/MarcelloDuarte/zf2.git) PHP · 319 lines

1 <?php

2 /**

3 * Zend Framework

90 protected function _getMultiOptions()

91 {

92 if (null === $this->options || !is_array($this->options)) {

93 $this->options = array();

94 }

124 {

125 foreach ($options as $option => $value) {

126 if (is_array($value)

127 && array_key_exists('key', $value)

128 && array_key_exists('value', $value)

253 foreach ($multiOptions as $opt_value => $opt_label) {

254 // optgroup instead of option label

255 if (is_array($opt_label)) {

256 $options = array_merge($options, array_keys($opt_label));

257 }

ajax_delete_file.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 208 lines

1 <?php

2 /**

3 * delete selected files

4 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)

5 * @link www.phpletter.com

6 * @since 22/April/2007

7 *

11

12 */

13 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");

14 $error = "";

15 if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_DELETE)

110 }else

111 {

112 if(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)

113 {

114 $error = ERR_NOT_FILE_SELECTED;

Count.php (https://github.com/richhl/kalturaCE.git) PHP · 275 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Count.php 18148 2009-09-16 19:27:43Z thomas $

20 */

21

23 * @see Zend_Validate_Abstract

24 */

25 require_once 'Zend/Validate/Abstract.php';

26

27 /**

110 } elseif (is_string($options) || is_numeric($options)) {

111 $options = array('max' => $options);

112 } elseif (!is_array($options)) {

113 require_once 'Zend/Validate/Exception.php';

create.class.php (https://github.com/enigmatic-user/revolution.git) PHP · 367 lines

1 <?php

2 /**

3 * Create a user group

59 $contexts = $this->getProperty('aw_contexts','');

60 if (!empty($contexts)) {

61 $contexts = is_array($contexts) ? $contexts : explode(',',$contexts);

62 $contexts = array_unique($contexts);

63

105 */

106 public function addUsersViaWizard($users) {

107 $users = is_array($users) ? $users : explode(',',$users);

108 $users = array_unique($users);

109 foreach ($users as $userKey) {

190 */

191 public function addResourceGroupsViaWizard($resourceGroupNames,array $contexts) {

192 $resourceGroupNames = is_array($resourceGroupNames) ? $resourceGroupNames : explode(',',$resourceGroupNames);

193 $resourceGroupNames = array_unique($resourceGroupNames);

194

QueueBaseTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 270 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: QueueBaseTest.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

30

31 /** Zend_Config */

32 require_once 'Zend/Config.php';

33

34 /** Zend_Queue */

35 require_once 'Zend/Queue.php';

36

37 /** Zend_Queue */

eztemplatesetfunction.php (https://github.com/itag/ezpublish.git) PHP · 378 lines

1 <?php

2 /**

3 * File containing the eZTemplateSetFunction class.

10

11 /*!

12 \class eZTemplateSetFunction eztemplatesetfunction.php

13 \ingroup eZTemplateFunctions

14 \brief Sets template variables code using function 'set'

144 {

145 $childNodes = eZTemplateNodeTool::extractFunctionNodeChildren( $node );

146 if ( !is_array( $childNodes ) )

147 {

148 $childNodes = array();

348 $functionName == $this->DefaultName )

349 {

350 if ( is_array( $functionChildren ) )

351 {

352 foreach ( array_keys( $functionChildren ) as $childKey )

Dispatcher.php (https://gitlab.com/kimting254/wbms) PHP · 486 lines

1 <?php namespace Illuminate\Events;

2

3 use Exception;

210 // we can easily use call_user_func_array on the listeners, passing in the

211 // payload to each of them so that they receive each of these arguments.

212 if ( ! is_array($payload)) $payload = array($payload);

213

214 $this->firing[] = $event;

User_agent.php (https://gitlab.com/RikaPM/manik) PHP · 550 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 5.1.6 or newer

6 *

7 * @package CodeIgniter

86 private function _load_agent_file()

87 {

88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))

89 {

90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');

91 }

92 elseif (is_file(APPPATH.'config/user_agents.php'))

93 {

94 include(APPPATH.'config/user_agents.php');

ModulesTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 217 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: ModulesTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

23 if (!defined('PHPUnit_MAIN_METHOD')) {

24 define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main');

28 * Zend_Loader_Autoloader

29 */

30 require_once 'Zend/Loader/Autoloader.php';

31

32 /**

RouteHelper.php (https://github.com/joomla/joomla-cms.git) PHP · 246 lines

1 <?php

2

3 /**

50 $explodedRouter = explode('::', $routerName);

51

52 if (file_exists($routerFile = JPATH_BASE . '/components/' . $explodedAlias[0] . '/helpers/route.php')) {

53 \JLoader::register($explodedRouter[0], $routerFile);

54 $routerClass = $explodedRouter[0];

112 $link = '';

113 } else {

114 $link = 'index.php?option=com_tags&view=tag&id=' . $id;

115

116 if ($item = self::_findItem($needles)) {

164 ];

165

166 $link = 'index.php?option=com_tags&view=tags';

167

168 if ($item = self::_findItem($needles)) {

ezcharsetinfo.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 219 lines

1 <?php

2 /**

3 * File containing the eZCharsetInfo class.

10

11 /*!

12 \class eZCharsetInfo ezcharsetinfo.php

13 \ingroup eZI18N

14 \brief Allows for quering information about charsets

32 {

33 $aliasTable =& $GLOBALS['eZCharsetInfoTable'];

34 if ( !is_array( $aliasTable ) )

35 {

36 $aliasTable = array( 'ascii' => 'us-ascii',

145 {

146 $encodingTable =& $GLOBALS['eZCharsetInfoEncodingTable'];

147 if ( !is_array( $encodingTable ) )

148 {

149 $encodingTable = array( 'doublebyte' => array( 'cp932',

Trigger.php (https://github.com/speedupmate/Magento-CE-Mirror.git) PHP · 353 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 Magento_Db

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 */

26

277 public function setBody($body)

278 {

279 if (!is_array($body)) {

280 $body = array($body);

281 }

Packager.php (https://github.com/axxtel/agilebill.git) PHP · 199 lines

9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of

10 * the PHP License and are unable to obtain it through the web, please

11 * send a note to license@php.net so we can mail you a copy immediately.

13 * @category pear

14 * @package PEAR

15 * @author Stig Bakken <ssb@php.net>

16 * @author Tomas V. V. Cox <cox@idecnet.com>

17 * @author Greg Beaver <cellog@php.net>

18 * @copyright 1997-2008 The PHP Group

19 * @license http://www.php.net/license/3_0.txt PHP License 3.0

20 * @version CVS: $Id: Packager.php,v 1.71 2008/01/03 20:26:36 cellog Exp $

21 * @link http://pear.php.net/package/PEAR

22 * @since File available since Release 0.1

23 */

38 * @copyright 1997-2008 The PHP Group

39 * @license http://www.php.net/license/3_0.txt PHP License 3.0

40 * @version Release: 1.7.2

41 * @link http://pear.php.net/package/PEAR

session.php (https://bitbucket.org/d1rk/cakephp-including-capistrano.git) PHP · 315 lines

1 <?php

2 /* SVN FILE: $Id: session.php 7805 2008-10-30 17:30:26Z AD7six $ */

8 * PHP versions 4 and 5

9 *

10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)

11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)

12 *

16 * @filesource

17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)

18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project

19 * @package cake

20 * @subpackage cake.cake.libs.controller.components

21 * @since CakePHP(tm) v 0.10.0.1232

22 * @version $Revision: 7805 $

23 * @modifiedby $LastChangedBy: AD7six $

edit.php (https://github.com/vjeran/ezpublish.git) PHP · 229 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.

70

71 $hasValidationError = false;

72 require 'kernel/settings/validation.php';

73 $validationResult = validate( array( 'Name' => $settingName,

74 'Value' => $valueToWrite ),

123 $tpl->setVariable( 'validation_error_type', 'write_error' );

124 $tpl->setVariable( 'path', $path );

125 $tpl->setVariable( 'filename', $iniFile . '.append.php' );

126 }

127 else

151 function parseArrayToStr( $value, $separator )

152 {

153 if ( !is_array( $value ) )

154 return $value;

155

S3.php (https://github.com/mrbanzai/zf2.git) PHP · 326 lines

1 <?php

2 /**

3 * LICENSE

72 }

73

74 if (!is_array($options)) {

75 throw new Exception\InvalidArgumentException('Invalid options provided');

76 }

Cloud.php (https://github.com/grandison/budo16.git) PHP · 410 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: Cloud.php 16209 2009-06-21 19:20:34Z thomas $

21 */

22

24 * @see Zend_Tag_Item

25 */

26 // require_once 'Zend/Tag/Item.php';

27

28 /**

83 }

84

85 if (is_array($options)) {

86 $this->setOptions($options);

87 }

Collection.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 705 lines

1 <?php namespace Illuminate\Support;

2

3 use Closure;

42 if ($items instanceof Collection) return $items;

43

44 return new static(is_array($items) ? $items : array($items));

45 }

46

351 $keys = array_rand($this->items, $amount);

352

353 return is_array($keys) ? array_intersect_key($this->items, array_flip($keys)) : $this->items[$keys];

354 }

355

acl.test.php (https://github.com/damanlovett/NCAIE.git) PHP · 368 lines

1 <?php

2 /* SVN FILE: $Id: acl.test.php 8120 2009-03-19 20:25:10Z gwoo $ */

8 * PHP versions 4 and 5

9 *

10 * CakePHP : Rapid Development Framework (http://www.cakephp.org)

11 * Copyright 2006-2008, Cake Software Foundation, Inc.

12 *

16 * @filesource

17 * @copyright Copyright 2006-2008, Cake Software Foundation, Inc.

18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project

19 * @package cake

20 * @subpackage cake.cake.libs.tests.model.behaviors.acl

21 * @since CakePHP v 1.2.0.4487

22 * @version $Revision: 8120 $

23 * @modifiedby $LastChangedBy: gwoo $

RedirectMiddleware.php (https://gitlab.com/virtualrealms/d7civicrm) PHP · 237 lines

1 <?php

2 namespace GuzzleHttp;

3

57 if ($options['allow_redirects'] === true) {

58 $options['allow_redirects'] = self::$defaultSettings;

59 } elseif (!is_array($options['allow_redirects'])) {

60 throw new \InvalidArgumentException('allow_redirects must be true, false, or array');

61 } else {

HtmlTag.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 278 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: HtmlTag.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $

21 */

22

24 * @see Zend_Tag_Cloud_Decorator_Tag

25 */

26 require_once 'Zend/Tag/Cloud/Decorator/Tag.php';

27

28 /**

92 public function setClassList(array $classList = null)

93 {

94 if (is_array($classList)) {

95 if (count($classList) === 0) {

96 require_once 'Zend/Tag/Cloud/Decorator/Exception.php';

TableTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 230 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

9 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;

10

11 class TableTest extends \PHPUnit_Framework_TestCase

12 {

13 /**

17

18 /**

19 * @var CollectionFactory | \PHPUnit_Framework_MockObject_MockObject

20 */

21 protected $collectionFactory;

79 $flatColumns = $this->_model->getFlatColumns();

80

81 $this->assertTrue(is_array($flatColumns), 'FlatColumns must be an array value');

82 $this->assertTrue(!empty($flatColumns), 'FlatColumns must be not empty');

83

Deferred.php (https://bitbucket.org/tobmaster/carica-io.git) PHP · 369 lines

1 <?php

2

3 namespace Carica\Io {

295 if (is_callable($callbacks)) {

296 $add($callbacks);

297 } elseif (is_array($callbacks)) {

298 foreach ($callbacks as $callback) {

299 $add($callback);

AbstractModel.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 427 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

10 /**

11 * Abstract model for catalog entities

12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

13 * @author Magento Core Team <core@magentocommerce.com>

14 */

183 {

184 if ($this->hasLockedAttributes()) {

185 if (is_array($key)) {

186 foreach ($this->getLockedAttributes() as $attribute) {

187 if (isset($key[$attribute])) {

349 * @param string $attributeCode

350 * @return bool

351 * @SuppressWarnings(PHPMD.BooleanGetMethodName)

352 *

353 * @deprecated

ChangeController.class.php (https://gitlab.com/xuebutayan/yshop) PHP · 301 lines

1 <?php

2

3 namespace Admin\Controller;

277 $order = M("Change");

278

279 if(is_array($ids)){

280 foreach($ids as $id){

281

XMLParser.php (https://github.com/CloCkWeRX/Pyrus.git) PHP · 257 lines

1 <?php

2 /**

3 * Process an XML file, convert it to an array

10 * @author Greg Beaver <cellog@php.net>

11 * @author Helgi Þormar Þorbjörnsson <helgi@php.net>

12 * @copyright 2010 The PEAR Group

13 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License

92 $tag = array('attribs' => $attribs, '_content' => $tag);

93 } else {

94 if (!is_array($tag)) {

95 $tag = array();

96 }

100 }

101

102 if (is_array($arr) && isset($arr[$name]) && is_array($arr[$name]) &&

103 isset($arr[$name][0])

104 ) {

9a788b30def8780f352c8aa698121948.php (https://gitlab.com/fangfangchen/xianpipa) PHP · 246 lines

25 </thead>

26 <tbody>

27 <?php if(is_array($orderlists)): $i = 0; $__LIST__ = $orderlists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$all): $mod = ($i % 2 );++$i;?><tr>

28 <td class="width5"><input type="checkbox" name="lastthree"></td>

29 <td class="width28"><img src="/xianpipa/Public/images/<?php echo explode(',', $all['pro_img'])[1];?>" alt="枇杷" style="width:80px;height:70px;" /><?php echo ($all["pro_name"]); ?></td>

86 </thead>

87 <tbody>

88 <?php if(is_array($waitsendlists)): $i = 0; $__LIST__ = $waitsendlists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$all): $mod = ($i % 2 );++$i;?><tr>

89 <td class="width5"><input type="checkbox" name="lastthree"></td>

90 <td class="width28"><img src="/xianpipa/Public/images/<?php echo explode(',', $all['pro_img'])[1];?>" alt="枇杷" style="width:80px;height:70px;" /><?php echo ($all["pro_name"]); ?></td>

179 <?php if(is_array($sucesslists)): $i = 0; $__LIST__ = $sucesslists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$all): $mod = ($i % 2 );++$i;?><tr>

180 <td class="width5"><input type="checkbox" name="lastthree"></td>

181 <td class="width28"><img src="/xianpipa/Public/images/<?php echo explode(',', $all['pro_img'])[1];?>" alt="枇杷" style="width:80px;height:70px;" /><?php echo ($all["pro_name"]); ?></td>

182 <td class="width12">¥<?php echo ($all["pro_disprice"]); ?></td>

209 <?php if(is_array($cancellists)): $i = 0; $__LIST__ = $cancellists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$all): $mod = ($i % 2 );++$i;?><tr>

210 <td class="width5"><input type="checkbox" name="lastthree"></td>

211 <td class="width28"><img src="/xianpipa/Public/images/<?php echo explode(',', $all['pro_img'])[1];?>" alt="枇杷" style="width:80px;height:70px;" /><?php echo ($all["pro_name"]); ?></td>

212 <td class="width12">¥<?php echo ($all["pro_disprice"]); ?></td>

edit.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 229 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.

70

71 $hasValidationError = false;

72 require 'kernel/settings/validation.php';

73 $validationResult = validate( array( 'Name' => $settingName,

74 'Value' => $valueToWrite ),

123 $tpl->setVariable( 'validation_error_type', 'write_error' );

124 $tpl->setVariable( 'path', $path );

125 $tpl->setVariable( 'filename', $iniFile . '.append.php' );

126 }

127 else

151 function parseArrayToStr( $value, $separator )

152 {

153 if ( !is_array( $value ) )

154 return $value;

155

Cloud.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 427 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: Cloud.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

83 }

84

85 if (is_array($options)) {

86 $this->setOptions($options);

87 }

PressureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 401 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: PressureTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

25 * Zend_Measure_Pressure

26 */

27 require_once 'Zend/Measure/Pressure.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_PressureTest extends PHPUnit_Framework_TestCase

38 {

39 /**

Storage.php (https://bitbucket.org/kdms/sh-magento.git) PHP · 232 lines

1 <?php

2 /**

3 * Magento Enterprise Edition

134 public function synchronize($storage)

135 {

136 if (is_array($storage) && isset($storage['type'])) {

137 $storageDest = (int) $storage['type'];

138 $connection = (isset($storage['connection'])) ? $storage['connection'] : null;

212

213 /**

214 * Return current media directory, allowed resources for get.php script, etc.

215 *

216 * @return array

Status.php (https://github.com/guiohm/magento-french.git) PHP · 231 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

190 $attributeTable = $attribute->getBackend()->getTable();

191

192 if (!is_array($productIds)) {

193 $productIds = array($productIds);

194 }

lib.php (https://gitlab.com/MotoSport/morgue) PHP · 307 lines

1 <?php

2

3 class Jira {

293 if (is_string($val)) {

294 $ticket[$k] = $val;

295 } elseif (is_array($val) && isset($val['name'])) {

296 $ticket[$k] = $val['name'];

297 }

BinaryTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 351 lines

1 <?php

2 /**

3 * Zend Framework

24 * Zend_Measure_Binary

25 */

26 require_once 'Zend/Measure/Binary.php';

27

28 /**

34 * @group Zend_Measure

35 */

36 class Zend_Measure_BinaryTest extends PHPUnit_Framework_TestCase

37 {

38 /**

347 $value = new Zend_Measure_Binary('-100',Zend_Measure_Binary::STANDARD,'de');

348 $unit = $value->getConversionList();

349 $this->assertTrue(is_array($unit), 'Array expected');

350 }

351 }

11.php (https://github.com/livinglab/openlab.git) PHP · 340 lines

1 <?php

2 /**

3 * PEAR_REST_11 - implement faster list-all/remote-list command

4 *

5 * PHP versions 4 and 5

6 *

7 * @category pear

8 * @package PEAR

9 * @author Greg Beaver <cellog@php.net>

10 * @copyright 1997-2009 The Authors

11 * @license http://opensource.org/licenses/bsd-license.php New BSD License

12 * @link http://pear.php.net/package/PEAR

13 * @since File available since Release 1.4.3

14 */

Tree.php (https://github.com/x3ak/zly.git) PHP · 336 lines

1 <?php

2

3 /**

5 *

6 * @author Evgheni Poleacov <evgheni.poelacov@gmail.com>

7 * @version $Id: Tree.php 998 2011-01-06 16:14:45Z deeper $

8 */

9

223 $prepared[$value] = $title;

224

225 if(is_array($option) && !empty($option[$this->_childrensKey])

226 && is_array($option[$this->_childrensKey])) {

229

230 } elseif(is_object($option) && !empty($option->{$this->_childrensKey})

231 && is_array($option->{$this->_childrensKey})) {

232

233 $prepared[$value.'_childrens'] = $this->_prepareOptions($option->{$this->_childrensKey});

Abstract.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 418 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: Abstract.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

23 * @see Zend_Locale

24 */

25 // // // // // // // // require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 // // // // // // // // require_once 'Zend/Locale/Math.php';

31

32 /**

project.php (https://github.com/germc/CrowdFund.git) PHP · 293 lines

1 <?php

2

3 class Project extends AppModel {

222

223 function afterFind( $results ) {

224 if ( is_array( $results ) && ! isset( $results[ 'id' ] ) ) {

225 // we found more than one project

226 foreach ( $results as &$result ) {

cjwnewsletterblacklistitem.php (https://github.com/heliopsis/cjw_newsletter.git) PHP · 302 lines

1 <?php

2 /**

3 * File containing the CjwNewsletterBlacklistItem class

200 }

201

202 if( !is_array( $sortByArray ))

203 {

204 $sortByArray = array( 'id' => false );

272 /**

273 * if nl user exists update this data to

274 * (non-PHPdoc)

275 * @see kernel/classes/eZPersistentObject#store($fieldFilters)

276 */

Upload.php (https://github.com/richhl/kalturaCE.git) PHP · 245 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Upload.php 18148 2009-09-16 19:27:43Z thomas $

20 */

21

23 * @see Zend_Validate_Abstract

24 */

25 require_once 'Zend/Validate/Abstract.php';

26

27 /**

113

114 if (count($return) === 0) {

115 require_once 'Zend/Validate/Exception.php';

116 throw new Zend_Validate_Exception("The file '$file' was not found");

117 }

NodeTraverser.php (https://gitlab.com/madwanz64/laravel) PHP · 291 lines

1 <?php declare(strict_types=1);

2

3 namespace PhpParser;

111 $subNode =& $node->$name;

112

113 if (\is_array($subNode)) {

114 $subNode = $this->traverseArray($subNode);

115 if ($this->stopTraversal) {

160 $this->stopTraversal = true;

161 break 2;

162 } elseif (\is_array($return)) {

163 throw new \LogicException(

164 'leaveNode() may only return an array ' .

234 $this->ensureReplacementReasonable($node, $return);

235 $node = $return;

236 } elseif (\is_array($return)) {

237 $doNodes[] = [$i, $return];

238 break;

%%29^29C^29C2266D%%submissionEventLogEntry.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 113 lines

1 <?php /* Smarty version 2.6.12, created on 2006-02-03 13:26:43

2 compiled from sectionEditor/submissionEventLogEntry.tpl */ ?>

3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

4 smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'sectionEditor/submissionEventLogEntry.tpl', 17, false),array('function', 'translate', 'sectionEditor/submissionEventLogEntry.tpl', 17, false),array('function', 'icon', 'sectionEditor/submissionEventLogEntry.tpl', 56, false),array('modifier', 'date_format', 'sectionEditor/submissionEventLogEntry.tpl', 41, false),array('modifier', 'to_array', 'sectionEditor/submissionEventLogEntry.tpl', 55, false),array('modifier', 'assign', 'sectionEditor/submissionEventLogEntry.tpl', 55, false),array('modifier', 'escape', 'sectionEditor/submissionEventLogEntry.tpl', 56, false),array('modifier', 'strip_unsafe_html', 'sectionEditor/submissionEventLogEntry.tpl', 64, false),array('modifier', 'nl2br', 'sectionEditor/submissionEventLogEntry.tpl', 64, false),)), $this); ?>

5

57 <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.date"), $this);?>

58 </td>

59 <td class="value"><?php echo ((is_array($_tmp=$this->_tpl_vars['logEntry']->getDateLogged())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['datetimeFormatLong']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['datetimeFormatLong'])); ?>

60 </td>

61 </tr>

78 <?php $this->assign('emailString', ($this->_tpl_vars['logEntry']->getUserFullName())." <".($this->_tpl_vars['logEntry']->getUserEmail()).">"); ?>

79 <?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'user','op' => 'email','to' => ((is_array($_tmp=$this->_tpl_vars['emailString'])) ? $this->_run_mod_handler('to_array', true, $_tmp) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp)),'redirectUrl' => $this->_tpl_vars['currentUrl'],'subject' => $this->_tpl_vars['logEntry']->getEventTitle()), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>

80

81 <?php echo ((is_array($_tmp=$this->_tpl_vars['logEntry']->getUserFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

91 </strong>

92 <br /><br />

93 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['logEntry']->getMessage())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>

94

95 </td>

%%40^409^40906566%%userProfile.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 130 lines

30 <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.middleName"), $this);?>

31 :</td>

32 <td class="value"><?php echo ((is_array($_tmp=$this->_tpl_vars['user']->getMiddleName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

33 </td>

34 </tr>

53 <?php $this->assign('emailString', ($this->_tpl_vars['user']->getFullName())." <".($this->_tpl_vars['user']->getEmail()).">"); ?>

54 <?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'user','op' => 'email','to' => ((is_array($_tmp=$this->_tpl_vars['emailString'])) ? $this->_run_mod_handler('to_array', true, $_tmp) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp)),'redirectUrl' => $this->_tpl_vars['currentUrl']), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'url') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'url'));?>

55

56 <?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'mail','url' => $this->_tpl_vars['url']), $this);?>

86 <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.mailingAddress"), $this);?>

87 :</td>

88 <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getMailingAddress())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>

89 </td>

90 </tr>

92 <td class="label"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.biography"), $this);?>

93 :</td>

94 <td class="value"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user']->getBiography())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : String::stripUnsafeHtml($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>

95 </td>

96 </tr>

class-vc-edit-form-fields.php (https://gitlab.com/oxidigitaluser/liguelista) PHP · 285 lines

1 <?php

2 /**

3 * WPBakery Visual Composer shortcode attributes fields

110 $value = $param_settings['std'];

111 } elseif (

112 isset( $param_settings['value'] ) && is_array( $param_settings['value'] )

113 && !empty( $param_settings['type'] ) && $param_settings['type'] != 'checkbox'

114 ) {

115 $first_key = key( $param_settings['value'] );

116 $value = $first_key ? $param_settings['value'][$first_key] : '';

117 } elseif ( isset( $param_settings['value'] ) && !is_array( $param_settings['value'] ) ) {

118 $value = $param_settings['value'];

119 }

266 *

267 * List of params stored in global variable $vc_params_list.

268 * Please check include/params/load.php for default params list.

269 * @since 4.4

270 * @return bool

Breadcrumbs.php (https://github.com/Unplagged/unplagged.git) PHP · 331 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: Breadcrumbs.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

152 public function setPartial($partial)

153 {

154 if (null === $partial || is_string($partial) || is_array($partial)) {

155 $this->_partial = $partial;

156 }

taxonomy.php (https://gitlab.com/WPonEB/WPonEB) PHP · 290 lines

1 <?php

2 /**

3 * WordPress Taxonomy Administration API.

24 function category_exists( $cat_name, $parent = null ) {

25 $id = term_exists($cat_name, 'category', $parent);

26 if ( is_array($id) )

27 $id = $id['term_id'];

28 return $id;

Session.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 125 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: Session.php 20814 2010-02-01 20:13:08Z freak $

21 */

22

31 * @see Zend_Application_Resource_ResourceAbstract

32 */

33 require_once 'Zend/Application/Resource/ResourceAbstract.php';

34

35

74 {

75 if (!$this->_saveHandler instanceof SaveHandler\SaveHandlerInterface) {

76 if (is_array($this->_saveHandler)) {

77 if (!array_key_exists('class', $this->_saveHandler)) {

78 throw new Exception('Session save handler class not provided in options');

Csv.php (https://github.com/shin2/concrete5.git) PHP · 121 lines

1 <?php

2 /**

3 * Zend Framework

16 * @package Zend_Translate

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @version $Id: Csv.php 23775 2011-03-01 17:25:24Z ralph $

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 */

22

23 /** Zend_Locale */

24 require_once 'Zend/Locale.php';

25

26 /** Zend_Translate_Adapter */

27 require_once 'Zend/Translate/Adapter.php';

28

29

RealPath.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 139 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: RealPath.php 20096 2010-01-06 02:05:09Z bkarwin $

20 */

21

28 * @see Zend_Filter_Interface

29 */

30 require_once 'Zend/Filter/Interface.php';

31

32 /**

77 }

78

79 if (is_array($exists)) {

80 if (isset($exists['exists'])) {

81 $exists = (boolean) $exists['exists'];

RuntimeDefinition.php (https://gitlab.com/jalon/doadoronline) PHP · 353 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

191 public function getMethodParameters($class, $method)

192 {

193 if (!is_array($this->classes[$class])) {

194 $this->processClass($class);

195 }

MainConfiguration.php (https://github.com/flubbers/cloudFutbol.git) PHP · 192 lines

1 <?php

2

3 /*

93 ->beforeNormalization()

94 // a scalar is a simple formula of one input file

95 ->ifTrue(function($v) { return !is_array($v); })

96 ->then(function($v) { return array('inputs' => array($v)); })

97 ->end()

102 // cast scalars as array

103 foreach (array('input', 'inputs', 'filter', 'filters') as $key) {

104 if (isset($v[$key]) && !is_array($v[$key])) {

105 $v[$key] = array($v[$key]);

106 }

148 ->treatNullLike(array())

149 ->validate()

150 ->ifTrue(function($v) { return !is_array($v); })

151 ->thenInvalid('The assetic.filters config %s must be either null or an array.')

152 ->end()

AngleTest.php (https://github.com/Exercise/zf2.git) PHP · 389 lines

1 <?php

2 /**

3 * Zend Framework

35 * @group Zend_Measure

36 */

37 class AngleTest extends \PHPUnit_Framework_TestCase

38 {

39 /**

385 $value = new Measure\Angle('-100',Measure\Angle::STANDARD,'de');

386 $unit = $value->getConversionList();

387 $this->assertTrue(is_array($unit), 'Array expected');

388 }

389 }

BookTitle.php (https://gitlab.com/Princy008/Princy_143467_B_37_Atomic_project) PHP · 395 lines

1 <?php

2 namespace App\BITM\SEIP143467\BookTitle;

3 use App\BITM\SEIP143467\Message\Message;

73 else

74 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>");

75 Utility::redirect('index.php');

76

77

96 else

97 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>");

98 Utility::redirect('index.php');

99

100

112 else

113 Message::message("<div id='msg'></div><h3 align='center'> <br> Data Hasn't Been Inserted !</h3></div>");

114 Utility::redirect('index.php');

115

116

MailBlocker.php (https://gitlab.com/gideonmarked/wellmarketing) PHP · 269 lines

1 <?php namespace RainLab\User\Models;

2

3 use Form;

196 }

197

198 if (!is_array($email)) {

199 $email = [$email => null];

200 }

auxiliary.php (https://gitlab.com/alexprowars/bitrix) PHP · 265 lines

1 <?php

2

3 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/general/auxiliary.php");

79 $arSqls["SELECT"] = str_replace("%%_DISTINCT_%%", "", $arSqls["SELECT"]);

80

81 if (is_array($arGroupBy) && count($arGroupBy)==0)

82 {

83 $strSql =

110 $strSql .= "ORDER BY ".$arSqls["ORDERBY"]." ";

111

112 if (is_array($arNavStartParams) && intval($arNavStartParams["nTopCount"])<=0)

113 {

114 $strSql_tmp =

144 else

145 {

146 if (is_array($arNavStartParams) && intval($arNavStartParams["nTopCount"])>0)

147 $strSql .= "LIMIT ".intval($arNavStartParams["nTopCount"]);

148

ParameterBag.php (https://github.com/gimler/symfony.git) PHP · 289 lines

1 <?php

2

3 /*

88 while (\count($namePartsLength)) {

89 if ($this->has($key)) {

90 if (\is_array($this->get($key))) {

91 $nonNestedAlternative = $key;

92 }

172 public function resolveValue($value, array $resolving = array())

173 {

174 if (\is_array($value)) {

175 $args = array();

176 foreach ($value as $k => $v) {

255 }

256

257 if (\is_array($value)) {

258 $result = array();

259 foreach ($value as $k => $v) {

Service.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 326 lines

1 <?php

2

3 /*

231 if ($mixed instanceof Core_Model_Acl_Group_Interface) {

232 $object = $mixed;

233 } elseif (is_array($mixed)) {

234 $object = new Core_Model_Acl_Group(array('data' => $mixed));

235 } else {

248 if ($mixed instanceof Core_Model_Acl_Group_Interface) {

249 $object = $mixed;

250 } elseif (is_array($mixed)) {

251 $object = new Core_Model_Acl_Group(array('data' => $mixed));

252 } else {

268 } elseif ($mixed instanceof Core_Model_Acl_Group_Interface) {

269 $object = $mixed;

270 } elseif (is_array($mixed)) {

271 $object = new Core_Model_Acl_Group(array('data' => $mixed));

272 } else {

PressureTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 401 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: PressureTest.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

25 * Zend_Measure_Pressure

26 */

27 require_once 'Zend/Measure/Pressure.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_PressureTest extends PHPUnit_Framework_TestCase

38 {

39 /**

router.php (https://gitlab.com/Bartwillemsen/aurora-framework) PHP · 275 lines

1 <?php

2 namespace Aurora\Routing;

3

82 * Find a route by name.

83 *

84 * The returned array will be identical the array defined in the routes.php file.

85 *

86 * @param string $name

96 foreach ($this->loader->everything() as $key => $value) {

97

98 if (is_array($value) and isset($value['name']) and $value['name'] == $name) {

99 return $this->names[$name] = array($key => $value);

100 }

Packager.php (https://github.com/livinglab/openlab.git) PHP · 200 lines

1 <?php

2 /**

3 * PEAR_Packager for generating releases

4 *

5 * PHP versions 4 and 5

6 *

7 * @category pear

8 * @package PEAR

9 * @author Stig Bakken <ssb@php.net>

10 * @author Tomas V. V. Cox <cox@idecnet.com>

11 * @author Greg Beaver <cellog@php.net>

12 * @copyright 1997-2009 The Authors

13 * @license http://opensource.org/licenses/bsd-license.php New BSD License

14 * @link http://pear.php.net/package/PEAR

class-wc-rest-customers-v2-controller.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 364 lines

1 <?php

2 /**

3 * REST API Customers controller

102 // Meta data.

103 if ( isset( $request['meta_data'] ) ) {

104 if ( is_array( $request['meta_data'] ) ) {

105 foreach ( $request['meta_data'] as $meta ) {

106 $customer->update_meta_data( $meta['key'], $meta['value'], isset( $meta['id'] ) ? $meta['id'] : '' );

AbstractSessionArrayStorage.php (https://github.com/SocalNick/zf2.git) PHP · 471 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

344 $_SESSION['__ZF'] = array();

345 }

346 if (isset($_SESSION['__ZF'][$key]) && is_array($value)) {

347 if ($overwriteArray) {

348 $_SESSION['__ZF'][$key] = $value;

RangeValidator.php (https://gitlab.com/afzalpotenza/YII_salon) PHP · 133 lines

1 <?php

2 /**

3 * @link http://www.yiiframework.com/

28 * such a list. The signature of the anonymous function should be as follows,

29 *

30 * ```php

31 * function($model, $attribute) {

32 * // compute range

57 {

58 parent::init();

59 if (!is_array($this->range)

60 && !($this->range instanceof \Closure)

61 && !($this->range instanceof \Traversable)

76

77 if ($this->allowArray

78 && ($value instanceof \Traversable || is_array($value))

79 && ArrayHelper::isSubset($value, $this->range, $this->strict)

80 ) {

Factory.php (https://github.com/kiranatama/sagalaya.git) PHP · 297 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

98 public function createInput($inputSpecification)

99 {

100 if (!is_array($inputSpecification) && !$inputSpecification instanceof Traversable) {

101 throw new Exception\InvalidArgumentException(sprintf(

102 '%s expects an array or Traversable; received "%s"',

158 break;

159 case 'filters':

160 if (!is_array($value) && !$value instanceof Traversable) {

161 throw new Exception\RuntimeException(sprintf(

162 '%s expects the value associated with "filters" to be an array/Traversable of filters or filter specifications; received "%s"',

168 break;

169 case 'validators':

170 if (!is_array($value) && !$value instanceof Traversable) {

171 throw new Exception\RuntimeException(sprintf(

172 '%s expects the value associated with "validators" to be an array/Traversable of validators or validator specifications; received "%s"',

EntityDamageEvent.php (https://gitlab.com/Skull3x/Genisys) PHP · 306 lines

1 <?php

2

3 /**

82 $this->entity = $entity;

83 $this->cause = $cause;

84 if(is_array($damage)){

85 $this->modifiers = $damage;

86 }else{

func.php (https://github.com/masterscript/DLE-module-Portfolio.git) PHP · 288 lines

1 <?php

2

3 function getCountries ()

72 function getOptions ( $values, $sel = 0 )

73 {

74 if ( ! is_array ( $values ))

75 {

76 return "";

91 function clearGeoCache()

92 {

93 @unlink ( ENGINE_DIR . '/cache/system/portfolio_country.php' );

94 @unlink ( ENGINE_DIR . '/cache/system/portfolio_services.php' );

128 $count = 0;

129

130 if ( ! is_array ( $files ))

131 {

132 return "";

DefinitionList.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 352 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

27 {

28 $this->runtimeDefinitions = new SplDoublyLinkedList();

29 if (!is_array($definitions)) {

30 $definitions = array($definitions);

31 }

sanitize.php (https://bitbucket.org/AzuiSleet/cdr-web/) PHP · 349 lines ✨ Summary

This PHP code provides a set of utility functions for sanitizing and formatting data, including HTML escaping, string manipulation, and database connection management. It also includes functions for cleaning and formatting column data in a model, likely used in a database-driven application. The code appears to be part of a larger framework or library, providing a foundation for building robust and secure applications.

7 * PHP versions 4 and 5

8 *

9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

11 *

14 *

15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

16 * @link http://cakephp.org CakePHP(tm) Project

17 * @package cake

18 * @subpackage cake.cake.libs

89 * - remove (boolean) if true strips all HTML tags before encoding

90 * - charset (string) the charset used to encode the string

91 * - quotes (int) see http://php.net/manual/en/function.htmlentities.php

92 *

93 * @param string $string String from where to strip tags

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.

1 <?php

2

3 // do we have true global vars or just GETSET functions?

15 global $_original_classes;

16 if ($ref===FALSE) $f=$_original_classes;

17 if (! is_array($extra)) {

18 $df=array_flip(get_declared_classes());

19 foreach($_original_classes as $class) unset($df[$class]);

28 global $_original_functions;

29 if ($ref===FALSE) $f=$_original_functions;

30 if (! is_array($extra) || $gs) {

31 $extra=array();

32 $extrags=array();

46 static $extra;

47 global $_original_globals;

48 if (! is_array($extra)) {

49 if (GETSET) {

50 $_extra=array();