PageRenderTime 651ms queryTime 246ms sortTime 6ms getByIdsTime 105ms findMatchingLines 159ms

100+ results results for 'php array_unshift repo:brad-marshall/reconnoiter' (651 ms)

Not the results you expected?
bookings.php https://gitlab.com/pankajmohale/chef2go | PHP | 200 lines
                    
91										<?php if( $EM_Ticket->get_bookings_count() == 0 ): ?>
                    
92										| <a href="<?php bloginfo('wpurl'); ?>/wp-load.php" class="ticket-actions-delete"><?php esc_html_e('Delete','events-manager'); ?></a>
                    
93										<?php else: ?>
                    
128								<td colspan="<?php echo apply_filters('em_event_edit_ticket_td_colspan', 7); ?>">
                    
129									<?php include( em_locate_template('forms/event/bookings-ticket-form.php')); ?>
                    
130									<div class="em-ticket-form-actions">
                    
150		    </a>
                    
151		    <a href="<?php echo esc_url(add_query_arg('recreate_tickets', '1')); ?>" class="em-reschedule-trigger em-button button-secondary<?php if( !empty($_REQUEST['recreate_tickets']) ) echo ' reschedule-hidden'; ?>" data-target=".em-tickets-form">
                    
152		    	<?php esc_html_e('Modify Recurring Event Tickets ', 'events-manager'); ?>
                    
168		<input type="text" name="event_rsvp_spaces" value="<?php if( $EM_Event->event_rsvp_spaces > 0 ){ echo $EM_Event->event_rsvp_spaces; } ?>" /><br />
                    
169		<em><?php esc_html_e('If set, the total number of spaces for a single booking to this event cannot exceed this amount.','events-manager'); ?><?php esc_html_e('Leave blank for no limit.','events-manager'); ?></em>
                    
170	</p>
                    
182			<select name="recurrence_rsvp_days_when">
                    
183				<option value="before" <?php if( !empty($EM_Event->recurrence_rsvp_days) && $EM_Event->recurrence_rsvp_days <= 0) echo 'selected="selected"'; ?>><?php echo sprintf(_x('%s the event starts','before or after','events-manager'),__('Before','events-manager')); ?></option>
                    
184				<option value="after" <?php if( !empty($EM_Event->recurrence_rsvp_days) && $EM_Event->recurrence_rsvp_days > 0) echo 'selected="selected"'; ?>><?php echo sprintf(_x('%s the event starts','before or after','events-manager'),__('After','events-manager')); ?></option>
                    
                
BigMath.php https://github.com/umbecr/camilaframework.git | PHP | 471 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
20 */
                    
21require_once dirname(__FILE__).'/CryptUtil.php';
                    
22
                    
25 */
                    
26require_once dirname(__FILE__).'/../OpenID.php';
                    
27
                    
39     *
                    
40     * @param integer $long The long number (can be a normal PHP
                    
41     * integer or a number created by one of the available long number
                    
60        while ($this->cmp($long, 0) > 0) {
                    
61            array_unshift($bytes, $this->mod($long, 256));
                    
62            $long = $this->div($long, pow(2, 8));
                    
                
Logger.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 393 lines
                    
1<?php
                    
2
                    
108    {
                    
109        array_unshift($this->handlers, $handler);
                    
110    }
                    
134        }
                    
135        array_unshift($this->processors, $callback);
                    
136    }
                    
161        if (!$this->handlers) {
                    
162            $this->pushHandler(new StreamHandler('php://stderr', self::DEBUG));
                    
163        }
                    
                
ArgvInput.php https://gitlab.com/s.manchanda/wfa-leave-application | PHP | 351 lines
                    
1<?php
                    
2
                    
233            } else {
                    
234                array_unshift($this->parsed, $next);
                    
235            }
                    
                
Option.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 307 lines
                    
1<?php
                    
2
                    
205                }
                    
206                if(!$Field['require']) array_unshift($Field['options'], array('text' => 'Select', 'value' => ''));
                    
207                $FieldObj = $Form->$T($fname)
                    
247            if($Field['type'] == 'tags') {
                    
248                $TagsTextText = 'Theme::JqueryUI(\'autocomplete\');' . PHP_EOL;
                    
249                $TagsTextText .= "\t\t" . 'Theme::JqueryPlugin(\'TagsInput\');' . PHP_EOL;
                    
249                $TagsTextText .= "\t\t" . 'Theme::JqueryPlugin(\'TagsInput\');' . PHP_EOL;
                    
250                $TagsTextText .= "\t\t" . 'Theme::CssHeader(\'jquery-ui-autocomplete\', GLOBAL_DATA_DIR . \'library/jquery-ui/jquery-ui-1.10.4.autocomplete.css\');' . PHP_EOL;
                    
251                $TagsTextText .= "\t\t" . 'Theme::CssHeader(\'jquery-plugin-TagsInput\', GLOBAL_DATA_DIR . \'library/jquery-plugins/TagsInput/jquery.tagsinput.css\');' . PHP_EOL;
                    
272							}
                    
273						});\';' . PHP_EOL;
                    
274
                    
287
                    
288        $returnString = '<?php ' . implode(PHP_EOL, $PrepareOptions) . '?>
                    
289        <form action="' . $hook['form_action'] . '" class="' . $hook['form_class'] . '" id="' . $hook['form_id'] . '" method="post">
                    
                
Store.php https://github.com/jTownsend/Symfony-2.0.git | PHP | 405 lines
                    
1<?php
                    
2
                    
179
                    
180        array_unshift($entries, array($storedEnv, $headers));
                    
181
                    
                
class-admin.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 467 lines
                    
1<?php
                    
2
                    
19	 */
                    
20	private $plugin_file = 'mailchimp-for-wp/mailchimp-for-wp.php';
                    
21
                    
66		// Hooks for Plugins overview
                    
67		if( isset( $pagenow ) && $pagenow === 'plugins.php' ) {
                    
68			$this->plugin_file = plugin_basename( MC4WP_LITE_PLUGIN_FILE );
                    
132
                    
133		 $settings_link = '<a href="admin.php?page=mc4wp-lite">'. __( 'Settings', 'mailchimp-for-wp' ) . '</a>';
                    
134         array_unshift( $links, $settings_link );
                    
371	{
                    
372		?><script type="text/javascript">window.location.replace('https://mc4wp.com/#utm_source=lite-plugin&utm_medium=link&utm_campaign=menu-upgrade-link'); </script><?php
                    
373	}
                    
395
                    
396		require MC4WP_LITE_PLUGIN_DIR . 'includes/views/api-settings.php';
                    
397	}
                    
                
yst_plugin_tools.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 406 lines
                    
1<?php
                    
