PageRenderTime 520ms queryTime 41ms sortTime 15ms getByIdsTime 212ms findMatchingLines 189ms

100+ results results for 'php array_shift repo:ampersarnie/Sohy' (520 ms)

Not the results you expected?
HeadMeta.php https://gitlab.com/rsilveira1987/Expresso | PHP | 363 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadMeta.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
53     *
                    
54     * Set separator to PHP_EOL
                    
55     *
                    
60        parent::__construct();
                    
61        $this->setSeparator(PHP_EOL);
                    
62    }
                    
101            default:
                    
102                require_once 'Zend/View/Exception.php';
                    
103                throw new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
                    
                
ArgvInput.php https://gitlab.com/reasonat/test8 | PHP | 351 lines
                    
1<?php
                    
2
                    
58        // strip the application name
                    
59        array_shift($argv);
                    
60
                    
77        $this->parsed = $this->tokens;
                    
78        while (null !== $token = array_shift($this->parsed)) {
                    
79            if ($parseOptions && '' == $token) {
                    
227            // let's see if there is one provided
                    
228            $next = array_shift($this->parsed);
                    
229            if (isset($next[0]) && '-' !== $next[0]) {
                    
312        while (0 < count($tokens)) {
                    
313            $token = array_shift($tokens);
                    
314
                    
320
                    
321                    return array_shift($tokens);
                    
322                }
                    
                
engine.php https://bitbucket.org/lothario/fifa-tourny.git | PHP | 555 lines
                    
1<?php
                    
2//Setup variables
                    
74	
                    
75	header('Location: ./index.php');
                    
76}
                    
132		{
                    
133			$seededTeam = array_shift($teams);
                    
134			$seededTeams[$id][$seededTeam['team_id']] = $seededTeam;
                    
152	
                    
153	header('Location: ./index.php');
                    
154}
                    
279
                    
280	header('Location: ./index.php');
                    
281}
                    
300	}
                    
301	header('Location: ./index.php');
                    
302}
                    
                
rolling-curl.class.php https://github.com/tivac/wp2static.git | PHP | 381 lines
                    
1<?php
                    
2/*
                    
235        $ch = curl_init();
                    
236        $request = array_shift($this->requests);
                    
237        $options = $this->get_options($request);
                    
                
HeadMeta.php https://github.com/tuteke/isaved.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadMeta.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
53     *
                    
54     * Set separator to PHP_EOL
                    
55     *
                    
60        parent::__construct();
                    
61        $this->setSeparator(PHP_EOL);
                    
62    }
                    
101            default:
                    
102                #require_once 'Zend/View/Exception.php';
                    
103                throw new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
                    
                
Logger.php https://github.com/unglud/You-give-me-Ill-give-you.git | PHP | 393 lines
                    
1<?php
                    
2
                    
121        }
                    
122        return array_shift($this->handlers);
                    
123    }
                    
147        }
                    
148        return array_shift($this->processors);
                    
149    }
                    
161        if (!$this->handlers) {
                    
162            $this->pushHandler(new StreamHandler('php://stderr', self::DEBUG));
                    
163        }
                    
                
ObjectManager.php https://gitlab.com/daigiangaitu91/magento | PHP | 316 lines
                    
1<?php
                    
2/**
                    
26     *
                    
27     * @var \PHPUnit_Framework_TestCase
                    
28     */
                    
33     *
                    
34     * @param \PHPUnit_Framework_TestCase $testObject
                    
35     */
                    
35     */
                    
36    public function __construct(\PHPUnit_Framework_TestCase $testObject)
                    
