PageRenderTime 1716ms queryTime 456ms sortTime 69ms getByIdsTime 462ms findMatchingLines 279ms

100+ results results for 'php get_class repo:fjordan/mongodb-php-odm' (1716 ms)

Not the results you expected?
VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
                    
1<?php
                    
2
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
151                            $stub->type = Stub::TYPE_OBJECT;
                    
152                            $stub->class = $zval['object_class'] ?: get_class($v);
                    
153                            $stub->value = $v;
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
300        $obj = (object) array();
                    
301        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
302        self::$hashMask = -1;
                    
321
                    
322        self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
                    
323    }
                    
                
Resource.php https://github.com/balupton/Zend-Framework-Mirror.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
147                'Expected array or Traversable; received "%s"',
                    
148                (is_object($headers) ? get_class($headers) : gettype($headers))
                    
149            ));
                    
                
ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.6
                    
49 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
51 * @since 0.9.6
                    
353                $index,
                    
354                get_class($this)
                    
355            )
                    
508    /**
                    
509     * The magic sleep method will be called by PHP's runtime environment right
                    
510     * before an instance of this class gets serialized. It should return an
                    
                
screen.php https://bitbucket.org/moodle/moodle.git | PHP | 460 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
92            // Get from cache.
                    
93            $perpage = $cache->get(get_class($this));
                    
94        } else {
                    
95            // Save to cache.
                    
96            $cache->set(get_class($this), $perpage);
                    
97        }
                    
123    public function format_link($screen, $itemid, $display = null) {
                    
124        $url = new moodle_url('/grade/report/singleview/index.php', array(
                    
125            'id' => $this->courseid,
                    
426
                    
427        require_once($CFG->dirroot.'/grade/lib.php');
                    
428        $gui = new \graded_users_iterator($this->course, null, $this->groupid);
                    
                
Resource.php https://github.com/ufwebadmin/MIT-Mobile-Web.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
view.php https://bitbucket.org/webpolis/hurli.git | PHP | 491 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
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://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.2
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20App::import('Controller', 'Controller', false);
                    
21include_once dirname(__FILE__) . DS . 'bake.php';
                    
22
                    
                
BaseFcvalinmold.php https://github.com/cidesa/roraima.git | PHP | 714 lines
                    
1<?php
                    
2
                    
469	
                    
470	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
471	{
                    
524	
                    
525	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
526	{
                    
546	
                    
547	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
548	{
                    
598	
                    
599	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
                    
600	{
                    
698	{
                    
699				$clazz = get_class($this);
                    
700		$copyObj = new $clazz();
                    
                
Repository.php https://gitlab.com/rsilveira1987/Expresso | PHP | 300 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
98                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
99                    require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
100                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
101                        'A provider provided by the ' . get_class($manifest) 
                    
102                        . ' does not implement Zend_Tool_Framework_Provider_Interface'
                    
271                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
272                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
273                $string .= $metadataString;
                    
                
Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
                    
1<?php
                    
2
                    
173				$this->unregisterInterface($interface);
                    
174				$logger->critical($this->server->getLanguage()->translateString("pocketmine.server.networkError", [get_class($interface), $e->getMessage()]));
                    
175			}
                    
                
sfPatternRouting.class.php https://github.com/bigcalm/urlcatcher.git | PHP | 537 lines
                    
1<?php
                    
2
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfPatternRouting.class.php 23180 2009-10-19 07:19:52Z FabianLange $
                    
20 */
                    
240      {
                    
241        $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Connect %s "%s" (%s)', get_class($route), $name, $route->getPattern()))));
                    
242      }
                    
327      {
                    
328        throw new sfConfigurationException(sprintf('Unable to find a matching route to generate url for params "%s".', is_object($params) ? 'Object('.get_class($params).')' : str_replace("\n", '', var_export($params, true))));
                    
329      }
                    
                
HTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
                    
1<?php
                    
2
                    
167        if (empty($module->name)) {
                    
168            trigger_error('Module instance of ' . get_class($module) . ' must have name');
                    
169            return;
                    
                
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 *
                    
54			/* references to ci loader variables */
                    
55			foreach (get_class_vars('CI_Loader') as $var => $val)
                    
56			{
                    
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';
                    
                
Container.php https://github.com/Exercise/zf2.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
365                'Bad method call: Unknown method %s::%s',
                    
366                get_class($this),
                    
367                $method));
                    
                
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   +----------------------------------------------------------------------+
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
224
                    
225			if (!preg_match('/(.*)Model/i', get_class($this), $r))
                    
226			{
                    
412
                    
413			if (!preg_match('/Model(.*)/i', get_class($this), $r))
                    
414			{
                    
                
Abstract.php https://bitbucket.org/ngmares/moodle.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
226        if (is_object($value)) {
                    
227            if (!in_array('__toString', get_class_methods($value))) {
                    
228                $value = get_class($value) . ' object';
                    
330        } else {
                    
331            require_once 'Zend/Validate/Exception.php';
                    
332            throw new Zend_Validate_Exception('Invalid translator specified');
                    
                
Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
203		{
                    
204			list($payload, $event) = [[$event], get_class($event)];
                    
205		}
                    
                
Image.php https://github.com/error10/Ushahidi_Web.git | PHP | 431 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
5 *
                    
6 * $Id: Image.php 3917 2009-01-21 03:06:22Z zombor $
                    
7 *
                    
10 * @copyright  (c) 2007-2008 Kohana Team
                    
11 * @license    http://kohanaphp.com/license.html
                    
12 */
                    
76
                    
77		// Disable error reporting, to prevent PHP warnings
                    
78		$ER = error_reporting(0);
                    
112		if ( ! Kohana::auto_load($driver))
                    
113			throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this));
                    
114
                    
119		if ( ! ($this->driver instanceof Image_Driver))
                    
120			throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Image_Driver');
                    
121	}
                    
                
StringPresenter.php https://gitlab.com/judielsm/Handora | PHP | 488 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
16use Exception;
                    
17use PhpSpec\Exception\Exception as PhpSpecException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
19use PhpSpec\Exception\Example\ErrorException;
                    
20use PhpSpec\Exception\Example\PendingException;
                    
33    /**
                    
34     * The PhpSpec base path.
                    
35     *
                    
57
                    
58        $this->phpspecPath = dirname(dirname(__DIR__));
                    
59        $this->runnerPath  = $this->phpspecPath.DIRECTORY_SEPARATOR.'Runner';
                    
                
StaticTest.php https://github.com/tanduy/zf.git | PHP | 397 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
28
                    
28
                    
29PHPUnit_Util_Filter::addFileToFilter(__FILE__);
                    
30
                    
33 */
                    
34require_once 'Zend/Db.php';
                    
35
                    
38 */
                    
39require_once 'Zend/Config.php';
                    
40
                    
43 */
                    
44require_once 'Zend/Db/Adapter/Static.php';
                    
45
                    
                
MarkdownDescriptor.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 367 lines
                    
1<?php
                    
2
                    
60            ."\n".'- Method: '.($route->getMethods() ? implode('|', $route->getMethods()) : 'ANY')
                    
61            ."\n".'- Class: '.get_class($route)
                    
62            ."\n".'- Defaults: '.$this->formatRouterConfig($route->getDefaults())
                    
115        } else {
                    
116            $this->write(sprintf("**`%s`:** `%s`", $options['id'], get_class($service)));
                    
117        }
                    
170                $this->write("\n");
                    
171                $this->write(sprintf('- `%s`: `%s`', $id, get_class($service)));
                    
172            }
                    
298                $string .= "\n".sprintf('- Name: `%s`', $callable[1]);
                    
299                $string .= "\n".sprintf('- Class: `%s`', get_class($callable[0]));
                    
