PageRenderTime 280ms queryTime 51ms sortTime 28ms getByIdsTime 54ms findMatchingLines 77ms

100+ results results for 'php class_exists repo:streetparade/phpunit' (280 ms)

Not the results you expected?
Generator.php https://github.com/cawago/ci_campusync_auth.git | PHP | 374 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Plugin
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       1.0
                    
160        // check that class doesn't exist (otherwise we cannot create it)
                    
161        if ($this->_options['generateFiles'] === false && class_exists($this->_options['className'], false)) {
                    
162            return false;
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
26
                    
27if ( !class_exists( 'BuddyPress' ) ) :
                    
28/**
                    
42	 *
                    
43	 * Most of them have reference functions located in bp-core-functions.php.
                    
44	 * The ones that don't can be accessed via their respective WordPress API's.
                    
260		// Place your custom code (actions/filters) in a file called
                    
261		// '/plugins/bp-custom.php' and it will be loaded before anything else.
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
263			require( WP_PLUGIN_DIR . '/bp-custom.php' );
                    
264
                    
354		// Load the WP abstraction file so BuddyPress can run on all WordPress setups.
                    
355		require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' );
                    
356
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
54		
                    
55		if( class_exists('jfactory')) {
                    
56			$vmUser = JFactory::getUser();
                    
240		if( $size==1 ) {
                    
241			$values[0] = $VM_LANG->_('PHPSHOP_SELECT');
                    
242		}
                    
                
Cache.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
83
                    
84            if ( ! class_exists($class)) {
                    
85                throw new Doctrine_Cache_Exception('Cache driver ' . $driver . ' could not be found.');
                    
                
backwpup.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 334 lines
                    
195			//add class files that should excluded that are classes that extra loaded with require or needs spl_autoload_register to work
                    
196			$loaded_class_files = array( 'class-auto-update.php', 'class-documentation.php', 'class-features.php',
                    
197										 'class-destination-msazure.php', 'class-destination-msazure-pro.php',
                    
201										 'class-destination-s3-v1.php', 'class-destination-s3-v1-pro.php',
                    
202										 'class-destinations.php', 'class-jobtypes.php', 'class-wizards.php',
                    
203										 'class-wp-cli.php' );
                    
256				self::$destinations[ 'DROPBOX' ] 	= new BackWPup_Destination_Dropbox;
                    
257			if (  function_exists( 'curl_exec' ) && version_compare( PHP_VERSION, '5.3.3', '>=' ) && class_exists( 'BackWPup_Destination_S3' ) )
                    
258				self::$destinations[ 'S3' ] 		= new BackWPup_Destination_S3;
                    
260				self::$destinations[ 'S3' ] 		= new BackWPup_Destination_S3_V1;
                    
261			if ( version_compare( PHP_VERSION, '5.3.2', '>=' ) && class_exists( 'BackWPup_Destination_MSAzure' )  )
                    
262				self::$destinations[ 'MSAZURE' ] 	= new BackWPup_Destination_MSAzure;
                    
262				self::$destinations[ 'MSAZURE' ] 	= new BackWPup_Destination_MSAzure;
                    
263			if ( function_exists( 'curl_exec' ) && version_compare( PHP_VERSION, '5.3.0', '>=' ) && class_exists( 'BackWPup_Destination_RSC' ) )
                    
264				self::$destinations[ 'RSC' ] 		= new BackWPup_Destination_RSC;
                    
                
ED_ParserFunctions.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
316	static function doStoreExternalTable( &$parser ) {
                    
317		if ( ! class_exists( 'SIOHandler' ) ) {
                    
318			return 'Semantic Internal Objects is not installed';
                    
362			array_unshift( $params, $parser );
                    
363			// As of PHP 5.3.1, call_user_func_array() requires that
                    
364			// the function params be references. Workaround via
                    
364			// the function params be references. Workaround via
                    
365			// http://stackoverflow.com/questions/2045875/pass-by-reference-problem-with-php-5-3-1
                    
366			$refParams = array();
                    
                
doc2img_convertir.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 306 lines
                    
1<?php
                    
2
                    
32	$ret = array();
                    
33	if(class_exists('Imagick')){
                    
34	    include_spip('inc/documents');
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
216		{
                    
217			class_exists('CI_Model', FALSE) OR load_class('Model', 'core');
                    
218
                    
218
                    
219			if ($connect !== FALSE && ! class_exists('CI_DB', FALSE))
                    
220			{
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
functions-auth.php https://gitlab.com/Slind/YOURLS | PHP | 426 lines
                    
134		$hash = str_replace( '!', '$', $hash );
                    
135		return ( yourls_phpass_check( $submitted_password, $hash ) );
                    
136	} else if( yourls_has_md5_password( $user ) ) {
                    
146/**
                    
147 * Overwrite plaintext passwords in config file with phpassed versions.
                    
148 *
                    
222function yourls_phpass_check( $password, $hash ) {
                    
223	$hasher = yourls_phpass_instance();
                    
224	return $hasher->CheckPassword( $password, $hash );
                    
239	if( !class_exists( 'PasswordHash' ) ) {
                    
240		require_once( YOURLS_INC.'/phpass/PasswordHash.php' );
                    
241	}
                    
322function yourls_check_signature_timestamp() {
                    
323	// Timestamp in PHP : time()
                    
324	// Timestamp in JS: parseInt(new Date().getTime() / 1000)
                    
                
I18nBehaviorObjectBuilderModifierTest.php https://github.com/1989gaurav/Propel.git | PHP | 387 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *	$Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $
                    
5 * This file is part of the Propel package.
                    
11
                    
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
                    
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php';
                    
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php';
                    
14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php';
                    
15
                    
22 */
                    
23class I18nBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase
                    
24{
                    
26	{
                    
27		if (!class_exists('I18nBehaviorTest1')) {
                    
28			$schema = <<<EOF
                    
                
pico.php https://gitlab.com/Blueprint-Marketing/Pico | PHP | 402 lines
                    
1<?php
                    
2
                    
33        $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : '';
                    
34        $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : '';
                    
35
                    
37        if ($request_url != $script_url) {
                    
38            $url = trim(preg_replace('/' . str_replace('/', '\/', str_replace('index.php', '', $script_url)) . '/', '',
                    
39                $request_url, 1), '/');
                    
128        $this->plugins = array();
                    
129        $plugins = $this->get_files(PLUGINS_DIR, '.php');
                    
130        if (!empty($plugins)) {
                    
133                $plugin_name = preg_replace("/\\.[^.\\s]{3}$/", '', basename($plugin));
                    
134                if (class_exists($plugin_name)) {
                    
135                    $obj = new $plugin_name;
                    
325        $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : '';
                    
326        $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : '';
                    
327        if ($request_url != $script_url) {
                    
                
FileValidatorTest.php https://github.com/Exercise/symfony.git | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
27    {
                    
28        if (!class_exists('Symfony\Component\HttpFoundation\File\UploadedFile')) {
                    
29            $this->markTestSkipped('The "HttpFoundation" component is not available');
                    
315
                    
316        if (class_exists('Symfony\Component\HttpFoundation\File\UploadedFile')) {
                    
317            $tests[] = array(UPLOAD_ERR_INI_SIZE, 'uploadIniSizeErrorMessage', array('{{ limit }}' => UploadedFile::getMaxFilesize() . ' bytes'));
                    
                
editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
                    
1<?php
                    
2
                    
2
                    
3require_model('asiento.php');
                    
4require_model('asiento_factura.php');
                    
4require_model('asiento_factura.php');
                    
5require_model('divisa.php');
                    
6require_model('fabricante.php');
                    
6require_model('fabricante.php');
                    
7require_model('forma_pago.php');
                    
8require_model('proveedor.php');
                    
8require_model('proveedor.php');
                    
9require_model('recibo_proveedor.php');
                    
10
                    
139      /// paso 3, eliminar los recibos asociados
                    
140      if( class_exists('recibo_proveedor') )
                    
141      {
                    
                
Memcacheq.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 428 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Memcacheq.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
76        if (!extension_loaded('memcache')) {
                    
77            // require_once 'Zend/Queue/Exception.php';
                    
78            throw new Zend_Queue_Exception('Memcache extension does not appear to be loaded');
                    
96        if ($result === false) {
                    
97            // require_once 'Zend/Queue/Exception.php';
                    
98            throw new Zend_Queue_Exception('Could not connect to MemcacheQ');
                    
235    {
                    
236        // require_once 'Zend/Queue/Exception.php';
                    
237        throw new Zend_Queue_Exception('count() is not supported in this adapter');
                    
                
ReportContainer.php https://gitlab.com/gideonmarked/wellmarketing | PHP | 442 lines
                    
1<?php namespace Backend\Widgets;
                    
2
                    
175
                    
176        if (!class_exists($className)) {
                    
177            throw new ApplicationException('The selected class doesn\'t exist.');
                    
306        $className = $widgetInfo['class'];
                    
307        if (!class_exists($className)) {
                    
308            return;
                    
                
ValidatorBuilder.php https://bitbucket.org/prauscher/att.git | PHP | 296 lines
                    
1<?php
                    
2
                    
190        if (null === $annotationReader) {
                    
191            if (!class_exists('Doctrine\Common\Annotations\AnnotationReader')) {
                    
192                throw new \RuntimeException('Requested a ValidatorFactory with an AnnotationLoader, but the AnnotationReader was not found. You should add Doctrine Common to your project.');
                    
                
autoloader.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 203 lines
                    
26/**
                    
27 * Class phpunit_autoloader.
                    
28 *
                    
36 * vendor/bin/phpunit core_component_testcase
                    
37 * vendor/bin/phpunit lib/tests/component_test.php
                    
38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php
                    
44 */
                    
45class phpunit_autoloader implements \PHPUnit\Runner\TestSuiteLoader {
                    
46    public function load($suiteClassName, $suiteClassFile = '') {
                    
68        if ($suiteClassFile) {
                    
69            PHPUnit\Util\Fileloader::checkAndLoad($suiteClassFile);
                    
70            if (class_exists($suiteClassName, false)) {
                    
74
                    
75            throw new PHPUnit\Framework\Exception(
                    
76                sprintf("Class '%s' could not be found in '%s'.", $suiteClassName, $suiteClassFile)
                    
                
cake_session.test.php https://github.com/cgajardo/repositorium.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
19 */
                    
20if (!class_exists('CakeSession')) {
                    
21	App::import('Core', 'CakeSession');
                    
                
sfPluginManagerTest.php https://github.com/bheneka/gitta.git | PHP | 267 lines
                    
1<?php
                    
2
                    
12
                    
13require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
14
                    
16
                    
17@include_once('PEAR.php');
                    
18if (!class_exists('PEAR'))
                    
23
                    
24require_once dirname(__FILE__).'/sfPearDownloaderTest.class.php';
                    
25require_once dirname(__FILE__).'/sfPearRestTest.class.php';
                    
25require_once dirname(__FILE__).'/sfPearRestTest.class.php';
                    
26require_once dirname(__FILE__).'/sfPluginTestHelper.class.php';
                    
27
                    
63    $mainPackage->setConfig($this->environment->getConfig());
                    
64    $mainPackage->setPackageType('php');
                    
65    $mainPackage->setAPIVersion('1.0.0');
                    
                
cache.php https://github.com/geeknbar/projet-tut-site-web.git | PHP | 509 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
3/**
                    
4 * Caching for CakePHP.
                    
5 *
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
20 * @version       $Revision$
                    
                
ext_std_classobj.cpp https://gitlab.com/iranjith4/hhvm | C++ | 385 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 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_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
2
                    
3if ( ! class_exists( 'GFForms' ) ) {
                    
4	die();
                    
                
module.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 457 lines
                    
1<?php
                    
2/**
                    
8 */
                    
9if ( ! class_exists( 'WDev_Frash' ) ) {
                    
10	class WDev_Frash {
                    
54			$this->add_action( 'wdev-register-plugin', 5 );
                    
55			$this->add_action( 'load-index.php' );
                    
56
                    
188		/**
                    
189		 * Action handler for 'load-index.php'
                    
190		 * Set-up the Dashboard notification.
                    
193		 */
                    
194		public function load_index_php() {
                    
195			if ( is_super_admin() ) {
                    
347			?>
                    
348			<link rel="stylesheet" type="text/css" href="<?php echo esc_url( $css_url ); ?>" />
                    
349			<div class="notice frash-notice frash-notice-<?php echo esc_attr( $info->type ); ?>" style="display:none">
                    
                
shell.test.php https://github.com/cgajardo/repositorium.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2006-2010, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2006-2010, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
409		$path = TMP . 'shell_test';
                    
410		$file = $path . DS . 'file1.php';
                    
411
                    
                
multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
                    
1<?php
                    
2/*
                    
25
                    
26if( !class_exists( 'kdMultipleFeaturedImages' ) ) {
                    
27
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
373
                    
374// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
375
                    
                
MimeType.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
90     * Mimetype to accept
                    
91     * - NULL means default PHP usage by using the environment variable 'magic'
                    
92     * - FALSE means disabling searching for mimetype, should be used for PHP 5.3
                    
178     * Sets the magicfile to use
                    
179     * if null, the MAGIC constant from php is used
                    
180     * if the MAGIC file is erroneous, no file will be set
                    
180     * if the MAGIC file is erroneous, no file will be set
                    
181     * if false, the default MAGIC file from PHP will be used
                    
182     *
                    
194            $this->options['magicFile'] = null;
                    
195        } elseif (!(class_exists('finfo', false))) {
                    
196            $this->options['magicFile'] = null;
                    
371        $mimefile = $this->getMagicFile();
                    
372        if (class_exists('finfo', false)) {
                    
373            $const = defined('FILEINFO_MIME_TYPE') ? FILEINFO_MIME_TYPE : FILEINFO_MIME;
                    
                
Table.php https://gitlab.com/gideonmarked/atls-express | PHP | 291 lines
                    
1<?php namespace Backend\Widgets;
                    
2
                    
73
                    
74        if (!class_exists($dataSourceClass)) {
                    
75            throw new SystemException(sprintf('The Table widget data source class "%s" is could not be found.', $dataSourceClass));
                    
                
autoloader.php https://github.com/pauln/moodle.git | PHP | 203 lines
                    
26/**
                    
27 * Class phpunit_autoloader.
                    
28 *
                    
36 * vendor/bin/phpunit core_component_testcase
                    
37 * vendor/bin/phpunit lib/tests/component_test.php
                    
38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php
                    
44 */
                    
45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader {
                    
46    public function load($suiteClassName, $suiteClassFile = '') {
                    
68        if ($suiteClassFile) {
                    
69            PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile);
                    
70            if (class_exists($suiteClassName, false)) {
                    
74
                    
75            throw new PHPUnit_Framework_Exception(
                    
76                sprintf("Class '%s' could not be found in '%s'.", $suiteClassName, $suiteClassFile)
                    
                
class-gf-field-multiselect.php https://gitlab.com/BenjaminHolm/gravity-forms | PHP | 336 lines
                    
1<?php
                    
2
                    
3// If the GF_Field class isn't available, bail.
                    
4if ( ! class_exists( 'GFForms' ) ) {
                    
5	die();
                    
                
Log.php https://github.com/studioskylab/Docblox.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Log.php 20893 2010-02-03 22:59:25Z yoshida@zend.co.jp $
                    
20 */
                    
26 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
27 * @version    $Id: Log.php 20893 2010-02-03 22:59:25Z yoshida@zend.co.jp $
                    
28 */
                    
103            /** @see Zend_Log_Exception */
                    
104            require_once 'Zend/Log/Exception.php';
                    
105            throw new Zend_Log_Exception('Configuration must be an array or instance of Zend_Config');
                    
133            /** @see Zend_Log_Exception */
                    
134            require_once 'Zend/Log/Exception.php';
                    
135            throw new Zend_Log_Exception("{$writerName} does not extend Zend_Log_Writer_Abstract!");
                    
157            /** @see Zend_Log_Exception */
                    
158            require_once 'Zend/Log/Exception.php';
                    
159            throw new Zend_Log_Exception("{$filterName} does not implement Zend_Log_Filter_Interface");
                    
                
TextStatistics.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 414 lines
                    
1<?php
                    
2/**
                    
11
                    
12if ( ! class_exists( 'Yoast_TextStatistics' ) ) {
                    
13	/**
                    
17	 *
                    
18	 * @link    http://code.google.com/p/php-text-statistics/
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
20	 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license
                    
21	 *
                    
                
aritems.php https://gitlab.com/nexxuz/phpBMS | PHP | 268 lines
                    
39
                    
40if(class_exists("phpbmsTable")){
                    
41	class aritems extends phpbmsTable{
                    
196				<tr class="queryfooter">
                    
197					<td colspan="4" align="right">total: <strong><?php echo formatVariable($this->totals["applied"] + $this->totals["discount"] + $this->totals["taxadjustment"], "currency")?></strong> </td>
                    
198					<td align="right"><?php echo formatVariable($this->totals["applied"],"currency")?></td>
                    
198					<td align="right"><?php echo formatVariable($this->totals["applied"],"currency")?></td>
                    
199					<td align="right"><?php echo formatVariable($this->totals["discount"],"currency")?></td>
                    
200					<td align="right"><?php echo formatVariable($this->totals["taxadjustment"],"currency")?></td>
                    
231
                    
232							?><tr class="row<?php echo $row?>">
                    
233								<td><?php echo $therecord["status"]?></td>
                    
233								<td><?php echo $therecord["status"]?></td>
                    
234								<td><?php echo $therecord["id"]?></td>
                    
235								<td><?php echo formatFromSQLDate($therecord["receiptdate"])?></td>
                    
                
index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
                    
14
                    
15require_once('../system/init.php');
                    
16
                    
20{
                    
21	H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php'));
                    
22}
                    
33
                    
34		if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false)
                    
35		{
                    
38
                    
39		if (class_exists('PDO', false))
                    
40		{
                    
113
                    
114		$base_dir = str_replace("\\", "",dirname(dirname($_SERVER['PHP_SELF'])));
                    
115
                    
                
Validate.php https://bitbucket.org/haichau59/manga.git | PHP | 290 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Validate.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25//require_once 'Zend/Validate/Interface.php';
                    
26
                    
199        try {
                    
200            if (!class_exists($className, false)) {
                    
201                //require_once 'Zend/Loader.php';
                    
203                    $class = $namespace . '_' . $className;
                    
204                    $file  = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
                    
205                    if (Zend_Loader::isReadable($file)) {
                    
242
                    
243        //require_once 'Zend/Validate/Exception.php';
                    
244        throw new Zend_Validate_Exception("Validate class not found from basename '$classBaseName'");
                    
                
metaboxes.php https://gitlab.com/code26/selah | PHP | 368 lines
                    
1<?php
                    
2
                    
70    //         'slug'  => array( 'news', 'blog' ),
                    
71    //         'template' => array( 'fullwidth.php', 'simple.php' ),
                    
72    //         'parent'   => array( 10 )
                    
262
                    
263	if ( class_exists( 'RW_Meta_Box' ) ) {
                    
264		foreach ( $meta_boxes as $meta_box ) {
                    
                
biblio_list_sphinx.inc.php https://github.com/masir/ucs-2.0.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
53        parent::__construct($obj_db, $int_num_show);
                    
54		if (!class_exists('SphinxClient')) {
                    
55			throw new Exception('SPHINX API Library is not installed yet!');
                    
                
base.php https://bitbucket.org/moodle/moodle.git | PHP | 273 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
65        // Check if audience type class still exists in the system.
                    
66        if (!class_exists($classname)) {
                    
67            return null;
                    
                
CakePdf.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 720 lines
                    
1<?php
                    
2App::uses('File', 'Utility');
                    
287		App::uses($engineClassName, $pluginDot . 'Pdf/Engine');
                    
288		if (!class_exists($engineClassName)) {
                    
289			throw new CakeException(__d('cake_pdf', 'Pdf engine "%s" not found', $name));
                    
314		App::uses($engineClassName, $pluginDot . 'Pdf/Crypto');
                    
315		if (!class_exists($engineClassName)) {
                    
316			throw new CakeException(__d('cake_pdf', 'Pdf crypto "%s" not found', $name));
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
19
                    
20if(!class_exists('c_ws_plugin__s2member_paypal_return_in_web_accept_sp'))
                    
21{
                    
                
X25519.php https://gitlab.com/VTTE/sitios-vtte | PHP | 345 lines
                    
1<?php
                    
2
                    
2
                    
3if (class_exists('ParagonIE_Sodium_Core32_X25519', false)) {
                    
4    return;
                    
                
Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
40 * @copyright   1997-2010 Chuck Hagenbuch
                    
41 * @license     http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
43 * @link        http://pear.php.net/package/Mail/
                    
44 */
                    
45
                    
46require_once 'PEAR.php';
                    
47
                    
76        $driver = strtolower($driver);
                    
77        @include_once 'Mail/' . $driver . '.php';
                    
78        $class = 'Mail_' . $driver;
                    
                
Mcrypt.php https://gitlab.com/yousafsyed/easternglamor | PHP | 508 lines
                    
1<?php
                    
2/**
                    
190        if (is_string($plugins)) {
                    
191            if (!class_exists($plugins)) {
                    
192                throw new Exception\InvalidArgumentException(sprintf(
                    
                
shell.test.php https://github.com/hack521/contenidopago.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
409		$path = TMP . 'shell_test';
                    
410		$file = $path . DS . 'file1.php';
                    
411
                    
                
cake_session.test.php https://github.com/cpfarher/pruebascake.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
19 */
                    
20if (!class_exists('CakeSession')) {
                    
21	App::import('Core', 'CakeSession');
                    
                
BuildPropelGenPEARPackageTask.php https://gitlab.com/Isaki/le331.fr | PHP | 269 lines
                    
1<?php
                    
2
                    
29
                    
30require_once 'phing/tasks/system/MatchingTask.php';
                    
31include_once 'phing/types/FileSet.php';
                    
31include_once 'phing/types/FileSet.php';
                    
32include_once 'phing/tasks/ext/pearpackage/Fileset.php';
                    
33
                    
56    {
                    
57        include_once 'PEAR/PackageFileManager2.php';
                    
58        if (!class_exists('PEAR_PackageFileManager2')) {
                    
130        $package->setSummary('Generator component of the Propel PHP object persistence layer');
                    
131        $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the generator engine that builds PHP classes and SQL DDL based on an XML representation of your data model.');
                    
132        $package->setChannel('pear.propelorm.org');
                    
132        $package->setChannel('pear.propelorm.org');
                    
133        $package->setPackageType('php');
                    
134
                    
                
installer.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 275 lines
                    
1<?php
                    
2
                    
72        // Try to load the adapter object
                    
73        require_once(dirname(dirname(__FILE__)) . '/adapters/' . strtolower($type) . '.php');
                    
74
                    
76
                    
77        if (!class_exists($class)) {
                    
78            return false;
                    
                
file.test.php https://github.com/purushoth85/wildflower.git | PHP | 355 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
18 * @package       cake
                    
19 * @subpackage    cake.tests.cases.libs.cache
                    
20 * @since         CakePHP(tm) v 1.2.0.5434
                    
21 * @version       $Revision$
                    
23 * @lastmodified  $Date$
                    
24 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
25 */
                    
                
ProxyFactory.php https://github.com/weaverryan/mongodb-odm.git | PHP | 283 lines
                    
1<?php
                    
2/*
                    
29 *
                    
30 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
31 * @since       1.0
                    
82
                    
83        if ($this->autoGenerate && ! class_exists($fqn, false)) {
                    
84            $fileName = $this->proxyDir . DIRECTORY_SEPARATOR . $proxyClassName . '.php';
                    
109            $proxyClassName = str_replace('\\', '', $class->name) . 'Proxy';
                    
110            $proxyFileName = $proxyDir . $proxyClassName . '.php';
                    
111            $this->generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate);
                    
199                $methods .= $parameterString . ')';
                    
200                $methods .= PHP_EOL . '    {' . PHP_EOL;
                    
201                $methods .= '        $this->load();' . PHP_EOL;
                    
202                $methods .= '        return parent::' . $method->getName() . '(' . $argumentString . ');';
                    
203                $methods .= PHP_EOL . '    }' . PHP_EOL;
                    
204            }
                    
                
exceptions.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 624 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
                
exceptions.php https://bitbucket.org/reyx/p0001festivalcachorroquente.git | PHP | 625 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
                
Netdna.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 282 lines
                    
1<?php
                    
2
                    
9
                    
10w3_require_once(W3TC_LIB_W3_DIR . '/Cdn/Mirror.php');
                    
11
                    
18    /**
                    
19     * PHP5 Constructor
                    
20     *
                    
57
                    
58        if (!class_exists('NetDNA')) {
                    
59            w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php');
                    
175
                    
176        if (!class_exists('NetDNA')) {
                    
177            w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php');
                    
                
class-wc-settings-emails.php https://gitlab.com/campus-academy/krowkaramel | PHP | 371 lines
                    
1<?php
                    
2/**
                    
10
                    
11if ( class_exists( 'WC_Settings_Emails', false ) ) {
                    
12	return new WC_Settings_Emails();
                    
294					<tr>
                    
295						<?php
                    
296						$columns = apply_filters(
                    
312					<tbody>
                    
313						<?php
                    
314						foreach ( $email_templates as $email_key => $email ) {
                    
321										echo '<td class="wc-email-settings-table-' . esc_attr( $key ) . '">
                    
322										<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=email&section=' . strtolower( $email_key ) ) ) . '">' . esc_html( $email->get_title() ) . '</a>
                    
323										' . wc_help_tip( $email->get_description() ) . '
                    
350										echo '<td class="wc-email-settings-table-' . esc_attr( $key ) . '">
                    
351										<a class="button alignright" href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=email&section=' . strtolower( $email_key ) ) ) . '">' . esc_html__( 'Manage', 'woocommerce' ) . '</a>
                    
352									</td>';
                    
                
user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
                    
9
                    
10if ( ! class_exists( 'Theme_My_Login_User_Moderation_Admin' ) ) :
                    
11/**
                    
94	 *
                    
95	 * Callback for "tml_uninstall_user-moderation/user-moderation.php" hook in method Theme_My_Login_Admin::uninstall()
                    
96	 *
                    
180		?>
                    
181		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> />
                    
182		<label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label>
                    
184
                    
185		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> />
                    
186		<label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label>
                    
188
                    
189		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> />
                    
190		<label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>
                    
                
Operator.php https://github.com/ckdimka/core.git | PHP | 427 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
                    
16 *
                    
17 * PHP version 5.3.0
                    
18 *
                    
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/
                    
80    {
                    
81        return class_exists($name, false)
                    
82            || file_exists(LC_DIR_CACHE_CLASSES . str_replace('\\', LC_DS, $name) . '.php');
                    
424    {
                    
425        return '# <' . '?php if (!defined(\'LC_DS\')) { die(); } ?' . '>' . PHP_EOL . PHP_EOL;
                    
426    }
                    
                
Array.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
ValidFunctionNameSniff.php https://github.com/Joomla-Bible-Study/joomla_churchdirectory.git | PHP | 298 lines
                    
32 * @version   Release: @package_version@
                    
33 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
34 */
                    
81     *
                    
82     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
83     * @param int                  $stackPtr  The position where this token was
                    
88     */
                    
89    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
90    {
                    
185     *
                    
186     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
187     * @param int                  $stackPtr  The position where this token was
                    
191     */
                    
192    protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
193    {
                    
                
orders.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 325 lines
                    
10 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
                    
11 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
12 * VirtueMart is free software. This version may have been modified pursuant
                    
15 * other free or open source software licenses.
                    
16 * @version $Id: orders.php 6188 2012-06-29 09:38:30Z Milbo $
                    
17 */
                    
24
                    
25if(!class_exists('VmController'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmcontroller.php');
                    
26
                    
68		}
                    
69		$this->setRedirect('index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id='.$order_id ,$msg );
                    
70	}
                    
144		if ('updatestatus'== $lastTask ) {
                    
145			$mainframe->redirect('index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id='.$virtuemart_order_id , $msg);
                    
146		}
                    
                
SetupController.php https://github.com/geraintp/frontend.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
23    $imageLibs = array();
                    
24    if(class_exists('Imagick'))
                    
25      $imageLibs['ImageMagick'] = 'ImageMagick';
                    
25      $imageLibs['ImageMagick'] = 'ImageMagick';
                    
26    if(class_exists('Gmagick'))
                    
27      $imageLibs['GraphicsMagick'] = 'GraphicsMagick';
                    
36
                    
37    $body = getTheme()->get('setup.php', array('imageLibs' => $imageLibs, 'appId' => $appId, 'step' => $step, 'errors' => $errors));
                    
38    getTheme()->display('template.php', array('body' => $body, 'page' => 'setup'));
                    
64
                    
65    $body = getTheme()->get('setup.php', array('emai' => $email, 'appId' => $appId, 'step' => $step, 'errors' => $errors));
                    
66    getTheme()->display('template.php', array('body' => $body, 'page' => 'setup'));
                    
81    $imageLibs = array();
                    
82    if(class_exists('Imagick'))
                    
83      $imageLibs['ImageMagick'] = 'ImageMagick';
                    
                
Array.php https://github.com/grandison/budo16.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
class-wc-shipping-zone.php https://gitlab.com/iamgraeme/royalmile | PHP | 469 lines
                    
1<?php
                    
2
                    
257					// else would be useless
                    
258					if ( is_string( $class_name ) && class_exists( $class_name ) ) {
                    
259						$methods[ $raw_method->instance_id ] = new $class_name( $raw_method->instance_id );
                    
                
SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
103     * @param 	string 			$pCoord		Coordinate of the cell
                    
104     * @throws 	PHPExcel_Exception
                    
105     * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
                    
314	public static function cacheMethodIsAvailable() {
                    
315		if (!class_exists('SQLite3',FALSE)) {
                    
316			return false;
                    
                
list.php https://bitbucket.org/midasinc/your-submission.git | PHP | 206 lines
                    
117                <span><a href="?page=formidable&amp;frm_action=duplicate&amp;id=<?php echo $form->id; ?>" title="<?php _e('Copy', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Create Form from Template', 'formidable') ?></a></span>
                    
118                | <span class="edit"><a href="?page=formidable&amp;frm_action=edit&amp;id=<?php echo $form->id; ?>" title="<?php _e('Edit', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Edit', 'formidable') ?></a></span>
                    
119                <?php } ?>
                    
121                <?php if(current_user_can('frm_delete_forms')){ ?>
                    
122                | <span class="trash"><a href="?page=formidable&amp;frm_=destroy&amp;id=<?php echo $form->id; ?>"  onclick="return confirm('<?php printf(__('Are you sure you want to delete your %1$s Form?', 'formidable'), strip_tags(stripslashes($form->name))) ?>');" title="<?php _e('Delete', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Delete', 'formidable') ?></a></span>
                    
123                <?php } ?>
                    
148				<?php if($frmpro_is_installed and current_user_can('frm_create_entries')){ ?>
                    
149                    | <span><a href="?page=formidable-entries&amp;frm_action=new&amp;form=<?php echo $form->id; ?>" title="<?php _e('New', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Entry', 'formidable') ?>"><?php _e('New Entry', 'formidable') ?></a></span></br>
                    
150                <?php } ?>
                    
154                | <span><a href="?page=formidable&amp;frm_action=duplicate&amp;id=<?php echo $form->id; ?>&amp;template=1" title="<?php _e('Create', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Template', 'formidable') ?>"><?php _e('Create Template', 'formidable') ?></a></span>
                    
155                | <span><a href="<?php echo FRM_SCRIPT_URL ?>&amp;controller=forms&amp;frm_action=export&amp;id=<?php echo $form->id; ?>" title="<?php _e('Export', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Template', 'formidable') ?>"><?php _e('Export as Template', 'formidable') ?></a></span>
                    
156                <?php
                    
159                if(current_user_can('frm_delete_forms')){ ?>
                    
160                | <span class="trash"><a href="?page=formidable&amp;frm_action=destroy&amp;id=<?php echo $form->id; ?>"  onclick="return confirm('<?php printf(__('Are you sure you want to delete your %1$s Form?', 'formidable'), strip_tags(stripslashes($form->name))) ?>');" title="<?php _e('Delete', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?>"><?php _e('Delete', 'formidable') ?></a></span>
                    
161                <?php } ?>
                    
                
Loader.php https://gitlab.com/florianocomercial/centreon | PHP | 321 lines
                    
40     * generate a path hierarchy (e.g., "Zend_Example_Class" will map
                    
41     * to "Zend/Example/Class.php").
                    
42     *
                    
74        }
                    
75        $file .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
                    
76
                    
96
                    
97        if (!class_exists($class, false) && !interface_exists($class, false)) {
                    
98            require_once 'Zend/Exception.php';
                    
103    /**
                    
104     * Loads a PHP file.  This is a wrapper for PHP's include() function.
                    
105     *
                    
162     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
163     * This function uses the PHP include_path, where PHP's is_readable()
                    
164     * does not.
                    
                
biblio_list_sphinx.inc.php https://gitlab.com/mucill/majalengka | PHP | 329 lines
                    
1<?php
                    
2/**
                    
52      parent::__construct($obj_db, $int_num_show);
                    
53	    if (!class_exists('SphinxClient')) {
                    
54	      throw new Exception('SPHINX API Library is not installed yet!');
                    
                
Lexer.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 298 lines
                    
1<?php
                    
2
                    
96                if (
                    
97                    class_exists('DOMDocument') &&
                    
98                    method_exists('DOMDocument', 'loadHTML') &&
                    
129
                    
130        // once PHP DOM implements native line numbers, or we
                    
131        // hack out something using XSLT, remove this stipulation
                    
                
ClassCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 254 lines
                    
40 * @version   Release: @package_version@
                    
41 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
42 */
                    
90        $commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1);
                    
91        $commentNext  = $phpcsFile->findPrevious(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar);
                    
92
                    
101                    // There is only 1 doc comment between open tag and class token.
                    
102                    $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar);
                    
103                    if ($newlineToken !== false) {
                    
103                    if ($newlineToken !== false) {
                    
104                        $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($newlineToken + 1), $stackPtr, false, $phpcsFile->eolChar);
                    
105                        if ($newlineToken !== false) {
                    
136        try {
                    
137            $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($commentString, $phpcsFile);
                    
138            $this->commentParser->parse();
                    
                
Array.php https://bitbucket.org/haichau59/manga.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            //require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            //require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
sqlvalidator.class.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 439 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * PHP interface to MimerSQL Validator
                    
5 *
                    
9 * All data is transported over HTTP-SOAP
                    
10 * And uses either the PEAR SOAP Module or PHP SOAP extension
                    
11 *
                    
12 * Install instructions for PEAR SOAP:
                    
13 * Make sure you have a really recent PHP with PEAR support
                    
14 * run this: "pear install Mail_Mime Net_DIME SOAP"
                    
17 *
                    
18 * @package PhpMyAdmin
                    
19 */
                    
19 */
                    
20if (! defined('PHPMYADMIN')) {
                    
21    exit;
                    
                
Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
                    
1<?php
                    
2
                    
16use Symfony\Component\DomCrawler\Form;
                    
17use Symfony\Component\Process\PhpProcess;
                    
18use Symfony\Component\BrowserKit\Request;
                    
86    {
                    
87        if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) {
                    
88            // @codeCoverageIgnoreStart
                    
226
                    
227        return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles());
                    
228    }
                    
236     * @param array   $files         The files
                    
237     * @param array   $server        The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
                    
238     * @param string  $content       The raw body data
                    
252        }
                    
253        $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST);
                    
254        $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);
                    
                
Xmlrpcs.php https://github.com/cawago/ci_campusync_auth.git | PHP | 536 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
17{	
                    
18	show_error('Your PHP installation does not support XML');
                    
19}
                    
20
                    
21if ( ! class_exists('CI_Xmlrpc'))
                    
22{
                    
534
                    
535/* End of file Xmlrpcs.php */
                    
536/* Location: ./system/libraries/Xmlrpcs.php */
                    
                
PHPUnitTask.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 390 lines
                    
99		 */
                    
100		require_once 'phing/tasks/ext/phpunit/PHPUnitTestRunner.php';
                    
101		require_once 'phing/tasks/ext/phpunit/BatchTest.php';
                    
131			PHPUnit2_Util_Filter::addFileToFilter($pwd . '/PHPUnitTask.php');
                    
132			PHPUnit2_Util_Filter::addFileToFilter($pwd . '/PHPUnitTestRunner.php');
                    
133			PHPUnit2_Util_Filter::addFileToFilter($pwd . '/../../../Task.php');
                    
191	{
                    
192		if (PHPUnitUtil::$installedVersion < 3 || (PHPUnitUtil::$installedVersion == 3 && PHPUnitUtil::$installedMinorVersion < 2))
                    
193		{
                    
206	{
                    
207		if (PHPUnitUtil::$installedVersion < 3 || (PHPUnitUtil::$installedVersion == 3 && PHPUnitUtil::$installedMinorVersion < 2))
                    
208		{
                    
276			
                    
277			if ((PHPUnitUtil::$installedVersion == 3 && is_subclass_of($test, 'PHPUnit_Framework_TestSuite')) || (PHPUnitUtil::$installedVersion == 2 && is_subclass_of($test, 'PHPUnit2_Framework_TestSuite')))
                    
278			{
                    
                
AdminTabsController.php https://gitlab.com/staging06/myproject | PHP | 377 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
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
189        $display_parent = true;
                    
190        if (Validate::isLoadedObject($this->object) && !class_exists($this->object->class_name.'Controller')) {
                    
191            $display_parent = false;
                    
                
Exception.php https://github.com/axxtel/agilebill.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
ExceptionHandler.php https://bitbucket.org/larryg/powerhut.git | PHP | 316 lines
                    
1<?php
                    
2
                    
23 *
                    
24 * It is mostly useful in debug mode to replace the default PHP/XDebug
                    
25 * output with something prettier and more useful.
                    
63     * this method will use it to create and send the response. If not,
                    
64     * it will fallback to plain PHP functions.
                    
65     *
                    
67     *
                    
68     * @see sendPhpResponse
                    
69     * @see createResponse
                    
72    {
                    
73        if (class_exists('Symfony\Component\HttpFoundation\Response')) {
                    
74            $this->createResponse($exception)->send();
                    
75        } else {
                    
76            $this->sendPhpResponse($exception);
                    
77        }
                    
                
HTMLModuleManager.php https://github.com/squidjam/friendika.git | PHP | 403 lines
                    
1<?php
                    
2
                    
151                $module = $prefix . $original_module;
                    
152                if (class_exists($module)) {
                    
153                    $ok = true;
                    
158                $module = $original_module;
                    
159                if (!class_exists($module)) {
                    
160                    trigger_error($original_module . ' module does not exist',
                    
                
user.php https://github.com/digitalstrategyworks/Reese-WordPress.git | PHP | 326 lines
                    
1<?php
                    
2if ( !class_exists( 'ad_user' ) ) {
                    
3  
                    
265    		<?php foreach ($user_type_taxonomy as $user_type_term) : ?>
                    
266			  <option value="<?php echo $user_type_term->term_id; ?>"<?php if ($user_type_term->term_id == $user_type) { echo ' selected="selected"'; } ?>><?php echo $user_type_term->name; ?></option>
                    
267			<?php endforeach; ?>
                    
269		    <p class="setting-description">Indicate whether the user is a
                    
270			<?php foreach ($user_type_taxonomy as $key => $user_type_term) : ?>
                    
271			  <?php 
                    
276              ?>
                    
277		    <?php endforeach; ?>
                    
278		    </p>
                    
279		</td>
                    
280<?php
                    
281      }
                    
                
ValidFunctionNameSniff.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 263 lines
                    
17if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) {
                    
18    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found');
                    
19}
                    
82     *
                    
83     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
84     * @param int                  $stackPtr  The position where this token was
                    
89     */
                    
90    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
91    {
                    
161     *
                    
162     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
163     * @param int                  $stackPtr  The position where this token was
                    
167     */
                    
168    protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
169    {
                    
                
javascript.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 625 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
75		
                    
76		if ( ! class_exists('EE_Spellcheck'))
                    
77		{
                    
77		{
                    
78			require APPPATH.'libraries/Spellcheck.php'; 
                    
79		}
                    
97
                    
98		if ( ! class_exists('EE_Spellcheck'))
                    
99		{
                    
99		{
                    
100			require APPPATH.'libraries/Spellcheck.php'; 
                    
101		}
                    
623
                    
624/* End of file javascript.php */
                    
625/* Location: ./system/expressionengine/controllers/cp/javascript.php */
                    
                
Command.php https://github.com/axxtel/agilebill.git | PHP | 416 lines
                    
9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
10 * the PHP License and are unable to obtain it through the web, please
                    
11 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 * @copyright  1997-2008 The PHP Group
                    
18 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
19 * @version    CVS: $Id: Command.php,v 1.39 2008/01/03 20:26:34 cellog Exp $
                    
26 */
                    
27require_once 'PEAR.php';
                    
28require_once 'PEAR/Frontend.php';
                    
101 * @copyright  1997-2008 The PHP Group
                    
102 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
103 * @version    Release: 1.7.2
                    
151        $class = $GLOBALS['_PEAR_Command_commandlist'][$command];
                    
152        if (!class_exists($class)) {
                    
153            require_once $GLOBALS['_PEAR_Command_objects'][$class];
                    
                
class.headmodule.php https://github.com/Emaratilicious/Garden.git | PHP | 391 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
10
                    
11if (!class_exists('HeadModule', FALSE)) {
                    
12   /**
                    
                
Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
                    
1<?php
                    
2/**
                    
6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl)
                    
7 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
8 * @link      https://github.com/barryvdh/laravel-ide-helper
                    
63     *
                    
64     * @param  string  $format  The format to generate the helper in (php/json)
                    
65     * @return string;
                    
66     */
                    
67    public function generate($format = 'php')
                    
68    {
                    
74
                    
75        return $this->generatePhpHelper();
                    
76    }
                    
77
                    
78    public function generatePhpHelper()
                    
79    {
                    
                
Test.php https://github.com/vivid-planet/library.git | PHP | 386 lines
                    
46
                    
47require_once 'PHPUnit/Util/Filesystem.php';
                    
48require_once 'PHPUnit/Util/Filter.php';
                    
49require_once 'PHPUnit/Util/Skeleton.php';
                    
50require_once 'PHPUnit/Util/Template.php';
                    
51
                    
51
                    
52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
53
                    
60 * @copyright  2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
61 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
62 * @version    Release: @package_version@
                    
65 */
                    
66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton
                    
67{
                    
                
moddashboardwidget.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
74                    ob_end_clean();
                    
75                    if (class_exists($className)) { /* is a class-based widget */
                    
76                        /** @var modDashboardWidgetInterface $widget */
                    
90                break;
                    
91            /* PHP (Snippet) widget */
                    
92            case 'php':
                    
92            case 'php':
                    
93                $widget = new modDashboardPhpWidget($this->xpdo,$this,$controller);
                    
94                break;
                    
135/**
                    
136 * A widget that runs its content as PHP in Snippet-like format to get its content.
                    
137 * @package modx
                    
139 */
                    
140class modDashboardPhpWidget extends modDashboardWidgetInterface {
                    
141    public function render() {
                    
                
ExplainAdminCommandTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 296 lines
                    
1<?php
                    
2
                    
25 */
                    
26class ExplainAdminCommandTest extends \PHPUnit_Framework_TestCase
                    
27{
                    
111
                    
112        // php 5.3 BC
                    
113        $adminParent = $this->getMock('Sonata\AdminBundle\Admin\AdminInterface');
                    
135
                    
136        // php 5.3 BC
                    
137        $admin = $this->admin;
                    
205
                    
206        // @todo Mock of \Traversable is available since Phpunit 3.8. This should be completed after stable release of Phpunit 3.8.
                    
207        // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103
                    
254
                    
255        // @todo Mock of \Traversable is available since Phpunit 3.8. This should be completed after stable release of Phpunit 3.8.
                    
256        // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103
                    
                
test.php https://github.com/pedroelsner/bake_utf8.git | PHP | 528 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Compatível com PHP 4 e 5
                    
6 *
                    
11
                    
12include_once dirname(__FILE__) . DS . 'bake_utf8.php';
                    
13
                    
139        $methods = array();
                    
140        if (class_exists($fullClassName)) {
                    
141            $methods = $this->getTestableMethods($fullClassName);
                    
497        }
                    
498        return $path . Inflector::underscore($className) . '.test.php';
                    
499    }
                    
                
page_link.php https://gitlab.com/Svyrydov/test-project | PHP | 697 lines
                    
1<?php
                    
2
                    
13
                    
14if( ! class_exists('acf_field_page_link') ) :
                    
15
                    
                
FunctionCommentThrowTagSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 215 lines
                    
17
                    
18if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) {
                    
19    $error = 'Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found';
                    
34 * @version   Release: @package_version@
                    
35 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
36 */
                    
53     *
                    
54     * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
                    
55     * @param int                  $stackPtr  The position where the token was found.
                    
59     */
                    
60    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
61    {
                    
93        try {
                    
94            $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile);
                    
95            $this->commentParser->parse();
                    
                
AbstractProxyFactory.php https://gitlab.com/reasonat/test8 | PHP | 248 lines
                    
1<?php
                    
2/*
                    
203
                    
204        if ( ! class_exists($proxyClassName, false)) {
                    
205            $fileName  = $this->proxyGenerator->getProxyFileName($className);
                    
                
Activemq.php https://github.com/grjones/qframe.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Activemq.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Queue/Stomp/Client.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Queue/Stomp/Frame.php';
                    
37
                    
100        ) {
                    
101            require_once 'Zend/Queue/Exception.php';
                    
102            throw new Zend_Queue_Exception("Unable to authenticate to '".$options['scheme'].'://'.$options['host'].':'.$options['port']."'");
                    
                
NormalizerFormatterTest.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 423 lines
                    
1<?php
                    
2
                    
16 */
                    
17class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
20    {
                    
21        \PHPUnit_Framework_Error_Warning::$enabled = true;
                    
22
                    
33            'datetime' => new \DateTime,
                    
34            'extra' => array('foo' => new TestFooNorm, 'bar' => new TestBarNorm, 'baz' => array(), 'res' => fopen('php://memory', 'rb')),
                    
35            'context' => array(
                    
89    {
                    
90        if (!class_exists('SoapFault')) {
                    
91            $this->markTestSkipped('Requires the soap extension');
                    
242    {
                    
243        if (version_compare(PHP_VERSION, '5.5.0', '<')) {
                    
244            // Ignore the warning that will be emitted by PHP <5.5.0
                    
                
lib.php https://github.com/cmiic/moodle.git | PHP | 494 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
81    public static function are_requirements_met() {
                    
82        return class_exists('Redis');
                    
83    }
                    
147        if ($redis->connect($server, $port)) {
                    
148            $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
                    
149            if (!empty($prefix)) {
                    
                
MimeType.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 440 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: MimeType.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
133        } elseif (!is_array($mimetype)) {
                    
134            require_once 'Zend/Validate/Exception.php';
                    
135            throw new Zend_Validate_Exception( "Invalid options to validator provided" );
                    
164            ) {
                    
165                require_once 'Zend/Validate/Exception.php';
                    
166                foreach ($this->_magicFiles as $file) {
                    
188     * Sets the magicfile to use
                    
189     * if null, the MAGIC constant from php is used
                    
190     * if the MAGIC file is errorous, no file will be set
                    
                
MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/DefaultPlatform.php';
                    
12
                    
96		$usingInnoDB = false;
                    
97		if (class_exists('DataModelBuilder', false)) {
                    
98			$usingInnoDB = strtolower($this->getBuildProperty('mysqlTableType')) == 'innodb';
                    
230		// Special handling of TIMESTAMP/DATETIME types ...
                    
231		// See: http://propel.phpdb.org/trac/ticket/538
                    
232		if ($sqlType == 'DATETIME') {
                    
                
class.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
                    
1<?php
                    
2
                    
2
                    
3if ( ! class_exists( 'WP_List_Table' ) )
                    
4	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
                    
74						<# if ( item.activated && 'vaultpress' !== item.module ) { #>
                    
75							<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
                    
76						<# } else if ( item.available ) { #>
                    
76						<# } else if ( item.available ) { #>
                    
77							<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
                    
78						<# } #>
                    
86				<tr class="no-modules-found">
                    
87					<td colspan="2"><?php esc_html_e( 'No Modules Found' , 'jetpack' ); ?></td>
                    
88				</tr>
                    
215			<div class="module-image">
                    
216				<p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p>
                    
217			</div>
                    
                
Test.php https://github.com/KaRLsM/SIFO.git | PHP | 386 lines
                    
46
                    
47require_once 'PHPUnit/Util/Filesystem.php';
                    
48require_once 'PHPUnit/Util/Filter.php';
                    
49require_once 'PHPUnit/Util/Skeleton.php';
                    
50require_once 'PHPUnit/Util/Template.php';
                    
51
                    
51
                    
52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
53
                    
60 * @copyright  2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
61 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
62 * @version    Release: 3.4.2
                    
65 */
                    
66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton
                    
67{
                    
                
controller.php https://github.com/xillibit/Kunena-forum.git | PHP | 507 lines
                    
1<?php
                    
2/**
                    
113
                    
114		$path = JPATH_COMPONENT . "/controllers/{$view}.php";
                    
115
                    
142
                    
143		if (class_exists($class))
                    
144		{
                    
361			// Version warning, disable J4 for now.
                    
362			require_once KPATH_ADMIN . '/install/version.php';
                    
363			$version         = new KunenaVersion;
                    
                
Abstract.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 408 lines
                    
1<?php
                    
2/*
                    
17
                    
18if (!class_exists('Google_Client')) {
                    
19  require_once dirname(__FILE__) . '/../autoload.php';
                    
25 * NOTE: We don't implement `Psr\Log\LoggerInterface` because we need to
                    
26 * maintain PHP 5.2 support.
                    
27 *
                    
27 *
                    
28 * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
                    
29 */
                    
317  /**
                    
318   * Reverses JSON encoded PHP arrays and objects so that they log better.
                    
319   *
                    
340  /**
                    
341   * Exports a PHP value for logging to a string.
                    
342   *
                    
                
memcached.php https://github.com/Hackwar/joomla-platform.git | PHP | 498 lines
                    
1<?php
                    
2/**
                    
16 * @subpackage  Cache
                    
17 * @see         http://php.net/manual/en/book.memcached.php
                    
18 * @since       12.1
                    
66	{
                    
67		if ((extension_loaded('memcached') && class_exists('Memcached')) != true)
                    
68		{
                    
317	{
                    
318		if ((extension_loaded('memcached') && class_exists('Memcached')) != true)
                    
319		{
                    
                
Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
83
                    
84            if ( ! class_exists($class)) {
                    
85                throw new Doctrine_Cache_Exception('Cache driver ' . $driver . ' could not be found.');
                    
                
Annotation.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 247 lines
                    
1<?php
                    
2
                    
16 * @author <rocco@roccosportal.com>
                    
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
18 */
                    
107        if ($annot = $this->reader->getClassAnnotation($class, self::CLOSURE)) {
                    
108            if (!class_exists($annot->class)) {
                    
109                throw new InvalidMappingException("Tree closure class: {$annot->class} does not exist.");
                    
                
systematics-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 135 lines
                    
1<?php
                    
2/**
                    
19
                    
20if (!class_exists ("c_ws_plugin__s2member_systematics_sp"))
                    
21	{
                    
44
                    
45						if ($uri && ($_q = c_ws_plugin__s2member_utils_urls::parse_url ($uri, PHP_URL_QUERY)) && preg_match ("/[\?&]s2member/", $_q) && c_ws_plugin__s2member_utils_conds::is_site_root ($uri))
                    
46							{
                    
70							}
                    
71						else if ($uri && preg_match ("/^\/(?:wp-.+?|xmlrpc)\.php$/", c_ws_plugin__s2member_utils_urls::parse_url ($uri, PHP_URL_PATH)))
                    
72							{
                    
                
DbStatement.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Test
                    
17 * @subpackage PHPUnit
                    
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DbStatement.php 25024 2012-07-30 15:08:15Z rob $
                    
21 */
                    
25 */
                    
26require_once "Zend/Db/Statement/Interface.php";
                    
27
                    
32 * @package    Zend_Test
                    
33 * @subpackage PHPUnit
                    
34 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
154    /**
                    
155     * Bind a column of the statement result set to a PHP variable.
                    
156     *
                    
                
Array.php https://github.com/skoop/Gesichtbuch.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 6352 2010-08-16 15:02:45Z tpater $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
SemanticForms.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
64# This is the path to your installation of Semantic Forms as
                    
65# seen on your local filesystem. Used against some PHP file path
                    
66# issues.
                    
109$wgSpecialPages['Forms'] = 'SFForms';
                    
110$wgAutoloadClasses['SFForms'] = $sfgIP . '/specials/SF_Forms.php';
                    
111$wgSpecialPageGroups['Forms'] = 'pages';
                    
112$wgSpecialPages['CreateForm'] = 'SFCreateForm';
                    
113$wgAutoloadClasses['SFCreateForm'] = $sfgIP . '/specials/SF_CreateForm.php';
                    
114$wgSpecialPageGroups['CreateForm'] = 'sf_group';
                    
115$wgSpecialPages['Templates'] = 'SFTemplates';
                    
116$wgAutoloadClasses['SFTemplates'] = $sfgIP . '/specials/SF_Templates.php';
                    
117$wgSpecialPageGroups['Templates'] = 'pages';
                    
118$wgSpecialPages['CreateTemplate'] = 'SFCreateTemplate';
                    
119$wgAutoloadClasses['SFCreateTemplate'] = $sfgIP . '/specials/SF_CreateTemplate.php';
                    
120$wgSpecialPageGroups['CreateTemplate'] = 'sf_group';
                    
                
DbStatement.php https://gitlab.com/rsilveira1987/Expresso | PHP | 381 lines
                    
1<?php
                    
2/**
                    
16 * @package    Test
                    
17 * @subpackage PHPUnit
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DbStatement.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
22
                    
23require_once "Zend/Db/Statement/Interface.php";
                    
24
                    
29 * @package    Zend_Test
                    
30 * @subpackage PHPUnit
                    
31 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
131    /**
                    
132     * Bind a column of the statement result set to a PHP variable.
                    
133     *
                    
                
DebugClassLoaderTest.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 296 lines
                    
1<?php
                    
2
                    
17
                    
18class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
63    {
                    
64        if (PHP_VERSION_ID >= 70000) {
                    
65            $this->markTestSkipped('PHP7 throws exceptions, unsilencing is not required anymore.');
                    
77        // but this should not be @-silenced.
                    
78        @class_exists(__NAMESPACE__.'\TestingUnsilencing', true);
                    
79
                    
87        // the ContextErrorException must not be loaded to test the workaround
                    
88        // for https://bugs.php.net/65322.
                    
89        if (class_exists('Symfony\Component\Debug\Exception\ContextErrorException', false)) {
                    
113            $this->assertStringStartsWith(__FILE__, $exception->getFile());
                    
114            if (PHP_VERSION_ID < 70000) {
                    
115                $this->assertRegExp('/^Runtime Notice: Declaration/', $exception->getMessage());
                    
                
MemcacheEngine.php https://gitlab.com/tixture55/cakeATM | PHP | 292 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.Cache.Engine
                    
14 * @package       Cake.Cache.Engine
                    
15 * @since         CakePHP(tm) v 1.2.0.4933
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
64	public function init($settings = array()) {
                    
65		if (!class_exists('Memcache')) {
                    
66			return false;
                    
135 * @return bool True if the data was successfully cached, false on failure
                    
136 * @see http://php.net/manual/en/memcache.set.php
                    
137 */
                    
                
NativeSessionStorage.php https://gitlab.com/madwanz64/laravel | PHP | 470 lines
                    
1<?php
                    
2
                    
20// Help opcache.preload discover always-needed symbols
                    
21class_exists(MetadataBag::class);
                    
22class_exists(StrictSessionHandler::class);
                    
22class_exists(StrictSessionHandler::class);
                    
23class_exists(SessionHandlerProxy::class);
                    
24
                    
67     *
                    
68     * @see https://php.net/session.configuration for options
                    
69     * but we omit 'session.' from the beginning of the keys for convenience.
                    
70     *
                    
71     * ("auto_start", is not supported as it tells PHP to start a session before
                    
72     * PHP starts to execute user-land code. Setting during runtime has no effect).
                    
85     * lazy_write, "1"
                    
86     * name, "PHPSESSID"
                    
87     * referer_check, ""
                    
                
sqlite.php https://bitbucket.org/eternaware/joomus.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
16 * @subpackage  Database
                    
17 * @see         http://php.net/pdo
                    
18 * @since       12.1
                    
380	{
                    
381		return class_exists('PDO') && in_array('sqlite', PDO::getAvailableDrivers());
                    
382	}
                    
                
 

Source

Language