37    {
                    
45     * @param array $originalArguments
                    
46     * @return null|object|\PHPUnit_Framework_MockObject_MockObject
                    
47     */
                    
83     *
                    
84     * @return \Magento\Framework\Module\ResourceInterface|\PHPUnit_Framework_MockObject_MockObject
                    
85     */
                    
                
Group.php https://github.com/ibnoe/Microweber.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
8 *
                    
9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>,
                    
10 *                          Bertrand Mansion <golgote@mamasam.com>
                    
38 * @package    HTML_QuickForm2
                    
39 * @author     Alexey Borzov <avb@php.net>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
41 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version    SVN: $Id: Group.php 294057 2010-01-26 21:10:28Z avb $
                    
42 * @version    SVN: $Id: Group.php 294057 2010-01-26 21:10:28Z avb $
                    
43 * @link       http://pear.php.net/package/HTML_QuickForm2
                    
44 */
                    
                
Shortener.php https://github.com/voitto/openmicroblogger_classic.git | PHP | 379 lines
                    
1<?php
                    
2
                    
60add_include_path(library_path().'urlshort/upload');
                    
61require_once 'includes/config.php'; // settings
                    
62require_once 'includes/gen.php'; // url generation and location
                    
64$_PERMA = explode( "/", $perma['path'] );
                    
65@array_shift( $_PERMA );
                    
66$shorturl = new shorturl();
                    
100if ( defined('REWRITE') && REWRITE ) {
                    
101  $urlbase = $urlbase.dirname($_SERVER['PHP_SELF']);
                    
102} else {
                    
102} else {
                    
103  $urlbase = 'http://'.$request->domain.$_SERVER['PHP_SELF'];
                    
104}
                    
358  $_PERMA = explode( "/", $perma['path'] );
                    
359  @array_shift( $_PERMA );
                    
360  if ( isset($_PERMA[0]) )
                    
                
lib_test.php https://github.com/mackensen/moodle.git | PHP | 330 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Unit tests for (some of) mod/imscp/lib.php.
                    
19 *
                    
29global $CFG;
                    
30require_once($CFG->dirroot . '/mod/imscp/lib.php');
                    
31
                    
32/**
                    
33 * Unit tests for (some of) mod/imscp/lib.php.
                    
34 *
                    
93        $this->assertCount(3, $events);
                    
94        $event = array_shift($events);
                    
95
                    
98        $this->assertEquals($context, $event->get_context());
                    
99        $moodleurl = new \moodle_url('/mod/imscp/view.php', array('id' => $cm->id));
                    
100        $this->assertEquals($moodleurl, $event->get_url());
                    
                
Diff.php https://bitbucket.org/LogIN/appstorez.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * The original PHP version of this code was written by Geoffrey T. Dairiki
                    
7 * <dairiki@dairiki.org>, and is used/adapted with his permission.
                    
8 *
                    
9 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $
                    
10 *
                    
14 * See the enclosed file COPYING for license information (LGPL). If you did
                    
15 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
                    
16 *
                    
51
                    
52        require_once 'Text/Diff/Engine/' . $engine . '.php';
                    
53        $class = 'Text_Diff_Engine_' . $engine;
                    
230
                    
231        /* Try PHP's upload_tmp_dir directive. */
                    
232        $tmp = ini_get('upload_tmp_dir');
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
127		{
                    
128			$key = array_shift($keys);
                    
129
                    
215		{
                    
216			$key = array_shift($keys);
                    
217
                    
232		// Set key on inner-most array
                    
233		$array[array_shift($keys)] = $value;
                    
234	}
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 285 lines
                    
46                case cache_store::MODE_APPLICATION:
                    
47                    $properties['overrideclass'] = 'cache_phpunit_application';
                    
48                    break;
                    
49                case cache_store::MODE_SESSION:
                    
50                    $properties['overrideclass'] = 'cache_phpunit_session';
                    
51                    break;
                    
155    public static function wake_from_cache($data) {
                    
156        return new cache_phpunit_dummy_object(array_shift($data).'_wfc', array_shift($data).'_wfc');
                    
157    }
                    
165 */
                    
166class cache_phpunit_dummy_datasource implements cache_data_source {
                    
167    /**
                    
170     * @param cache_definition $definition
                    
171     * @return cache_phpunit_dummy_datasource
                    
172     */
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
28if ('/usr/share/php' != '@'.'include_path'.'@') {
                    
29    ini_set('include_path', '/usr/share/php');
                    
30    $raw = false;
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
                
ZMO.php https://github.com/ThiloWitt/core.git | PHP | 548 lines
                    
1<?php
                    
2/**
                    
18 * It can read MO files and use them for translating strings.
                    
19 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
20 *
                    
148        if ($magic == -1794895138 || $magic == 2500072158) {
                    
149            // (int)0x950412de; PHP 5.2 wont convert this properly
                    
150            $this->byteorder = 0;
                    
151        } elseif ($magic == -569244523 || $magic == 3725722773) {
                    
152            // (int)0xde120495; PHP 5.2 wont convert this properly
                    
153            $this->byteorder = 1;
                    
281        }
                    
282        return array_shift($data);
                    
283    }
                    
                
CakeRoute.php https://github.com/simkimsia/cake2-practice-app.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * PHP5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
202		}
                    
203		array_shift($route);
                    
204		$count = count($this->keys);
                    
                
Resource.php https://github.com/ParveenArora/AddressHunter.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
EsmtpTransport.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 339 lines
                    
1<?php
                    
2
                    
10
                    
11//@require 'Swift/Transport/AbstractSmtpTransport.php';
                    
12//@require 'Swift/Transport/EsmtpHandler.php';
                    
12//@require 'Swift/Transport/EsmtpHandler.php';
                    
13//@require 'Swift/Transport/IoBuffer.php';
                    
14//@require 'Swift/Transport/SmtpAgent.php';
                    
14//@require 'Swift/Transport/SmtpAgent.php';
                    
15//@require 'Swift/TransportException.php';
                    
16//@require 'Swift/Mime/Message.php';
                    
16//@require 'Swift/Mime/Message.php';
                    
17//@require 'Swift/Events/EventDispatcher.php';
                    
18
                    
292    $lines = explode("\r\n", $ehloResponse);
                    
293    array_shift($lines);
                    
294    foreach ($lines as $line)
                    
                
Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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-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 */
                    
125        if (is_array($storeId) && isset($storeId['eq'])) {
                    
126            $storeId = array_shift($storeId);
                    
127        }
                    
156        if (is_array($storesIds) && (count($storesIds) == 1)) {
                    
157            $storesIds = array_shift($storesIds);
                    
158        }
                    
                
Optimizer.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 246 lines
                    
1<?php
                    
2
                    
57
                    
58        if (!version_compare(phpversion(), '5.4.0RC1', '>=') && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('sandbox')) {
                    
59            if ($this->inABody) {
                    
95            } elseif ($this->inABody) {
                    
96                if (!$expression && get_class($node) !== 'Twig_Node' && $prependedNodes = array_shift($this->prependedNodes)) {
                    
97                    $nodes = array();
                    
222        if ($node instanceof Twig_Node_For) {
                    
223            array_shift($this->loops);
                    
224        }
                    
                
Font.php https://github.com/kervin/kyzstudio.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
23/** Internally used classes */
                    
24#require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28#require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        #require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
Font.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
23/** Internally used classes */
                    
24require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
Font.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Internally used classes */
                    
24require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
migrate_message_data_task_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 333 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
29
                    
30require_once($CFG->dirroot . '/message/tests/messagelib_test.php');
                    
31
                    
155        // Message user action for message read by user 1 (referring to $m4).
                    
156        $mua1 = array_shift($muas);
                    
157        // Message user action for message read by user 2 (referring to $m1).
                    
157        // Message user action for message read by user 2 (referring to $m1).
                    
158        $mua2 = array_shift($muas);
                    
159
                    
173        // Message user action for message deleted by user 3 (referring to $m5).
                    
174        $mua1 = array_shift($muas);
                    
175        // Message user action for message deleted by user 2 (referring to $m1).
                    
175        // Message user action for message deleted by user 2 (referring to $m1).
                    
176        $mua2 = array_shift($muas);
                    
177
                    
                
Collection.php https://bitbucket.org/sevenly/magento-ce.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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
125        if (is_array($storeId) && isset($storeId['eq'])) {
                    
126            $storeId = array_shift($storeId);
                    
127        }
                    
156        if (is_array($storesIds) && (count($storesIds) == 1)) {
                    
157            $storesIds = array_shift($storesIds);
                    
158        }
                    
                
command_line_lib.php https://gitlab.com/iranjith4/hhvm | PHP | 273 lines
                    
2/*
                    
3 * Contains some reusable utilities for command line php scripts.
                    
4 */
                    
5
                    
6require_once(__DIR__.'/command_line_lib_UNSAFE.php');
                    
7
                    
45 *
                    
46 *   Apparently php's getopt() builtin is a pile.
                    
47 *
                    
106
                    
107  array_shift($argv);
                    
108  $pos_args_count = 0;
                    
                
Font.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Internally used classes */
                    
24require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
class-wp-customize-setting.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 550 lines
                    
1<?php
                    
2/**
                    
89		$this->id_data[ 'keys' ] = preg_split( '/\[/', str_replace( ']', '', $this->id ) );
                    
90		$this->id_data[ 'base' ] = array_shift( $this->id_data[ 'keys' ] );
                    
91
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Conditions.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 280 lines
                    
1<?php
                    
2/**
                    
266        $param = $match[1][0];
                    
267        $type = array_shift($match[1]);
                    
268        if (count($match[1]) == 3) {
                    
268        if (count($match[1]) == 3) {
                    
269            $type = array_shift($match[1]);
                    
270        } else {
                    
                
LanguageMixer.php https://gitlab.com/gideonmarked/newlifetrainingcenter-v2 | PHP | 201 lines
                    
1<?php namespace RainLab\Builder\Classes;
                    
2
                    
55    {
                    
56        // The native PHP implementation of array_merge_recursive
                    
57        // generates unexpected results when two scalar elements with a 
                    
114        while ($path) {
                    
115            $currentPath = array_shift($path);
                    
116
                    
                
ControllerFile.php https://github.com/mrbanzai/zf2.git | PHP | 212 lines
                    
1<?php
                    
2/**
                    
71        $this->_moduleName = $this->_resource->getAttribute('moduleName');
                    
72        $this->_filesystemName = ucfirst($this->_controllerName) . 'Controller.php';
                    
73        parent::init();
                    
207        $codeGenFileClasses = $codeGenFile->getClasses();
                    
208        $class = array_shift($codeGenFileClasses);
                    
209        return $class;
                    
                
Abstract.php https://bitbucket.org/sevenly/magento-ce.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');
                    
44        $args = func_get_args();
                    
45        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), 'Mage_GoogleCheckout');
                    
46        array_unshift($args, $expr);
                    
                
Font.php https://bitbucket.org/ksekar/campus.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
23/** Internally used classes */
                    
24require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
router.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 275 lines
                    
1<?php
                    
2namespace Aurora\Routing;
                    
83	 *
                    
84	 * The returned array will be identical the array defined in the routes.php file.
                    
85	 *
                    
196
                    
197			$method = (count($segments) > 0) ? array_shift($segments) : 'index';
                    
198
                    
                
Inflector.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
59            if (!empty($options)) {
                    
60                $temp['target'] = array_shift($options);
                    
61            }
                    
63            if (!empty($options)) {
                    
64                $temp['rules'] = array_shift($options);
                    
65            }
                    
67            if (!empty($options)) {
                    
68                $temp['throwTargetExceptionsOn'] = array_shift($options);
                    
69            }
                    
71            if (!empty($options)) {
                    
72                $temp['targetReplacementIdentifier'] = array_shift($options);
                    
73            }
                    
                
Form.class.php https://gitlab.com/qbarbosa/klindev | PHP | 230 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
12 *
                    
13 * @package PhpMyAdmin
                    
14 */
                    
110            // remove first element ('#')
                    
111            array_shift($value);
                    
112            // $value has keys and value names, return it
                    
135     * array_walk callback function, reads path of form fields from
                    
136     * array (see file comment in setup.forms.php or user_preferences.forms.inc)
                    
137     *
                    
                
compare.php https://gitlab.com/shapcy/opencart | PHP | 195 lines
                    
1<?php
                    
2class ControllerProductCompare extends Controller {
                    
180				if (count($this->session->data['compare']) >= 4) {
                    
181					array_shift($this->session->data['compare']);
                    
182				}
                    
                
Forge.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 303 lines
                    
1<?php
                    
2/**
                    
78        // for any generator folders that have a
                    
79        // 'forge.php' file. For each one found
                    
80        // we build out another section in our help commands
                    
89            {
                    
90                if ($dir == '.' || $dir == '..' || ! is_file($path . $dir .'/forge.php'))
                    
91                {
                    
94
                    
95                include $path . $dir .'/forge.php';
                    
96
                    
99                {
                    
100                    log_message('debug', '[Forge] Invalid forge.php file at: '. $path . $dir .'/forge.php');
                    
101                    continue;
                    
249		    {
                    
250			    log_message('debug', '[Forge] Invalid forge.php file at: '. $dir .'/forge.php');
                    
251			    continue;
                    
                
ClassMethods.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 195 lines
                    
1<?php
                    
2/**
                    
105            throw new Exception\BadMethodCallException(sprintf(
                    
106                '%s expects the provided $object to be a PHP object)', __METHOD__
                    
107            ));
                    
120        $transform = function ($letters) {
                    
121            $letter = array_shift($letters);
                    
122
                    
171            throw new Exception\BadMethodCallException(sprintf(
                    
172                '%s expects the provided $object to be a PHP object)', __METHOD__
                    
173            ));
                    
176        $transform = function ($letters) {
                    
177            $letter = substr(array_shift($letters), 1, 1);
                    
178
                    
                
AbstractPluginManagerTest.php git://github.com/zendframework/zf2.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
19
                    
20class AbstractPluginManagerTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
153        $delegatorFactory = $this->getMock('Zend\\ServiceManager\\DelegatorFactoryInterface');
                    
154        /* @var $pluginManager \Zend\ServiceManager\AbstractPluginManager|\PHPUnit_Framework_MockObject_MockObject */
                    
155        $pluginManager = $this->getMockForAbstractClass('Zend\ServiceManager\AbstractPluginManager');
                    
189    {
                    
190        /* @var $pluginManager \Zend\ServiceManager\AbstractPluginManager|\PHPUnit_Framework_MockObject_MockObject */
                    
191        $pluginManager = $this->getMockForAbstractClass('Zend\ServiceManager\AbstractPluginManager');
                    
206        $this->assertCount(1, $fooDelegator->instances);
                    
207        $this->assertInstanceOf('stdClass', array_shift($fooDelegator->instances));
                    
208        $this->assertSame($fooDelegator, array_shift($barDelegator->instances));
                    
238
                    
239        /** @var \Zend\ServiceManager\AbstractPluginManager|\PHPUnit_Framework_MockObject_MockObject $pluginManager */
                    
240        $pluginManager = $this->getMockForAbstractClass('Zend\ServiceManager\AbstractPluginManager');
                    
                
modules.php https://gitlab.com/ricardosanchez/prueba | PHP | 243 lines
                    
1<?php
                    
2/**
                    
138	{
                    
139		require_once JPATH_ADMINISTRATOR . '/components/com_templates/helpers/templates.php';
                    
140		$templates      = array_keys(ModulesHelper::getTemplates($clientId, $state));
                    
236			{
                    
237				array_shift($options);
                    
238			}
                    
                
FaultTest.php https://github.com/EvanDotPro/zf2.git | PHP | 249 lines
                    
1<?php
                    
2/**
                    
16 */
                    
17class FaultTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
120        $this->assertTrue(!empty($observed));
                    
121        $f = array_shift($observed);
                    
122        $this->assertTrue($f instanceof Server\Fault);
                    
                
questiontype.php https://github.com/henriquecrang/e-UNI.git | PHP | 374 lines
                    
1<?php  // $Id: questiontype.php,v 1.17.2.5 2008/12/10 00:54:33 tjhunt Exp $
                    
2
                    
26        // Save answer 'True'
                    
27        if ($true = array_shift($oldanswers)) {  // Existing answer, so reuse it
                    
28            $true->answer   = get_string("true", "quiz");
                    
47        // Save answer 'False'
                    
48        if ($false = array_shift($oldanswers)) {  // Existing answer, so reuse it
                    
49            $false->answer   = get_string("false", "quiz");
                    
248     *
                    
249     * This is used in question/backuplib.php
                    
250     */
                    
276     *
                    
277     * This is used in question/restorelib.php
                    
278     */
                    
                
locallib.php https://github.com/dlazycat/moodle.git | PHP | 340 lines
                    
1<?php
                    
2
                    
191    if ($instances = $DB->get_records('enrol', array('courseid'=>$course->id, 'enrol'=>'category'))) {
                    
192        $instance = array_shift($instances);
                    
193        $delinstances = $instances;
                    
                
MY_Router.php https://github.com/ikhattab/pyrocms.git | PHP | 306 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
12/**
                    
13 * Modular Separation - PHP5
                    
14 *
                    
21 *
                    
22 * Install this file as application/libraries/MY_Router.php
                    
23 *
                    
246		{
                    
247			$modules[array_shift($segments)] = ltrim(implode('/', $segments) . '/', '/');
                    
248		}
                    
                
TableTest.php https://github.com/l3l0/BehatExamples.git | PHP | 419 lines
                    
1<?php
                    
2
                    
4
                    
5require_once __DIR__ . '/../../TestInit.php';
                    
6
                    
14
                    
15class TableTest extends \PHPUnit_Framework_TestCase
                    
16{
                    
202        $this->assertEquals(1, count($constraints));
                    
203        $this->assertSame($constraint, array_shift($constraints));
                    
204    }
                    
                
Date.php https://github.com/zeon/qpkg-piwik.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Date.php 22697 2010-07-26 21:14:47Z alexander $
                    
20 */
                    
24 */
                    
25// require_once 'Zend/Validate/Abstract.php';
                    
26
                    
82            $options = func_get_args();
                    
83            $temp['format'] = array_shift($options);
                    
84            if (!empty($options)) {
                    
84            if (!empty($options)) {
                    
85                $temp['locale'] = array_shift($options);
                    
86            }
                    
95        if (!array_key_exists('locale', $options)) {
                    
96            // require_once 'Zend/Registry.php';
                    
97            if (Zend_Registry::isRegistered('Zend_Locale')) {
                    
                
Partition.php https://gitlab.com/link233/bootmw | PHP | 374 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
                    
296        $data = Decoder::unpack(Decoder::BIT_B32, $data);
                    
297        $count = array_shift($data);
                    
298        if ($count <= 0) {
                    
322            $partitionId = Decoder::unpack(Decoder::BIT_B32, $partitionId);
                    
323            $partitionId = array_shift($partitionId);
                    
324            \Kafka\Log::log("kafka client:fetch partition:" . $partitionId, LOG_INFO);
                    
327            $errCode = Decoder::unpack(Decoder::BIT_B16, $errCode);
                    
328            $this->errCode = array_shift($errCode);
                    
329            if ($this->errCode != 0) {
                    
                
CarZam.hooks.php https://github.com/Seizam/seizamcore.git | PHP | 246 lines
                    
1<?php
                    
2
                    
59        #first arg is file title
                    
60        $titleText = array_shift($explosion);
                    
61
                    
96            }
                    
97            array_shift($explosion);
                    
98        }
                    
106            $parameters['alt'] = htmlspecialchars($altText);
                    
107            array_shift($explosion);
                    
108        }
                    
                
Push_Tab.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 441 lines
                    
1<?php
                    
2
                    
7 *
                    
8 * @file Push_Tab.php
                    
9 * @ingroup Push
                    
101	/**
                    
102	 * The function called if we're in index.php (as opposed to one of the
                    
103	 * special pages)
                    
235					array(
                    
236						'href' => $url . '/index.php?title=' . $wgTitle->getFullText(),
                    
237						'rel' => 'nofollow',
                    
306		// Get rid of the page itself.
                    
307		array_shift( $usedTemplates );		
                    
308		
                    
                
Gettext.php https://github.com/gauravk90/site.git | PHP | 178 lines
                    
1<?php
                    
2/**
                    
17 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @version    $Id: Gettext.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
22/** Zend_Locale */
                    
23require_once 'Zend/Locale.php';
                    
24
                    
25/** Zend_Translate_Adapter */
                    
26require_once 'Zend/Translate/Adapter.php';
                    
27
                    
83        if (!$this->_file) {
                    
84            require_once 'Zend/Translate/Exception.php';
                    
85            throw new Zend_Translate_Exception('Error opening translation file \'' . $filename . '\'.');
                    
87        if (@filesize($filename) < 10) {
                    
88            require_once 'Zend/Translate/Exception.php';
                    
89            throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file');
                    
                
Font.php https://github.com/gauravk90/site.git | PHP | 217 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Font.php 18993 2009-11-15 17:09:16Z alexander $
                    
21 */
                    
23/** Internally used classes */
                    
24require_once 'Zend/Pdf/Font.php';
                    
25
                    
27/** Zend_Pdf_FileParser */
                    
28require_once 'Zend/Pdf/FileParser.php';
                    
29
                    
208            $args = func_get_args();
                    
209            $message = array_shift($args);
                    
210            $message = vsprintf($message, $args);
                    
212
                    
213        require_once 'Zend/Log.php';
                    
214        $logger = new Zend_Log();
                    
                
XmlFileLoader.php https://github.com/tumf/tepco.git | PHP | 190 lines
                    
1<?php
                    
2
                    
156        $parts = explode('/', str_replace('\\', '/', __DIR__.'/schema/routing/routing-1.0.xsd'));
                    
157        $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
                    
158        $location = 'file:///'.$drive.implode('/', $parts);
                    
                
Resource.php https://gitlab.com/Ltaimao/wecenter | PHP | 472 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24//require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            //require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            //require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        //require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
119            if (!$this->hasResourceType($type)) {
                    
120                //require_once 'Zend/Loader/Exception.php';
                    
121                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
FileUpload.php https://github.com/talesam/sgce.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
48
                    
49        $uploadedFile = array_shift($_FILES);
                    
50
                    
170        //resize image if required
                    
171        require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php";
                    
172        $_imagesConfig = $_config->getImagesConfig();
                    
                
helpers.php https://bitbucket.org/chakkimatti/vv2.git | PHP | 598 lines
                    
1<?php
                    
2
                    
109	{
                    
110		$key = array_shift($keys);
                    
111
                    
122
                    
123	$array[array_shift($keys)] = $value;
                    
124}
                    
150	{
                    
151		$key = array_shift($keys);
                    
152
                    
164
                    
165	unset($array[array_shift($keys)]);
                    
166}
                    
504/**
                    
505 * Determine if the current version of PHP is at least the supplied version.
                    
506 *
                    
                
streams.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 209 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * @version $Id: streams.php 597 2011-01-16 20:14:36Z nbachiyski $
                    
7 * @package pomo
                    
42		$int = unpack($endian_letter, $bytes);
                    
43		return array_shift($int);
                    
44	}
                    
                
HeadStyle.php https://bitbucket.org/areeves42/openfisma.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24// require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
78     *
                    
79     * Set separator to PHP_EOL.
                    
80     *
                    
85        parent::__construct();
                    
86        $this->setSeparator(PHP_EOL);
                    
87    }
                    
142                if (0 < $argc) {
                    
143                    $index = array_shift($args);
                    
144                    --$argc;
                    
148            if (1 > $argc) {
                    
149                // require_once 'Zend/View/Exception.php';
                    
150                $e = new Zend_View_Exception(sprintf('Method "%s" requires minimally content for the stylesheet', $method));
                    
                
manage.php https://github.com/pauln/moodle.git | PHP | 261 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once('../config.php');
                    
26require_once($CFG->libdir.'/tablelib.php');
                    
26require_once($CFG->libdir.'/tablelib.php');
                    
27require_once('lib.php');
                    
28require_once($CFG->libdir.'/adminlib.php');
                    
69$tagarea = core_tag_area::get_by_id($tagareaid);
                    
70$manageurl = new moodle_url('/tag/manage.php');
                    
71if ($tagcoll) {
                    
139                } else {
                    
140                    $tag = array_shift($tags);
                    
141                }
                    
209// Form to filter tags.
                    
210print('<form class="tag-filter-form" method="get" action="'.$CFG->wwwroot.'/tag/manage.php">');
                    
211print('<div class="tag-management-form generalbox"><label class="accesshide" for="id_tagfilter">'. get_string('search') .'</label>'.
                    
                
export.php https://github.com/chrissiebrodigan/USC.git | PHP | 409 lines
                    
303<channel>
                    
304	<title><?php bloginfo_rss( 'name' ); ?></title>
                    
305	<link><?php bloginfo_rss( 'url' ) ?></link>
                    
313	<?php if ( $cats ) : foreach ( $cats as $c ) : ?>
                    
314	<wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category>
                    
315	<?php endforeach; endif; ?>
                    
316	<?php if ( $tags ) : foreach ( $tags as $t ) : ?>
                    
317	<wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag>
                    
318	<?php endforeach; endif; ?>
                    
319	<?php if ( $terms ) : foreach ( $terms as $t ) : ?>
                    
320	<wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term>
                    
321	<?php endforeach; endif; ?>
                    
354		<wp:post_id><?php echo $post->ID; ?></wp:post_id>
                    
355		<wp:post_date><?php echo $post->post_date; ?></wp:post_date>
                    
356		<wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>
                    
                
Resource.php https://github.com/Zefiryn/graduationprojects.git | PHP | 472 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23860 2011-04-14 17:03:28Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73		if (!is_array($options)) {
                    
74			require_once 'Zend/Loader/Exception.php';
                    
75			throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83		) {
                    
84			require_once 'Zend/Loader/Exception.php';
                    
85			throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90		}
                    
91		require_once 'Zend/Loader/Autoloader.php';
                    
92		Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
csv.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 300 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
68            $data = $this->csvcontent();
                    
69            $this->_headings = array_shift($data);
                    
70            $this->_content = $data;
                    
                
sfConfigCache.class.php https://github.com/bheneka/gitta.git | PHP | 393 lines
                    
1<?php
                    
2
                    
13 * sfConfigCache allows you to customize the format of a configuration file to
                    
14 * make it easy-to-use, yet still provide a PHP formatted result for direct
                    
15 * inclusion into your modules.
                    
92          $handlerInstance = $this->getHandler($key);
                    
93          array_shift($matches);
                    
94          $handlerInstance->getParameterHolder()->set('wildcardValues', $matches);
                    
232    $config  = str_replace(array('\\', '/', ' '), '_', $config);
                    
233    $config .= '.php';
                    
234
                    
354    // Hack from Agavi (http://trac.agavi.org/changeset/3979)
                    
355    // With php < 5.2.6 on win32, renaming to an already existing file doesn't work, but copy does,
                    
356    // so we simply assume that when rename() fails that we are on win32 and try to use copy()
                    
                
configuration.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 544 lines
                    
1<?php
                    
2/**
                    
3 * Akeeba Engine
                    
4 * The modular PHP5 site backup engine
                    
5 * @copyright Copyright (c)2009-2012 Nicholas K. Dionysopoulos
                    
160		} else {
                    
161			$namespace = array_shift($nodes);
                    
162			$count--;
                    
231		} else {
                    
232			$namespace = array_shift($nodes);
                    
233			$count--;
                    
                
formfield.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 583 lines
                    
1<?php
                    
2/**
                    
534			{
                    
535				$name .= array_shift($groups);
                    
536				foreach ($groups as $group)
                    
                
Object.php https://gitlab.com/florianocomercial/centreon | PHP | 461 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 * 
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @copyright   2001-2011 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id$
                    
                
functions-load.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 389 lines
                    
89	if ( ! isset( $wpml_request_handler ) ) {
                    
90		require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-request.class.php';
                    
91		require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-backend-request.class.php';
                    
91		require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-backend-request.class.php';
                    
92		require ICL_PLUGIN_PATH . '/inc/request-handling/wpml-frontend-request.class.php';
                    
93	}
                    
251	require ICL_PLUGIN_PATH . '/menu/wpml-troubleshooting-terms-menu.class.php';
                    
252	require ICL_PLUGIN_PATH . '/inc/wpml-post-edit-ajax.class.php';
                    
253	require ICL_PLUGIN_PATH . '/menu/wpml-post-status-display.class.php';
                    
253	require ICL_PLUGIN_PATH . '/menu/wpml-post-status-display.class.php';
                    
254	require ICL_PLUGIN_PATH . '/inc/utilities/wpml-color-picker.class.php';
                    
255}
                    
333
                    
334	if ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) || defined( 'DOING_AJAX' )
                    
335	) {
                    
                
ArgvInput.php https://bitbucket.org/Maron1/taqman.git | PHP | 311 lines
                    
1<?php
                    
2
                    
60        // strip the application name
                    
61        array_shift($argv);
                    
62
                    
79        $this->parsed = $this->tokens;
                    
80        while (null !== $token = array_shift($this->parsed)) {
                    
81            if ($parseOptions && '--' == $token) {
                    
218            // let's see if there is one provided
                    
219            $next = array_shift($this->parsed);
                    
220            if ('-' !== $next[0]) {
                    
296        $tokens = $this->tokens;
                    
297        while ($token = array_shift($tokens)) {
                    
298            foreach ($values as $value) {
                    
303
                    
304                    return array_shift($tokens);
                    
305                }
                    
                
class-wp-themes-list-table.php https://github.com/muskmelon/Greemo.git | PHP | 240 lines
                    
70			if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
                    
71				printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $GLOBALS['blog_id'] ), network_admin_url( 'theme-install.php' ) );
                    
72
                    
109			<tbody id="the-list" class="list:themes">
                    
110				<?php $this->display_rows_or_placeholder(); ?>
                    
111			</tbody>
                    
113
                    
114		<?php $this->tablenav( 'bottom' ); ?>
                    
115<?php
                    
175?>
                    
176		<a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">
                    
177<?php if ( $screenshot ) : ?>
                    
192<?php if ( $tags ) : ?>
                    
193<p><?php _e( 'Tags:' ); ?> <?php echo join( ', ', $tags ); ?></p>
                    
194<?php endif; ?>
                    
                
tags.php https://github.com/uzicoppa/Zend_View_H2o.git | PHP | 435 lines
                    
1<?php
                    
2/**
                    
78        if (isset($first['operator']) && $first['operator'] === 'not') {
                    
79            array_shift($this->args);
                    
80            $this->negate = true;
                    
354        foreach($this->searchpath as $path) {
                    
355            $file = $path.'ext'.DS.$this->extension.'.php';
                    
356            if (is_file($file)) {
                    
                
HeadLink.php https://github.com/kervin/kyzstudio.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadLink.php 23249 2010-10-26 12:46:47Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
52     *
                    
53     * Use PHP_EOL as separator
                    
54     *
                    
59        parent::__construct();
                    
60        $this->setSeparator(PHP_EOL);
                    
61    }
                    
135                if (0 < $argc) {
                    
136                    $index = array_shift($args);
                    
137                    --$argc;
                    
                
contact-form-functions.php https://gitlab.com/VTTE/sitios-vtte | PHP | 276 lines
                    
1<?php
                    
2
                    
122
                    
123		$id = (int) array_shift( $atts );
                    
124		$contact_form = wpcf7_get_contact_form_by_old_id( $id );
                    
                
CRUD.php https://gitlab.com/emad.rashad/mls-grading | PHP | 140 lines
                    
1<?php 
                    
2require_once("MysqlDatabase.php"); 
                    
29       $result_array = static::find_by_sql($sql); 
                    
30       return !empty($result_array)? array_shift($result_array) : false; 
                    
31   } 
                    
35       $result_array = static::find_by_sql($sql); 
                    
36       return !empty($result_array)? array_shift($result_array) : false; 
                    
37   } 
                    
                
Request.php https://gitlab.com/Erdrix/overviewCompanies | PHP | 218 lines
                    
1<?php
                    
2
                    
64                $_SERVER)) ? $_SERVER['HTTP_X_HTTP_METHOD'] : $_SERVER['REQUEST_METHOD'];
                    
65        $this->prefix = isset($url[0]) ? array_shift($url) : '';
                    
66        $this->action = implode('/', $url);;
                    
                
Resource.php https://github.com/orchestra-io/sample-openx.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
115            if (!$this->hasResourceType($type)) {
                    
116                require_once 'Zend/Loader/Exception.php';
                    
117                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
Getopt.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 290 lines
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available through the world-wide-web at the following url:           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
18//
                    
19// $Id: Getopt.php,v 1.4 2007/06/12 14:58:56 cellog Exp $
                    
20
                    
20
                    
21require_once 'PEAR.php';
                    
22
                    
266    /**
                    
267    * Safely read the $argv PHP array across different PHP configurations.
                    
268    * Will take care on register_globals and register_argc_argv ini directives
                    
                
image-size.php https://gitlab.com/campus-academy/krowkaramel | PHP | 400 lines
                    
1<?php
                    
2namespace Elementor;
                    
188
                    
189		/** This filter is documented in wp-admin/includes/media.php */
                    
190		return apply_filters( 'image_size_names_choose', $image_sizes );
                    
219			// TODO: Please rewrite this code.
                    
220			require_once ELEMENTOR_PATH . 'includes/libraries/bfi-thumb/bfi-thumb.php';
                    
221
                    
328			$default_value = array_keys( $image_sizes );
                    
329			$default_value = array_shift( $default_value );
                    
330		}
                    
                
retrivePassword.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 118 lines
                    
1<?php
                    
2$data = $_POST['form'];
                    
3global $RBAC;
                    
4require_once PATH_RBAC."model/RbacUsers.php";
                    
5G::LoadClass('pmFunctions');
                    
5G::LoadClass('pmFunctions');
                    
6require_once 'classes/model/Users.php';
                    
7G::LoadClass("system");
                    
38            break;
                    
39        case 'PHPMAILER':
                    
40            $engine = G::LoadTranslation('ID_MESS_ENGINE_TYPE_2');
                    
75        } else {
                    
76            array_shift($auxPass);
                    
77            $passwd = implode('', $auxPass);
                    
105        G::SendTemporalMessage ('ID_NEW_PASSWORD_SENT', "info");
                    
106    } catch (phpmailerException $e) {
                    
107        G::header  ("location: login.html");
                    
                
ProductCustomOptionRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 373 lines
                    
1<?php
                    
2/**
                    
35    /**
                    
36     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
37     * @magentoAppIsolation enabled
                    
66    /**
                    
67     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
68     * @magentoAppIsolation enabled
                    
92        unset($option['option_id']);
                    
93        $excepted = include '_files/product_options.php';
                    
94        $this->assertEquals($excepted[0], $option);
                    
97    /**
                    
98     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
99     * @magentoAppIsolation enabled
                    
99     * @magentoAppIsolation enabled
                    
100     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
101     */
                    
                
ManagerTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 115 lines
                    
1<?php
                    
2/**
                    
10 */
                    
11class ManagerTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
68        $this->model->addMessages($messages);
                    
69        array_shift($messages);
                    
70        $this->model->addMessages($messages, $customGroup);
                    
                
Updater.php https://gitlab.com/reasonat/test8 | PHP | 411 lines
                    
1<?php
                    
2
                    
120    // Otherwise, return the first one.
                    
121    $info_file = array_shift($info_files);
                    
122    return $info_file->uri;
                    
                
ClassTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 147 lines
                    
1<?php
                    
2/**
                    
23/** requires */
                    
24require_once 'Zend/Reflection/Class.php';
                    
25
                    
35 */
                    
36class Zend_Reflection_ClassTest extends PHPUnit_Framework_TestCase
                    
37{
                    
44        if (self::$_sampleClassFileRequired === false) {
                    
45            $fileToRequire = dirname(__FILE__) . '/_files/TestSampleClass.php';
                    
46            require_once $fileToRequire;
                    
61
                    
62        $firstMethod = array_shift($methodsAll);
                    
63        $this->assertEquals('getProp1', $firstMethod->getName());
                    
75
                    
76        $firstProperty = array_shift($propertiesAll);
                    
77        $this->assertEquals('_prop1', $firstProperty->getName());
                    
                
gettext.php https://github.com/weissms/owb-mirror.git | PHP | 394 lines
                    
1<?php
                    
2/*
                    
5
                    
6	 This file is part of PHP-gettext.
                    
7
                    
7
                    
8	 PHP-gettext is free software; you can redistribute it and/or modify
                    
9	 it under the terms of the GNU General Public License as published by
                    
12
                    
13	 PHP-gettext is distributed in the hope that it will be useful,
                    
14	 but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
18	 You should have received a copy of the GNU General Public License
                    
19	 along with PHP-gettext; if not, write to the Free Software
                    
20	 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
                    
27 * It can read MO files and use them for translating strings.
                    
28 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
29 *
                    
                
SubformState.php https://gitlab.com/mohamed_hussein/prodt | PHP | 154 lines
                    
1<?php
                    
2
                    
89      }
                    
90      array_shift($relative_subform_parents);
                    
91    }
                    
                
github_user.php https://github.com/rmiddle/wgm.github.git | PHP | 528 lines
                    
1<?php
                    
2class DAO_GithubUser extends C4_ORMHelper {
                    
82		if(!empty($user))
                    
83			return array_shift($user);
                    
84	
                    
                
DoctrineExtension.php https://github.com/nattaphat/hgis.git | PHP | 322 lines
                    
1<?php
                    
2
                    
102    {
                    
103        array_shift($parameters);
                    
104        $result = '';
                    
                
mdbroker.php https://github.com/plouj/zguide.git | PHP | 342 lines
                    
1<?php
                    
2/*
                    
6 */
                    
7include_once "zmsg.php";
                    
8include_once "mdp.php";
                    
55        if($this->verbose) {
                    
56            printf("I: MDP broker/0.1.1 is active at %s %s", $endpoint, PHP_EOL);
                    
57        }
                    
77                if($this->verbose) {
                    
78                    echo "I: received message:", PHP_EOL, $zmsg->__toString();
                    
79                }
                    
89                } else {
                    
90                    echo "E: invalid message", PHP_EOL, $zmsg->__toString();
                    
91                }
                    
115                printf("I: deleting expired worker: %s %s",
                    
116                    $worker->identity, PHP_EOL);
                    
117            }
                    
                
Boolean.php https://bitbucket.org/acidel/buykoala.git | PHP | 375 lines
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Boolean.php 22662 2010-07-24 17:37:36Z mabe $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Filter/Interface.php';
                    
26
                    
41    const NULL         = 64;
                    
42    const PHP          = 127;
                    
43    const FALSE_STRING = 128;
                    
54        self::NULL         => 'null',
                    
55        self::PHP          => 'php',
                    
56        self::FALSE_STRING => 'false',
                    
94            if (!empty($options)) {
                    
95                $temp['type'] = array_shift($options);
                    
96            }
                    
                
Socket.php https://bitbucket.org/acidel/buykoala.git | PHP | 537 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 */
                    
249	 * 
                    
250	 * @param string $uri ex. http://google.com/index.php?a=b
                    
251	 * @return string ex. /index.php?a=b
                    
359			$out[trim($key)] = array('value'=>trim($val));
                    
360			array_shift($values);
                    
361			$c--;
                    
                
gettext.php https://gitlab.com/BeS/io.schiessle.org | PHP | 436 lines
                    
1<?php
                    
2/*
                    
5
                    
6   This file is part of PHP-gettext.
                    
7
                    
7
                    
8   PHP-gettext is free software; you can redistribute it and/or modify
                    
9   it under the terms of the GNU General Public License as published by
                    
12
                    
13   PHP-gettext is distributed in the hope that it will be useful,
                    
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
                    
18   You should have received a copy of the GNU General Public License
                    
19   along with PHP-gettext; if not, write to the Free Software
                    
20   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                    
27 * It can read MO files and use them for translating strings.
                    
28 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
29 *
                    
                
HeadLink.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadLink.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24// require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
52     *
                    
53     * Use PHP_EOL as separator
                    
54     *
                    
59        parent::__construct();
                    
60        $this->setSeparator(PHP_EOL);
                    
61    }
                    
135                if (0 < $argc) {
                    
136                    $index = array_shift($args);
                    
137                    --$argc;
                    
                
Rename.php https://gitlab.com/Ltaimao/wecenter | PHP | 309 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25//require_once 'Zend/Filter/Interface.php';
                    
26
                    
60        } elseif (!is_array($options)) {
                    
61            //require_once 'Zend/Filter/Exception.php';
                    
62            throw new Zend_Filter_Exception('Invalid options argument provided to filter');
                    
66            $argv = func_get_args();
                    
67            array_shift($argv);
                    
68            $source    = array_shift($argv);
                    
70            if (!empty($argv)) {
                    
71                $overwrite = array_shift($argv);
                    
72            }
                    
124        } elseif (!is_array($options)) {
                    
125            //require_once 'Zend/Filter/Exception.php';
                    
126            throw new Zend_Filter_Exception ('Invalid options to rename filter provided');
                    
                
Operator.php https://github.com/ckdimka/core.git | PHP | 447 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright  Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @link       http://www.litecommerce.com/
                    
47    /**
                    
48     * Parse all PHP class files and create the graph
                    
49     *
                    
94    /**
                    
95     * Parse PHP files and return plain array with the class descriptors
                    
96     *
                    
105
                    
106        // Iterate over all directories with PHP class files
                    
107        foreach (static::getClassFileIterator()->getIterator() as $path => $data) {
                    
                
Captcha.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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
                    
83                } else {
                    
84                    $name = array_shift($captcha);
                    
85                }
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                #require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
                
CMap.php https://gitlab.com/zenfork/vektor | PHP | 342 lines
                    
1<?php
                    
2/**
                    
282		$args=func_get_args();
                    
283		$res=array_shift($args);
                    
284		while(!empty($args))
                    
285		{
                    
286			$next=array_shift($args);
                    
287			foreach($next as $k => $v)
                    
                
manage.php https://github.com/CLAMP-IT/moodle.git | PHP | 273 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once('../config.php');
                    
26require_once($CFG->libdir.'/tablelib.php');
                    
26require_once($CFG->libdir.'/tablelib.php');
                    
27require_once('lib.php');
                    
28require_once($CFG->libdir.'/adminlib.php');
                    
69$tagarea = core_tag_area::get_by_id($tagareaid);
                    
70$manageurl = new moodle_url('/tag/manage.php');
                    
71if ($tagcoll) {
                    
139                } else {
                    
140                    $tag = array_shift($tags);
                    
141                }
                    
220$data = [
                    
221    'action' => new moodle_url('/tag/manage.php'),
                    
222    'hiddenfields' => $hiddenfields,
                    
                
ActionController.php https://github.com/farrelley/zf2.git | PHP | 316 lines
                    
1<?php
                    
2
                    
284        if (0 < count($params)) {
                    
285            $options = array_shift($params);
                    
286        }
                    
                
fitzgerald.php https://bitbucket.org/timcubb/mcms.git | PHP | 366 lines
                    
1<?php
                    
2
                    
6
                    
7    /*  Fitzgerald - a single file PHP framework
                    
8     *  (c) 2010 Jim Benton and contributors, released under the MIT license
                    
37                if (preg_match('@^' . $regexedUrl . '$@', $requestUri, $paramValues)){                      // determine match and get param values
                    
38                    array_shift($paramValues);                                                              // remove the complete text match
                    
39                    for ($i=0; $i < count($paramNames); $i++) {
                    
269            extract($locals);
                    
270            include(realpath($this->root() . 'views/' . $fileName . '.php'));
                    
271            return ob_get_clean();
                    
                
helper.php https://github.com/ponlue/abktours.git | PHP | 418 lines
                    
5 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
6 * @license		GNU/GPL, see LICENSE.php
                    
7 * Joomla! is free software. This version may have been modified pursuant
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
47		if ( is_array($rows)) {
                    
48			while (count($rows) && !is_null($row = array_shift($rows)))
                    
49			{
                    
137				// Include the legacy library file
                    
138				require_once(dirname(__FILE__).DS.'legacy.php');
                    
139				mosShowHFMenu($params, 1);
                    
373					// hrm...this is a bit dickey
                    
374					$link = str_replace('index.php', 'index2.php', $tmp->url);
                    
375					$data = '<a href="'.$link.'" onclick="window.open(this.href,\'targetWindow\',\''.$attribs.'\');return false;">'.$image.$tmp->name.'</a>';
                    
                
Route.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * SSDB PHP client SDK.
                    
9 */
                    
131		$args = func_get_args();
                    
132		$cmd = array_shift($args);
                    
133		return $this->__call($cmd, $args);
                    
                
question_type_test.php https://bitbucket.org/moodle/moodle.git | PHP | 121 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25global $CFG;
                    
26require_once($CFG->dirroot . '/question/type/calculatedsimple/questiontype.php');
                    
27require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
                    
27require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
                    
28require_once($CFG->dirroot . '/question/type/edit_question_form.php');
                    
29require_once($CFG->dirroot . '/question/type/calculatedsimple/edit_calculatedsimple_form.php');
                    
102        foreach ($questiondata->options->answers as $answer) {
                    
103            $actualanswer = array_shift($actualquestiondata->options->answers);
                    
104            foreach ($answer as $ansproperty => $ansvalue) {
                    
                
fabriquer_plugin_actions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 380 lines
                    
1<?php
                    
2
                    
128			$i = explode('/', $i);
                    
129			$type = array_shift($i);
                    
130			$images = session_get(FABRIQUE_ID_IMAGES);
                    
290	$date = date("Y-m-d H-i-s");
                    
291	$base = basename($fichier, '.php');
                    
292	$copie = $base . ' ' . $date . '.php';
                    
295		new RegexIterator(
                    
296		new DirectoryIterator($destination), '/fabrique_' . substr($base, 9) . '.*\.php$/');
                    
297	// trier par date les fichiers
                    
330		$fdiff = new Fdiff($ancien, $nouveau);
                    
331		$fdiff->add_ignorer(array("fabrique_diff.diff", "fabrique_".$prefixe.".php"));
                    
332		$tab = $fdiff->get_diff();
                    
                
Application.php https://gitlab.com/x33n/respond | PHP | 414 lines
                    
1<?php
                    
2
                    
57    /**
                    
58     * Include PHP files containing resources in the given filename globs
                    
59     * @paramstr[] $filenames Array of filename globs
                    
185                        }
                    
186                        array_shift($params);
                    
187                        $matchedResource = array($resourceMetadata, $params);
                    
349                preg_match_all('/"[^"]+"|[^\s]+/', $item, $parts);
                    
350                $key = array_shift($parts[0]);
                    
351                array_walk($parts[0], create_function('&$v', '$v = trim($v, \'"\');'));
                    
                
Route.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23485 2010-12-10 04:03:18Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
HeadLink.php https://bitbucket.org/haichau59/manga.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadLink.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24//require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
52     *
                    
53     * Use PHP_EOL as separator
                    
54     *
                    
59        parent::__construct();
                    
60        $this->setSeparator(PHP_EOL);
                    
61    }
                    
135                if (0 < $argc) {
                    
136                    $index = array_shift($args);
                    
137                    --$argc;
                    
                
Object.php https://bitbucket.org/valmy/openx.git | PHP | 461 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 * 
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @copyright   2001-2007 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id$
                    
                
BakeShell.php https://gitlab.com/vannh/portal_training | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
reporter.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 446 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reporter.php 1788 2008-04-27 11:01:59Z pp11 $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13/**#@-*/
                    
113        $breadcrumb = $this->getTestList();
                    
114        array_shift($breadcrumb);
                    
115        print implode(" -&gt; ", $breadcrumb);
                    
119    /**
                    
120     *    Paints a PHP error.
                    
121     *    @param string $message        Message is ignored.
                    
127        $breadcrumb = $this->getTestList();
                    
128        array_shift($breadcrumb);
                    
129        print implode(" -&gt; ", $breadcrumb);
                    
                
SilverStripeNavigator.php https://gitlab.com/brendan2/silverstripe-cms-3.3.2 | PHP | 407 lines
                    
1<?php
                    
2/**
                    
43		$classes = ClassInfo::subclassesFor('SilverStripeNavigatorItem');
                    
44		array_shift($classes);
                    
45		
                    
                
OpenLdap.php https://github.com/kervin/kyzstudio.git | PHP | 502 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OpenLdap.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Ldap/Node/Schema.php';
                    
27/**
                    
29 */
                    
30#require_once 'Zend/Ldap/Node/Schema/AttributeType/OpenLdap.php';
                    
31/**
                    
33 */
                    
34#require_once 'Zend/Ldap/Node/Schema/ObjectClass/OpenLdap.php';
                    
35
                    
198        $tokens = $this->_tokenizeString($value);
                    
199        $attributeType['oid'] = array_shift($tokens); // first token is the oid
                    
200        $this->_parseLdapSchemaSyntax($attributeType, $tokens);
                    
                
clilib.php https://github.com/mackensen/moodle.git | PHP | 320 lines
                    
1<?php
                    
2
                    
45function cli_writeln($text, $stream=STDOUT) {
                    
46    cli_write($text.PHP_EOL, $stream);
                    
47}
                    
115            } else {
                    
116                $key = array_shift($parts);
                    
117                $value = implode('=', $parts);
                    
131            } else {
                    
132                $key = array_shift($parts);
                    
133                $value = implode('=', $parts);
                    
165        $command = join(' ', $_SERVER['argv']);
                    
166        @cli_set_process_title("php $command ($suffix)");
                    
167    }
                    
175function cli_separator($return=false) {
                    
176    $separator = str_repeat('-', 79).PHP_EOL;
                    
177    if ($return) {
                    
                
 

Source

Language