100+ results for 'php array_push'

Not the results you expected?

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

1 <?php

2

3 class Jira {

152 $tickets_ids = array();

153 foreach($tickets as $k => $v) {

154 array_push($tickets_ids, $v['ticket']);

155 }

156

StaffController.php (https://gitlab.com/kalasi/vispunchcard.com) PHP · 329 lines

1 <?php

2 namespace App\Http\Controllers\Manage;

3

39 ->first();

40

41 array_push($staffs,$userInfo);

42 }

43

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

1 <?php

2

3 namespace Daric;

137

138 if (!\in_array($link, $this->links)) {

139 \array_push($this->links, $link);

140 }

141

176 * Set GuzzleClient config.

177 *

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

179 *

180 * @param array $config

method.nav_blocks_player.php (https://github.com/txdv/psychostats4.git) PHP · 282 lines

1 <?php

2 /**

3 * PsychoStats method Nav_Blocks_Player()

21

22 if (!array_key_exists('player_actions', $blocks)) {

23 array_push_after($blocks, 'player_kill_profile', array(

24 'title' => trans('Player Actions'),

25 'rows' => array(),

189 );

190

191 array_push_after($blocks['player_kill_profile']['rows'],

192 'kills',

193 array(

206 );

207

208 array_push_after($blocks['player_kill_profile']['rows'],

209 'killed',

210 array(

project_hierarchy_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 290 lines

1 <?php

2 # MantisBT - A PHP based bugtracking system

25 * @link http://www.mantisbt.org

26 *

27 * @uses constant_inc.php

28 * @uses database_api.php

29 */

30

31 require_api( 'constant_inc.php' );

32 require_api( 'database_api.php' );

282 $t_elem = array_shift( $t_todo );

283 if( !in_array( $t_elem, $t_subprojects ) ) {

284 array_push( $t_subprojects, $t_elem );

285 $t_todo = array_merge( $t_todo, project_hierarchy_get_subprojects( $t_elem, $p_show_disabled ) );

286 }

users_dao.class.singleton.php (https://gitlab.com/boxnia/NFU_MOVIL) PHP · 278 lines

1 <?php

2

3 class users_dao {

132 'id' => (string) $result[$i], 'nombre' => (string) $provincia

133 );

134 array_push($json, $tmp);

135 }

136 return $json;

149 'poblacion' => (string) $result[0]->localidad[$i]

150 );

151 array_push($json, $tmp);

152 }

153 return $json;

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

108

109 $drive = '';