2
                    
32			global $pagenow;
                    
33			if ( $pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->adminpages) ) {
                    
34				wp_enqueue_style('dashboard');
                    
67		function plugin_options_url() {
                    
68			return admin_url( 'admin.php?page=wpseo_dashboard' );
                    
69		}
                    
78				$settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings', 'wordpress-seo' ) . '</a>';
                    
79				array_unshift( $links, $settings_link );
                    
80			}
                    
91
                    
92			if ( $pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->adminpages) ) {
                    
93				wp_enqueue_script( 'wpseo-admin-script', WPSEO_URL.'js/wp-seo-admin.js', array('jquery'), WPSEO_VERSION, true );
                    
310		?>
                    
311			<div id="<?php echo $id; ?>" class="yoastbox">
                    
312				<h2><?php echo $title; ?></h2>
                    
                
Form.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-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 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
core.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 206 lines
                    
1<?php
                    
2!defined('P_W') && exit('Forbidden');
                    
2!defined('P_W') && exit('Forbidden');
                    
3!defined('CMS_BASEURL') && define("CMS_BASEURL", "index.php?m=cms&");;
                    
4
                    
75	}
                    
76	$postion = $cms_sitename ? "<a href='index.php?m=cms'>$cms_sitename</a>":'<a href="index.php?m=cms">資訊</a>';
                    
77	if (!$cid) {return $postion . '<em>&gt;</em>文章列表';}
                    
109	
                    
110	array_unshift($list, $thisColumn);
                    
111	
                    
                
template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
                    
1<?php
                    
2
                    
66        if (!empty($vars['elements']['#grid'][$quality])) {
                    
67          array_unshift($vars['attributes_array']['class'], $quality . '-' . $vars['elements']['#grid'][$quality]);
                    
68        }
                    
70
                    
71      array_unshift($vars['attributes_array']['class'], 'grid-' . $vars['elements']['#grid']['columns']);
                    
72    }
                    
104  if (variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
                    
105    array_unshift($elements['styles']['#pre_render'], 'alpha_css_preprocessor');
                    
106  }
                    
                
Filter.php https://github.com/miros/mvc_framework.git | PHP | 134 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
37 * @category   Testing
                    
38 * @package    PHPUnit
                    
39 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
40 * @copyright  2002-2010 Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
45
                    
46require_once 'File/Iterator/Factory.php';
                    
47
                    
51 * @category   Testing
                    
52 * @package    PHPUnit
                    
53 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
                
Form_Input.php git://github.com/gallery/gallery3.git | PHP | 555 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
4 *
                    
5 * $Id: Form_Input.php 3326 2008-08-09 21:24:30Z Shadowhand $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
238					{
                    
239						array_unshift($this->rules, $rule);
                    
240					}
                    
319				// Add the label or name to the beginning of the args
                    
320				array_unshift($args, $this->label ? mb_strtolower($this->label) : $this->name);
                    
321
                    
                
Hydrator.php https://github.com/weaverryan/mongodb-odm.git | PHP | 192 lines
                    
1<?php
                    
2/*
                    
34 *
                    
35 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
36 * @link        www.doctrine-project.com
                    
103                $names = isset($mapping['alsoLoadFields']) ? $mapping['alsoLoadFields'] : array();
                    
104                array_unshift($names, $mapping['name']);
                    
105                foreach ($names as $name) {
                    
151                    $targetMetadata = $this->dm->getClassMetadata($className);
                    
152                    $id = $targetMetadata->getPHPIdentifierValue($reference[$this->cmd . 'id']);
                    
153                    $value = $this->dm->getReference($className, $id);
                    
166            } else {
                    
167                $value = Type::getType($mapping['type'])->convertToPHPValue($rawValue);
                    
168                $data[$mapping['name']] = $value;
                    
                
Captcha.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24#require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27#require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
174            if (!empty($decorator) && !array_key_exists($key, $decorators)) {
                    
175                array_unshift($decorators, $decorator);
                    
176            }
                    
181            if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
                    
182                array_unshift($decorators, $decorator);
                    
183            }
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                #require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
                
MenuLinkTree.php https://gitlab.com/mohamed_hussein/prodt | PHP | 307 lines
                    
1<?php
                    
2
                    
144      if (isset($manipulator['args'])) {
                    
145        array_unshift($manipulator['args'], $tree);
                    
146        $tree = call_user_func_array($callable, $manipulator['args']);
                    
                
autoloader.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
201		{
                    
202			array_unshift(static::$core_namespaces, $namespace);
                    
203		}
                    
317		}
                    
318		$file .= str_replace('_', DS, $class).'.php';
                    
319
                    
                
Form.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
RedirectMiddleware.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 177 lines
                    
1<?php
                    
2
                    
96            $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
                    
97            \array_unshift($historyHeader, $uri);
                    
98            \array_unshift($statusHeader, $statusCode);
                    
                
josc_com_docman.class.php https://github.com/DanielTichy/plagat.com.git | PHP | 371 lines
                    
1<?php

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

                    
20	 * Set specific properties

                    
21	 * will be called also in admin.html.php manage comments during row loop

                    
22	 */

                    
107//		/* COPY of docman latest module to get the itemid */

                    
108//		include_once( JPATH_SITE."/administrator/components/com_docman/docman.class.php");

                    
109//

                    
120		$url	= ($admin ? "/" : "" )

                    
121				. "index.php?option=com_docman&task=doc_details&gid=$contentId" 

                    
122				. ( $menuid ? "&Itemid=$menuid" : "" );

                    
221		if (!$id && $select && count($content)>0) { 

                    
222			array_unshift( $content, JHTML::_('select.option', '0', '-- Select Document --', 'id', 'title' ) );

                    
223		}

                    
345		// add "All sections"

                    
346		array_unshift( $sectoptions, JHTML::_('select.option', '0', '-- All --', 'id', 'title' ) );

                    
347		

                    
                
Main.php https://bitbucket.org/kdms/sh-magento.git | PHP | 178 lines
                    
1<?php
                    
2class MW_FreeGift_Block_Adminhtml_Catalog_Edit_Tab_Main
                    
118        if (!$found) {
                    
119            array_unshift($customerGroups, array('value'=>0, 'label'=>Mage::helper('catalogrule')->__('NOT LOGGED IN')));
                    
120        }
                    
                
functions.inc.php https://github.com/martijnvermaat/quick-hacks.git | PHP | 160 lines
                    
1<?php
                    
2// UTF-8 functions
                    
2// UTF-8 functions
                    
3require_once(dirname(__FILE__) .'/includes/utf8.php');
                    
4
                    
5// Translation
                    
6require_once(dirname(__FILE__) .'/includes/php-gettext/gettext.inc');
                    
