100+ results results for 'php get_class repo:srgg6701/auction-ruseasons' (481 ms)
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/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);Resource.php https://github.com/maerdo/maerdo.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);Resource.php https://github.com/akentner/LexsignExtensions.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://github.com/cgajardo/repositorium.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'; 22transformation.php https://github.com/Yannix/zetacomponents.git | PHP | 417 lines
1<?php 2/** 369 { 370 throw new ezcBaseSettingValueException( 'filters', 'array( int => ' . get_class( $filter ) . ' )', 'array( int => ezcImageFilter )' ); 371 }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 ));view.php https://github.com/cpfarher/pruebascake.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-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, 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'; 22lbresources.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 551 lines
1<?php 2/** 7 * 8 * @package phpOpenCloud 9 * @version 1.0 14 15require_once(__DIR__.'/persistentobject.php'); 16 120 return sprintf(_('%s-%s'), 121 get_class($this), $this->Parent()->Id()); 122 } 237 public function Name() { 238 return get_class().'['.$this->Id().']'; 239 }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 anHTMLModuleManager.php https://github.com/copyninja/friendika.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;BaseFcvalinmold.php https://github.com/cidesa/roraima-comunal.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();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);MenuItemTreeTest.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 376 lines
1<?php 2 123 $this->menu['New Child'] = 'New Label'; 124 $this->assertEquals('Knp\Menu\MenuItem', get_class($this->menu['New Child'])); 125 $this->assertEquals('New Child', $this->menu['New Child']->getName()); 335 array('label' => 'subitem2', 'uri' => null, 'item' => null), 336 array('label' => 'subitem3', 'uri' => 'http://php.net', 'item' => null), 337 array('label' => 'subitem4', 'uri' => null, 'item' => null), 342 'subitem2' => null, 343 'subitem3' => 'http://php.net', 344 array('label' => 'subitem4', 'uri' => null, 'item' => null),test.php https://github.com/pedroelsner/bake_utf8.git | PHP | 528 lines
1<?php 2/** 4 * 5 * CompatÃvel com PHP 4 e 5 6 * 11 12include_once dirname(__FILE__) . DS . 'bake_utf8.php'; 13 316 { 317 $classMethods = get_class_methods($className); 318 $parentMethods = get_class_methods(get_parent_class($className)); 497 } 498 return $path . Inflector::underscore($className) . '.test.php'; 499 }Upload.php https://github.com/ianbogda/FileZ.git | PHP | 375 lines
1<?php 2 25 26 // check if request exceed php.ini post_max_size 27 if ($_SERVER ['CONTENT_LENGTH'] > $this->shorthandSizeToBytes ( 63 64 // check if request exceed php.ini post_max_size 65 if ($_SERVER ['CONTENT_LENGTH'] > $this->shorthandSizeToBytes ( 101 if (! $progressMonitor->isInstalled ()) 102 halt (HTTP_NOT_IMPLEMENTED, 'Your system is not configured for'.get_class ($progressMonitor)); 103 299 $response ['statusText'] = __('The file was successfuly uploaded'); 300 $response ['html'] = partial ('main/_file_row.php', array ('file' => $file)); 301 $response ['disk_usage'] = bytesToShorthand (max (0,engine.php https://github.com/adamann2/moodle.git | PHP | 444 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 85 86 $classname = get_class($this); 87 if (strpos($classname, '\\') === false) {Abstract.php https://bitbucket.org/kudutest1/moodlegit.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');PersistenceBuilder.php https://github.com/l3l0/BehatExamples.git | PHP | 337 lines
1<?php 2/* 30 * 31 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 32 * @link www.doctrine-project.com 72 { 73 $class = $this->dm->getClassMetadata(get_class($document)); 74 $changeset = $this->uow->getDocumentChangeSet($document); 168 $oid = spl_object_hash($document); 169 $class = $this->dm->getClassMetadata(get_class($document)); 170 $changeset = $this->uow->getDocumentChangeSet($document); 273 { 274 $className = get_class($embeddedDocument); 275 $class = $this->dm->getClassMetadata($className); 334 return $this->uow->isScheduledForInsert($document) 335 || $this->uow->getDocumentPersister(get_class($document))->isQueuedForInsert($document); 336 }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 }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';FireCake.php https://bitbucket.org/albertoprb/fleetster-challenge.git | PHP | 525 lines
2/** 3 * FirePHP Class for CakePHP 4 * 11 * 12 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 13 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 361 $structureIndex = 2; 362 $_this->_sendHeader('X-Wf-1-Structure-2','http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1'); 363 } else { 363 } else { 364 $_this->_sendHeader('X-Wf-1-Structure-1','http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'); 365 } 367 $_this->_sendHeader('X-Wf-Protocol-1', 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'); 368 $_this->_sendHeader('X-Wf-1-Plugin-1', 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/' . $_this->_version); 369 if ($type == $_this->_levels['groupStart']) {MDB2Store.php https://github.com/DartmouthHackerClub/Monologue_Community.git | 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'; 32BasePhysicalObjectI18n.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 563 lines
183 184 throw new sfException("Unknown record property \"$name\" on \"".get_class($this).'"'); 185 } 340 { 341 if (array_key_exists($column->getPhpName(), $this->values)) 342 { 409 { 410 if ('createdAt' == $column->getPhpName() || 'updatedAt' == $column->getPhpName()) 411 { 438 $columns = $table->getPrimaryKeyColumns(); 439 $this->values[$columns[0]->getPhpName()] = $this->keys[$columns[0]->getPhpName()] = $id; 440 } 472 { 473 $selectCriteria->add($column->getFullyQualifiedName(), $this->values[$column->getPhpName()]++); 474 }Resource.php https://github.com/orchestra-io/sample-openx.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 115 if (!$this->hasResourceType($type)) { 116 require_once 'Zend/Loader/Exception.php'; 117 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");StaticTest.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 416 lines
1<?php 2/** 25 */ 26require_once 'Zend/Db.php'; 27 30 */ 31require_once 'Zend/Config.php'; 32 35 */ 36require_once 'Zend/Db/Adapter/Static.php'; 37 47 */ 48class Zend_Db_Adapter_StaticTest extends PHPUnit_Framework_TestCase 49{ 61 { 62 list($major, $minor, $revision) = explode('.', PHP_VERSION); 63 if ($minor >= 2) {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));pick.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 257 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); 26require_once($CFG->dirroot.'/grade/grading/lib.php'); 26require_once($CFG->dirroot.'/grade/grading/lib.php'); 27require_once($CFG->dirroot.'/grade/grading/pick_form.php'); 28 43$targetcontroller = $targetmanager->get_controller($method); 44$targetcontrollerclass = get_class($targetcontroller); 45 47if ($targetcontroller->is_form_defined()) { 48 redirect(new moodle_url('/grade/grading/manage.php', array('areaid' => $targetid))); 49} 60// setup the page 61$PAGE->set_url(new moodle_url('/grade/grading/pick.php', array('targetid' => $targetid))); 62navigation_node::override_active_url($targetmanager->get_management_url());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 +----------------------------------------------------------------------+Image.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3809 2008-12-18 12:48:41Z OscarB $ 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 }Abstract.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 356 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 152 { 153 if (isset($map[get_class($this)])) { 154 // fix for #1621 154 // fix for #1621 155 $mapFieldNames = $map[get_class($this)]; 156 $mapColumnNames = array(); 289 290 $this->_table->addGenerator($generator, get_class($generator)); 291 }Image.php https://github.com/yamamoto123/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 }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 {Triggers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 360 lines
1<?php 2/** 2/** 3 * Triggers.php 4 * @package workflow.engine.classes.model 26 27require_once 'classes/model/Content.php'; 28require_once 'classes/model/om/BaseTriggers.php'; 188 $con->rollback(); 189 throw(new Exception("Failed Validation in class ".get_class($this).".")); 190 } 217 $con->rollback(); 218 $validationE=new Exception("Failed Validation in class ".get_class($this)."."); 219 $validationE->aValidationFailures = $this->getValidationFailures(); 257 $oObj = TriggersPeer::retrieveByPk( $sUid ); 258 if (is_object($oObj) && get_class ($oObj) == 'Triggers' ) { 259 return true;ClassMetadata.php https://bitbucket.org/vladap/symfony.git | PHP | 421 lines
1<?php 2 175 'The constraint %s cannot be put on classes', 176 get_class($constraint) 177 ));Resource.php https://github.com/grandison/budo16.git | PHP | 439 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 18173 2009-09-17 15:35:05Z padraic $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24// require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 // require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 // require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 118 if (!$this->hasResourceType($type)) { 119 // require_once 'Zend/Loader/Exception.php'; 120 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");Dispatcher.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 203 { 204 list($payload, $event) = [[$event], get_class($event)]; 205 }AItemsList.php https://github.com/litecommerce/core.git | PHP | 670 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011-2012 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 494 return array( 495 self::PARAM_AJAX_WIDGET => get_class($this), 496 self::PARAM_AJAX_TARGET => \XLite\Core\Request::getInstance()->target,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';CakeTestFixtureTest.php https://github.com/suzuki/candycane.git | PHP | 499 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package Cake.Test.Case.TestSuite 15 * @package Cake.Test.Case.TestSuite 16 * @since CakePHP(tm) v 1.2.0.4667 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 191 public function setUp() { 192 $methods = array_diff(get_class_methods('DboSource'), array('enabled')); 193 $methods[] = 'connect';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'; 45MarkdownDescriptor.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)); 341FileUpload.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' => $attributeOperator.php https://github.com/ckdimka/core.git | PHP | 427 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 81 return class_exists($name, false) 82 || file_exists(LC_DIR_CACHE_CLASSES . str_replace('\\', LC_DS, $name) . '.php'); 83 } 424 { 425 return '# <' . '?php if (!defined(\'LC_DS\')) { die(); } ?' . '>' . PHP_EOL . PHP_EOL; 426 }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(Factory.php https://github.com/pborreli/zf2.git | PHP | 297 lines
1<?php 2/** 103 __METHOD__, 104 (is_object($inputSpecification) ? get_class($inputSpecification) : gettype($inputSpecification)) 105 )); 163 __METHOD__, 164 (is_object($value) ? get_class($value) : gettype($value)) 165 )); 173 __METHOD__, 174 (is_object($value) ? get_class($value) : gettype($value)) 175 )); 199 __METHOD__, 200 (is_object($inputFilterSpecification) ? get_class($inputFilterSpecification) : gettype($inputFilterSpecification)) 201 ));CCache.php https://github.com/joshuaswarren/weatherhub.git | PHP | 334 lines
1<?php 2/** 43 * @author Qiang Xue <qiang.xue@gmail.com> 44 * @version $Id: CCache.php 3001 2011-02-24 16:42:44Z alexander.makarow $ 45 * @package system.caching 88 { 89 Yii::trace('Serving "'.$id.'" from cache','system.caching.'.get_class($this)); 90 return $data[0]; 123 { 124 Yii::trace('Serving "'.$id.'" from cache','system.caching.'.get_class($this)); 125 $results[$id]=$data[0]; 143 { 144 Yii::trace('Saving "'.$id.'" to cache','system.caching.'.get_class($this)); 145 if($dependency!==null) 161 { 162 Yii::trace('Adding "'.$id.'" to cache','system.caching.'.get_class($this)); 163 if($dependency!==null)EmbeddedTest.php https://bitbucket.org/paulscott56/c4-framework.git | PHP | 426 lines
1<?php 2 155 // retrieve test 156 $test = $this->dm->createQueryBuilder(get_class($test)) 157 ->field('id')->equals($test->id) 190 // retrieve test 191 $test = $this->dm->createQueryBuilder(get_class($test)) 192 ->field('id')->equals($test->id) 207 // retrieve test 208 $test = $this->dm->createQueryBuilder(get_class($test)) 209 ->field('id')->equals($test->id) 240 // retrieve test 241 $test = $this->dm->createQueryBuilder(get_class($test)) 242 ->field('id')->equals($test->id) 259 // retrieve test 260 $test = $this->dm->createQueryBuilder(get_class($test)) 261 ->field('id')->equals($test->id)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.0Abstract.php https://github.com/quarkness/piwik.git | PHP | 456 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25// require_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';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();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)); 345HasRoleAndPermission.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)Template.php https://github.com/reddragon010/RG-ServerPanel.git | PHP | 450 lines
1<?php 2 288 * implementation detail that has been introduced to optimize variable 289 * access for versions of PHP before 5.4. This is not a way to override 290 * the way to get a variable value. 352 if (is_object($object)) { 353 throw new Twig_Error_Runtime(sprintf('Key "%s" in object (with ArrayAccess) of type "%s" does not exist', $item, get_class($object))); 354 } elseif (is_array($object)) { 373 374 $class = get_class($object); 375 400 if (!isset(self::$cache[$class]['methods'])) { 401 self::$cache[$class]['methods'] = array_change_key_case(array_flip(get_class_methods($object))); 402 } 421 422 throw new Twig_Error_Runtime(sprintf('Method "%s" for object "%s" does not exist', $item, get_class($object))); 423 }form.php https://github.com/carleton/reason_package.git | PHP | 302 lines
1<?php 2/** 9 */ 10 reason_include_once( 'minisite_templates/modules/default.php' ); 11 reason_include_once( 'function_libraries/url_utils.php' ); 15 */ 16 $GLOBALS[ '_module_class_names' ][ basename( __FILE__, '.php' ) ] = 'FormMinisiteModule'; 17 111 { 112 $default_model_filename = (defined('REASON_FORMS_THOR_DEFAULT_MODEL')) ? REASON_FORMS_THOR_DEFAULT_MODEL : 'thor.php'; 113 if (!empty($this->params['form_model']) && is_array($this->params['form_model'])) $model_filename = $this->params['form_model']['model']; 129 else trigger_error('The forms module was unable to load a model - the model_filename in get_form_model is ' . $model_filename, FATAL); 130 $model_name = $GLOBALS[ '_form_model_class_names' ][ basename($model_filename, '.php')]; 131 $model = new $model_name(); 146 $model =& $this->get_form_model(); 147 if ((get_class($model) == 'ThorFormModel') || (is_subclass_of($model, 'ThorFormModel'))) 148 {class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | 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 ) {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(Generator.php https://github.com/cawago/ci_campusync_auth.git | PHP | 374 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Plugin 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 1.0 151 152 $table->addGenerator($this, get_class($this)); 153 242 if ($child->getPlugin() !== null) { 243 $this->_table->addGenerator($child->getPlugin(), get_class($child->getPlugin())); 244 }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']);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] ) )Loader.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 390 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 * 65 /* references to ci loader variables */ 66 foreach (get_class_vars('CI_Loader') as $var => $val) { 67 if ($var != '_ci_ob_level') $this->$var =& CI::$APP->load->$var; 300 if ((bool) @ini_get('short_open_tag') === FALSE AND CI::$APP->config->item('rewrite_short_tags') == TRUE) { 301 echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); 302 } else { 389/** load the CI class for Modular Separation **/ 390(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';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){ 144StringPresenter.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';AbstractContainer.php https://github.com/Ocramius/zf2.git | PHP | 521 lines
1<?php 2/** 376 'Bad method call: Unknown method %s::%s', 377 get_class($this), 378 $methodprogram.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 ) . ">" ); 250helper_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 idRendererAbstract.php https://github.com/kervin/kyzstudio.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(adodb-active-record.inc.php https://github.com/md-tech/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);CModule.php https://github.com/sassman/django-benchmark.git | PHP | 483 lines
1<?php 2/** 16 * @author Qiang Xue <qiang.xue@gmail.com> 17 * @version $Id: CModule.php 2094 2010-05-05 00:51:49Z qiang.xue $ 18 * @package system.base 49 * @param mixed the module configuration. It can be either an array or 50 * the path of a PHP file returning the configuration array. 51 */ 128 { 129 $class=new ReflectionClass(get_class($this)); 130 $this->_basePath=dirname($class->getFileName());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':sfException.class.php https://github.com/bheneka/gitta.git | PHP | 446 lines
1<?php 2 39 { 40 $exception = new sfException(sprintf('Wrapped %s: %s', get_class($e), $e->getMessage())); 41 $exception->setWrappedException($e); 90 { 91 // log all exceptions in php log 92 error_log($exception->getMessage()); 196 // when using CLI, we force the format to be TXT 197 if (0 == strncasecmp(PHP_SAPI, 'cli', 3)) 198 { 202 $message = null === $exception->getMessage() ? 'n/a' : $exception->getMessage(); 203 $name = get_class($exception); 204 $traces = self::getTraces($exception, $format); 261 262 $template = sprintf('%s.%s.php', $debug ? 'exception' : 'error', $format); 263 foreach ($templatePaths as $path)Api.php https://github.com/andyburton/Sonic-Framework.git | PHP | 864 lines
1<?php 2 665 666 header ('Content-Type: application/vnd.php.serialized'); 667 echo $this->outputSerialized (); 790 791 $key = get_class ($val); 792MigrateExecutableTest.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();ext_reflection.cpp https://github.com/kevlund/hiphop-php.git | C++ | 376 lines
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 +----------------------------------------------------------------------+ 65 if (attribute & ClassInfo::IsProtected) php_modifier |= 0x200; 66 if (attribute & ClassInfo::IsPrivate) php_modifier |= 0x400; 67 return php_modifier; 168 ret.set("internal", (bool)(cls->getAttribute() & ClassInfo::IsSystem)); 169 ret.set("hphp", (bool)(cls->getAttribute() & ClassInfo::HipHopSpecific)); 170 ret.set("class", cls->getName()); 174 175Array f_hphp_get_class_info(CVarRef name) { 176 String className;Repository.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 300 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Repository.php 16971 2009-07-22 18:05:45Z mikaelkael $ 21 */ 25 */ 26//*** require_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;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 '';TbEditableField.php https://bitbucket.org/haichau59/manga.git | PHP | 326 lines
1<?php 2/** 9 * @copyright Copyright © Vitaliy Potapov 2012 10 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 11 * @version 1.0.0 77 throw new CException(Yii::t('zii', 'Model "{model}" does not have attribute "{attribute}"', 78 array('{model}'=>get_class($this->model), '{attribute}'=>$this->attribute))); 79 } 323 { 324 return get_class($this->model) . '_' . $this->attribute . ($this->model->primaryKey ? '_' . $this->model->primaryKey : '_new'); 325 }Activemq.php https://github.com/grjones/qframe.git | PHP | 336 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Activemq.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 30 */ 31require_once 'Zend/Queue/Stomp/Client.php'; 32 35 */ 36require_once 'Zend/Queue/Stomp/Frame.php'; 37 100 ) { 101 require_once 'Zend/Queue/Exception.php'; 102 throw new Zend_Queue_Exception("Unable to authenticate to '".$options['scheme'].'://'.$options['host'].':'.$options['port']."'");model.php https://github.com/keiouu/Evelite.git | PHP | 398 lines
1<?php 2/* 9 10require_once(home_dir . "framework/database.php"); 11require_once(home_dir . "framework/model_query.php"); 11require_once(home_dir . "framework/model_query.php"); 12require_once(home_dir . "framework/model_fields/init.php"); 13 42 foreach ($this->fields as $name => $field) 43 if (strtolower(get_class($field)) === "pkfield") 44 return $name; 143 protected function add_field($name, $type) { 144 if (strtolower(get_class($type)) === "pkfield") { 145 $new_fields = array(); 147 foreach ($this->fields as $name => $field) 148 if (strtolower(get_class($field)) !== "pkfield") 149 $new_fields[$name] = $field;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');CakeTestFixtureTest.php https://bitbucket.org/luobailiang/cake.git | PHP | 492 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package Cake.Test.Case.TestSuite 15 * @package Cake.Test.Case.TestSuite 16 * @since CakePHP(tm) v 1.2.0.4667 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 183 public function setUp() { 184 $methods = array_diff(get_class_methods('DboSource'), array('enabled')); 185 $methods[] = 'connect';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(Image.php https://github.com/nicodmf/Imagine.git | PHP | 473 lines
93 /** 94 * (non-PHPdoc) 95 * @see Imagine\Image\ManipulatorInterface::flipHorizontally() 110 /** 111 * (non-PHPdoc) 112 * @see Imagine\Image\ManipulatorInterface::flipVertically() 160 /** 161 * @see http://pecl.php.net/bugs/bug.php?id=22435 162 */ 219 /** 220 * (non-PHPdoc) 221 * @see Imagine\Image\ManipulatorInterface::save() 374 /** 375 * (non-PHPdoc) 376 * @see Imagine\ImageInterface::mask()Exception.php https://github.com/daevid/MWFork.git | PHP | 500 lines
1<?php 2/** 112 return "<p>Set <b><tt>\$wgShowExceptionDetails = true;</tt></b> " . 113 "at the bottom of LocalSettings.php to show detailed " . 114 "debugging information.</p>"; 129 return "Set \$wgShowExceptionDetails = true; " . 130 "in LocalSettings.php to show detailed debugging information.\n"; 131 } 175 176 $hookResult = $this->runHooks( get_class( $this ) ); 177 if ( $hookResult ) { 184 } else { 185 $hookResult = $this->runHooks( get_class( $this ) . "Raw" ); 186 if ( $hookResult ) { 420 $message .= "Exception caught inside exception handler.\n\n" . 421 "Set \$wgShowExceptionDetails = true; at the bottom of LocalSettings.php " . 422 "to show detailed debugging information.";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();MediaWikiTestCase.php https://github.com/daevid/MWFork.git | PHP | 250 lines
1<?php 2 2 3abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { 4 public $suite; 34 35 function run( PHPUnit_Framework_TestResult $result = NULL ) { 36 /* Some functions require some kind of caching, and will end up using the db, 177 throw new MWException( "Called non-existant $func method on " 178 . get_class( $this ) ); 179 } 222 223 if( isset( MediaWikiPHPUnitCommand::$additionalOptions[$offset] ) ) { 224 return MediaWikiPHPUnitCommand::$additionalOptions[$offset]; 230 231 MediaWikiPHPUnitCommand::$additionalOptions[$offset] = $value; 232Html.php https://github.com/premiumcombination/nts.git | PHP | 602 lines
1<?php 2 351 } else { 352 throw new Nette\InvalidArgumentException("Child node must be scalar or Html object, " . (is_object($child) ? get_class($child) : gettype($child)) ." given."); 353 }YamlFileLoaderTest.php https://github.com/nattaphat/hgis.git | PHP | 211 lines
1<?php 2 23 24class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase 25{ 41 self::$fixturesPath = realpath(__DIR__.'/../Fixtures/'); 42 require_once self::$fixturesPath.'/includes/foo.php'; 43 require_once self::$fixturesPath.'/includes/ProjectExtension.php'; 115 $this->assertTrue(isset($services['foo']), '->load() parses service elements'); 116 $this->assertEquals('Symfony\\Component\\DependencyInjection\\Definition', get_class($services['foo']), '->load() converts service element to Definition instances'); 117 $this->assertEquals('FooClass', $services['foo']->getClass(), '->load() parses the class attribute'); 121 $this->assertEquals('getInstance', $services['constructor']->getFactoryMethod(), '->load() parses the factory_method attribute'); 122 $this->assertEquals('%path%/foo.php', $services['file']->getFile(), '->load() parses the file tag'); 123 $this->assertEquals(array('foo', new Reference('foo'), array(true, false)), $services['arguments']->getArguments(), '->load() parses the argument tags');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;Link.php https://github.com/pear2/Text_Markdown.git | PHP | 527 lines
1<?php 2/** 39 * 40 * @author Paul M. Jones <pmjones@solarphp.com> 41 * 41 * 42 * @license http://opensource.org/licenses/bsd-license.php BSD 43 * 43 * 44 * @version $Id: Link.php 3988 2009-09-04 13:51:51Z pmjones $ 45 * 152 * 153 * 'php' => 'http://php.net/%s' 154 * 165 'imdb' => 'http://imdb.com/find?s=all&q=%s', 166 'php' => 'http://php.net/%s', 167 );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&token=abcdef">http://yiifresh.com/index.php?r=site%2Freset-password&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&token=abcdef">http://yiifresh.com/index.php?r=site%2Freset-password&token=abcdef</a> 230plugin.class.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 397 lines
1<?php 2/* For licensing terms, see /license.txt */ 28 * When creating a new course, these settings are added to the course, in 29 * the course_info/infocours.php 30 * To show the plugin course icons you need to add these icons: 73 $result['author'] = $this->get_author(); 74 $result['plugin_class'] = get_class($this); 75 $result['is_course_plugin'] = $this->is_course_plugin; 90 function get_name() { 91 $result = get_class($this); 92 $result = str_replace('Plugin', '', $result); 236 //1. Loading english if exists 237 $english_path = $root.$plugin_name."/lang/english.php"; 238 if (is_readable($english_path)) { 242 243 $path = $root.$plugin_name."/lang/$language_interface.php"; 244 //2. Loading the system languageAdminPaymentController.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();syntax.php https://github.com/houshuang/folders2web.git | PHP | 441 lines
1<?php 2 14if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); 15require_once(DOKU_PLUGIN . 'syntax.php'); 16require_once(DOKU_PLUGIN . 'columns/info.php'); 27 function syntax_plugin_columns() { 28 $this->mode = substr(get_class($this), 7); 29