110 if (substr(PHP_OS, 0, 3) == 'WIN') {

111 $path = preg_replace('/[\\\\\/]/', DIRECTORY_SEPARATOR, $path);

112 if (preg_match('/([a-zA-Z]\:)(.*)/', $path, $matches)) {

proxyReassignCasesList.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 97 lines

1 <?php

2 $callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';

3 $dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';

32 G::LoadClass( 'case' );

33 G::LoadClass( 'users' );

34 require_once ("classes/model/AppCacheView.php");

35

36 $oTasks = new Tasks();

71 $oTmp = $aUsersInvolved;

72 $aCase['USERS'] = $oTmp;

73 array_push( $aCasesList, $aCase );

74 }

75

classification.html (https://gitlab.com/team_fsn/fsn-php) HTML · 123 lines

1 <?php

2 $base_url = $request->getBaseUrl();

3

21 if(!empty($temp)){

22 $data_ep_classification = array();

23 array_push($data_ep_classification,$temp[0]);

24 }

25 if(!empty($temp) && $_SESSION['nb_er_poterie'] != 0){

35

36 <script type="text/javascript">

37 var json_ep_classification = <?php echo $json_ep_classification; ?> ;

38

39 $(function () {

40 $('#container_ep_classification_bar_<?php echo $unique_div ; ?>').highcharts({

41 credits: {

42 enabled: false

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

1 <?php

2 /**

3 * Meta box saves.

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);

72

73 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)

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);

98

99 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)

email_log.inc.php (https://github.com/axxtel/agilebill.git) PHP · 118 lines

1 <?php

2

3 /**

32 $smart=array();

33 while(!$rs->EOF) {

34 array_push($smart, $rs->fields);

35 $rs->MoveNext();

36 }

Profiler.inc.php (https://gitlab.com/nacridan/Nacridan) PHP · 244 lines

1 <?php

2

3 /********************************************************************************\

80 {

81 $this->trace .= "start $name\n";

82 $n = array_push($this->stack, $this->cur_timer);

83 $this->__suspendTimer($this->stack[$n - 1]);

84 $this->startTime[$name] = $this->getMicroTime();

theme.php (https://gitlab.com/x33n/respond) PHP · 363 lines

1 <?php

2

3 /**

250 );

251

252 array_push($arr, $file);

253

254 }

class.wp-dependencies.php (https://github.com/livinglab/openlab.git) PHP · 452 lines

1 <?php

2 /**

3 * Dependencies API: WP_Dependencies base class

378 if ( $deps ) {

379 $all_deps += array_fill_keys( $deps, true );

380 array_push( $queues, $deps );

381 }

382 $done[ $queued ] = true;

com_contact.php (https://github.com/Shigaru/shigaru.git) PHP · 247 lines

1 <?php

2 /*

3 * @package AceSEF

205 else {

206 $category = self::_getCategory($row[2]);

207 array_push($category, $name);

208 $cache[$id]['name'] = $category;

209 }

MenuBar.php (https://github.com/jaws-project/jaws.git) PHP · 322 lines

1 <?php

2 /**

3 * MenuBar.php - MenuBar Class

9 * <c> Piwi

10 */

11 require_once PIWI_PATH . '/Widget/Container/Container.php';

12 require_once PIWI_PATH . '/Widget/Container/MenuItem.php';

45 function add($path, $url = '', $icon = '')

46 {

47 array_push($this->_paths, $path);

48 $explodedPath = explode('/',$path);

49 $numElements = count($explodedPath);

ArrayList.class.php (https://github.com/qhwang0427/backend_php.git) PHP · 351 lines

1 <?php

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

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

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

5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.

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

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

78 public function add($element)

79 {

80 return (array_push($this->_elements, $element)) ? true : false;

81 }

82

base_test.php (https://github.com/markn86/moodle.git) PHP · 224 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

19 *

20 * @package mod_assign

21 * @category phpunit

22 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}

23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

28

29 global $CFG;

30 require_once($CFG->dirroot . '/mod/assign/locallib.php');

31 require_once($CFG->dirroot . '/mod/assign/upgradelib.php');

32 require_once(__DIR__ . '/fixtures/testable_assign.php');

33

34 /**

Ajax.php (https://github.com/intraweb-modules13/IWusers.git) PHP · 242 lines

1 <?php

2

3 class IWusers_Controller_Ajax extends Zikula_Controller_AbstractAjax {

141 foreach ($groups as $group) {

142 if ($group['id']) {

143 array_push($userGroups, array('id' => $group['id'],

144 'name' => $groupsInfo[$group['id']]));

145 }

panier.php (https://gitlab.com/thoussem/Tunisie-Shop) PHP · 315 lines

1

2 <?php

3

4

27 if(!verif_panier($select['id']))

28 {

29 array_push($_SESSION['panier']['id_article'],$select['id']);

30 array_push($_SESSION['panier']['nom'],$select['nom']);

31 array_push($_SESSION['panier']['qte'],$select['qte']);

32 array_push($_SESSION['panier']['srcimg'],$select['srcimg']);

33 array_push($_SESSION['panier']['taille'],$select['taille']);

34 array_push($_SESSION['panier']['prix'],$select['prix']);

139 if($_SESSION['panier']['id_article'][$i] != $ref_article)

140 {

141 array_push($panier_tmp['id_article'],$_SESSION['panier']['id_article'][$i]);

142 array_push($panier_tmp['nom'],$_SESSION['panier']['nom'][$i]);

stylesheet.php (https://gitlab.com/x33n/respond) PHP · 240 lines

1 <?php

2 /**

3 * This class defines an example resource that is wired into the URI /example

221 $name = str_replace('.less', '', $filename);

222

223 array_push($arr, $name);

224 }

225

scienceDetail.html.php (https://github.com/extraaa/Game.git) PHP · 193 lines

1 <?php

2 /*

3 * science_detail.html.php -

21 // first check whether that science should be displayed...

22 $science = $scienceTypeList[$scienceID];

23 $maxLevel = round(eval('return '.formula_parseToPHP("{$science->maxLevel};", '$caveData')));

24 if (!$science || ($science->nodocumentation &&

25 !$caveData[$science->dbFieldName] &&

46 $duration = time_formatDuration(

47 eval('return ' .

48 formula_parseToPHP($scienceTypeList[$scienceID]->productionTimeFunction.";",'$caveData'))

49 * BUILDING_TIME_BASE_FACTOR);

50

53 foreach ($science->resourceProductionCost as $resourceID => $function){

54

55 $cost = ceil(eval('return '. formula_parseToPHP($function . ';', '$caveData')));

56 if ($cost)

57 array_push($resourcecost,

ParanoidHTTPFetcher.php (https://github.com/drzalet1/IT391-Commuter-Challenge.git) PHP · 245 lines

1 <?php

2

3 /**

4 * This module contains the CURL-based HTTP fetcher implementation.

5 *

6 * PHP versions 4 and 5

7 *

8 * LICENSE: See the COPYING file included in this distribution.

17 * Interface import

18 */

19 require_once "Auth/Yadis/HTTPFetcher.php";

20

21 require_once "Auth/OpenID.php";

44 function _writeHeader($ch, $header)

45 {

46 array_push($this->headers, rtrim($header));

47 return strlen($header);

48 }

mf_register.php (https://bitbucket.org/rossberenson/michael-karas.git) PHP · 146 lines

1 <?php

2 /**

3 *

53 unset($option['rewrite_slug']);

54 unset($option['with_front']);

55 array_push($mf_pt_register,$name);

56

57 if($option['menu_position']){

73 //add unique post type

74 if ($p['core']['quantity']) {

75 array_push($mf_pt_unique, "edit.php?post_type=".$name);

76 }

77

Psr4Autoloader.php (https://github.com/markn86/moodle.git) PHP · 148 lines

1 <?php

2

3 namespace Box\Spout\Autoloader;

5 /**

6 * Class Psr4Autoloader

7 * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md#class-example

8 */

9 class Psr4Autoloader

55 \array_unshift($this->prefixes[$prefix], $baseDir);

56 } else {

57 \array_push($this->prefixes[$prefix], $baseDir);

58 }

59 }

114 // replace the namespace prefix with the base directory,

115 // replace namespace separators with directory separators

116 // in the relative class name, append with .php

117 $file = $baseDir

118 . \str_replace('\\', '/', $relativeClass)

FsExplorer.class.php (https://github.com/midnightskinhead/tubepress.git) PHP · 297 lines

1 <?php

2 /**

3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)

20 */

21

22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';

23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(

24 'org_tubepress_api_filesystem_Explorer',

88 }

89

90 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));

91 }

92

130 }

131

132 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));

133 }

134 closedir($handle);

http_build_query.php (https://github.com/martpy/akelos.git) PHP · 100 lines

1 <?PHP

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

3 // | PHP Version 4 |

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

5 // | Copyright (c) 1997-2004 The PHP Group |

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

7 // | This source file is subject to version 3.0 of the PHP license, |

8 // | that is bundled with this package in the file LICENSE, and is |

9 // | available at through the world-wide-web at |

10 // | http://www.php.net/license/3_0.txt. |

11 // | If you did not receive a copy of the PHP license and are unable to |

12 // | obtain it through the world-wide-web, please send a note to |

13 // | license@php.net so we can mail you a copy immediately. |

14 // +----------------------------------------------------------------------+

15 // | Authors: Stephan Schmidt <schst@php.net> |

acl0001Test.php (https://github.com/gnomeontherun/joomla-cms.git) PHP · 288 lines

1 <?php

2 /**

3 * @package Joomla.SystemTest

6 * Creates test group and assigns priviledges with the ACL.

7 */

8 require_once 'SeleniumJoomlaTestCase.php';

9

10 class Acl0001Test extends SeleniumJoomlaTestCase

20 $this->assertTrue($this->isElementPresent("//ul[@id='menu-com-users-users']"), 'User manager should be visible');

21 }

22 catch (PHPUnit_Framework_AssertionFailedError $e)

23 {

24 array_push($this->verificationErrors, $this->getTraceFiles($e));

29 $this->assertTrue($this->isElementPresent("//ul[@id='menu-com-users-groups']"), 'Groups should be visible');

30 }

31 catch (PHPUnit_Framework_AssertionFailedError $e)

32 {

33 array_push($this->verificationErrors, $this->getTraceFiles($e));

rep.php (https://github.com/thomasbennett/tgb.git) PHP · 106 lines

1 <table width="100%" border="0" cellspacing=0 cellpadding=0>

2 <form action="admin.php" method="post">

3 <input type="hidden" name="a" value="rep">

4 <input type="hidden" name="r_id" value="<?=$_POST[r_id]?>">

10 foreach ($titles as $item => $val) {

11 if ($oslogin[$item]) {

12 array_push($access, "<a href=admin.php?a=$item><img src=images/buttons/$item.gif alt=$val border=0></a>");

13 }

14 }

20 <?=$access?>

21 <?=$access ? " ": ""?>

22 <a href="admin.php?a=my"><img src=images/buttons/my.gif alt="My Account" border=0></a>

23 </td></tr>

24 <tr><td><img src="images/spacer.gif" width="1" height="10"></td></tr>

OrdersFixtureTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 262 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

9 use \Magento\Setup\Fixtures\OrdersFixture;

10

11 class OrdersFixtureTest extends \PHPUnit_Framework_TestCase

12 {

13

14 /**

15 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Fixtures\FixtureModel

16 */

17 private $fixtureModelMock;

31 /**

32 *

33 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

34 */

35 public function testExecute()

CSV.class.php (https://github.com/lievenjanssen/The-DataTank.git) PHP · 131 lines

1 <?php

2 /**

3 * This class handles a CSV file

8 * @author Jan Vansteenlandt

9 */

10 include_once ("model/resources/strategies/ATabularData.class.php");

11 class CSV extends ATabularData {

12

41 $PK = "";

42 foreach ($allowed_columns as $result) {

43 array_push($columns, $result["column_name"]);

44 if ($result["is_primary_key"] == 1) {

45 $PK = $result["column_name"];

89 }

90 if ($PK == "") {

91 array_push($arrayOfRowObjects, $rowobject);

92 } else {

93 if (! isset($arrayOfRowObjects[$rowobject->$PK])) {

tags.php (https://bitbucket.org/marsl/marsl.git) PHP · 202 lines

1 <?php

2 include_once (dirname(__FILE__)."/../includes/errorHandler.php");

3 include_once (dirname(__FILE__)."/../user/user.php");

4 include_once (dirname(__FILE__)."/../includes/dbsocket.php");

5 include_once (dirname(__FILE__)."/../user/auth.php");

6 include_once (dirname(__FILE__)."/../includes/basic.php");

7 include_once (dirname(__FILE__)."/../user/role.php");

8 include_once (dirname(__FILE__)."/../user/auth.php");

56 $id = $row['id'];

57 $tag = htmlentities($row['tag'], null, "ISO-8859-1");

58 array_push($tags, array('id'=>$id, 'tag'=>$tag));

59 }

60 require_once("template/tags.tpl.php");

data_read.ejs.php (https://github.com/tagcool/MitosEHR-Official.git) PHP · 145 lines

1 <?php

2 //--------------------------------------------------------------------------------------------------------------------------

3 // data_read.ejs.php / Permissions List with values for role

11 session_cache_limiter('private');

12

13 include_once($_SESSION['site']['root']."/classes/dbHelper.class.php");

14 include_once($_SESSION['site']['root']."/classes/I18n.class.php");

15 require_once($_SESSION['site']['root']."/classes/dataExchange.class.php");

16

17 //******************************************************************************

81 }

82 $row['address_full'] = $row['line1'].' '.$row['line2'].' '.$row['city'].','.$row['state'].' '.$row['zip'].'-'.$row['plus_four'].' '.$row['country'];

83 array_push($rows, $row);

84 }

85 break;

grve-admin-custom-sidebars.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 140 lines

51 ?>

52 <div id="grve-sidebar-wrap" class="wrap">

53 <h2><?php echo __( "Sidebars", GRVE_THEME_TRANSLATE ); ?></h2>

54

55 <?php if( isset( $_GET['sidebar-settings'] ) ) { ?>

65 </div>

66 <div class="grve-sidebar-notice-exists grve-notice-red" style="display:none;">

67 <strong><?php _e( 'Sidebar with this name already exists!', GRVE_THEME_TRANSLATE ); ?></strong>

68 </div>

69 <form method="post" action="themes.php?page=grve-custom-sidebar-settings">

100

101 <div class="grve-custom-sidebar-item">

102 <input class="<?php echo esc_attr( $grve_button_class ); ?> button" type="button" value="<?php _e( 'Delete', GRVE_THEME_TRANSLATE ); ?>">

103 <h3 class="grve-custom-sidebar-title">

104 <span><?php _e( 'Custom Sidebar', GRVE_THEME_TRANSLATE ); ?>: <?php echo grve_array_value( $sidebar_item, 'name' ); ?></span>

categoriesfc.php (https://github.com/amet17/webstar.git) PHP · 131 lines

1 <?php

2 /**

3 * Element: CategoriesFC

27 $this->params = $params;

28

29 if ( !file_exists( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'admin.flexicontent.php' ) ) {

30 return 'Flexicontent files not found...';

31 }

68 $pt = $v->parent;

69 $list = @$children[$pt] ? $children[$pt] : array();

70 array_push( $list, $v );

71 $children[$pt] = $list;

72 }

74

75 // second pass - get an indent list of the items

76 require_once JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'html'.DS.'menu.php';

77 $list = JHTMLMenu::treerecurse( 0, '', array(), $children, 9999, 0, 1 );

78

iCalendar.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 137 lines

1 <?php

2 /**

3 * qCal_Parser_Lexer_iCalendar

61 $parent =& $stack[count($stack)-1];

62 // add the child to the parent

63 array_push($parent['children'], $child);

64 }

65 } else {

CPSTimer.php (https://github.com/Pogostick/ps-yii-extensions.git) PHP · 307 lines

1 <?php

2 /**

3 * This file is part of the psYiiExtensions package.

170 // Queue it

171 if ( self::START_TIMER == $command )

172 array_push( self::$_timerQueue, $_timer );

173 else

174 {

storestocksale.php (https://gitlab.com/alexprowars/bitrix) PHP · 292 lines

1 <?php

2

3 namespace Bitrix\Catalog\Integration\Report\StoreStock;

210 {

211 $columnElements = array_column($item, $columnKey);

212 array_push($combineColumnElements, ...$columnElements);

213 }

214

DocBlockScanner.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 326 lines

1 <?php

2 /**

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

148 //gotos no break needed

149 case 'DOCBLOCK_TAG':

150 array_push($this->tags, array('name' => $token[1],

151 'value' => ''));

152 end($this->tags);

tksample.php (https://github.com/r1zib/salesforce.git) PHP · 314 lines

1 <?php

2 // session_start() has to go right at the top, before any output!

3 session_start();

11 <body>

12 <tt>

13 <?php

14

15 require_once ('soapclient/SforcePartnerClient.php');

16 require_once ('soapclient/SforceEnterpriseClient.php');

17

18 define("USERNAME", "user@example.com");

29 // Simple example of session management - first call will do

30 // login, refresh will use session ID and location cached in

31 // PHP session

32 if (isset($_SESSION['enterpriseSessionId'])) {

33 $location = $_SESSION['enterpriseLocation'];

grve_counter.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 213 lines

1 <?php

2 /**

3 * Counter Shortcode

34 $counter_classes = array( 'grve-element' );

35

36 array_push( $counter_classes, 'grve-counter' );

37 array_push( $counter_classes, 'grve-align-center' );

38

39 if ( !empty( $animation ) ) {

40 array_push( $counter_classes, 'grve-animated-item' );

41 array_push( $counter_classes, $animation);

44

45 if ( !empty ( $el_class ) ) {

46 array_push( $counter_classes, $el_class);

47 }

48

JMailTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 414 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

10 /**

11 * Test class for JMail.

12 * Generated by PHPUnit on 2011-10-26 at 19:32:59.

13 *

14 * @package Joomla.UnitTest

259 public function testAddAttachment()

260 {

261 $attachments = array(JPATH_PLATFORM . '/joomla/mail/mail.php');

262 $names = array('mail.php');

271 foreach ($actual as $attach)

272 {

273 array_push($actual_attachments, $attach[0]);

274 array_push($actual_names, $attach[2]);

Paymentmethods.php (https://bitbucket.org/nharland/wikl.nl.git) PHP · 110 lines

1 <?php

2

3 /**

54 'issuers' => $value->Issuers->Issuer

55 );

56 array_push($issuerObj, array(

57 'pmcode' => $value->PaymentMethodCode,

58 'data' => urlencode(serialize($arr))

103 $msg->msg = Mage::helper('iceadvanced')->__($val);

104

105 array_push($this->messages, $msg);

106 }

107

errors.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 288 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: errors.php 2460 2008-04-08 21:03:22Z mz $

7 */

8

9 /**

10 * @ignore - PHP5 compatibility fix.

11 */

12 if (! defined('E_STRICT')) {

17 * Includes SimpleTest files.

18 */

19 require_once dirname(__FILE__) . '/invoker.php';

20 require_once dirname(__FILE__) . '/test_case.php';

web.php (https://github.com/andreatarr/joomla-cms.git) PHP · 315 lines

1 <?php

2 /**

3 * @package Joomla.Test

79 *

80 * @param TestCase $test A test object.

81 * @param PHPUnit_Framework_MockObject_MockObject $mockObject The mock object.

82 * @param array $options A set of options to configure the mock.

83 *

84 * @return PHPUnit_Framework_MockObject_MockObject The object with the behaviours added

85 *

86 * @since 3.4

147 * @param array $options A set of options to configure the mock.

148 *

149 * @return PHPUnit_Framework_MockObject_MockObject

150 *

151 * @since 11.3

PaymentRequest.class.php (https://github.com/madeinnordeste/kohana-pagseguro.git) PHP · 433 lines

1 <?php if (!defined('PAGSEGURO_LIBRARY')) { die('No direct script access allowed'); }

2 /*

3 ************************************************************************

210 }

211 if (is_array($param)) {

212 array_push($this->items, new Item($param));

213 } else if ($param instanceof Item) {

214 array_push($this->items, $param);

221 $item->setWeight($weight);

222 $item->setShippingCost($shippingCost);

223 array_push($this->items, $item);

224 }

225 }

Validation.php (https://github.com/alrik11es/sPHPf.git) PHP · 158 lines

1 <?php

2 namespace coldstarstudios\validation;

3

28 if(empty($param)){

29 $this->isValid = false;

30 array_push($this->errors, array('id'=>$this->count, 'message'=>$message));

31 }

32 }

46 if($condition){

47 $this->isValid = false;

48 array_push($this->errors, array('id'=>$this->count, 'message'=>$message));

49 }

50 }

63 if($param['size'] > $size) {

64 $this->isValid = false;

65 array_push($this->errors, array('id'=>$this->count, 'message'=>$message_size));

66 }

67

Group.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 344 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 Magento Inc. (http://www.magentocommerce.com)

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

25 */

26

262 /* @var $store Mage_Core_Model_Store */

263 if ($store->getLocaleCode() == $locale) {

264 array_push($stores, $store);

265 }

266 }

SQLQuery.class.php (https://github.com/indieenergy/thresholds-php.git) PHP · 251 lines

1 <?php

2

3 class SQLQuery {

91

92 for ($i = 0; $i < $numOfFields; ++$i) {

93 array_push($table,mysql_field_table($this->_result, $i));

94 array_push($field,mysql_field_name($this->_result, $i));

100 $tempResults[$table[$i]][$field[$i]] = $row[$i];

101 }

102 array_push($result,$tempResults);

103 }

104

136 $numOfFields = mysql_num_fields($this->_result);

137 for ($i = 0; $i < $numOfFields; ++$i) {

138 array_push($table,mysql_field_table($this->_result, $i));

139 array_push($field,mysql_field_name($this->_result, $i));

ajax_income_1.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 262 lines

1 <?php

2 include_once('./_common.php');

103 <td class='addtd15'>{$row['tollfee4_1']}</td>

104 <td>

105 <a href='./income_day_print.php?calldate={$row['a_call_date']}&drvseq={$a_mb_seq}&drv_distance={$row['a_drv_distance']}&cnt={$row['a_cnt']}&drv_cash={$row['a_drv_cash']}&drv_vccash={$row['a_drv_vccash']}&cnt_1={$row['a_cnt_1']}&drv_cash_1={$row['a_drv_cash_1']}&drv_vccash_1={$row['a_drv_vccash_1']}&tollfee_a={$a_tollfee_a}' onclick='return dayprint(this.href);' target='_blank' class='btn btn_02'>일계표</a>

106 </td>

107 </tr>";

124 // <td class='addtd15'>{$row['tollfee4_1']}</td>

125 // <td>

126 // <form id='fincome1' method='post' action='./income_day_print.php'>

127 // <input type='hidden' name='calldate' value='{$row['a_call_date']}'>

128 // <input type='hidden' name='drvseq' value='{$a_mb_seq}'>

140 // </tr>";

141 // $option['date'] = $row['call_date'];

142 // array_push($options, preg_replace('/\r\n|\r|\n/','',$option));

143 array_push($options, $option);

expression.php (https://github.com/dburkart/scurvy.git) PHP · 383 lines

1 <?php

2 /*

3 * expression.php

291 case '(':

292 $this->pushVar($buffer, $atomList);

293 array_push($stack, new Atom(EXPR_PAR));

294 break;

295 case '=':

373 $list[] = $top;

374 else {

375 array_push($stack, $top);

376 break;

377 }

378 }

379

380 array_push($stack, new Atom($atom));

381 }

382 }

Zone.php (https://github.com/seosamba/ecommerce.git) PHP · 223 lines

1 <?php

2

3 /**

81 $newCodesList = array();

82 foreach ($newCountries as $country) {

83 array_push($newCodesList, $country['country']);

84 }

85

request.php (https://github.com/mandriva-management-console/mmc.git) PHP · 210 lines

1 <?php

2

3 /**

115 $parts = array();

116 foreach ($this->subs as $id => $sub) {

117 array_push($parts, $sub->display());

118 $p = $default_params;

119 $p['subedition'] = 1;

121 $p['sub_id'] = $id;

122 $p['request'] = null;

123 array_push($parameters, $p);

124 }

125 $n = new ListInfos($parts, _T('Search part', 'dyngroup'), "&amp;id=" . $default_params['gid']);

shortcodes.php (https://gitlab.com/hop23typhu/list-theme) PHP · 267 lines

1 <?php

2 //////////////////////////////////////////////////////////////////

3 // Button shortcode

249

250 function register_button($buttons) {

251 array_push($buttons, "button", "button_progression", "one_half", "one_third", "two_third", "one_fourth", "three_fourth", "toggle", "tabs", "divider");

252 return $buttons;

253 }

CursoProfesor.php (https://github.com/camilo255423/gcad.git) PHP · 123 lines

1 <?php

2

3 /**

115 public function addCustomError($error)

116 {

117 array_push($this->errores, $error);

118 }

119 public function numErrores()

option_model.php (https://bitbucket.org/adrianricardo/newstatus.git) PHP · 335 lines

1 <?php

2 Class Option_model extends CI_Model

3 {

247 $product['weight'] = $product['weight'] + $val->weight;

248

249 array_push($opts, $val->value.$price);

250 }

251 }

helper.php (https://github.com/ponlue/abktours.git) PHP · 162 lines

1 <?php

2 /**

3 * @version $Id: helper.php 2009-12-05 vinaora $

15 defined( '_JEXEC' ) or die( 'Restricted access' );

16 ?>

17 <?php

18

19 define( 'VERSION_MODULE' , "2.0" );

69 // Push Leading Zeros

70 while ( $diff>0 ){

71 array_push( $arr,0 );

72 $diff--;

73 }

74

75 // For PHP 4.x

76 /*

77 $arrNumber = array();

ActionStack.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 245 lines

1 <?php

2 /**

3 * Zend Framework

21

22 /** Zend_Controller_Plugin_Abstract */

23 require_once 'Zend/Controller/Plugin/Abstract.php';

24

25 /** Zend_Registry */

26 require_once 'Zend/Registry.php';

27

28 /**

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

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

37 * @version $Id: ActionStack.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $

38 */

39 class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract

FormService.php (https://github.com/coreui/coreui-free-vue-laravel-admin-template.git) PHP · 353 lines

1 <?php

2 /*

3 16.12.2019

4 RolesService.php

5 */

6

161 foreach($roles as $role){

162 if($role->hasPermissionTo('browse bread ' . $formId)){

163 array_push($result, $role->name);

164 }

165 }

TermLocalizedTranslationTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 237 lines

1 <?php

2

3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7;

138 // The source data.

139 $tests[1] = $tests[0];

140 array_push($tests[1]['source_data']['i18n_string'],

141 [

142 'lid' => 10,

155 'format' => 0,

156 ]);

157 array_push($tests[1]['source_data']['locales_target'],

158 [

159 'lid' => 10,

174

175 // The expected results.

176 array_push($tests[1]['expected_data'],

177 [

178 'tid' => 3,

WebDriver.php (https://github.com/perzeababa/saunter.php.git) PHP · 218 lines

6 namespace WebDriver;

7

8 require_once 'SaunterPHP/Framework/SeleniumConnection.php';

9 require_once 'SaunterPHP/Framework/SuiteIdentifier.php';

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

11 require_once 'Log.php';

12

13 abstract class SaunterPHP_Framework_SaunterTestCase extends \PHPUnit_Framework_TestCase {

14 static public $log;

15 static public $verificationErrors;

129 array_push(self::$verificationErrors, $message);

130 } else {

131 array_push(self::$verificationErrors, $e->toString());

132 }

133 }

Statuses.class.php (https://github.com/stvvt/ef.git) PHP · 151 lines

1 <?php

2

3

52

53 //Добавяме в края на масива

54 array_push($statusArr, $textObj);

55

56 //Записваме новия масив

smarty_internal_compilebase.php (https://gitlab.com/adamlwalker/generatedata) PHP · 176 lines

1 <?php

2 /**

3 * Smarty Internal Plugin CompileBase

136 public function openTag($compiler, $openTag, $data = null)

137 {

138 array_push($compiler->_tag_stack, array($openTag, $data));

139 }

140

match.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 199 lines

1 <?php

2

3 require(APPPATH . '/libraries/Stadioom_REST_Controller.php');

147 $allMatches = array();

148 foreach ($result as $match) {

149 array_push($allMatches, $match->toArray());

150 }

151 $this->responseOk(array('data' => $allMatches));

index.php (https://github.com/hinablue/TextCube.git) PHP · 115 lines

1 <?php

2 /// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation

3 /// All rights reserved. Licensed under the GPL.

4 /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)

5 define('OPENID_REGISTERS', 10); /* check also ../index.php */

6

7 /* ID Provider로부터 Redirect되어 연결이 되므로 GET 방식으로 구현되었습니다 */

14 );

15

16 require ROOT . '/library/preprocessor.php';

17

18 global $openid_list;

22 $openid = Setting::getUserSetting( "openid." . $i ,null,true);

23 if( !empty($openid) ) {

24 array_push( $openid_list, $openid );

25 }

26 }

array.idl.php (https://github.com/diegoIta/hiphop-php.git) PHP · 376 lines

1 <?php

2

3 include_once 'base.php';

114 array('array' => Variant), FunctionIsFoldable);

115

116 f('array_push', Variant,

117 array('array' => VariantMap | Reference,

118 'var' => Variant),

search.php (https://github.com/archoo/electionleaflets.git) PHP · 214 lines

1 <?php

2

3 require_once('cache.php');

111 if($search_count > 0){

112 while($search_object->fetch()){

113 array_push($found_objects, clone($search_object));

114 }

115 $return = $found_objects;

FsExplorer.class.php (https://gitlab.com/endomorphosis/jeffersonsmithmayor) PHP · 297 lines

1 <?php

2 /**

3 * Copyright 2006 - 2012 Eric D. Hough (http://ehough.com)

20 */

21

22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';

23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(

24 'org_tubepress_api_filesystem_Explorer',

88 }

89

90 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));

91 }

92

130 }

131

132 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));

133 }

134 closedir($handle);

Exceptions.php (https://gitlab.com/hunt9310/ras) PHP · 290 lines

1 <?php

2 /*

3 * Copyright (c) 2013 - 2015 MasterCard International Incorporated

164 $this->fieldErrors = array();

165 foreach ($fieldErrors as $fieldError) {

166 array_push($this->fieldErrors, new Simplify_FieldError($fieldError));

167 }

168 }

Dashboard.php (https://gitlab.com/rhungs/pelayanan_cs) PHP · 236 lines

1 <?php

2

3

74 $build_array = array ("data_grafik"=>array(), "jml"=>$ttl);

75 foreach($results as $row) {

76 array_push($build_array["data_grafik"],

77 array(

78 $row->indikator_name,

97 foreach($results as $row) {

98 if($row->indikator_category_id==1){

99 array_push($build_array["data_sangat_puas"],

100 array(

101 $row->indikator_name,

104 );

105 }else if($row->indikator_category_id==2){

106 array_push($build_array["data_puas"],

107 array(

108 $row->indikator_name,

usermodel.php (https://github.com/atomicflowtechorg/tasker.git) PHP · 178 lines

1 <?php

2

3 class UserModel extends CI_Model {

39 $resultObject->link = site_url("individual/" . $row->pkUsername . "/");

40 $resultObject->title = $row->pkUsername;

41 array_push($results, $resultObject);

42 }

43 return $results;

resultados.php (https://bitbucket.org/glaucomunsberg/kenobi.git) PHP · 141 lines

1 <?php

2 if (!defined('BASEPATH'))

3 exit('No direct script access allowed');

38 'quadrado'=> $this->quintilModel->getQuintilAgilidadeByGenero($teste['genero'], $idade ,$teste['quadrado']),

39 'sentar_alcancar'=> $this->quintilModel-> getQuintilFlexibilidadeByGenero($teste['genero'], $idade ,$teste['sentar_alcancar']));

40 array_push($linhas, $valoresLinha);

41 }

42 array_push($data['testes'], array('ocorrencia'=>$avalicao['dt_ocorrencia'], 'testes'=> $linhas));

70 $idade = $this->quintilModel->calc_idade($teste['dt_nascimento'],$teste['dt_ocorrencia']);

71 $quintil['forcaAbdominal']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilAbdominaisByGenero($aluno[0]['genero'],$idade,$teste['num_abdominais']));

72 // array_push($resultados, $quintil);

73 $quintil['mebroSuperior']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilForcaExplosivaSuperiorByGenero($aluno[0]['genero'], $idade ,$teste['arremesso_medicineball']));

74 $quintil['salto_horizontal']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilForcaExplosivaInferiorByGenero($aluno[0]['genero'], $idade ,$teste['salto_em_distancia']));

77 $quintil['sentar_alcancar']= $this->quintilModel->mudaQuintil($this->quintilModel-> getQuintilFlexibilidadeByGenero($aluno[0]['genero'], $idade ,$teste['sentar_alcancar']));

78 $quintil['dt_ocorrencia']= $teste['dt_ocorrencia'];

79 array_push($data['testes'],array('nome'=>$teste['nome'],'dt_nascimento'=>$teste['dt_nascimento'] ,'nome_mae'=>$teste['nome_mae'] , 'dt_ocorrencia'=>$quintil['dt_ocorrencia'], 'forcaAbdominal'=>$quintil['forcaAbdominal'],

80 'membroSuperior'=>$quintil['mebroSuperior'],'corrida_vinte_metros'=>$quintil['corrida_vinte_metros'],

81 'salto_horizontal'=>$quintil['salto_horizontal'],

LinkedItem.php (https://github.com/dswalker/xerxes.git) PHP · 95 lines

1 <?php

2

3 /*

67 case 'x': // $x - International Standard Serial Number (NR)

68

69 array_push($this->issns, $subfield->value);

70 break;

71

74 case 'z': // $z - International Standard Book Number (R)

75

76 array_push($this->isbns, $subfield->value);

77 break;

78

88 default: // everything else is a note

89

90 array_push($this->notes, $subfield->value);

91 break;

92 }

XmlImportTemplateParser.php (https://gitlab.com/najomie/ljm) PHP · 444 lines

1 <?php

2 /**

3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>

5 */

6

7 require_once dirname(__FILE__) . '/ast/XmlImportAstSequence.php';

8 require_once dirname(__FILE__) . '/ast/XmlImportAstPrint.php';

9 require_once dirname(__FILE__) . '/ast/XmlImportAstText.php';

10 require_once dirname(__FILE__) . '/ast/XmlImportAstWith.php';

11 require_once dirname(__FILE__) . '/ast/XmlImportAstForeach.php';

12 require_once dirname(__FILE__) . '/ast/XmlImportAstIf.php';

13 require_once dirname(__FILE__) . '/ast/XmlImportAstMath.php';

14 require_once dirname(__FILE__) . '/ast/XmlImportAstSpintax.php';

pages.inc.php (https://github.com/nDIGAH3CEYIiCsq/gold.git) PHP · 367 lines

1 <?php

2

3 /**

189 $names = array();

190 while (($row = $result->fetch()))

191 array_push($names, $row['name']);

192

193 $this->Cache->set("names", self::CacheClass, $names);

manageusers-3.inc.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 190 lines

1 <?php

2 $f_userid = (int)readGetVar('userid');

3 $bIsNewUser = ($f_userid <= 0);

157

158 if($g_vars['page']['errors']) {

159 include_once($DOCUMENT_PAGES."manageusers-2.inc.php");

160 } else {

161 if($bIsNewUser) {

176 if(!empty($arrGroupIDsNew[$i_rSet1->fields['groupid']]))

177 unset($arrGroupIDsNew[$i_rSet1->fields['groupid']]);

178 else array_push($arrGroupIDsToDelete, $i_rSet1->fields['groupid']);

179 $i_rSet1->MoveNext();

180 }

182 }

183 foreach($arrGroupIDsNew as $key=>$val)

184 array_push($arrGroupIDsToAdd, $key);

185 manageUserGroups(array($f_userid), $arrGroupIDsToAdd, true);

186 manageUserGroups(array($f_userid), $arrGroupIDsToDelete, false);

SkillAPIManager.php (https://gitlab.com/EleonoraUA/rpg_server) PHP · 374 lines

1 <?php

2 /**

3 * Class File SkillAPIManager

4 *

5 * PHP version 5.5

6 *

7 * @package AppBundle\Manager

64 $skills = array();

65 foreach ($char_skills as $char_skill) {

66 array_push($skills, $char_skill);

67 }

68 return $skills;

98 $skills = array();

99 foreach ($char_skills as $char_skill) {

100 array_push($skills, $char_skill->getSkill());

101 }

102 return $skills;

User.php (https://github.com/josephwegner/holidaywish.es.git) PHP · 264 lines

1 <?php

2

3 $classBuilder['User'] = new UserModel();

130

131 while($user = mysql_fetch_object($data)) {

132 array_push($users, $user->username);

133 }

134

211 $users = array();

212 while($user = mysql_fetch_object($userData)) {

213 array_push($users, $user);

214 }

215

Exporter.php (https://github.com/ewandor/horde.git) PHP · 215 lines

1 <?php

2 /**

3 * Connector class for exporting ActiveSync messages to the wbxml output stream.

12

13 /**

14 * File : streamimporter.php

15 * Project : Z-Push

16 * Descr : Stream import classes

193 public function folderChange($folder)

194 {

195 array_push($this->changed, $folder);

196 $this->count++;

197

208 public function folderDeletion($id)

209 {

210 array_push($this->deleted, $id);

211 $this->count++;

212

OrdersFixtureTest.php (https://gitlab.com/daigiangaitu91/magento) PHP · 262 lines

1 <?php

2 /**

3 * Copyright © 2015 Magento. All rights reserved.

9 use \Magento\Setup\Fixtures\OrdersFixture;

10

11 class OrdersFixtureTest extends \PHPUnit_Framework_TestCase

12 {

13

14 /**

15 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Fixtures\FixtureModel

16 */

17 private $fixtureModelMock;

31 /**

32 *

33 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

34 */

35 public function testExecute()

table_torch.php (https://github.com/splitfeed/Table-Torch.git) PHP · 374 lines

1 <?php

2

3 if (! defined('BASEPATH')) exit('No direct script access');

20 'key'=>'' );

21

22 //php 5 constructor

23 function __construct() {

24

336 $fieldname = humanize( $fieldname );

337 }

338 array_push( $headers, anchor( torch_url( $this->url_vals, FALSE ), $prefix . $fieldname, array( 'class'=>$class )));

339 }

340

news_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 326 lines

1 <?php

2 # MantisBT - a php based bugtracking system

28 * requires current_user_api

29 */

30 require_once( 'current_user_api.php' );

31 /**

32 * requires twitter_api

33 */

34 require_once( 'twitter_api.php' );

35

36 # --------------------

219 for( $i = 0;$i < $t_row_count;$i++ ) {

220 $row = db_fetch_array( $result );

221 array_push( $t_rows, $row );

222 }

223

QRssFeed.class.php (https://github.com/quinta/qcodo.git) PHP · 272 lines

1 <?php

2 class QRssFeed extends QBaseClass {

3 // Required RSS 2 Fields

83

84 public function AddItem(QRssItem $objItem) {

85 array_push($this->objItemArray, $objItem);

86 }

87

229

230 public function AddCategory(QRssCategory $objCategory) {

231 array_push($this->objCategoryArray, $objCategory);

232 }

233

vmshoppergroups.php (https://bitbucket.org/ghazalp/news-show-pro-gk5.git) PHP · 118 lines

1 <?php

2

3 /**

78 // iterating

79 $temp_options = array();

80 array_push($temp_options, array(-1, 'none', 0));

81 foreach ($results as $item) {

82 array_push($temp_options, array($item->id, $item->name, 0));

web.php (https://github.com/dextercowley/joomla-cms.git) PHP · 288 lines

1 <?php

2 /**

3 * @package Joomla.Test

56 * @param array $options A set of options to configure the mock.

57 *

58 * @return PHPUnit_Framework_MockObject_MockObject

59 *

60 * @since 11.3

163 public static function mockAppendBody($content)

164 {

165 array_push(static::$body, (string) $content);

166 }

167

mysql.php (https://github.com/smartarts/php-class-mysql.git) PHP · 115 lines

74 $parts=explode("=",$t);

75 if($parts[1]=='') $parts[1]=$parts[0];

76 array_push($this->dbvar,$parts[0]);

77 array_push($this->expvar,$parts[1]);

108 }

109

110 require(getdir(__FILE__)."select.php");

111 require(getdir(__FILE__)."insert.php");

112 require(getdir(__FILE__)."update.php");

113 require(getdir(__FILE__)."delete.php");

114 require(getdir(__FILE__)."string.php");

115 ?>

Dump.php (https://github.com/Arkadiy-Sedelnikov/joostina-1.4.git) PHP · 72 lines

1 <?php

2 /**

3 * @package Joostina

4 * @copyright ��������� ����� (C) 2008 Joostina team. ��� ����� ��������.

5 * @license �������� http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, ��� help/license.php

6 * Joostina! - ��������� ����������� ����������� ���������������� �� �������� �������� GNU/GPL

7 * ��� ��������� ���������� � ������������ ����������� � ��������� �� ��������� �����, �������� ���� help/copyright.php.

8 * @version 3.1.0

9 * @package patTemplate

10 * @author Stephan Schmidt <schst@php.net>

11 * @license LGPL

12 * @link http://www.php-tools.net

43 if(!isset($flatten[$var]) || !is_array($flatten[$var]))

44 $flatten[$var] = array();

45 array_push($flatten[$var], $value);

46 }

47 }

ThumbBase.php (https://gitlab.com/gregtyka/SiberianCMS) PHP · 323 lines

1 <?php

2 /**

3 * PhpThumb Base Class Definition File

7 * PHP Version 5 with GD 2.0+

8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>

9 * Copyright (c) 2009, Ian Selby/Gen X Design

10 *

16 * @author Ian Selby <ian@gen-x-design.com>

17 * @copyright Copyright (c) 2009 Gen X Design

18 * @link http://phpthumb.gxdlabs.com

19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License

20 * @version 3.0

21 * @package PhpThumb

22 * @filesource

23 */

dir.php (https://github.com/denibrain/fowork.git) PHP · 93 lines

1 <?php

2

3 namespace FW\IO;

83 }

84 elseif ($item instanceof Dir) {

85 \array_push ($stack, array($item, $target->createChild($item->basename)));

86 }

87 else {

PartialStack.php (https://gitlab.com/gideonmarked/yovelife) PHP · 93 lines

1 <?php namespace Cms\Classes;

2

3 /**

48 public function addComponent($alias, $componentObj)

49 {

50 array_push($this->activePartial['components'], [

51 'name' => $alias,

52 'obj' => $componentObj

simpleCaptcha.php (https://github.com/Bigjoos/U-232-V3.git) PHP · 72 lines

1 <?php

2 /**

3 * https://github.com/Bigjoos/

55 $r = rand(0, $size - 1);

56 }

57 array_push($used, $keys[$r]);

58 }

59 $selectText = $used[rand(0, $num - 1) ];

63 shuffle($used);

64 for ($i = 0; $i < sizeof($used); ++$i) {

65 array_push($resp['images'], array(

66 'hash' => sha1($used[$i].$SALT) ,

67 'file' => $images[$used[$i]]

simpleCaptcha.php (https://github.com/Bigjoos/U-232-V1.git) PHP · 75 lines

1 <?php

2 /**

3 * http://btdev.net:1337/svn/test/Installer09_Beta

56 $r = rand(0, $size-1);

57 }

58 array_push($used, $keys[$r]);

59 }

60 $selectText = $used[rand(0, $num-1)];

66 shuffle($used);

67 for ($i=0; $i<sizeof($used); ++$i) {

68 array_push($resp['images'], array(

69 'hash'=>sha1($used[$i] . $SALT),

70 'file'=>$images[$used[$i]]

MigrationManager_SectionsService.php (https://github.com/Firstborn/Craft-CMS-Migration-Manager.git) PHP · 320 lines

1 <?php

2

3 namespace Craft;

94 }

95

96 array_push($newSection['entrytypes'], $newEntryType);

97 }

98

XmlDAO.php (https://github.com/iconifyit/SkyBlue-CMS.git) PHP · 160 lines

1 <?php defined('SKYBLUE') or die('Bad file request');

2

3 /**

77 }

78 if (! $inserted) {

79 array_push($data, $Bean);

80 }

81 return $this->save($data);

116 foreach ($data as $Item) {

117 if ($Item->getId() != $id) {

118 array_push($filtered, $Item);

119 }

120 else {

perms.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 260 lines

1 <?php

2 /**

3 * WordPress Permissions check code from Serverbuddy by PluginBuddy written by Dustin Bolton of iThemes

24 }

25

26 array_push( $tests, $this_test );

27

28 $this_test = array(

42 }

43

44 array_push( $tests, $this_test );

45

46

61 }

62

63 array_push( $tests, $this_test );

64

65

peuplement_ldap.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 67 lines

1 <?php

2

3 if (!defined("_ECRIRE_INC_VERSION")) return;

42 $ligne[1]=$info_auteur[1];

43 $ligne[2]="<img src=\""._DIR_PLUGIN_PEUPLEMENTLDAP."/img_pack/".$image."\" />";

44 array_push($compte_rendu,$ligne);

45 }

46 }

55 $ligne[1]=$entreesLdap[$i]["mail"][0];

56 $ligne[2]="<img src=\""._DIR_PLUGIN_PEUPLEMENTLDAP."/img_pack/".$image."\" />";

57 array_push($compte_rendu,$ligne);

58 }

59 }

setting_model.php (https://gitlab.com/exabyte-lab/tiffinbox) PHP · 196 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Setting_Model extends CI_Model {

37 if($row->sliders){

38 $sliders = unserialize($row->sliders);

39 array_push($sliders, [

40 'image'=> site_url().'/media/slider/'.$this->upload_image($data, 'image', 'title', 'slider', './media/slider'),

41 'title'=>$data['title'],

autoloader.php (https://bitbucket.org/codeyash/bootstrap.git) PHP · 356 lines

1 <?php

2 /**

3 * Part of the Fuel framework.

8 * @license MIT License

9 * @copyright 2010 - 2013 Fuel Development Team

10 * @link http://fuelphp.com

11 */

12

204 else

205 {

206 array_push(static::$core_namespaces, $namespace);

207 }

208 }

316 $file = str_replace('\\', DS, $namespace).DS;

317 }

318 $file .= str_replace('_', DS, $class).'.php';

319

320 if ( ! $psr)

LogController.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 191 lines

1 <?php

2

3 /**

6 * Packaged: 2013-04-23T16:34:14+00:00

7 * Last Modified: 2013-03-17T16:34:28+01:00

8 * File: app/code/local/Xtento/OrderExport/controllers/Adminhtml/Orderexport/LogController.php

9 * Copyright: Copyright (c) 2013 XTENTO GmbH & Co. KG <info@xtento.com> / All rights reserved.

10 */

81 $baseFilenames = array();

82 foreach ($savedFiles as $filePath) {

83 array_push($baseFilenames, basename($filePath));

84 }

85 $baseFilenames = array_unique($baseFilenames);

160 $baseFilenames = array();

161 foreach ($savedFiles as $filePath) {

162 array_push($baseFilenames, basename($filePath));

163 }

164 $baseFilenames = array_unique($baseFilenames);

ExchangeController.class.php (https://gitlab.com/xuebutayan/yshop) PHP · 274 lines

1 <?php

2

3 namespace Admin\Controller;

45 //获取购物清单数据表产品id,字段id

46 $ids=array();

47 array_push($ids,$val['id']);

48 }

49 $map['goodid']=array("in",$ids);

menus.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 184 lines

1 <?php

2

3 // Sécurité

111 foreach (array_keys($necessites) as $necessite){

112 list($balise, $attributs) = spip_xml_decompose_tag($necessite);

113 array_push($entree['necessites'][$attributs['type']] , $attributs['nom']);

114 }

115 }

fsa_tree_mem.php (https://github.com/Oreolek/Togataltu.git) PHP · 271 lines

1 <?php

2 /**

3 * This file is part of phpMorphy library

4 *

5 * Copyright c 2007-2008 Kamaev Vladimir <heromantor@users.sourceforge.net>

24 * This file is autogenerated at Wed, 14 Oct 2009 01:33:59 +0400, don`t change it!

25 */

26 class phpMorphy_Fsa_Tree_Mem extends phpMorphy_Fsa {

27 function walk($trans, $word, $readAnnot = true) {

28 $__mem = $this->resource; $fsa_start = $this->fsa_start;

29

30 for($i = 0, $c = $GLOBALS['__phpmorphy_strlen']($word); $i < $c; $i++) {

31 $prev_trans = $trans;

32 $char = ord($word[$i]);

137 array_push($stack, null);

138 array_push($stack_idx, null);

139

140 $state = $this->readState((($startNode) >> 11) & 0x1FFFFF);

db.php (https://github.com/vivid-planet/library.git) PHP · 153 lines

1 <?php

2

3 Class Database {

71 $param_mappings[$param] = '%'.$param_mappings[$param].'%';

72 }

73 array_push($col_mappings, $conjunction.' '.$col.' '.$comparator.' '.$param);

74 }

75

104 foreach ($values as $col => $value) {

105 $param = ':'.$col;

106 array_push($param_names, $param);

107 $param_mappings[$param] = $value;

108 array_push($col_mappings, $col.'='.$param);

News.class.php (http://antilophpe.googlecode.com/svn/) PHP · 454 lines

1 <?php

2 /**

3 * File News.class.php

327 $listRow=array();

328 while($arrayRow=mysql_fetch_assoc($result)){

329 array_push($listRow,$arrayRow);

330 }

331 return $listRow;

350 $listRow=array();

351 while($arrayRow=mysql_fetch_assoc($result)){

352 array_push($listRow,$arrayRow);

353 }

354 return $listRow;

367 $filesList=array();

368 while($news_File_array=mysql_fetch_assoc($result)){

369 array_push($filesList, $news_File_array);

370 }

371 return $filesList;

FsExplorer.class.php (https://github.com/tengle1080/tubepress.git) PHP · 163 lines

1 <?php

2 /**

3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)

20 */

21

22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';

23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(

24 'org_tubepress_api_filesystem_Explorer',

82 }

83

84 array_push($toReturn, realpath($dir . '/' . $file));

85 }

86 closedir($handle);

120 }

121

122 array_push($toReturn, realpath($dir . '/' . $file));

123 }

124 closedir($handle);

Action.class.php (http://antilophpe.googlecode.com/svn/) PHP · 324 lines

1 <?php

2 /**

3 * File Action.class.php

232 $filesList=array();

233 while($action_File_array=adodb_fetch_assoc($result)){

234 array_push($filesList, $action_File_array);

235 }

236 return $filesList;

315 $list= array();

316 while($action_array=adodb_fetch_assoc($result)){

317 array_push($list,$action_array);

318 }

319 return $list;

LanguageHandler.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 243 lines

1 <?php

2 /*+**********************************************************************************

3 * The contents of this file are subject to the vtiger CRM Public License Version 1.1

28 $translatedString = self::getLanguageTranslatedString($currentLanguage, $key, $module);

29

30 // label not found in users language pack, then check in the default language pack(config.inc.php)

31 if($translatedString === null) {

32 $defaultLanguage = vglobal('default_language');

176 //To merge base language and user selected language translations

177 if($userSelectedLanguage != $defaultLanguage) {

178 array_push($languages, $defaultLanguage);

179 }

180

Amalgamator.php (https://github.com/livinglab/openlab.git) PHP · 305 lines

1 <?php

2 /**

3 * Merge pre-3.0 duplicate venues and organizers

66 $eventbrite = get_post_meta( $id, '_OrganizerEventBriteID', true );

67 if ( empty( $eventbrite ) ) {

68 array_push( $buckets[ $hash ], $id );

69 } else {

70 array_unshift( $buckets[ $hash ], $id );

114 $eventbrite = get_post_meta( $id, '_VenueEventBriteID', true );

115 if ( empty( $eventbrite ) ) {

116 array_push( $buckets[ $hash ], $id );

117 } else {

118 array_unshift( $buckets[ $hash ], $id );

268 'post_type' => Tribe__Events__Main::POSTTYPE,

269 'page' => $settings->adminSlug,

270 ], admin_url( 'edit.php' )

271 )

272 );

ActionStack.php (https://github.com/drietsch/newcms.git) PHP · 245 lines

1 <?php

2 /**

3 * Zend Framework

21

22 /** Zend_Controller_Plugin_Abstract */

23 require_once 'Zend/Controller/Plugin/Abstract.php';

24

25 /** Zend_Registry */

26 require_once 'Zend/Registry.php';

27

28 /**

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

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

37 * @version $Id: ActionStack.php,v 1.1 2008/05/13 13:41:32 holger.meyer Exp $

38 */

39 class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract

regions5.js.php (https://github.com/cnlpete/Minecraft-Overviewer-Addons.git) PHP · 132 lines

1 <?php

2 // OPTIONS HERE.... ooooOooo so many options it's overwhelming, how are you ever going to get through all of these!?

3 $yml = @'<serverdir>\plugins\WorldGuard\worlds\<worldname>\regions.yml';

12 $output .= "overviewer.collections.regionDatas.push([\n";

13

14 require_once "spyc.php"; // YAML Library.

15 $data = spyc_load_file($yml);

16

96 for ($n = 0;$n <= count($region);$n++) {

97 if (isset($region[$n]["x"]) && isset($region[$n]["z"])) {

98 array_push($points["x"],$region[$n]["x"]);

99 array_push($points["z"],$region[$n]["z"]);

DocBlockScanner.php (https://github.com/bruisedlee/zf2.git) PHP · 375 lines

1 <?php

2

3 namespace Zend\Code\Scanner;

133 */

134 case 'DOCBLOCK_TAG':

135 array_push($this->tags, array('name' => $token[1], 'value' => ''));

136 end($this->tags);

137 $tagIndex = key($this->tags);

StarWriterTask.php (https://github.com/stubbles/star.git) PHP · 321 lines

1 <?php

2 /**

3 * Task to create star files.

10 * Uses the Phing Task

11 */

12 require_once 'phing/Task.php';

13 /**

14 * Uses star writer classes

15 */

16 require_once 'star/StarArchive.php';

17 /**

18 * Uses star writer classes

19 */

20 require_once 'star/StarFile.php';

21 /**

22 * Uses star writer classes

updateActivity.php (https://github.com/qarnac/CyberHawk-Adventure.git) PHP · 56 lines

1 <?php

2 include '../php/credentials.php';

3 include '../php/getConstants.php';

34 $choic=array("choices"=>array());

35 if($data->a!="")

36 array_push($choic['choices'],array('choice'=>'a','content'=>$data->a,'ans'=> btos($data->answer=='a')));

37 if($data->b!="")

38 array_push($choic['choices'],array('choice'=>'b','content'=>$data->b,'ans'=> btos($data->answer=='b')));

39 if($data->c!="")

40 array_push($choic['choices'],array('choice'=>'c','content'=>$data->c,'ans'=> btos($data->answer=='c')));

41 if($data->d!="")

42 array_push($choic['choices'],array('choice'=>'d','content'=>$data->d,'ans'=> btos($data->answer=='d')));

43 if($data->e!="")

44 array_push($choic['choices'],array('choice'=>'e','content'=>$data->e,'ans'=> btos($data->answer=='e')));

45 $choic=json_encode($choic);

46 return $choic;

base_object.c (https://github.com/mescher/mupdf.git) C · 802 lines

406 new = fz_new_array(fz_array_len(obj));

407 for (i = 0; i < fz_array_len(obj); i++)

408 fz_array_push(new, fz_array_get(obj, i));

409

410 return new;

454

455 void

456 fz_array_push(fz_obj *obj, fz_obj *item)

457 {

458 obj = fz_resolve_indirect(obj);