7$domain = 'messages';
                    
69                $return = $result;
                    
70                array_unshift($return, $key);
                    
71                return $return;
                    
89    if (!$cleanurls && $page != '') {
                    
90        $page .= '.php';
                    
91    }
                    
                
Form.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
StatementPrefetch.php https://gitlab.com/guillaumev/alkarama | PHP | 537 lines
                    
1<?php
                    
2
                    
284        case \PDO::FETCH_CLASS | \PDO::FETCH_CLASSTYPE:
                    
285          $class_name = array_unshift($this->currentRow);
                    
286          // Deliberate no break.
                    
464    $result = array();
                    
465    // Traverse the array as PHP would have done.
                    
466    while (isset($this->currentRow)) {
                    
483      $result = array();
                    
484      // Traverse the array as PHP would have done.
                    
485      while (isset($this->currentRow)) {
                    
506    $result = array();
                    
507    // Traverse the array as PHP would have done.
                    
508    while (isset($this->currentRow)) {
                    
522    $result = array();
                    
523    // Traverse the array as PHP would have done.
                    
524    while (isset($this->currentRow)) {
                    
                
Captcha.php https://github.com/zf/ZendFramework-Library.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
174            if (!empty($decorator) && !array_key_exists($key, $decorators)) {
                    
175                array_unshift($decorators, $decorator);
                    
176            }
                    
181            if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
                    
182                array_unshift($decorators, $decorator);
                    
183            }
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
                
ReedSolomonCodec.php https://gitlab.com/jjpa2018/dashboard | PHP | 468 lines
                    
1<?php
                    
2declare(strict_types = 1);
                    
311                $tmp = $b->toArray();
                    
312                array_unshift($tmp, $this->blockSize);
                    
313                array_pop($tmp);
                    
339                $tmp = $b->toArray();
                    
340                array_unshift($tmp, $this->blockSize);
                    
341                array_pop($tmp);
                    
                
ArgvInput.php https://gitlab.com/madwanz64/laravel | PHP | 350 lines
                    
1<?php
                    
2
                    
140            if ('' === $value = substr($name, $pos + 1)) {
                    
141                array_unshift($this->parsed, $value);
                    
142            }
                    
216            } else {
                    
217                array_unshift($this->parsed, $next);
                    
218            }
                    
                
FormExtension.php https://bitbucket.org/wayfarer/verse.git | PHP | 256 lines
                    
1<?php
                    
2
                    
163        $blocks = $view->get('types');
                    
164        array_unshift($blocks, '_'.$view->get('id'));
                    
165
                    
                
environment.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 195 lines
                    
1<?php // $Id$
                    
2/**
                    
4 *
                    
5 * This should really be a singleton. A PHP5 Todo I guess.
                    
6 */
                    
126                $this->keypair['expires'] = $this->public_key_expires;
                    
127                array_unshift($openssl_history, $this->keypair);
                    
128            }
                    
                
Loader.php https://gitlab.com/bossagna/meik | PHP | 155 lines
                    
1<?php
                    
2
                    
17    if ($include) {
                    
18      array_unshift($classes, $parent_class_name);
                    
19    }
                    
                
Mysqli.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 369 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mysqli.php 16927 2009-07-21 17:49:39Z ralph $
                    
21 */
                    
26 */
                    
27//*** require_once 'Zend/Db/Statement.php';
                    
28
                    
82             */
                    
83            //*** require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
84            throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error);
                    
91     * @param mixed $parameter Name the parameter, either integer or string.
                    
92     * @param mixed $variable  Reference to PHP variable containing the value.
                    
93     * @param mixed $type      OPTIONAL Datatype of SQL parameter.
                    
202        if ($params) {
                    
203            array_unshift($params, str_repeat('s', count($params)));
                    
204            $stmtParams = array();
                    
                
menuitems.php https://github.com/sherdog/GitWitty.git | PHP | 191 lines
                    
1<?php
                    
2/**
                    
81		// second pass - get an indent list of the items
                    
82		require_once JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'html'.DS.'menu.php';
                    
83		$list = JHTMLMenu::treerecurse( 0, '', array(), $children, 9999, 0, 0 );
                    
138		if ( $showinput) {
                    
139			array_unshift( $options,JHTML::_( 'select.option', '-', '&nbsp;', 'value', 'text', true) );
                    
140			array_unshift( $options, JHTML::_( 'select.option', '-', '- '.JText::_('Select Item').' -') );
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
353
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
420        if (strrchr($locale, '_') !== false) {
                    
421            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
422        }
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
112				{
                    
113					array_unshift($paths[$prefix], JPath::clean($includePath));
                    
114				}
                    
117				{
                    
118					array_unshift($paths[''], JPath::clean($includePath));
                    
119				}
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
                
inputparameter.inc.php https://github.com/viglesiasce/testlink.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
54 * @copyright 	2005-2009, TestLink community 
                    
55 * @version    	CVS: $Id: inputparameter.inc.php,v 1.27 2010/01/11 19:16:30 franciscom Exp $
                    
56 * @link 		http://www.teamst.org/index.php
                    
61/** include logic */
                    
62require_once("object.class.php");
                    
63require_once("inputparameter.class.php");
                    
120	{
                    
121		array_unshift($info,$source);
                    
122	}
                    
                
install.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 337 lines
                    
80		if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) {
                    
81			require(DIR_CONFIG_SITE . '/site_install.php');
                    
82			@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
110		$phpVmin = '5.2.4';
                    
111		if (version_compare(PHP_VERSION, $phpVmin, '>=')) {
                    
112			$phpVtest = true;
                    
116		$this->set('phpVmin',$phpVmin);
                    
117		$this->set('phpVtest',$phpVtest);
                    
118	}
                    
168		require(DIR_CONFIG_SITE . '/site_install.php');
                    
169		@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
170		
                    
229		}
                    
230		if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) {
                    
231			unlink(DIR_CONFIG_SITE . '/site_install.php');
                    
                
html.php https://github.com/whiletrue/fluxcms.git | PHP | 265 lines
                    
1<?php
                    
2
                    
114 		if(popoon_classes_browser::supportedByFCK() && $perm->isAllowed($localUri,array('xhtml-back-edit_fck'))) {
                    
115            array_unshift($e, "fck");
                    
116        }   
                    
119        	if($perm->isAllowed($localUri,array('xhtml-back-edit_kupu'))) {
                    
120        		array_unshift($e, 'kupu');
                    
121    		}	
                    
122        	if($perm->isAllowed($localUri,array('xhtml-back-edit_bxe'))) {
                    
123        		array_unshift($e, 'bxe');
                    
124    		}	
                    
127        	if($perm->isAllowed($localUri,array('xhtml-back-edit_kupu'))) {
                    
128        		array_unshift($e, 'kupu');
                    
129    		}	
                    
                
ForumController.php https://gitlab.com/wuhang2003/phpwind | PHP | 350 lines
                    
1<?php
                    
2
                    
8 * @author Jianmin Chen <sky_hold@163.com>
                    
9 * @license http://www.phpwind.com
                    
10 * @version $Id: ForumController.php 28803 2013-05-24 07:58:21Z jieyin $
                    
152			}
                    