300            } else {
                    
339            $string .= "\n- Type: `object`";
                    
340            $string .= "\n".sprintf('- Name: `%s`', get_class($callable));
                    
341
                    
                
MDB2Store.php https://gitlab.com/r.collas/site_central | PHP | 413 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'MDB2.php';
                    
17
                    
20 */
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22
                    
25 */
                    
26require_once 'Auth/OpenID.php';
                    
27
                    
30 */
                    
31require_once 'Auth/OpenID/Nonce.php';
                    
32
                    
                
FileUpload.php https://gitlab.com/fbi/october | PHP | 455 lines
                    
1<?php namespace Backend\FormWidgets;
                    
2
                    
255            throw new ApplicationException(Lang::get('backend::lang.model.missing_relation', [
                    
256                'class' => get_class($model),
                    
257                'relation' => $attribute
                    
                
bootstrap.php https://github.com/schinzi/symfony.git | PHP | 189 lines
                    
1<?php
                    
2namespace Symfony\Framework\Bundle;
                    
34        $finder = new Finder();
                    
35        $finder->files()->name('*Extension.php')->in($dir);
                    
36        $prefix = $this->namespacePrefix.'\\'.$this->name.'\\DependencyInjection';
                    
37        foreach ($finder as $file) {
                    
38            $class = $prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php');
                    
39            if ('Extension' === substr($class, -9)) {
                    
44        $finder = new Finder();
                    
45        $finder->files()->name('*Command.php')->in($dir);
                    
46        $prefix = $this->namespacePrefix.'\\'.$this->name.'\\Command';
                    
47        foreach ($finder as $file) {
                    
48            $r = new \ReflectionClass($prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php'));
                    
49            if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract()) {
                    
51    protected function initReflection() {
                    
52        $tmp = dirname(str_replace('\\', '/', get_class($this)));
                    
53        $this->namespacePrefix = str_replace('/', '\\', dirname($tmp));
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 516 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
47
                    
48		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
49			return false;
                    
74
                    
75		if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) )
                    
76			return false;
                    
124		/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
                    
125		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
126		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
476
                    
477		/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
                    
478		return array(
                    
                
StaticConfigTraitTest.php https://gitlab.com/vannh/portal_training | PHP | 457 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         3.0.0
                    
11 * @since         3.0.0
                    
12 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
13 */
                    
17use Cake\TestSuite\TestCase;
                    
18use PHPUnit_Framework_Test;
                    
19
                    
165    {
                    
166        $className = get_class($this->subject);
                    
167        $this->assertSame([], $className::parseDsn(''));
                    
                
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(
                    
79            'exception' => array(
                    
80                'class'   => get_class($e2),
                    
81                'message' => $e2->getMessage(),
                    
242    {
                    
243        if (version_compare(PHP_VERSION, '5.5.0', '<')) {
                    
244            // Ignore the warning that will be emitted by PHP <5.5.0
                    
                
AdminPaymentController.php https://gitlab.com/staging06/myproject | PHP | 313 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
                    
43                if ($module->id) {
                    
44                    if (!get_class($module) == 'SimpleXMLElement') {
                    
45                        $module->country = array();
                    
55
                    
56                    if (!get_class($module) == 'SimpleXMLElement') {
                    
57                        $module->currency = array();
                    
67
                    
68                    if (!get_class($module) == 'SimpleXMLElement') {
                    
69                        $module->group = array();
                    
                
class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
                    
1<?php
                    
2/**
                    
36	function __construct( $manager, $id, $args = array() ) {
                    
37		$keys = array_keys( get_class_vars( __CLASS__ ) );
                    
38		foreach ( $keys as $key ) {
                    
                
MarkdownDescriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 371 lines
                    
1<?php
                    
2
                    
57            ."\n".'- Method: '.($route->getMethods() ? implode('|', $route->getMethods()) : 'ANY')
                    
58            ."\n".'- Class: '.get_class($route)
                    
59            ."\n".'- Defaults: '.$this->formatRouterConfig($route->getDefaults())
                    
112        } else {
                    
113            $this->write(sprintf('**`%s`:** `%s`', $options['id'], get_class($service)));
                    
114        }
                    
167                $this->write("\n");
                    
168                $this->write(sprintf('- `%s`: `%s`', $id, get_class($service)));
                    
169            }
                    
302                $string .= "\n".sprintf('- Name: `%s`', $callable[1]);
                    
303                $string .= "\n".sprintf('- Class: `%s`', get_class($callable[0]));
                    
304            } else {
                    
343            $string .= "\n- Type: `object`";
                    
344            $string .= "\n".sprintf('- Name: `%s`', get_class($callable));
                    
345
                    
                
HasRoleAndPermission.php https://gitlab.com/puleeno/fiona-fashion | PHP | 397 lines
                    
1<?php
                    
2
                    
287        foreach ($this->getPermissions() as $permission) {
                    
288            if ($permission->model != '' && get_class($entity) == $permission->model
                    
289                && ($permission->id == $providedPermission || $permission->slug === $providedPermission)
                    
                
AdminPreferencesController.php https://gitlab.com/staging06/myproject | PHP | 246 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
                    
39        // Prevent classes which extend AdminPreferences to load useless data
                    
40        if (get_class($this) == 'AdminPreferencesController') {
                    
41            $round_mode = array(
                    
                
AdminApPageBuilderPositions.php https://gitlab.com/ptisky/API_prestashop | PHP | 398 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once(_PS_MODULE_DIR_.'appagebuilder/classes/ApPageBuilderPositionsModel.php');
                    
18
                    
157				if (preg_match('/[\?|&]controller=([^&]*)/', (string)$_SERVER['HTTP_REFERER'], $matches) !== false
                    
158						&& Tools::strtolower($matches[1]) != Tools::strtolower(preg_replace('/controller/i', '', get_class($this))))
                    
159					$this->redirect_after = preg_replace('/[\?|&]conf=([^&]*)/i', '', (string)$_SERVER['HTTP_REFERER']);
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
main.php https://bitbucket.org/crevillo/enetcall.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
269
                    
270        $requestClass = get_class( $request );
                    
271        if ( isset( ezcWebdavLockPlugin::$requestHandlingMap[$requestClass] ) )
                    
                
PlainTextHandler.php https://gitlab.com/fiesta-framework/Documentation | PHP | 375 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* Whoops - php errors for cool kids
                    
4* @author Filipe Dobreira <http://github.com/filp>
                    
83                " must be a valid Logger Interface (aka. Monolog), " .
                    
84                get_class($logger) . ' given.'
                    
85            );
                    
202    {
                    
203        return PHP_SAPI == 'cli';
                    
204    }
                    
309        // $response = sprintf("%s: %s in file %s on line %d%s\n",
                    
310        //         get_class($exception),
                    
311        //         $exception->getMessage(),
                    
326                $msg=$this->msg;
                    
327                //include_once '/core/Access/ErrorDisplayer/simple.php';
                    
328                ?>
                    
                
class.extensionmanager.php https://github.com/scottkf/nicholscommunications.git | PHP | 483 lines
                    
1<?php
                    
2
                    
2
                    
3	include_once(TOOLKIT . '/class.manager.php');
                    
4	include_once(TOOLKIT . '/class.extension.php');
                    
25        function __getDriverPath($name){
                    
26	        return $this->__getClassPath($name) . '/extension.driver.php';
                    
27        }
                    
122			// Make sure, if this extension has provided Fields, Data Sources or Events, that they aren't in use
                    
123			$extension_handle = strtolower(preg_replace('/^extension_/i', NULL, get_class($obj)));
                    
124
                    
126			if(is_dir(EXTENSIONS . "/{$extension_handle}/fields")){
                    
127				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
                    
128					$type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file));
                    
142			if(is_dir(EXTENSIONS . "/{$extension_handle}/data-sources")){
                    
143				foreach(glob(EXTENSIONS . "/{$extension_handle}/data-sources/data.*.php") as $file){
                    
144				
                    
                
StringPresenter.php https://gitlab.com/techniconline/kmc | PHP | 488 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
16use Exception;
                    
17use PhpSpec\Exception\Exception as PhpSpecException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
18use PhpSpec\Exception\Example\NotEqualException;
                    
19use PhpSpec\Exception\Example\ErrorException;
                    
20use PhpSpec\Exception\Example\PendingException;
                    
33    /**
                    
34     * The PhpSpec base path.
                    
35     *
                    
57
                    
58        $this->phpspecPath = dirname(dirname(__DIR__));
                    
59        $this->runnerPath = $this->phpspecPath . DIRECTORY_SEPARATOR . 'Runner';
                    
                
program.php https://bitbucket.org/crevillo/enetcall.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
105                        if ( $element === $elements[$i] )
                    
106                            throw new ezcTemplateInternalException( "Received element list with duplicate objects from parser " . get_class( $this->lastParser ) );
                    
107                    }
                    
159                {
                    
160                    throw new ezcTemplateInternalException( "Infinite recursion found in parser element " . get_class( $block ) );
                    
161                }
                    
174                {
                    
175                    throw new ezcTemplateInternalException( "Infinite recursion found in parser element " . get_class( $block ) );
                    
176                }
                    
208
                    
209 //                echo ("Closing block: ".  get_class( $element ) ."\n"  );
                    
210                $this->closeOpenBlock( $element );
                    
248            throw new ezcTemplateParserException( $this->parser->source, $this->startCursor, $this->currentCursor, 
                    
249                              "Found closing block {" . $element->name . "} without a previous block element <" . get_class( $this->lastBlock ) . ">" );
                    
250
                    
                
helper_test.php https://bitbucket.org/moodle/moodle.git | PHP | 281 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
21global $CFG;
                    
22require_once($CFG->dirroot . '/repository/googledocs/tests/repository_googledocs_testcase.php');
                    
23require_once($CFG->dirroot . '/repository/googledocs/lib.php');
                    
149        // Assert that the returned browser class by get_browser() is equal to the expected one.
                    
150        $this->assertEquals($expected, get_class($browser));
                    
151    }
                    
202        // Assert that the returned content node class by get_node() is equal to the expected one.
                    
203        $this->assertEquals($expected, get_class($node));
                    
204    }
                    
                
ControllerTest.php https://bitbucket.org/thesyncim/admin-biarq.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
25		$postsController = new MockPostsController(compact('request'));
                    
26		$result = get_class($postsController->request);
                    
27		$this->assertEqual($result, 'lithium\tests\mocks\action\MockControllerRequest');
                    
31	 * Tests the use of `Controller::__invoke()` for dispatching requests to action methods.  Also
                    
32	 * tests that using PHP's callable syntax yields the same result as calling `__invoke()`
                    
33	 * explicitly.
                    
                
AbstractCommand.php https://gitlab.com/x33n/ampache | PHP | 390 lines
                    
1<?php
                    
2
                    
299    {
                    
300        return new Operation(array('name' => get_class($this)));
                    
301    }
                    
                
class-tagline-box.php https://gitlab.com/webkod3r/tripolis | PHP | 285 lines
                    
1<?php
                    
2/**
                    
14			// Add name of the class to deserialize it again when the element is sent back to the server from the web page
                    
15			$this->config['php_class'] 		= get_class($this);
                    
16			// element id
                    
                
Resource.php https://github.com/sitengine/sitengine.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
115            if (!$this->hasResourceType($type)) {
                    
116                require_once 'Zend/Loader/Exception.php';
                    
117                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
class-wp-image-editor-imagick.php https://gitlab.com/Gashler/dp | PHP | 477 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
45
                    
46		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
47			return false;
                    
72
                    
73		if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) )
                    
74			return false;
                    
121
                    
122		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
123		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
                
BaseNotStorageEntityModel.php https://github.com/sergiygladkyy/OEF.git | PHP | 401 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('lib/model/base/BaseModel.php');
                    
4
                    
246            {
                    
247               throw new Exception(__METHOD__.': not supported model class "'.get_class($val).'"');
                    
248            }
                    
                
Form.php https://github.com/rsky/symfony.git | PHP | 373 lines
                    
1<?php
                    
2
                    
182        }
                    
183        return md5($secret.$sessId.get_class($this));
                    
184    }
                    
207                } else {
                    
208                    $csrfSecret = md5(__FILE__.php_uname());
                    
209                }
                    
337            switch (strtolower(substr($max, -1))) {
                    
338                // The 'G' modifier is available since PHP 5.1.0
                    
339                case 'g':
                    
                
MigrateExecutableTest.php https://gitlab.com/guillaumev/alkarama | PHP | 449 lines
                    
1<?php
                    
2
                    
19   *
                    
20   * @var \Drupal\migrate\Plugin\MigrationInterface|\PHPUnit_Framework_MockObject_MockObject
                    
21   */
                    
26   *
                    
27   * @var \Drupal\migrate\MigrateMessageInterface|\PHPUnit_Framework_MockObject_MockObject
                    
28   */
                    
424   *
                    
425   * @return \Drupal\migrate\Plugin\MigrateSourceInterface|\PHPUnit_Framework_MockObject_MockObject
                    
426   *   The mocked migration source.
                    
433      ->disableOriginalConstructor()
                    
434      ->setMethods(get_class_methods($class))
                    
435      ->getMockForAbstractClass();
                    
                
function.html_options.php https://gitlab.com/adamlwalker/generatedata | PHP | 174 lines
                    
1<?php
                    
2/**
                    
26 * 
                    
27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image}
                    
28 *      (Smarty online manual)
                    
37{
                    
38    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
39
                    
74                            } else {
                    
75                                trigger_error("html_options: selected attribute contains an object of class '". get_class($_sel) ."' without __toString() method", E_USER_NOTICE);
                    
76                                continue;
                    
86                    } else {
                    
87                        trigger_error("html_options: selected attribute is an object of class '". get_class($_val) ."' without __toString() method", E_USER_NOTICE);
                    
88                    }
                    
149            } else {
                    
150                trigger_error("html_options: value is an object of class '". get_class($value) ."' without __toString() method", E_USER_NOTICE);
                    
151                return '';
                    
                
opartslideshow.php https://gitlab.com/ptisky/API_prestashop | PHP | 347 lines
                    
1<?php

                    
2// Security

                    
6// Loading Models

                    
7require_once(_PS_MODULE_DIR_ . 'opartslideshow/models/MySlideshow.php');

                    
8require_once(_PS_MODULE_DIR_ . 'opartslideshow/models/MyImage.php');

                    
35		// Install SQL

                    
36		include(dirname(__FILE__).'/sql/install.php');

                    
37		foreach ($sql as $s)

                    
93		// Uninstall SQL

                    
94		include(dirname(__FILE__).'/sql/uninstall.php');

                    
95		foreach ($sql as $s)

                    
151		

                    
152		if(get_class($this->context->controller)=="IndexController") {

                    
153			foreach($results as $result) {

                    
158		}

                    
159		if(get_class($this->context->controller)=="CategoryController") {

                    
160			$idCat=(int)Tools::getValue('id_category');

                    
                
AbstractWriter.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
134                __NAMESPACE__,
                    
135                is_object($filter) ? get_class($filter) : gettype($filter)
                    
136            ));
                    
171                __NAMESPACE__,
                    
172                is_object($plugins) ? get_class($plugins) : gettype($plugins)
                    
173            ));
                    
221                    __NAMESPACE__,
                    
222                    is_object($plugins) ? get_class($plugins) : gettype($plugins)
                    
223                )
                    
298                __NAMESPACE__,
                    
299                is_object($formatter) ? get_class($formatter) : gettype($formatter)
                    
300            ));
                    
                
RendererAbstract.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 540 lines
                    
1<?php
                    
2/**
                    
105        $this->_type = strtolower(substr(
                    
106            get_class($this),
                    
107            strlen($this->_rendererNamespace) + 1
                    
176        if (!is_numeric($value) || intval($value) < 0) {
                    
177            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
178            throw new Zend_Barcode_Renderer_Exception(
                    
203        if (!is_numeric($value) || intval($value) < 0) {
                    
204            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
205            throw new Zend_Barcode_Renderer_Exception(
                    
240        if (!in_array($value, array('left' , 'center' , 'right'))) {
                    
241            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
242            throw new Zend_Barcode_Renderer_Exception(
                    
267        if (!in_array($value, array('top' , 'middle' , 'bottom'))) {
                    
268            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
269            throw new Zend_Barcode_Renderer_Exception(
                    
                
table_helper.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 344 lines
                    
1<?php
                    
2/*
                    
51	$CI =& get_instance();
                    
52	$controller_name=strtolower(get_class($CI));
                    
53	$width = $controller->get_form_width();
                    
117	$CI =& get_instance();
                    
118	$controller_name=strtolower(get_class($CI));
                    
119	$width = $controller->get_form_width();
                    
195	$tax_percents=substr($tax_percents, 0, -2);
                    
196	$controller_name=strtolower(get_class($CI));
                    
197	$width = $controller->get_form_width();
                    
267	$CI =& get_instance();
                    
268	$controller_name=strtolower(get_class($CI));
                    
269	$width = $controller->get_form_width();
                    
330	$CI =& get_instance();
                    
331	$controller_name=strtolower(get_class($CI));
                    
332	$width = $controller->get_form_width();
                    
                
Recur.php https://gitlab.com/rsilveira1987/Expresso | PHP | 455 lines
                    
1<?php
                    
2/**
                    
126				if (is_object($rule)) {
                    
127					$ruletype = get_class($rule);
                    
128				} elseif (is_array($rule)) {
                    
274	
                    
275		$this->rules[get_class($rule)] = $rule;
                    
276		return $this;
                    
                
BaseMailerTest.php https://gitlab.com/brucealdridge/yii2 | PHP | 449 lines
                    
146        $viewName = 'test_view';
                    
147        $viewFileName = $this->getTestFilePath() . DIRECTORY_SEPARATOR . $viewName . '.php';
                    
148        $viewFileContent = '<?php echo $testParam; ?>';
                    
167        $viewName = 'test_view2';
                    
168        $viewFileName = $filePath . DIRECTORY_SEPARATOR . $viewName . '.php';
                    
169        $viewFileContent = 'view file content';
                    
172        $layoutName = 'test_layout';
                    
173        $layoutFileName = $filePath . DIRECTORY_SEPARATOR . $layoutName . '.php';
                    
174        $layoutFileContent = 'Begin Layout <?php echo $content; ?> End Layout';
                    
217                1,
                    
218                'HTML <b>view file</b> content <a href="http://yiifresh.com/index.php?r=site%2Freset-password&amp;token=abcdef">http://yiifresh.com/index.php?r=site%2Freset-password&amp;token=abcdef</a>',
                    
219                'HTML view file content http://yiifresh.com/index.php?r=site%2Freset-password&token=abcdef',
                    
228
                    
229     <a href="http://yiifresh.com/index.php?r=site%2Freset-password&amp;token=abcdef">http://yiifresh.com/index.php?r=site%2Freset-password&amp;token=abcdef</a>
                    
230
                    
                
AdminPaymentController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 313 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-2016 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
                    
43                if ($module->id) {
                    
44                    if (!get_class($module) == 'SimpleXMLElement') {
                    
45                        $module->country = array();
                    
55
                    
56                    if (!get_class($module) == 'SimpleXMLElement') {
                    
57                        $module->currency = array();
                    
67
                    
68                    if (!get_class($module) == 'SimpleXMLElement') {
                    
69                        $module->group = array();
                    
                
XmlFileLoaderTest.php https://github.com/thewiredman/symfony.git | PHP | 254 lines
                    
1<?php
                    
2
                    
21
                    
22class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
28        self::$fixturesPath = realpath(__DIR__.'/../Fixtures/');
                    
29        require_once self::$fixturesPath.'/includes/ProjectExtension.php';
                    
30        require_once self::$fixturesPath.'/includes/ProjectWithXsdExtension.php';
                    
68        $xml = $loader->parseFile(self::$fixturesPath.'/xml/services1.xml');
                    
69        $this->assertEquals('Symfony\\Component\\DependencyInjection\\SimpleXMLElement', get_class($xml), '->parseFile() returns an SimpleXMLElement object');
                    
70    }
                    
80
                    
81        $this->assertEquals($expected, $actual, '->load() converts XML values to PHP ones');
                    
82    }
                    
109        $this->assertEquals(1, count($args), '->load() references anonymous services as "normal" ones');
                    
110        $this->assertEquals('Symfony\\Component\\DependencyInjection\\Reference', get_class($args[0]), '->load() converts anonymous services to references to "normal" services');
                    
111        $this->assertTrue(isset($services[(string) $args[0]]), '->load() makes a reference to the created ones');
                    
                
Service.php https://github.com/jpratt/cal.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
145    {
                    
146        $methods = get_class_methods($this);
                    
147        foreach ($options as $key => $value) {
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
                
AdminPreferencesController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 246 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-2016 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
                    
39        // Prevent classes which extend AdminPreferences to load useless data
                    
40        if (get_class($this) == 'AdminPreferencesController') {
                    
41            $round_mode = array(
                    
                
Log.php https://github.com/zeon/qpkg-piwik.git | PHP | 432 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Log.php 22632 2010-07-18 18:30:08Z ramon $
                    
20 */
                    
26 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
27 * @version    $Id: Log.php 22632 2010-07-18 18:30:08Z ramon $
                    
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            $writerName = is_object($writer)
                    
134                        ? get_class($writer)
                    
135                        : 'The specified writer';
                    
136            /** @see Zend_Log_Exception */
                    
137            // require_once 'Zend/Log/Exception.php';
                    
138            throw new Zend_Log_Exception("{$writerName} does not extend Zend_Log_Writer_Abstract!");
                    
                
subpaneldefs.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 341 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
45		'top_buttons' => array(
                    
46			array('widget_class' => 'SubPanelTopCreateNoteButton'),
                    
47			array('widget_class' => 'SubPanelTopArchiveEmailButton'),
                    
47			array('widget_class' => 'SubPanelTopArchiveEmailButton'),
                    
48            array('widget_class' => 'SubPanelTopSummaryButton'),
                    
49		),
                    
56			 		 	'name' => 'nothing',
                    
57						'widget_class' => 'SubPanelIcon',
                    
58			 		 	'module' => 'Meetings',
                    
63			 		 	'vname' => 'LBL_LIST_SUBJECT',
                    
64						'widget_class' => 'SubPanelDetailViewLink',
                    
65		 		 		'width' => '28%',
                    
74			 		 	'module' => 'Contacts',
                    
75						'widget_class' => 'SubPanelDetailViewLink',
                    
76			 		 	'target_record_key' => 'contact_id',
                    
                
userfield.php https://gitlab.com/Rad1calDreamer/honey | PHP | 529 lines
                    
1<?php
                    
2/**
                    
143					'UTS_OBJECT.'.$utsFieldName,
                    
144					array('data_type' => get_class($utsField))
                    
145				);
                    
192						$utmEntity->getFullName().':PARENT_'.$utmFieldName.'.'.$utmField->getColumnName(),
                    
193						array('data_type' => get_class($utmField))
                    
194					);
                    
                
Debug.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 204 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
106            if (isset($data['class']) && isset($data['function'])) {
                    
107                if (isset($data['object']) && get_class($data['object']) != $data['class']) {
                    
108                    $className = get_class($data['object']) . '[' . $data['class'] . ']';
                    
165        if (is_object($arg)) {
                    
166            $out .= sprintf("&%s#%s#", get_class($arg), spl_object_hash($arg));
                    
167
                    
                
function.html_radios.php https://gitlab.com/fangfangchen/xianpipa | PHP | 200 lines
                    
1<?php
                    
2/**
                    
11 * 
                    
12 * File:       function.html_radios.php<br>
                    
13 * Type:       function<br>
                    
34 * 
                    
35 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
                    
36 *      (Smarty online manual)
                    
46{
                    
47    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
48
                    
74                    } else {
                    
75                        trigger_error("html_radios: selected attribute is an object of class '". get_class($_val) ."' without __toString() method", E_USER_NOTICE);
                    
76                    }
                    
147        } else {
                    
148            trigger_error("html_options: value is an object of class '". get_class($value) ."' without __toString() method", E_USER_NOTICE);
                    
149            return '';
                    
                
Abstract.php https://bitbucket.org/simukti/zf1.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 24807 2012-05-15 12:10:42Z adamlundrigan $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
226        if (is_object($value)) {
                    
227            if (!in_array('__toString', get_class_methods($value))) {
                    
228                $value = get_class($value) . ' object';
                    
                
Lib.php https://github.com/bigcalm/urlcatcher.git | PHP | 388 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Lib.php 6484 2009-10-12 17:40:41Z jwage $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
26 * @subpackage  Lib
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link        www.phpdoctrine.org
                    
196        $r[] = "<pre>";
                    
197        $r[] = get_class($collection);
                    
198        $r[] = 'data : ' . Doctrine_Core::dump($collection->getData(), false);
                    
205    // Code from symfony sfToolkit class. See LICENSE
                    
206    // code from php at moechofe dot com (array_merge comment on php.net)
                    
207    /*
                    
                
wysija_nl.php https://gitlab.com/Gashler/sg | PHP | 354 lines
                    
1<?php
                    
2/**
                    
28					'controller' => $controller,
                    
29					'ajaxurl' => admin_url( 'admin-ajax.php', ( $model_config->getValue( 'relative_ajax' ) == '' ? 'admin' : 'relative' ) ),
                    
30				);
                    
48
                    
49		$this->classid = strtolower( str_replace( __CLASS__ . '_', '', get_class( $this ) ) );
                    
50		$this->WP_Widget( $namekey, $title, $params,$sizeWindow );
                    
211
                    
212                                        $field_html = '<a href="admin.php?page=wysija_config&action=form_add&_wpnonce='.wp_create_nonce('wysija_config-action_form_add').'" target="_blank" title="'.$field_params['label'].'">'.$field_params['label'].'</a>';
                    
213					break;
                    
246		// we need that part on every form for the different instances of a form on the same page
                    
247		//widget id should include the type of widget iframe, php, etc...
                    
248		if ( isset( $args['widget_id'] ) ) {
                    
                
adodb-active-record.inc.php https://bitbucket.org/DenizYldrm/openemr.git | PHP | 608 lines
                    
1<?php
                    
2/*
                    
71	
                    
72	// php4 constructor
                    
73	function ADODB_Active_Record($table = false, $pkeyarr=false, $db=false)
                    
77	
                    
78	// php5 constructor
                    
79	function __construct($table = false, $pkeyarr=false, $db=false)
                    
89			if (!empty($this->_table)) $table = $this->_table;
                    
90			else $table = $this->_pluralize(get_class($this));
                    
91		}
                    
106	{
                    
107  		$class = get_class($this);
                    
108  		new $class;
                    
236			$s = serialize($activetab);
                    
237			if (!function_exists('adodb_write_file')) include(ADODB_DIR.'/adodb-csvlib.inc.php');
                    
238			adodb_write_file($fname,$s);
                    
                
Image.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 503 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
5 *
                    
6 * $Id: Image.php 4679 2009-11-10 01:45:52Z isaiah $
                    
7 *
                    
10 * @copyright  (c) 2007-2009 Kohana Team
                    
11 * @license    http://kohanaphp.com/license
                    
12 */
                    
76		if ($check === FALSE)
                    
77			throw new Kohana_Exception('The Image library requires the getimagesize() PHP function, which is not available in your installation.');
                    
78
                    
82
                    
83		// Disable error reporting, to prevent PHP warnings
                    
84		$ER = error_reporting(0);
                    
121			throw new Kohana_Exception('The :driver: driver for the :library: library could not be found',
                    
122									   array(':driver:' => $this->config['driver'], ':library:' => get_class($this)));
                    
123
                    
                
functions.php https://gitlab.com/ealexis.t/trends | PHP | 330 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
45        case 'object':
                    
46            return 'object(' . get_class($input) . ')';
                    
47        case 'array':
                    
92
                    
93    return fopen('php://output', 'w');
                    
94}
                    
140        }
                    
141        $defaultAgent .= ' PHP/' . PHP_VERSION;
                    
142    }
                    
296 * @throws \InvalidArgumentException if the JSON cannot be decoded.
                    
297 * @link http://www.php.net/manual/en/function.json-decode.php
                    
298 */
                    
318 * @throws \InvalidArgumentException if the JSON cannot be encoded.
                    
319 * @link http://www.php.net/manual/en/function.json-encode.php
                    
320 */
                    
                
Navigation.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
                    
27
                    
184            if ($strict) {
                    
185                require_once 'Zend/View/Exception.php';
                    
186                $e = new Zend_View_Exception(sprintf(
                    
188                        'Zend_View_Helper_Navigation_Helper',
                    
189                        get_class($helper)));
                    
190                $e->setView($this->view);
                    
                
Binary.php https://gitlab.com/billyprice1/app-download.org | PHP | 423 lines
                    
1<?php
                    
2
                    
80                throw new \UnexpectedValueException(
                    
81                    'Message ' . get_class($message) . '\'s field tag ' . $tag . '(' . $field->getName() . ') is required but has no value'
                    
82                );
                    
                
ErrorHandler.php https://gitlab.com/rsilveira1987/Expresso | PHP | 257 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23require_once 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
35 * @version    $Id: ErrorHandler.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
36 */
                    
224            $exception        = $exceptions[0];
                    
225            $exceptionType    = get_class($exception);
                    
226            $error->exception = $exception;
                    
                
AbstractCriteria.php https://gitlab.com/yousafsyed/easternglamor | PHP | 304 lines
                    
1<?php
                    
2/**
                    
41                    'Missed Mapper Interface for Criteria Interface: %1',
                    
42                    [get_class($this)]
                    
43                )
                    
                
model.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 353 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: model.php 14401 2010-01-26 14:10:00Z louis $
                    
4* @package		Joomla.Framework
                    
6* @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7* @license		GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
200			$r = null;
                    
201			if (!preg_match('/Model(.*)/i', get_class($this), $r)) {
                    
202				JError::raiseError (500, "JModel::getName() : Can't get or parse class name.");
                    
346			case 'model':
                    
347				$filename = strtolower($parts['name']).'.php';
                    
348				break;
                    
                
Json.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 243 lines
                    
1<?php
                    
2/**
                    
67
                    
68        #require_once 'Zend/Json/Decoder.php';
                    
69        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
97
                    
98        #require_once 'Zend/Json/Encoder.php';
                    
99        return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
112     *
                    
113     * This function converts the XML formatted string into a PHP array by
                    
114     * calling a recursive (protected static) function in this class. Then, it
                    
114     * calling a recursive (protected static) function in this class. Then, it
                    
115     * converts that PHP array into JSON by calling the "encode" static funcion.
                    
116     *
                    
132        if ($simpleXmlElementObject == null) {
                    
133            #require_once 'Zend/Json/Exception.php';
                    
134            throw new Zend_Json_Exception('Function fromXml was called with an invalid XML formatted string.');
                    
                
VcsDownloader.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 284 lines
                    
1<?php
                    
2
                    
80            } catch (\Exception $e) {
                    
81                // rethrow phpunit exceptions to avoid hard to debug bug failures
                    
82                if ($e instanceof \PHPUnit_Framework_Exception) {
                    
85                if ($this->io->isDebug()) {
                    
86                    $this->io->writeError('Failed: ['.get_class($e).'] '.$e->getMessage());
                    
87                } elseif (count($urls)) {
                    
138            } catch (\Exception $exception) {
                    
139                // rethrow phpunit exceptions to avoid hard to debug bug failures
                    
140                if ($exception instanceof \PHPUnit_Framework_Exception) {
                    
143                if ($this->io->isDebug()) {
                    
144                    $this->io->writeError('Failed: ['.get_class($exception).'] '.$exception->getMessage());
                    
145                } elseif (count($urls)) {
                    
                
class-wc-api-resource.php https://gitlab.com/campus-academy/krowkaramel | PHP | 409 lines
                    
1<?php
                    
2/**
                    
193			// define the top-level property name for the meta
                    
194			switch ( get_class( $resource ) ) {
                    
195
                    
                
restore_ui_components.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 433 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
203                context_helper::preload_from_record($result);
                    
204                $classname = context_helper::get_class_for_level($contextlevel);
                    
205                $context = $classname::instance($result->id);
                    
                
Abstract.php https://bitbucket.org/FREEZX/finkical.git | PHP | 332 lines
                    
1<?php
                    
2
                    
19 *
                    
20 * PHP Version 5
                    
21 *
                    
21 *
                    
22 * @file     CAS/ProxiedService/Http/Abstract.php
                    
23 * @category Authentication
                    
23 * @category Authentication
                    
24 * @package  PhpCAS
                    
25 * @author   Adam Franco <afranco@middlebury.edu>
                    
26 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
27 * @link     https://wiki.jasig.org/display/CASC/phpCAS
                    
28 */
                    
31 * This class implements common methods for ProxiedService implementations included
                    
32 * with phpCAS.
                    
33 *
                    
                
Serializer.php https://github.com/elrolito/zendamf-for-kohana.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 23651 2011-01-21 21:51:00Z mikaelkael $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
RendererAbstract.php https://bitbucket.org/kdms/sh-magento.git | PHP | 540 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: RendererAbstract.php 22999 2010-09-23 19:43:14Z mikaelkael $
                    
21 */
                    
105        $this->_type = strtolower(substr(
                    
106            get_class($this),
                    
107            strlen($this->_rendererNamespace) + 1
                    
176        if (!is_numeric($value) || intval($value) < 0) {
                    
177            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
178            throw new Zend_Barcode_Renderer_Exception(
                    
203        if (!is_numeric($value) || intval($value) < 0) {
                    
204            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
205            throw new Zend_Barcode_Renderer_Exception(
                    
240        if (!in_array($value, array('left' , 'center' , 'right'))) {
                    
241            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
242            throw new Zend_Barcode_Renderer_Exception(
                    
                
LogExecutedActionsExtensionTest.php https://gitlab.com/cuitianze/eduwind | PHP | 434 lines
                    
1<?php
                    
2namespace Payum\Tests\Bridge\Psr\Log;
                    
10
                    
11class LogExecutedActionsExtensionTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
15        if (false == interface_exists('Psr\Log\LoggerInterface')) {
                    
16            throw new \PHPUnit_Framework_SkippedTestError('To run these tests install psr log lib.');
                    
17        }
                    
224            ->method('debug')
                    
225            ->with('[Payum] 1# '.get_class($action).'::execute(string)')
                    
226        ;
                    
229            ->method('debug')
                    
230            ->with('[Payum] 1# '.get_class($action).'::execute(array)')
                    
231        ;
                    
253            ->method('debug')
                    
254            ->with('[Payum] 1# '.get_class($action).'::execute(stdClass)')
                    
255        ;
                    
                
Abstract.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 460 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 25105 2012-11-07 20:33:22Z rob $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
226        if (is_object($value)) {
                    
227            if (!in_array('__toString', get_class_methods($value))) {
                    
228                $value = get_class($value) . ' object';
                    
                
VarCloner.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 300 lines
                    
1<?php
                    
2
                    
143                    case 'object':
                    
144                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
145                            $stub = new Stub();
                    
146                            $stub->type = Stub::TYPE_OBJECT;
                    
147                            $stub->class = $zval['object_class'] ?: get_class($v);
                    
148                            $stub->value = $v;
                    
159                                } else {
                    
160                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
161                                }
                    
276        $obj = (object) array();
                    
277        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
278        self::$hashMask = -1;
                    
284            $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush');
                    
285            foreach (debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) {
                    
286                if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && in_array($frame['function'], $obFuncs)) {
                    
                
Mcrypt.php https://gitlab.com/yousafsyed/easternglamor | PHP | 508 lines
                    
1<?php
                    
2/**
                    
202                __NAMESPACE__,
                    
203                (is_object($plugins) ? get_class($plugins) : gettype($plugins))
                    
204            ));
                    
                
ProfileTest.php https://github.com/taste/zf2.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
39 */
                    
40class ProfileTest extends \PHPUnit_Framework_TestCase
                    
41{
                    
102        $this->assertEquals('Zend\Tool\Project\Profile\Resource', get_class($projectDirectoryResource));
                    
103        $this->assertEquals('Zend\Tool\Project\Context\System\ProjectDirectory', get_class($projectDirectoryResource->getContext()));
                    
104    }
                    
117
                    
118        $this->assertEquals('Zend\Tool\Project\Profile\Resource', get_class($projectDirectoryResource));
                    
119        $this->assertEquals('Zend\Tool\Project\Context\System\ProjectDirectory', get_class($projectDirectoryResource->getContext()));
                    
170        $this->_standardProfileFromData->loadFromData();
                    
171        $expectedValue = '<?xml version="1.0"?><projectProfile>  <projectDirectory>    <projectProfileFile filesystemName=".zfproject.xml"/>    <applicationDirectory classNamePrefix="Application_">      <apisDirectory enabled="false"/>      <configsDirectory>        <applicationConfigFile type="ini"/>      </configsDirectory>      <controllersDirectory>        <controllerFile controllerName="index"/>        <controllerFile controllerName="error"/>      </controllersDirectory>      <layoutsDirectory enabled="false"/>      <modelsDirectory/>      <modulesDirectory enabled="false"/>      <viewsDirectory>        <viewScriptsDirectory>          <viewControllerScriptsDirectory forControllerName="index">            <viewScriptFile scriptName="index"/>          </viewControllerScriptsDirectory>        </viewScriptsDirectory>        <viewHelpersDirectory/>        <viewFiltersDirectory enabled="false"/>      </viewsDirectory>      <bootstrapFile filesystemName="Bootstrap.php"/>    </applicationDirectory>    <dataDirectory enabled="false">      <cacheDirectory enabled="false"/>      <searchIndexesDirectory enabled="false"/>      <localesDirectory enabled="false"/>      <logsDirectory enabled="false"/>      <sessionsDirectory enabled="false"/>      <uploadsDirectory enabled="false"/>    </dataDirectory>    <libraryDirectory>      <zfStandardLibraryDirectory/>    </libraryDirectory>    <publicDirectory>      <publicStylesheetsDirectory enabled="false"/>      <publicScriptsDirectory enabled="false"/>      <publicImagesDirectory enabled="false"/>      <publicIndexFile filesystemName="index.php"/>      <htaccessFile filesystemName=".htaccess"/>    </publicDirectory>    <projectProvidersDirectory enabled="false"/>  </projectDirectory></projectProfile>';
                    
172        $this->assertEquals($expectedValue, str_replace(array("\r\n", "\n"), '', $this->_standardProfileFromData->storeToData()));
                    
192
                    
193        $this->assertEquals('Zend\Tool\Project\Profile\Resource', get_class($modelsDirectoryResource));
                    
194        $this->assertEquals('Zend\Tool\Project\Context\Zf\ModelsDirectory', get_class($modelsDirectoryResource->getContext()));
                    
                
PluginsManager.php https://github.com/ntulip/piwik.git | PHP | 541 lines
                    
1<?php
                    
2/**
                    
6 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
                    
7 * @version $Id: PluginsManager.php 1492 2009-10-11 20:49:29Z vipsoft $
                    
8 * 
                    
16/**
                    
17 * @see core/PluginsFunctions/Menu.php
                    
18 * @see core/PluginsFunctions/AdminMenu.php
                    
18 * @see core/PluginsFunctions/AdminMenu.php
                    
19 * @see core/PluginsFunctions/WidgetsList.php
                    
20 * @see core/PluginsFunctions/Sql.php
                    
21 */
                    
22require_once PIWIK_INCLUDE_PATH . '/core/PluginsFunctions/Menu.php';
                    
23require_once PIWIK_INCLUDE_PATH . '/core/PluginsFunctions/AdminMenu.php';
                    
23require_once PIWIK_INCLUDE_PATH . '/core/PluginsFunctions/AdminMenu.php';
                    
24require_once PIWIK_INCLUDE_PATH . '/core/PluginsFunctions/WidgetsList.php';
                    
25require_once PIWIK_INCLUDE_PATH . '/core/PluginsFunctions/Sql.php';
                    
                
class-wp-theme-install-list-table.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 394 lines
                    
133			<div class="alignleft actions">
                    
134				<?php do_action( 'install_themes_table_header' ); ?>
                    
135			</div>
                    
151				?>
                    
152				<div class="available-theme installable-theme"><?php
                    
153					$this->single_row( $theme );
                    
226		?>
                    
227		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
                    
228			<img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
                    
242
                    
243		<?php
                    
244		$this->install_theme_info( $theme );
                    
261					<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
                    
262						<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
                    
263						<span class="collapse-sidebar-arrow"></span>
                    
                
FileTest.php https://bitbucket.org/ksekar/campus.git | PHP | 381 lines
                    
23/** requires here */
                    
24require_once 'Zend/CodeGenerator/Php/File.php';
                    
25require_once 'Zend/Reflection/File.php';
                    
43        $file = new Zend_CodeGenerator_Php_File();
                    
44        $this->assertEquals(get_class($file), 'Zend_CodeGenerator_Php_File');
                    
45    }
                    
109
                    
110        $this->assertEquals(get_class($codeGenFileFromDisk), 'Zend_CodeGenerator_Php_File');
                    
111        $this->assertEquals(count($codeGenFileFromDisk->getClasses()), 1);
                    
302    public function testNewMethodKeepDocBlock(){
                    
303        $codeGenFile = Zend_CodeGenerator_Php_File::fromReflectedFileName(dirname(__FILE__).'/_files/zf-11703.php', true, true);
                    
304        $target = <<<EOS
                    
341    public function testNewMethodKeepTwoDocBlock(){
                    
342        $codeGenFile = Zend_CodeGenerator_Php_File::fromReflectedFileName(dirname(__FILE__).'/_files/zf-11703_1.php', true, true);
                    
343        $target = <<<EOS
                    
                
Base.php https://github.com/imr/horde.git | PHP | 449 lines
                    
1<?php
                    
2/**
                    
292        if (!$this->_mapper) {
                    
293            $class = get_class($this) . 'Mapper';
                    
294            if (class_exists($class)) {
                    
296            } else {
                    
297                throw new Horde_Rdo_Exception('No Horde_Rdo_Mapper object found. Override getMapper() or define the ' . get_class($this) . 'Mapper class.');
                    
298            }
                    
                
StandardTagFactory.php https://gitlab.com/Sigpot/AirSpot | PHP | 314 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of phpDocumentor.
                    
4 *
                    
7 *
                    
8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
11 */
                    
12
                    
13namespace phpDocumentor\Reflection\DocBlock;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
                    
16use phpDocumentor\Reflection\DocBlock\Tags\Generic;
                    
                
base-widget.class.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 325 lines
                    
1<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) die( header( 'Location: /') );
                    
2
                    
119			// get the name of this class, which will be used to make the widget cache key name
                    
120			$class = get_class($this);
                    
121			// create a cache key name for this widget, and allow other plugins and sub plugins to modify it if needed
                    
245						$ext = strtolower(trim(array_pop($parts)));
                    
246						if ($ext != 'php') continue; // skip non-php files
                    
247						array_shift($parts); // shift off the base name, since we know it is the first part based on the above regex
                    
282		// first check to see if there is an override template in the theme, regardless of whether the file exists in the cache or not
                    
283		$loc = locate_template(array('/templates/widgets/'.$this->short_name.'.'.$templ.'.php'), false);
                    
284		// if there is no override, then check the cache for a file that matches the widget and the template name
                    
                
TaxonomyIndexTidUiTest.php https://gitlab.com/reasonat/test8 | PHP | 220 lines
                    
1<?php
                    
2
                    
72    }
                    
73    ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views'));
                    
74
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
390            ) {
                    
391                $class = get_class($assets[0]);
                    
392                $assets = call_user_func([$class, 'process'], $assets);
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
Activemq.php https://github.com/arturolinares/asandbox.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']."'");
                    
                
tests_code.php https://github.com/phpbb/mpv.git | PHP | 537 lines
                    
43
                    
44			// Only test PHP files
                    
45			// We also check files that should be binary, but arent.
                    
204	/**
                    
205	 * Tests to see if IN_PHPBB is defined.
                    
206	 *
                    
209	 */
                    
210	protected function test_in_phpbb()
                    
211	{
                    
520			{
                    
521				if (strpos($content_new, '$phpbb_root_path') === false && strpos($content_new, '$phpbb_admin_path') === false)
                    
522				{
                    
526				}
                    
527				if (strpos($content_new, '.php') !== false && strpos($content_new, '$phpEx') === false)
                    
528				{
                    
                
Docblock.php https://github.com/Riges/KawaiViewModel.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Docblock.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Reflection/Docblock/Tag.php';
                    
26
                    
94    {
                    
95        $str = "Docblock [ /* Docblock */ ] {".PHP_EOL.PHP_EOL;
                    
96        $str .= "  - Tags [".count($this->_tags)."] {".PHP_EOL;
                    
101
                    
102        $str .= "  }".PHP_EOL;
                    
103        $str .= "}".PHP_EOL;
                    
117            if (!method_exists($commentOrReflector, 'getDocComment')) {
                    
118                require_once 'Zend/Reflection/Exception.php';
                    
119                throw new Zend_Reflection_Exception('Reflector must contain method "getDocComment"');
                    
                
Feed.php https://gitlab.com/rsilveira1987/Expresso | PHP | 352 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Feed.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
22 */
                    
26 */
                    
27require_once 'Zend/Gdata/App/Entry.php';
                    
28
                    
31 */
                    
32require_once 'Zend/Gdata/App/FeedSourceParent.php';
                    
33
                    
283        if (!$nextLink) {
                    
284            require_once 'Zend/Gdata/App/HttpException.php';
                    
285            throw new Zend_Gdata_App_Exception('No link to next set ' .
                    
290
                    
291        return $service->getFeed($nextLinkHref, get_class($this));
                    
292    }
                    
                
Base.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 274 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27#require_once 'Zend/Service/StrikeIron/Decorator.php';
                    
28
                    
67             */
                    
68            #require_once 'Zend/Service/StrikeIron/Exception.php';
                    
69            throw new Zend_Service_StrikeIron_Exception('SOAP extension is not enabled');
                    
100        } catch (Exception $e) {
                    
101            $message = get_class($e) . ': ' . $e->getMessage();
                    
102            /**
                    
104             */
                    
105            #require_once 'Zend/Service/StrikeIron/Exception.php';
                    
106            throw new Zend_Service_StrikeIron_Exception($message, $e->getCode(), $e);
                    
150                     */
                    
151                    #require_once 'Zend/Service/StrikeIron/Exception.php';
                    
152                    throw new Zend_Service_StrikeIron_Exception('Header must be instance of SoapHeader');
                    
                
PocketMine.php https://gitlab.com/matthww/Elywing | PHP | 486 lines
                    
52				case is_object($var):
                    
53					echo str_repeat("  ", $cnt) . "object(" . get_class($var) . ")" . PHP_EOL;
                    
54					break;
                    
95	if(version_compare("7.0", PHP_VERSION) > 0){
                    
96		echo "[CRITICAL] You must use PHP >= 7.0" . PHP_EOL;
                    
97		echo "[CRITICAL] Please use the installer provided on the homepage." . PHP_EOL;
                    
101	if(!extension_loaded("pthreads")){
                    
102		echo "[CRITICAL] Unable to find the pthreads extension." . PHP_EOL;
                    
103		echo "[CRITICAL] Please use the installer provided on the homepage." . PHP_EOL;
                    
107	if(!class_exists("ClassLoader", false)){
                    
108		require_once(\pocketmine\PATH . "src/spl/ClassLoader.php");
                    
109		require_once(\pocketmine\PATH . "src/spl/BaseClassLoader.php");
                    
439	if($errors > 0){
                    
440		$logger->critical("Please update your PHP from itxtech.org/download, or recompile PHP again.");
                    
441		$logger->shutdown();
                    
                
ExportController.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 319 lines
                    
1<?php
                    
2
                    
2
                    
3include_once(ROOT . DS . "libraries" . DS . "backend" . DS . "CreateZipFile" . DS . "CreateDirZip.php");
                    
4include_once(ROOT . DS . "libraries" . DS . "backend" . DS . "pclzip" . DS . "pclzip.lib.php");
                    
12		foreach ($deck->content  as $element){
                    
13			if (get_class ( $element ) == "Slide") {
                    
14				$slides_to_string = $slides_to_string.'<div class="slide" id="tree-'.$element->deck.'-slide-'.$element->id.'-'.$element->position.'-view">'.$element->content.'</div>'.PHP_EOL;
                    
250		<script src=\"codemirror/mode/css/css.js\"></script>
                    
251		<script src=\"codemirror/mode/php/php.js\"></script>
                    
252		<script src=\"codemirror/mode/ntriples/ntriples.js\"></script>
                    
                
Service.php https://bitbucket.org/theshipswakecreative/psw.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * @package phpOpenCloud
                    
9 * @version 1.0
                    
197        // save debug info
                    
198        $this->debug('%s:Collection(%s, %s, %s)', get_class($this), $url, $class, $collection);
                    
199
                    
                
Service.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 452 lines
                    
1<?php
                    
2/**
                    
18 *
                    
19 * @todo       Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions?
                    
20 */
                    
129    {
                    
130        $methods = get_class_methods($this);
                    
131        foreach ($options as $key => $value) {
                    
153        if (!preg_match($this->nameRegex, $name)) {
                    
154            throw new InvalidArgumentException("Invalid name '{$name} provided for service; must follow PHP method naming conventions");
                    
155        }
                    
                
Abstract.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 460 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 25104 2012-11-07 20:32:38Z rob $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
226        if (is_object($value)) {
                    
227            if (!in_array('__toString', get_class_methods($value))) {
                    
228                $value = get_class($value) . ' object';
                    
                
pluginslib.php https://gitlab.com/ElvisAns/tiki | PHP | 380 lines
                    
1<?php
                    
2
                    
11 *
                    
12 * A port of PhpWiki WikiPlugin class
                    
13 * Principal use is port PhpWiki plugins, but can be used to make new ones.
                    
17 * <code>
                    
18 * include "pluginslib.php";
                    
19 *
                    
35if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
                    
36    header('location: index.php');
                    
37    exit;
                    
114    {
                    
115        return preg_replace('/^WikiPlugin/', '', get_class($this));
                    
116    }
                    
                
Helpers.php https://gitlab.com/paveltizek/shop | PHP | 221 lines
                    
1<?php
                    
2
                    
82	{
                    
83		return current(explode("\x00", get_class($obj)));
                    
84	}
                    
115	{
                    
116		if (PHP_VERSION_ID < 50400) {
                    
117			return @iconv('UTF-16', 'UTF-8//IGNORE', iconv('UTF-8', 'UTF-16//IGNORE', $s)); // intentionally @
                    
173		} elseif (preg_match('#^Call to undefined method (\S+)::(\w+)#', $message, $m)) {
                    
174			$hint = self::getSuggestion(get_class_methods($m[1]), $m[2]);
                    
175			$message .= ", did you mean $hint()?";
                    
                
ControllerResolverTest.php https://gitlab.com/Isaki/le331.fr | PHP | 180 lines
                    
1<?php
                    
2
                    
83
                    
84        $this->assertInstanceOf(get_class($this), $controller[0]);
                    
85        $this->assertSame('controllerMethod1', $controller[1]);
                    
107
                    
108        $this->assertInstanceOf(get_class($this), $controller);
                    
109    }
                    
                
RequestDataCollector.php https://gitlab.com/vincetang/mtweb | PHP | 342 lines
                    
1<?php
                    
2
                    
111
                    
112        if (isset($this->data['request_headers']['php-auth-pw'])) {
                    
113            $this->data['request_headers']['php-auth-pw'] = '******';
                    
115
                    
116        if (isset($this->data['request_server']['PHP_AUTH_PW'])) {
                    
117            $this->data['request_server']['PHP_AUTH_PW'] = '******';
                    
129                    $this->data['controller'] = array(
                    
130                        'class' => is_object($controller[0]) ? get_class($controller[0]) : $controller[0],
                    
131                        'method' => $controller[1],
                    
138                        $this->data['controller'] = array(
                    
139                            'class' => is_object($controller[0]) ? get_class($controller[0]) : $controller[0],
                    
140                            'method' => $controller[1],
                    
                
class-wc-shipping-zone.php https://gitlab.com/hunt9310/ras | PHP | 469 lines
                    
1<?php
                    
2
                    
251				if ( is_object( $class_name ) ) {
                    
252					$class_name_of_instance = get_class( $class_name );
                    
253					$methods[ $raw_method->instance_id ] = new $class_name_of_instance( $raw_method->instance_id );
                    
                
 

Source

Language