153			array_unshift($cate, array('my', '我的版块'));
                    
154			$forum['my'] = $tmp;
                    
                
atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
101	/**
                    
102	 * PHP4 constructor.
                    
103	 */
                    
                
AbstractTransport.php https://github.com/Exercise/zf2.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
258            // Ensure first part contains text alternatives
                    
259            array_unshift($this->_parts, $mp);
                    
260
                    
267        if (false !== ($body = $this->_mail->getBodyHtml())) {
                    
268            array_unshift($this->_parts, $body);
                    
269        } elseif (false !== ($body = $this->_mail->getBodyText())) {
                    
269        } elseif (false !== ($body = $this->_mail->getBodyText())) {
                    
270            array_unshift($this->_parts, $body);
                    
271        }
                    
                
ConfigPaths.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 413 lines
                    
1<?php
                    
2
                    
78    {
                    
79        if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
80            $homeDrive = $this->getEnv('HOMEDRIVE');
                    
306        // Add some Windows specific ones :)
                    
307        if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
308            if ($appData = $this->getEnv('APPDATA')) {
                    
309                // AppData gets preference
                    
310                \array_unshift($dirs, \strtr($appData, '\\', '/').'/PsySH');
                    
311            }
                    
                
Base.php https://github.com/smoke/maintainable-framework.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
4 * presentation logic.  It allows for templates to be written in 
                    
5 * mostly HTML with lightweight embedded PHP helpers.
                    
6 *
                    
9 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
10 * @license    http://opensource.org/licenses/bsd-license.php BSD
                    
11 */
                    
15 * presentation logic.  It allows for templates to be written in 
                    
16 * mostly HTML with lightweight embedded PHP helpers.
                    
17 *
                    
20 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
21 * @license    http://opensource.org/licenses/bsd-license.php BSD
                    
22 */
                    
93     * <code>
                    
94     *  <?php
                    
95     *  ...
                    
                
Grid.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 221 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
193
                    
194        array_unshift($groups, array('label'=> '', 'value'=> ''));
                    
195        $this->getMassactionBlock()->addItem('assign_group', array(
                    
                
AbstractContainer.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 282 lines
                    
2/**
                    
3 * This file is part of PHPWord - A pure PHP library for reading and writing
                    
4 * word processing documents.
                    
10 * file that was distributed with this source code. For the full list of
                    
11 * contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
                    
12 *
                    
12 *
                    
13 * @link        https://github.com/PHPOffice/PHPWord
                    
14 * @copyright   2010-2016 PHPWord contributors
                    
17
                    
18namespace PhpOffice\PhpWord\Element;
                    
19
                    
76     * @param mixed $args
                    
77     * @return \PhpOffice\PhpWord\Element\AbstractElement
                    
78     */
                    
                
ArrayList.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 240 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
59    public function unshift($element) {
                    
60        return (array_unshift($this->_elements,$element))?true : false;
                    
61    }
                    
                
Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 18760 2009-10-31 13:09:01Z yoshida@zend.co.jp $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            #require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            #require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
Manager.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 770 lines
                    
1<?php
                    
2
                    
123		if (\preg_match('/^[a-z0-9\-]+$/', $sName) &&
                    
124			\file_exists(APP_PLUGINS_PATH.$sName.'/index.php'))
                    
125		{
                    
129			{
                    
130				include APP_PLUGINS_PATH.$sName.'/index.php';
                    
131			}
                    
170				if (\preg_match('/^[a-z0-9\-]+$/', $sName) &&
                    
171					\file_exists($sPathName.'/index.php'))
                    
172				{
                    
518			{
                    
519				\array_unshift($this->aProcessTemplate[$sName][$sPlace], $sHtml);
                    
520			}
                    
                
Abstract.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
28
                    
29require_once('googleresponse.php');
                    
30require_once('googlemerchantcalculations.php');
                    
30require_once('googlemerchantcalculations.php');
                    
31require_once('googleresult.php');
                    
32require_once('googlerequest.php');
                    
45        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), 'Mage_GoogleCheckout');
                    
46        array_unshift($args, $expr);
                    
47        return Mage::app()->getTranslator()->translate($args);
                    
                
Loader.php https://bitbucket.org/behamin_/mundocaravanas.git | PHP | 487 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
84			{
                    
85				array_unshift($this->_ci_model_paths, $module_path);
                    
86			}
                    
358		{
                    
359			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
360		}
                    
486/** load the CI class for Modular Separation **/
                    
487(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
ShowCommand.php https://gitlab.com/jjpa2018/dashboard | PHP | 299 lines
                    
1<?php
                    
2
                    
163        $trace = $exception->getTrace();
                    
164        \array_unshift($trace, [
                    
165            'file' => $exception->getFile(),
                    
                
Api.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 272 lines
                    
1<?php
                    
2
                    
116    if ($errorRequired) {
                    
117      array_unshift($values, ts('Missing required field(s) :') . $missingField);
                    
118      return CRM_Import_Parser::ERROR;
                    
128      $tempMsg = "Invalid value for field(s) : $errorMessage";
                    
129      array_unshift($values, $tempMsg);
                    
130      $errorMessage = NULL;
                    
190      $error = $e->getMessage();
                    
191      array_unshift($values, $error);
                    
192      return CRM_Import_Parser::ERROR;
                    
                
class-extensions-page.php https://gitlab.com/chernushov881/charity-fund | PHP | 286 lines
                    
1<?php
                    
2
                    
93		foreach ($this->known_extensions as $k => $v) {
                    
94			$this->known_extensions[$k] = array_key_exists($k . '/' . $k . '.php', $plugins) ? 'installed' : 'not-installed';
                    
95			if ($this->known_extensions[$k] === 'installed') {
                    
95			if ($this->known_extensions[$k] === 'installed') {
                    
96				$this->known_extensions[$k] = is_plugin_active($k . '/' . $k . '.php') ? 'active' : 'installed';
                    
97			}
                    
162		unset($this->extensions['kali-forms-pro']);
                    
163		array_unshift($this->extensions, $pro);
                    
164
                    
251			case 'installed';
                    
252				$html .= '<a class="button button-primary" data-url="' . $this->generate_activate_link($extension['slug'] . '/' . $extension['slug'] . '.php') . '" data-action="activate" data-slug="' . $extension['slug'] . '">' . esc_html__('Activate', 'kaliforms') . '</a>';
                    
253				break;
                    
258				if ('no-license' === $extension['download_link']) {
                    
259					$html .= '<a class"button" href="' . admin_url('edit.php?post_type=kaliforms_forms&page=kaliforms-license') . '">' . esc_html__('Please activate your license', 'kaliforms') . '</a>';
                    
260				} else {
                    
                
videos.php https://github.com/jersub/gallery3-contrib.git | PHP | 302 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
47      while (videos::is_valid_path(dirname($tree->parents[0]))) {
                    
48        array_unshift($tree->parents, dirname($tree->parents[0]));
                    
49      }
                    
                
Model.php https://github.com/buldezir/dja_on_php.git | PHP | 509 lines
                    
1<?php
                    
2
                    
150    {
                    
151        array_unshift($args, $this);
                    
152        $matches = array();
                    
180    {
                    
181        array_unshift($args, get_called_class());
                    
182        $h = static::_getHelper($method);
                    
186    /**
                    
187     * return php-representaion of field value
                    
188     *
                    
241            if ($force) {
                    
242                $value = $fieldObj->toPhp($value);
                    
243            }
                    
248                if ($force) {
                    
249                    $value = $fieldObj->toPhp($value);
                    
250                }
                    
                
curl.php https://gitlab.com/afdallah/myongkir | PHP | 356 lines
                    
1<?php
                    
2/**
                    
49    		$verb = str_replace('simple_', '', $method);
                    
50    		array_unshift($arguments, $verb);
                    
51    		return call_user_func_array(array($this, '_simple_call'), $arguments);
                    
                
Loader.php https://bitbucket.org/nanomites_webdev/heroframework.git | PHP | 380 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
74			if (is_dir($module_path = $location.$module.'/')) {
                    
75				array_unshift($this->_ci_model_paths, $module_path);
                    
76			}
                    
290		if ((bool) @ini_get('short_open_tag') === FALSE AND CI::$APP->config->item('rewrite_short_tags') == TRUE) {
                    
291			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
292		} else {
                    
379/** load the CI class for Modular Separation **/
                    
380(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
Arr.php https://gitlab.com/leon0399/damnit-engine | PHP | 475 lines
                    
1<?php
                    
2
                    
359        if (is_null($key)) {
                    
360            array_unshift($array, $value);
                    
361        } else {
                    
                
core.php https://github.com/justus/kohana-formo.git | PHP | 724 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
407
                    
408		array_unshift($this->_defaults['fields'], $item);
                    
409
                    
                
Abstract.php https://github.com/zeon/qpkg-piwik.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            // require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
helper.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
182				if (!in_array($path, $paths)) {
                    
183					array_unshift($paths, $path);
                    
184				}
                    
190		// Try to find the class file.
                    
191		if ($file = JPath::find($paths, strtolower($type).'.php')) {
                    
192			require_once $file;
                    
272			if (!in_array($path, $paths)) {
                    
273				array_unshift($paths, trim($path));
                    
274			}
                    
                
woocommerce-product-navigation.php https://gitlab.com/hunt9310/ras | PHP | 260 lines
                    
1<?php
                    
2/*
                    
52		// Include Required Files
                    
53		require_once( 'wpn-settings.php' );
                    
54		
                    
82  	  $support_link = '<a href="http://www.wpbackoffice.com">Premium Support</a>'; 
                    
83	  array_unshift($links, $support_link); 
                    
84	  
                    
85	  $docs_link = '<a href="http://www.wpbackoffice.com/plugins/woocommerce-product-navigation">Docs</a>'; 
                    
86	  array_unshift($links, $docs_link); 
                    
87	  
                    
87	  
                    
88	  $settings_link = '<a href="/wp-admin/admin.php?page=wpn-settings.php">Settings</a>'; 
                    
89	  array_unshift($links, $settings_link); 
                    
                
TableTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 230 lines
                    
1<?php
                    
2/**
                    
10
                    
11class TableTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
18    /**
                    
19     * @var CollectionFactory | \PHPUnit_Framework_MockObject_MockObject
                    
20     */
                    
147        if ($withEmpty) {
                    
148            array_unshift($options, ['label' => '', 'value' => '']);
                    
149        }
                    
                
Router.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 214 lines
                    
1<?php
                    
2namespace Concrete\Core\Routing;
                    
134        foreach ($routes as $route => $route_settings) {
                    
135            array_unshift($route_settings, $route);
                    
136            call_user_func_array(array($this, 'register'), $route_settings);
                    
                
Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
parsedownextra.php https://gitlab.com/RikaPM/vrindi | PHP | 526 lines
                    
1<?php
                    
2
                    
34        # identify footnote definitions before reference definitions
                    
35        array_unshift($this->BlockTypes['['], 'Footnote');
                    
36
                    
37        # identify footnote markers before before links
                    
38        array_unshift($this->InlineTypes['['], 'FootnoteMarker');
                    
39    }
                    
                
TextDescriptor.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 325 lines
                    
1<?php
                    
2
                    
85        if (isset($options['name'])) {
                    
86            array_unshift($description, '<comment>Name</comment>         '.$options['name']);
                    
87            array_unshift($description, $this->formatSection('router', sprintf('Route "%s"', $options['name'])));
                    
                
ClassNode.php https://gitlab.com/madwanz64/laravel | PHP | 169 lines
                    
1<?php
                    
2
                    
63
                    
64        array_unshift($this->interfaces, $interface);
                    
65    }
                    
                
Repository.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 466 lines
                    
1<?php namespace October\Rain\Config;
                    
2
                    
155
                    
156        array_unshift($array, $value);
                    
157
                    
                
memberships.civix.php https://gitlab.com/bmnepali/CiviCRM-Membership-Module | PHP | 348 lines
                    
1<?php
                    
2
                    
22  if ( is_array( $template->template_dir ) ) {
                    
23      array_unshift( $template->template_dir, $extDir );
                    
24  }
                    
119function _memberships_civix_upgrader() {
                    
120  if (!file_exists(__DIR__.'/CRM/Memberships/Upgrader.php')) {
                    
121    return NULL;
                    
167 *
                    
168 * Find any *.mgd.php files, merge their content, and return.
                    
169 *
                    
172function _memberships_civix_civicrm_managed(&$entities) {
                    
173  $mgdFiles = _memberships_civix_find_files(__DIR__, '*.mgd.php');
                    
174  foreach ($mgdFiles as $file) {
                    
216 *
                    
217 * Find any and return any files matching "ang/*.ang.php"
                    
218 *
                    
                
Filesystem.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 303 lines
                    
1<?php
                    
2
                    
129        } else {
                    
130            array_unshift($this->paths[$namespace], $path);
                    
131        }
                    
299            )
                    
300            || null !== parse_url($file, PHP_URL_SCHEME)
                    
301        ;
                    
                
Optimizer.php https://gitlab.com/pr0055/symfonypizza | PHP | 271 lines
                    
1<?php
                    
2
                    
58
                    
59        if (PHP_VERSION_ID < 50400 && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('Twig_Extension_Sandbox')) {
                    
60            if ($this->inABody) {
                    
62                    if (get_class($node) !== 'Twig_Node') {
                    
63                        array_unshift($this->prependedNodes, array());
                    
64                    }
                    
180            $node->setAttribute('with_loop', false);
                    
181            array_unshift($this->loops, $node);
                    
182            array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
                    
182            array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
                    
183            array_unshift($this->loopsTargets, $node->getNode('key_target')->getAttribute('name'));
                    
184        } elseif (!$this->loops) {
                    
                
toolbar.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: toolbar.php 9764 2007-12-30 07:48:11Z ircmaxell $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
18//Register the session storage class with the loader
                    
19JLoader::register('JButton', dirname(__FILE__).DS.'toolbar'.DS.'button.php');
                    
20
                    
132		$btn = func_get_args();
                    
133		array_unshift($this->_bar, $btn);
                    
134		return true;
                    
                
FixNesting.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 328 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
43        $parent_name = $definition->info_parent;
                    
44        array_unshift($tokens, new HTMLPurifier_Token_Start($parent_name));
                    
45        $tokens[] = new HTMLPurifier_Token_End($parent_name);
                    
                
Abstract.php https://github.com/Enrise/Zend.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            // require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
Object.class.php https://github.com/soequelle/recess.git | PHP | 266 lines
                    
1<?php
                    
2Library::import('recess.lang.ClassDescriptor');
                    
20 * method being wrapped. The annotation takes a single parameter, which is
                    
21 * the desired name of the wrapped method. By convention the native PHP method
                    
22 * being wrapped is prefixed with 'wrapped', i.e.:
                    
49 * @copyright 2008, 2009 Kris Jordan
                    
50 * @package Recess PHP Framework
                    
51 * @license MIT
                    
97			$method = $attachedMethod->method;
                    
98			array_unshift($arguments, $this);
                    
99			$reflectedMethod = new ReflectionMethod($object, $method);
                    
                
RedirectMiddleware.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 237 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
129                $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
                    
130                array_unshift($historyHeader, $uri);
                    
131                array_unshift($statusHeader, $statusCode);
                    
                
Abstract.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
304	{
                    
305		array_unshift($this->items, $value);
                    
306	}
                    
                
Form.php https://bitbucket.org/kdms/sh-magento.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
211        else {
                    
212            array_unshift($options, array('value'=>'', 'label'=>Mage::helper('catalogsearch')->__('All')));
                    
213        }
                    
                
Main.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
155        if (!$found) {
                    
156            array_unshift($customerGroups, array(
                    
157                'value' => 0,
                    
                
array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
159
                    
160f('array_unshift', Int32,
                    
161  array('array' => VariantMap | Reference,
                    
                
seo_utils.php https://gitlab.com/Rad1calDreamer/honey | PHP | 151 lines
                    
75				{
                    
76					array_unshift($arDomains, array(
                    
77						'DOMAIN' => $defaultDomain,
                    
112					|| ($file["TYPE"]=="D" && !$USER->CanDoFileOperation('fm_view_listing',$arPath))
                    
113					|| ($file["TYPE"]=="F" && $file["NAME"]==".section.php")
                    
114				)
                    
125				if($f->isSystem()
                    
126					|| $file['TYPE'] == 'F' && in_array($p, array("urlrewrite.php"))
                    
127					|| $file['TYPE'] == 'D' && preg_match("/\/(bitrix|".\COption::getOptionString("main", "upload_dir", "upload").")\//", "/".$p."/")
                    
                
Captcha.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 17616 2009-08-15 03:28:29Z yoshida@zend.co.jp $
                    
21 */
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
183        if (!empty($decorator)) {
                    
184            array_unshift($decorators, $decorator);
                    
185        }
                    
187        $decorator = array('Captcha', array('captcha' => $captcha));
                    
188        array_unshift($decorators, $decorator);
                    
189
                    
                
atomlib.php https://bitbucket.org/stephenharris/stephenharris.git | PHP | 368 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
124        if ( ! function_exists( 'xml_parser_create_ns' ) ) {
                    
125        	trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
                    
126        	return false;
                    
                
Abstract.php https://github.com/arush/desparation-deprecated.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
AsciiSlugger.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 176 lines
                    
1<?php
                    
2
                    
109            $symbolsMap = $this->symbolsMap;
                    
110            array_unshift($transliterator, static function ($s) use ($symbolsMap, $locale) {
                    
111                return $symbolsMap($s, $locale);
                    
                
Config.php https://gitlab.com/x33n/grav | PHP | 383 lines
                    
1<?php
                    
2namespace Grav\Common\Config;
                    
7use RocketTheme\Toolbox\Blueprints\Blueprints;
                    
8use RocketTheme\Toolbox\File\PhpFile;
                    
9use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
                    
216        if (file_exists(USER_DIR.$environment.'/config')) {
                    
217            array_unshift($items['streams']['schemes']['config']['prefixes'][''], $env_stream);
                    
218        }
                    
226        $filename = $filename
                    
227            ? CACHE_DIR . 'compiled/blueprints/' . $filename . '-' . $this->environment . '.php'
                    
228            : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php';
                    
228            : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php';
                    
229        $file = PhpFile::instance($filename);
                    
230        $cache = $file->exists() ? $file->content() : null;
                    
273        $filename = $filename
                    
274            ? CACHE_DIR . 'compiled/config/' . $filename . '-' . $this->environment . '.php'
                    
275            : CACHE_DIR . 'compiled/config/' . $checksum . '-' . $this->environment . '.php';
                    
                
get_start_menu.php https://gitlab.com/Rad1calDreamer/honey | PHP | 279 lines
                    
3define("NOT_CHECK_PERMISSIONS", true);
                    
4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
5require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");
                    
43				if (!$bSkipRecent)
                    
44					$aItem['ONCLICK'] = 'BX.admin.startMenuRecent('.CUtil::PhpToJsObject($aItem).')';
                    
45			}
                    
54			{
                    
55				$aItem["MENU_URL"] = '/bitrix/admin/get_start_menu.php?mode=dynamic&lang='.LANGUAGE_ID.'&admin_mnu_module_id='.urlencode($item['module_id']).'&admin_mnu_menu_id='.urlencode($item['items_id']).($bSkipRecent?'&skip_recent=Y':'').($_REQUEST["back_url_pub"]<>''? '&back_url_pub='.urlencode($_REQUEST["back_url_pub"]):'').'&'.bitrix_sessid_get();
                    
56				$aItem['MENU_PRELOAD'] = false;
                    
99			unset($aRecent[$pos]);
                    
100		array_unshift($aRecent, $aLink);
                    
101		$aRecent = array_slice($aRecent, 0, $nLinks);
                    
118	//generate JavaScript array for popup menu
                    
119	echo CAdminPopup::PhpToJavaScript(__GetSubmenu($aSubmenu));
                    
120}
                    
                
EntityAutocomplete.php https://gitlab.com/guillaumev/alkarama | PHP | 361 lines
                    
1<?php
                    
2
                    
45    $info['#element_validate'] = array(array($class, 'validateEntityAutocomplete'));
                    
46    array_unshift($info['#process'], array($class, 'processEntityAutocomplete'));
                    
47
                    
                
connection.php https://github.com/ringmaster/system.git | PHP | 276 lines
                    
1<?php
                    
2/**
                    
86			else if ( preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches) ) {
                    
87				array_unshift($cqueries, $qry);
                    
88			}
                    
                
template.php https://github.com/kbasarab/d7-core.git | PHP | 375 lines
                    
1<?php
                    
2
                    
66        if (!empty($vars['elements']['#grid'][$quality])) {
                    
67          array_unshift($vars['attributes_array']['class'], $quality . '-' . $vars['elements']['#grid'][$quality]);
                    
68        }
                    
70
                    
71      array_unshift($vars['attributes_array']['class'], 'grid-' . $vars['elements']['#grid']['columns']);
                    
72    }
                    
98  if (variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
                    
99    array_unshift($elements['styles']['#pre_render'], 'alpha_grid_css_aggregate');
                    
100  }
                    
                
Grid.php https://github.com/guiohm/magento-french.git | PHP | 183 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 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 */
                    
143
                    
144        array_unshift($statuses, array('label'=>'', 'value'=>''));
                    
145
                    
                
Context.php https://github.com/ratbird/hope.git | PHP | 492 lines
                    
1<?php
                    
2
                    
379            'urlArgs', // whether to add args into url tokens
                    
380            'customVariables', // variables from the php API
                    
381            'currentFileInfo', // current file information object
                    
409            'importantScope',  // used to bubble up !important statements
                    
410            'customVariables', // variables from the php API
                    
411        ];
                    
464    {
                    
465        array_unshift($this->frames, $frame);
                    
466    }
                    
                
facebook.php https://gitlab.com/iamgraeme/royalmile | PHP | 173 lines
                    
1<?php
                    
2/**
                    
17
                    
18require_once "base_facebook.php";
                    
19
                    
21 * Extends the Basepsp_Facebook class with the intent of using
                    
22 * PHP sessions to store user ids and access tokens.
                    
23 */
                    
36   * Identical to the parent constructor, except that
                    
37   * we start a PHP session to store the user ID and
                    
38   * access token if during the course of execution
                    
44   * shares the domain with other apps).
                    
45   * @see Basepsp_Facebook::__construct in facebook.php
                    
46   */
                    
108   * Provides the implementations of the inherited abstract
                    
109   * methods.  The implementation uses PHP sessions to maintain
                    
110   * a store for authorization codes, user ids, CSRF states, and
                    
                
next-post.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 279 lines
                    
102</style>
                    
103<?php 
                    
104}
                    
109    <div class="wrap">
                    
110	<form method="post" id="next_post_form" action="options.php">
                    
111		<?php settings_fields('next_post');
                    
131    <input type="text" name="next_post[before_prev_link]" id="before_prev_link" 
                    
132		value="<?php echo esc_html($options['before_prev_link']); ?>" />  </label></p>
                    
133    
                    
141    <p><?php _e('Shortcode:'); ?> <strong>[previous_custom_post]</strong><br />
                    
142    <?php _e('Template tag:'); ?> <strong>&lt;?php previous_custom_post(); ?&gt;</strong></p>
                    
143    </div>
                    
158    <p><?php _e('Shortcode:'); ?> <strong>[next_custom_post]</strong><br />
                    
159    <?php _e('Template tag:'); ?> <strong>&lt;?php next_custom_post(); ?&gt;</strong></p>
                    
160    </div>
                    
                
Captcha.php https://github.com/sbuckpesch/Facebook-Demo-App.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
184        if (!empty($decorator)) {
                    
185            array_unshift($decorators, $decorator);
                    
186        }
                    
188        $decorator = array('Captcha', array('captcha' => $captcha));
                    
189        array_unshift($decorators, $decorator);
                    
190
                    
                
FileAttachmentBehavior.php https://gitlab.com/nitm/yii2-filemanager | PHP | 177 lines
                    
1<?php
                    
2
                    
41                    //Most likely just the data is coming in. If that is the case then we need to pad th arguments to the attach file function so that the data is the last argument
                    
42                    array_unshift($args, $attribute, null, $attribute);
                    
43                }
                    
                
Mysqli.php https://github.com/bhaumik25/zend-framework.git | PHP | 357 lines
                    
1<?php
                    
2
                    
27 */
                    
28require_once 'Zend/Db/Statement.php';
                    
29
                    
83             */
                    
84            require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
85            throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error);
                    
92     * @param mixed $parameter Name the parameter, either integer or string.
                    
93     * @param mixed $variable  Reference to PHP variable containing the value.
                    
94     * @param mixed $type      OPTIONAL Datatype of SQL parameter.
                    
197                 */
                    
198                require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
199                throw new Zend_Db_Statement_Mysqli_Exception("Mysqli statement metadata error: " . $this->_stmt->error);
                    
236        if ($params) {
                    
237            array_unshift($params, str_repeat('s', count($params)));
                    
238            call_user_func_array(
                    
                
redirection.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 346 lines
                    
1<?php
                    
2/*
                    
21
                    
22include dirname( __FILE__ ).'/plugin.php';
                    
23include dirname( __FILE__ ).'/models/redirect.php';
                    
23include dirname( __FILE__ ).'/models/redirect.php';
                    
24include dirname( __FILE__ ).'/models/match.php';
                    
25include dirname( __FILE__ ).'/models/log.php';
                    
25include dirname( __FILE__ ).'/models/log.php';
                    
26include dirname( __FILE__ ).'/models/group.php';
                    
27include dirname( __FILE__ ).'/models/module.php';
                    
27include dirname( __FILE__ ).'/models/module.php';
                    
28include dirname( __FILE__ ).'/models/action.php';
                    
29include dirname( __FILE__ ).'/models/monitor.php';
                    
29include dirname( __FILE__ ).'/models/monitor.php';
                    
30include dirname( __FILE__ ).'/modules/wordpress.php';
                    
31include dirname( __FILE__ ).'/modules/404.php';
                    
                
FakerTrackerCommand.php https://gitlab.com/ElvisAns/tiki | PHP | 262 lines
                    
1<?php
                    
2
                    
171                    } elseif (substr($fakerAction, 0, 4) === 'tiki') {
                    
172                        array_unshift($fakerArguments, $trackerDefinition->getField($fieldFaker['fieldId']));
                    
173                    }
                    
                
templates.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 275 lines
                    
1<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) die( header( 'Location: /') );
                    
2
                    
102				// add the legacy directory within the theme that holds the legacy OTCE templates
                    
103				array_unshift( $dirs, get_stylesheet_directory() . '/' . $qsot_path, get_template_directory() . '/' . $qsot_path );
                    
104
                    
149			<script>
                    
150				( function() { var args = <?php echo @json_encode( func_get_args() ) ?>; if ( console && console.log && 'function' == typeof console.log ) console.log.apply( console.log, args ); } )();
                    
151			</script>
                    
151			</script>
                    
152		<?php
                    
153	}
                    
200		// force the theme to be the prime override, using our special subpath as a context
                    
201		array_unshift( $dirs, get_stylesheet_directory() . '/' . $qsot_path, get_template_directory() . '/' . $qsot_path );
                    
202
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 202 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

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

                    
25 */

                    
130        } elseif ($after === '^') {

                    
131            array_unshift($this->_elements, $element);

                    
132        } elseif (is_string($after)) {

                    
                
Grid.php https://bitbucket.org/acidel/buykoala.git | PHP | 169 lines
                    
1<?php
                    
2/**
                    
147
                    
148        array_unshift($statuses, array('label' => '', 'value' => ''));
                    
149        $this->getMassactionBlock()->addItem('status', array(
                    
                
Error.php https://gitlab.com/ShizuoLamperouge/Dashboard | PHP | 272 lines
                    
1<?php
                    
2
                    
17 * is detected in a template, or when rendering a template. Other
                    
18 * errors must use regular PHP exception classes (like when the template
                    
19 * cache directory is not writable for instance).
                    
59    {
                    
60        if (PHP_VERSION_ID < 50300) {
                    
61            $this->previous = $previous;
                    
139    /**
                    
140     * For PHP < 5.3.0, provides access to the getPrevious() method.
                    
141     *
                    
212
                    
213        if (PHP_VERSION_ID >= 50306) {
                    
214            $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);
                    
253            $traces = $e->getTrace();
                    
254            array_unshift($traces, array('file' => $e->getFile(), 'line' => $e->getLine()));
                    
255
                    
                
ClassMetadataFactory.php https://github.com/jameshelly/Sample-Modular-Zend-Framework-Application.git | PHP | 446 lines
                    
1<?php
                    
2/*
                    
36 *
                    
37 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
38 * @link    www.doctrine-project.org
                    
292                if ( $parent->isMappedSuperclass) {
                    
293                    array_unshift($visited, $className);
                    
294                }
                    
350            if ( $class->isMappedSuperclass) {
                    
351                array_unshift($visited, $className);
                    
352            }
                    
                
Error.php https://gitlab.com/mohamed_hussein/prodt | PHP | 184 lines
                    
1<?php
                    
2
                    
43    // Add the line throwing the exception to the backtrace.
                    
44    array_unshift($backtrace, ['line' => $exception->getLine(), 'file' => $exception->getFile()]);
                    
45
                    
59      '%type' => get_class($exception),
                    
60      // The standard PHP exception handler considers that the exception message
                    
61      // is plain-text. We mimic this behavior here.
                    
101   * @param array $backtrace
                    
102   *   A standard PHP backtrace. Passed by reference.
                    
103   *
                    
107  public static function getLastCaller(array &$backtrace) {
                    
108    // Errors that occur inside PHP internal functions do not generate
                    
109    // information about file and line. Ignore the ignored functions.
                    
140   * @param array $backtrace
                    
141   *   A standard PHP backtrace.
                    
142   *
                    
                
Language.php https://gitlab.com/asun89/socianovation-web | PHP | 475 lines
                    
1<?php
                    
2namespace Grav\Common\Language;
                    
275                    unset($valid_lang_extensions[$key]);
                    
276                    array_unshift($valid_lang_extensions, $active_extension);
                    
277                }
                    
302                    unset($fallback_languages[$key]);
                    
303                    array_unshift($fallback_languages, $active_extension);
                    
304                }
                    
                
MediaLibrary.php https://gitlab.com/mohamed_hussein/prodt | PHP | 102 lines
                    
1<?php
                    
2
                    
79      // @see https://www.drupal.org/project/drupal/issues/3073799
                    
80      array_unshift($media_type_ids, 'image');
                    
81      $media_type_ids = array_unique($media_type_ids);
                    
                
func-effects.cpp https://gitlab.com/iranjith4/hhvm | C++ | 413 lines
                    
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   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/vm/jit/func-effects.h"
                    
18
                    
27  s_http_response_header("http_response_header"),
                    
28  s_php_errormsg("php_errormsg"),
                    
29  s_extract("extract"),
                    
117  "furchash_hphp_ext",
                    
118  "hphp_murmurhash",
                    
119  "get_declared_classes",
                    
138  "set_exception_handler",
                    
139  "hphp_set_error_page",
                    
140  "hphp_clear_unflushed",
                    
                
Router.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | PHP | 241 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
3/* load the MX core module class */
                    
4require dirname(__FILE__).'/Modules.php';
                    
5
                    
14 *
                    
15 * Install this file as application/third_party/MX/Router.php
                    
16 *
                    
82       
                    
83		array_unshift($segments, NULL);
                    
84		unset($segments[0]);
                    
                
TranslationService.php https://bitbucket.org/fanch1/testlb.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
194                if (empty($data['xliff']) && empty($data['database'])) {
                    
195                    array_unshift($domains['data'], $data);
                    
196                } else {
                    
                
ArrayList.php git://github.com/silverstripe/sapphire.git | PHP | 529 lines
                    
1<?php
                    
2/**
                    
214	public function unshift($item) {
                    
215		array_unshift($this->items, $item);
                    
216	}
                    
346			}
                    
347			// PHP 5.3 requires below arguments to be reference when using array_multisort together 
                    
348			// with call_user_func_array
                    
                
Form.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
 

Source

Language