PageRenderTime 341ms queryTime 104ms sortTime 6ms getByIdsTime 59ms findMatchingLines 85ms

100+ results results for 'php method_exists repo:alx/openid-server' (341 ms)

Not the results you expected?
class-wp-image-editor-imagick.php https://gitlab.com/websumon/tosnib | PHP | 533 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module
                    
11 *
                    
53
                    
54		if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) )
                    
55			return false;
                    
105		// Here, we just say no if you are missing it and aren't loading a jpeg.
                    
106		if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type != 'image/jpeg' )
                    
107				return false;
                    
132		/** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */
                    
133		// Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
                    
134		@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
                    
493
                    
494		/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
                    
495		return array(
                    
                
Grammar.php https://gitlab.com/btkm/correct_fb | PHP | 466 lines
                    
1<?php
                    
2
                    
146        foreach ($this->modifiers as $modifier) {
                    
147            if (method_exists($this, $method = "modify{$modifier}")) {
                    
148                $sql .= $this->{$method}($blueprint, $column);
                    
337                if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) {
                    
338                    if (method_exists($column, $method = 'set'.ucfirst($option))) {
                    
339                        $column->{$method}($this->mapFluentValueToDoctrine($option, $value));
                    
                
Reader.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 350 lines
                    
1<?php
                    
2/**
                    
5* @license http://opensource.org/licenses/MIT
                    
6* @link https://github.com/thephpleague/csv/
                    
7* @version 8.1.0
                    
216    /**
                    
217     * Return the key/pairs as a PHP generator
                    
218     *
                    
319    {
                    
320        return is_scalar($value) || (is_object($value) && method_exists($value, '__toString'));
                    
321    }
                    
                
Resource.php https://gitlab.com/x33n/respond | PHP | 325 lines
                    
1<?php
                    
2
                    
54                foreach ($methodMetadata as $conditionName => $conditions) { // process each method condition
                    
55                    if (method_exists($this, $conditionName)) {
                    
56                        $this->currentMethodName = $key;
                    
                
Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
121            $method = 'set' . ucfirst($key);
                    
122            if (method_exists($this, $method)) {
                    
123                $this->$method($value);
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            #require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
DB_utility.php https://gitlab.com/ablu/invertika-backup-web | PHP | 389 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
96		// Note: Due to a bug in current() that affects some versions
                    
97		// of PHP we can not pass function call directly into it
                    
98		return current($res);
                    
124			// Note: Due to a bug in current() that affects some versions
                    
125			// of PHP we can not pass function call directly into it
                    
126			$res = $query->result_array();
                    
158		// Note: Due to a bug in current() that affects some versions
                    
159		// of PHP we can not pass function call directly into it
                    
160		$res = $query->result_array();
                    
177	{
                    
178		if ( ! is_object($query) OR ! method_exists($query, 'list_fields'))
                    
179		{
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
118        );
                    
119        if (method_exists($this->_imageHandler, 'optimizeImageLayers')) {
                    
120            $this->_imageHandler->optimizeImageLayers();
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
264
                    
265        if (method_exists($watermark, 'setImageOpacity')) {
                    
266            // available from imagick 6.3.1
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
422        if (!empty($font)) {
                    
423            if (method_exists($image, 'setFont')) {
                    
424                $image->setFont($font);
                    
                
Converter.php https://gitlab.com/blingbang2016/shop | PHP | 336 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 */
                    
188
                    
189            if($useGetter && !method_exists($pearObject, $rules['getter'])) {
                    
190                $mName = get_class($pearObject)."::".$rules['getter'];
                    
193
                    
194            if($useSetter && !method_exists($mageObject, $rules['setter'])) {
                    
195                $mName = get_class($mageObject)."::".$rules['setter'];
                    
200
                    
201            if($useConverter && false === method_exists($this, $rules['converter'])) {
                    
202                $mName = get_class($this)."::".$rules['converter'];
                    
                
BaseVarDumper.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
210                            return;
                    
211                        } elseif ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__toString')) {
                    
212                            $output = var_export($var->__toString(), true);
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
1<?php
                    
2
                    
187	 */
                    
188	public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine)
                    
189	{
                    
270
                    
271		\set_error_handler(array(&$this, 'capturePhpErrorWithException'));
                    
272
                    
365	{
                    
366		if (\method_exists($this, 'Logout') && !$this->bUnreadBuffer && !$this->bRunningCallback)
                    
367		{
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
62        $xmldoc =@ new DOMDocument;
                    
63        if(!is_object($xmldoc) || !method_exists($xmldoc,'loadHTML')) return $this->html;
                    
64
                    
                
Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tool/Framework/Provider/Signature.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
103
                    
104        if (method_exists($provider, 'getName')) {
                    
105            $providerName = $provider->getName();
                    
114        {
                    
115            #require_once 'Zend/Tool/Framework/Provider/Exception.php';
                    
116            throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerName
                    
                
Dispatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
397
                    
398			if (method_exists($class, 'queue'))
                    
399			{
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 138 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class EmailViewEmail extends JView
                    
13		$function = $this->getLayout();
                    
14		if(method_exists($this,$function)) $this->$function();
                    
15		parent::display($tpl);
                    
78		$script .= "function insertTag(tag){ try{jInsertEditorText(tag,'editor_body'); document.getElementById('iframetag').style.display = 'none'; displayTags(); return true;} catch(err){alert('Your editor does not enable AcyMailing to automatically insert the tag, please copy/paste it manually in your Newsletter'); return false;}}";
                    
79		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=tag&task=tag&type=news\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
80		$script .= "var openTag = true;
                    
97					openTag = !openTag;}";
                    
98		$iFrame = "'<iframe src=\'index.php?option=com_acymailing&ctrl=template&task=theme&tmpl=component\' width=\'100%\' height=\'100%\' scrolling=\'auto\'></iframe>'";
                    
99		$script .= "var openTemplate = true;
                    
                
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
                    
71                        if (is_object($_sel)) {
                    
72                            if (method_exists($_sel, "__toString")) {
                    
73                                $_sel = smarty_function_escape_special_chars((string) $_sel->__toString());
                    
83                } elseif (is_object($_val)) {
                    
84                    if (method_exists($_val, "__toString")) {
                    
85                        $selected = smarty_function_escape_special_chars((string) $_val->__toString());
                    
146        if (is_object($value)) {
                    
147            if (method_exists($value, "__toString")) {
                    
148                $value = smarty_function_escape_special_chars((string) $value->__toString());
                    
                
DocBlockReflection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 296 lines
                    
1<?php
                    
2/**
                    
93            $this->reflector = $commentOrReflector;
                    
94            if (!method_exists($commentOrReflector, 'getDocComment')) {
                    
95                throw new Exception\InvalidArgumentException('Reflector must contain method "getDocComment"');
                    
271    {
                    
272        $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL;
                    
273        $str .= "  - Tags [" . count($this->tags) . "] {" . PHP_EOL;
                    
278
                    
279        $str .= "  }" . PHP_EOL;
                    
280        $str .= "}" . PHP_EOL;
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 228 lines
                    
1<?php
                    
2
                    
161				$parameters = $this->arParams['METADATA']['HANDLER']['PARAMETERS'];
                    
162				if (Loader::includeModule($module) && method_exists($className, $buildMethod))
                    
163				{
                    
                
AsseticExtension.php https://gitlab.com/freebird/WebApp | PHP | 170 lines
                    
1<?php
                    
2
                    
39        $loader->load('templating_twig.xml');
                    
40        $loader->load('templating_php.xml');
                    
41
                    
42        $def = $container->getDefinition('assetic.parameter_bag');
                    
43        if (method_exists($def, 'setFactory')) {
                    
44            // to be inlined in assetic.xml when dependency on Symfony DependencyInjection is bumped to 2.6
                    
                
Stream.php https://gitlab.com/x33n/respond | PHP | 261 lines
                    
1<?php
                    
2namespace GuzzleHttp\Stream;
                    
4/**
                    
5 * PHP stream implementation
                    
6 */
                    
49        if ($type == 'string') {
                    
50            $stream = fopen('php://temp', 'r+');
                    
51            if ($resource !== '') {
                    
65
                    
66        if ($type == 'object' && method_exists($resource, '__toString')) {
                    
67            return self::factory((string) $resource, $options);
                    
                
Blueprint.php https://gitlab.com/x33n/grav | PHP | 432 lines
                    
1<?php
                    
2namespace Grav\Common\Data;
                    
349                            $data = call_user_func_array($o, $value);
                    
350                        } elseif ($f && method_exists($o, $f)) {
                    
351                            $data = call_user_func_array(array($o, $f), $value);
                    
                
Default.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 312 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
                    
20 */
                    
87             */
                    
88            require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
142            } else if (is_array($attributeNameTreatment) &&
                    
143                    !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
                    
144                $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
                
AbstractToken.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 286 lines
                    
1<?php
                    
2
                    
90    {
                    
91        if (!($user instanceof UserInterface || (is_object($user) && method_exists($user, '__toString')) || is_string($user))) {
                    
92            throw new \InvalidArgumentException('$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.');
                    
                
PwSpaceModel.php https://gitlab.com/wuhang2003/phpwind | PHP | 134 lines
                    
1<?php
                    
2Wind::import('SRV:space.bo.PwSpaceBo');
                    
5 * @author $Author: jieyin $ Foxsee@aliyun.com
                    
6 * @copyright ©2003-2103 phpwind.com
                    
7 * @license http://www.phpwind.com
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: PwSpaceModel.php 20893 2012-11-16 07:00:39Z jieyin $ 
                    
9 * @package 
                    
25			$method = sprintf('model%sList', ucwords($mod));
                    
26			if (!method_exists($this, $method)) return array();
                    
27			return $this->$method($limit, $page);
                    
29			$method =  sprintf('model%s', ucwords($mod));
                    
30			if (!method_exists($this, $method)) return array();
                    
31			return $this->$method($limit);
                    
                
Command.php https://gitlab.com/kimting254/wbms | PHP | 387 lines
                    
1<?php namespace Illuminate\Console;
                    
2
                    
112	{
                    
113		$method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
114
                    
                
DocBlockFactory.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 277 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;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
                    
16use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
                    
                
SonataCoreExtension.php https://gitlab.com/cuza/Clinic_Recods | PHP | 166 lines
                    
1<?php
                    
2
                    
158        $definition = $container->getDefinition('sonata.core.slugify.cocur');
                    
159        if (method_exists($definition, 'setDeprecated')) {
                    
160            $definition->setDeprecated(true);
                    
                
GetterSetterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 268 lines
                    
1<?php
                    
2/**
                    
7
                    
8class GetterSetterTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
23            $this->assertTrue(
                    
24                method_exists($classObject, $setterName),
                    
25                "Method " . $setterName . " does not exist in " . $className
                    
51            $this->assertTrue(
                    
52                method_exists($classObject, $getterName),
                    
53                "Method " . $getterName . " does not exist in " . $className
                    
69     * @return array
                    
70     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
71     */
                    
                
Smd.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 461 lines
                    
1<?php
                    
2/**
                    
99            $method = 'set' . ucfirst($key);
                    
100            if (method_exists($this, $method)) {
                    
101                $this->$method($value);
                    
                
Dispatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 494 lines
                    
1<?php
                    
2
                    
408
                    
409            if (method_exists($class, 'queue')) {
                    
410                $this->callQueueMethodOnHandler($class, $method, $arguments);
                    
                
DumpDataCollector.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 295 lines
                    
1<?php
                    
2
                    
44        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
45        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
46        $this->requestStack = $requestStack;
                    
96                        $name = $info->getTemplateName();
                    
97                        $src = method_exists($info, 'getSource') ? $info->getSource() : $info->getEnvironment()->getLoader()->getSource($name);
                    
98                        $info = $info->getDebugInfo();
                    
150            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
151                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
152            } else {
                    
152            } else {
                    
153                $this->dumper = new CliDumper('php://output', $this->charset);
                    
154            }
                    
192    {
                    
193        $data = fopen('php://memory', 'r+b');
                    
194
                    
                
ValidClassNamePass.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
                    
1<?php
                    
2
                    
14use PhpParser\Node;
                    
15use PhpParser\Node\Expr;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
19use PhpParser\Node\Stmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
22use PhpParser\Node\Stmt\Trait_ as TraitStmt;
                    
229
                    
230        if (!method_exists($class, $name) && !method_exists($class, '__callStatic')) {
                    
231            throw $this->createError(sprintf('Call to undefined method %s::%s()', $class, $name), $stmt);
                    
                
UuidValidator.php https://gitlab.com/matijabelec/bigpandadev | PHP | 346 lines
                    
1<?php
                    
2
                    
83
                    
84        if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString'))) {
                    
85            throw new UnexpectedTypeException($value, 'string');
                    
                
JsHelper.php https://gitlab.com/nghiep5890/bakery | PHP | 436 lines
                    
4 *
                    
5 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.View.Helper
                    
14 * @package       Cake.View.Helper
                    
15 * @since         CakePHP(tm) v 1.2
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
120	public function __call($method, $params) {
                    
121		if ($this->{$this->_engineName} && method_exists($this->{$this->_engineName}, $method)) {
                    
122			$buffer = false;
                    
162 * @return string a JavaScript-safe/JSON representation of $val
                    
163 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelper::value
                    
164 */
                    
                
ArrayUtils.php https://gitlab.com/x33n/ImpressPages | PHP | 275 lines
                    
1<?php
                    
2/**
                    
14/**
                    
15 * Utility class for testing and manipulation of PHP arrays.
                    
16 *
                    
135     * $hash = array(
                    
136     *     1995  => 'Birth of PHP',
                    
137     *     2009  => 'PHP 5.3.0',
                    
137     *     2009  => 'PHP 5.3.0',
                    
138     *     2012  => 'PHP 5.4.0',
                    
139     * );
                    
217
                    
218        if (method_exists($iterator, 'toArray')) {
                    
219            return $iterator->toArray();
                    
                
password.php https://gitlab.com/oytunistrator/92five | PHP | 222 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
4 *
                    
5 * @author Anthony Ferrara <ircmaxell@php.net>
                    
6 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
38            case PASSWORD_BCRYPT:
                    
39                // Note that this is a C constant, but not exposed to PHP, so we don't define it here.
                    
40                $cost = 10;
                    
67                case 'object':
                    
68                    if (method_exists($options['salt'], '__tostring')) {
                    
69                        $salt = (string) $options['salt'];
                    
                
DBComposite.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 332 lines
                    
1<?php
                    
2
                    
49        // by intentionally avoiding hasMethod()
                    
50        if ($this->hasField($property) && !method_exists($this, "set$property")) {
                    
51            $this->setField($property, $value);
                    
60        // by intentionally avoiding hasMethod()
                    
61        if ($this->hasField($property) && !method_exists($this, "get$property")) {
                    
62            return $this->getField($property);
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 273 lines
                    
9endif;
                    
10require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/components/bitrix/webdav/functions.php");
                    
11
                    
161					CBPDocument::AddDocumentToHistory($arParams['DOCUMENT_ID'], $arParams['OBJECT']->arParams["element_name"], $GLOBALS["USER"]->GetID());
                    
162					if (method_exists('CIBlockDocumentWebdav', 'TruncateHistory'))
                    
163						CIBlockDocumentWebdav::TruncateHistory($arParams['OBJECT']->wfParams['DOCUMENT_TYPE'], $arParams["DOCUMENT_ID"][2]);
                    
                
Command.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 523 lines
                    
1<?php
                    
2
                    
166    {
                    
167        $method = method_exists($this, 'handle') ? 'handle' : 'fire';
                    
168
                    
                
Webapi.php https://gitlab.com/yousafsyed/easternglamor | PHP | 336 lines
                    
1<?php
                    
2/**
                    
113            $methodName = 'prepare' . ucfirst($product->getDataConfig()['type_id']) . 'Options';
                    
114            if (method_exists($this, $methodName)) {
                    
115                $data['cartItem']['product_option'] = $this->$methodName($product);
                    
                
editor.php https://gitlab.com/che234/adn | PHP | 343 lines
                    
1<?php
                    
2
                    
107                // load mobile detect class
                    
108                require_once(dirname(__FILE__) . '/mobile.php');
                    
109            }
                    
122            // Joomla! 1.6+
                    
123            if (method_exists('JUser', 'getAuthorisedGroups')) {
                    
124                $keys = $user->getAuthorisedGroups();
                    
                
MarkdownDescriptor.php https://gitlab.com/cuza/Clinic_Recods | PHP | 366 lines
                    
1<?php
                    
2
                    
183
                    
184        if (method_exists($definition, 'isShared')) {
                    
185            $output .= "\n".'- Shared: '.($definition->isShared() ? 'yes' : 'no');
                    
189
                    
190        if (method_exists($definition, 'isAutowired')) {
                    
191            $output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no');
                    
336
                    
337        if (method_exists($callable, '__invoke')) {
                    
338            $string .= "\n- Type: `object`";
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 185 lines
                    
1<?php
                    
2namespace Bitrix\Landing\Internals;
                    
152
                    
153		if (method_exists($class, 'setAccessFilter'))
                    
154		{
                    
                
reflection_php5.php https://gitlab.com/x33n/platform | PHP | 386 lines
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reflection_php5.php 2011 2011-04-29 08:22:48Z pp11 $
                    
7 */
                    
27     *    Checks that a class has been declared. Versions
                    
28     *    before PHP5.0.2 need a check that it's not really
                    
29     *    an interface.
                    
41    /**
                    
42     *    Needed to kill the autoload feature in PHP5
                    
43     *    for classes created dynamically.
                    
61    /**
                    
62     *    Needed to kill the autoload feature in PHP5
                    
63     *    for classes created dynamically.
                    
288        }
                    
289        if (version_compare(phpversion(), '5.1.0', '>=')) {
                    
290            if (in_array($name, array('__get', '__isset', $name == '__unset'))) {
                    
                
Default.php https://gitlab.com/yousafsyed/easternglamor | PHP | 312 lines
                    
1<?php
                    
2/**
                    
87             */
                    
88            #require_once 'Zend/Ldap/Exception.php';
                    
89            throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
                    
142            } else if (is_array($attributeNameTreatment) &&
                    
143                    !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
                    
144                $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
                    
245                /** @see Zend_Ldap_Exception */
                    
246                #require_once 'Zend/Ldap/Exception.php';
                    
247                throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
                    
265            /** @see Zend_Ldap_Exception */
                    
266            #require_once 'Zend/Ldap/Exception.php';
                    
267            if ($this->_current === false) {
                    
291            /** @see Zend_Ldap_Exception */
                    
292            #require_once 'Zend/Ldap/Exception.php';
                    
293            if ($this->_current === false &&
                    
                
Application.php https://gitlab.com/luisrepo/ClienteWS | PHP | 416 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Application.php 23844 2011-04-06 00:34:03Z wilmoore $
                    
20 */
                    
67     *
                    
68     * Initialize application. Potentially initializes include_paths, PHP
                    
69     * settings, and bootstrap class.
                    
79
                    
80        require_once 'Zend/Loader/Autoloader.php';
                    
81        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
144        if (!empty($options['phpsettings'])) {
                    
145            $this->setPhpSettings($options['phpsettings']);
                    
146        }
                    
157            $autoloader = $this->getAutoloader();
                    
158            if (method_exists($autoloader, 'setZfPath')) {
                    
159                $zfPath    = $options['autoloaderzfpath'];
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
9		"SHOW_STATUS" => "Y",
                    
10		"EDIT_URL" => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php",
                    
11	);
                    
15	$arDefaultUrl = array(
                    
16		'EDIT_URL' => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php",
                    
17	);
                    
49	$arParams['NAME_TEMPLATE'] = empty($arParams['NAME_TEMPLATE'])
                    
50		? (method_exists('CSite', 'GetNameFormat') ? CSite::GetNameFormat() : "#NAME# #LAST_NAME#")
                    
51		: $arParams["NAME_TEMPLATE"];
                    
333										{
                    
334											$file_link = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrAns["USER_FILE_HASH"]."&lang=".LANGUAGE_ID;
                    
335
                    
348							$arResultAnswer["ANSWER_FILE"] = array();
                    
349							$arResultAnswer["ANSWER_FILE"]["URL"] = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrA["USER_FILE_HASH"]."&lang=".LANGUAGE_ID;
                    
350							$arResultAnswer["ANSWER_FILE"]["NAME"] = htmlspecialcharsbx($arrA["USER_FILE_NAME"]);
                    
                
Inspector.php https://gitlab.com/geeta7/drupal | PHP | 428 lines
                    
1<?php
                    
2/**
                    
22 *
                    
23 * @ingroup php_assert
                    
24 */
                    
56   *
                    
57   * @see http://php.net/manual/language.types.callable.php
                    
58   */
                    
121  public static function assertStringable($string) {
                    
122    return is_string($string) || (is_object($string) && method_exists($string, '__toString'));
                    
123  }
                    
140   *
                    
141   * What PHP calls arrays are more formally called maps in most other
                    
142   * programming languages. A map is a datatype that associates values to keys.
                    
151   *
                    
152   * @see http://php.net/manual/language.types.array.php
                    
153   */
                    
                
Lexer.php https://gitlab.com/hop23typhu/list-theme | PHP | 298 lines
                    
1<?php
                    
2
                    
97                    class_exists('DOMDocument') &&
                    
98                    method_exists('DOMDocument', 'loadHTML') &&
                    
99                    !extension_loaded('domxml')
                    
129
                    
130        // once PHP DOM implements native line numbers, or we
                    
131        // hack out something using XSLT, remove this stipulation
                    
                
BladeCompiler.php https://gitlab.com/fabian.morales/Spencial | PHP | 714 lines
                    
1<?php namespace Illuminate\View\Compilers;
                    
2
                    
115		// Here we will loop through all of the tokens returned by the Zend lexer and
                    
116		// parse each one into the corresponding valid PHP. We will then have this
                    
117		// template as the correctly rendered PHP that can be rendered natively.
                    
128			$result = ltrim($result, PHP_EOL)
                    
129					.PHP_EOL.implode(PHP_EOL, array_reverse($this->footer));
                    
130		}
                    
172	/**
                    
173	 * Compile Blade comments into valid PHP.
                    
174	 *
                    
181
                    
182		return preg_replace($pattern, '<?php /*$1*/ ?>', $value);
                    
183	}
                    
185	/**
                    
186	 * Compile Blade echos into valid PHP.
                    
187	 *
                    
                
random.class.php https://gitlab.com/x33n/ampache | PHP | 362 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
78
                    
79        if (!method_exists('Random', $method_name)) {
                    
80            $method_name = 'get_default';
                    
                
MethodProphecy.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 437 lines
                    
1<?php
                    
2
                    
48        $double = $objectProphecy->reveal();
                    
49        if (!method_exists($double, $methodName)) {
                    
50            throw new MethodNotFoundException(sprintf(
                    
71
                    
72        if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) {
                    
73            $type = (string) $reflectedMethod->getReturnType();
                    
                
functions.php https://gitlab.com/aleritty/yaitb | PHP | 495 lines
                    
1<?php
                    
2namespace GuzzleHttp\Promise;
                    
66    // Return a Guzzle promise that shadows the given promise.
                    
67    if (method_exists($value, 'then')) {
                    
68        $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null;
                    
68        $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null;
                    
69        $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null;
                    
70        $promise = new Promise($wfn, $cfn);
                    
                
Dispatcher.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 503 lines
                    
1<?php
                    
2
                    
257
                    
258            $queue = method_exists($event, 'onQueue') ? $event->onQueue() : null;
                    
259
                    
411
                    
412            if (method_exists($class, 'queue')) {
                    
413                $this->callQueueMethodOnHandler($class, $method, $arguments);
                    
                
Registry.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 419 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/Interface.php';
                    
27
                    
144        if ($this->_config === null) {
                    
145            require_once 'Zend/Tool/Framework/Client/Config.php';
                    
146            $this->setConfig(new Zend_Tool_Framework_Client_Config());
                    
171        if ($this->_storage === null) {
                    
172            require_once 'Zend/Tool/Framework/Client/Storage.php';
                    
173            $this->setStorage(new Zend_Tool_Framework_Client_Storage());
                    
201        if ($this->_loader === null) {
                    
202            require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
                    
203            $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());
                    
                
Registry.php https://gitlab.com/luisrepo/ClienteWS | PHP | 419 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Registry.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/Interface.php';
                    
27
                    
144        if ($this->_config === null) {
                    
145            require_once 'Zend/Tool/Framework/Client/Config.php';
                    
146            $this->setConfig(new Zend_Tool_Framework_Client_Config());
                    
171        if ($this->_storage === null) {
                    
172            require_once 'Zend/Tool/Framework/Client/Storage.php';
                    
173            $this->setStorage(new Zend_Tool_Framework_Client_Storage());
                    
201        if ($this->_loader === null) {
                    
202            require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
                    
203            $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());
                    
                
Feed.php https://gitlab.com/luisrepo/ClienteWS | PHP | 361 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
74        if (!ctype_alpha($value) && strlen($value) > 0) {
                    
75            require_once 'Zend/Feed/Exception.php';
                    
76            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
79        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
80            require_once 'Zend/Feed/Exception.php';
                    
81            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
110        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
111            require_once 'Zend/Feed/Exception.php';
                    
112            throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
                    
135                if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
136                    require_once 'Zend/Feed/Exception.php';
                    
137                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
                
ThrowMatcher.php https://gitlab.com/Laolballs/cbtapp | PHP | 271 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
20use PhpSpec\Exception\Example\MatcherException;
                    
21use PhpSpec\Exception\Example\FailureException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
23use PhpSpec\Exception\Fracture\MethodNotFoundException;
                    
24
                    
188                if (count($invalidProperties) > 0) {
                    
189                    $withProperties = sprintf(' with'.PHP_EOL.'%s,'.PHP_EOL,
                    
190                        implode(",\n", $invalidProperties)
                    
231                list($class, $methodName) = array($subject, $methodName);
                    
232                if (!method_exists($class, $methodName) && !method_exists($class, '__call')) {
                    
233                    throw new MethodNotFoundException(
                    
                
Container.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 282 lines
                    
1<?php
                    
2
                    
64     *
                    
65     * Allowing any PHP callable leads to difficult to debug problems
                    
66     * as function names (strings) are callable (creating a function with
                    
102            || isset($this->protected[$this->values[$id]])
                    
103            || !method_exists($this->values[$id], '__invoke')
                    
104        ) {
                    
159    {
                    
160        if (!method_exists($callable, '__invoke')) {
                    
161            throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.');
                    
181    {
                    
182        if (!method_exists($callable, '__invoke')) {
                    
183            throw new \InvalidArgumentException('Callable is not a Closure or invokable object.');
                    
231
                    
232        if (!is_object($this->values[$id]) || !method_exists($this->values[$id], '__invoke')) {
                    
233            throw new \InvalidArgumentException(sprintf('Identifier "%s" does not contain an object definition.', $id));
                    
                
FormSelect.php https://gitlab.com/yousafsyed/easternglamor | PHP | 326 lines
                    
1<?php
                    
2/**
                    
139        // Render hidden element
                    
140        $useHiddenElement = method_exists($element, 'useHiddenElement')
                    
141            && method_exists($element, 'getUnselectedValue')
                    
314        if (!$this->formHiddenHelper) {
                    
315            if (method_exists($this->view, 'plugin')) {
                    
316                $this->formHiddenHelper = $this->view->plugin('formhidden');
                    
                
MethodProphecy.php https://gitlab.com/Laolballs/evotting | PHP | 407 lines
                    
1<?php
                    
2
                    
47        $double = $objectProphecy->reveal();
                    
48        if (!method_exists($double, $methodName)) {
                    
49            throw new MethodNotFoundException(sprintf(
                    
                
Standalone.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
17 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @version    $Id: Standalone.php 11374 2008-09-12 17:06:22Z ralph $
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
22/** Zend_View_Helper_Placeholder_Registry */
                    
23require_once 'Zend/View/Helper/Placeholder/Registry.php';
                    
24
                    
24
                    
25/** Zend_View_Helper_Abstract.php */
                    
26require_once 'Zend/View/Helper/Abstract.php';
                    
220        $container = $this->getContainer();
                    
221        if (method_exists($container, $method)) {
                    
222            $return = call_user_func_array(array($container, $method), $args);
                    
229
                    
230        require_once 'Zend/View/Exception.php';
                    
231        throw new Zend_View_Exception('Method "' . $method . '" does not exist');
                    
                
Dispatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 411 lines
                    
1<?php
                    
2
                    
241
                    
242        if (method_exists($command, 'queue')) {
                    
243            $command->queue($queue, $command);
                    
                
OperationResponseParser.php https://gitlab.com/x33n/ampache | PHP | 195 lines
                    
1<?php
                    
2
                    
107        $className = $command->getOperation()->getResponseClass();
                    
108        if (!method_exists($className, 'fromCommand')) {
                    
109            throw new ResponseClassException("{$className} must exist and implement a static fromCommand() method");
                    
                
Static.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 158 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHPUnit_MockObject package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 *
                    
16 * @package    PHPUnit_MockObject
                    
17 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
23 */
                    
24class PHPUnit_Framework_MockObject_Invocation_Static implements PHPUnit_Framework_MockObject_Invocation, PHPUnit_Framework_SelfDescribing
                    
25{
                    
119        // Check the blacklist before asking PHP reflection to work around
                    
120        // https://bugs.php.net/bug.php?id=53967
                    
121        if ($object->isInternal() &&
                    
                
ServiceContext.php git://github.com/twilio/twilio-php.git | PHP | 223 lines
                    
1<?php
                    
2
                    
203        $property = $this->$name;
                    
204        if (\method_exists($property, 'getContext')) {
                    
205            return \call_user_func_array(array($property, 'getContext'), $arguments);
                    
                
toggle.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 185 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class ToggleController extends JController{
                    
41		$function = $table.$task;
                    
42		if(method_exists($this,$function)){
                    
43			$this->$function($elementId,$value);
                    
120		$function = 'delete'.$table;
                    
121		if(method_exists($this,$function)){
                    
122			$this->$function($value1,$value2);
                    
                
ThrowMatcher.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 275 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
20use PhpSpec\Exception\Example\MatcherException;
                    
21use PhpSpec\Exception\Example\FailureException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
22use PhpSpec\Exception\Example\NotEqualException;
                    
23use PhpSpec\Exception\Fracture\MethodNotFoundException;
                    
24
                    
190                    $withProperties = sprintf(
                    
191                        ' with'.PHP_EOL.'%s,'.PHP_EOL,
                    
192                        implode(",\n", $invalidProperties)
                    
233                list($class, $methodName) = array($subject, $methodName);
                    
234                if (!method_exists($class, $methodName) && !method_exists($class, '__call')) {
                    
235                    throw new MethodNotFoundException(
                    
                
mainControlsPanel.php https://gitlab.com/talueses/SIPVE | PHP | 254 lines
                    
1<?php 
                    
2/*******************************************************************************\
                    
37?>
                    
38<?php
                    
39session_start(); // start up your PHP session!
                    
43
                    
44require_once "../controller/monitorremoto.control.php"; // Class CONTROLLER
                    
45
                    
49
                    
50if (method_exists($obj, $_REQUEST["mainControlsMethod"])){
                    
51    call_user_func(array($obj, $_REQUEST["mainControlsMethod"]));    
                    
89            $(function() {
                    
90                var maxPan   = parseInt(<?php echo $obj->maxPan;?>);
                    
91                var minPan   = parseInt(<?php echo $obj->minPan;?>);
                    
91                var minPan   = parseInt(<?php echo $obj->minPan;?>);
                    
92                var maxTilt  = parseInt(<?php echo $obj->maxTilt;?>);
                    
93                var minTilt  = parseInt(<?php echo $obj->minTilt;?>);
                    
                
Data.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
227        } else {
                    
228            require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
356        if (!is_string($json)) {
                    
357            require_once 'Zend/Dojo/Exception.php';
                    
358            throw new Zend_Dojo_Exception('fromJson() expects JSON input');
                    
                
Data.php https://gitlab.com/luisrepo/ClienteWS | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
227        } else {
                    
228            require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
356        if (!is_string($json)) {
                    
357            require_once 'Zend/Dojo/Exception.php';
                    
358            throw new Zend_Dojo_Exception('fromJson() expects JSON input');
                    
                
Tabs.php https://gitlab.com/yousafsyed/easternglamor | PHP | 484 lines
                    
1<?php
                    
2/**
                    
11 * Tabs block
                    
12 * @SuppressWarnings(PHPMD.NumberOfChildren)
                    
13 */
                    
109     * @throws  \Exception
                    
110     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
111     */
                    
309     * @return bool
                    
310     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
311     */
                    
326        if ($tab instanceof TabInterface) {
                    
327            if (method_exists($tab, 'getTabUrl')) {
                    
328                return $tab->getTabUrl();
                    
356        if ($tab instanceof TabInterface) {
                    
357            if (method_exists($tab, 'getTabClass')) {
                    
358                return $tab->getTabClass();
                    
                
ProviderTrait.php https://gitlab.com/I-NOZex/quiz | PHP | 243 lines
                    
1<?php
                    
2
                    
26            [
                    
27                'only' => ['*.php'],
                    
28                'recursive' => false,
                    
197        }
                    
198        if ($column->phpType === 'boolean') {
                    
199            $format = 'boolean';
                    
201            $format = 'ntext';
                    
202        } elseif (stripos($column->name, 'time') !== false && $column->phpType === 'integer') {
                    
203            $format = 'datetime';
                    
223        foreach ($this->_p as $obj) {
                    
224            if (method_exists($obj, $func)) {
                    
225                $c = call_user_func_array(array(&$obj, $func), $args);
                    
                
AbstractNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 306 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of PHPMD.
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2008-2012, Manuel Pichler <mapi@phpmd.org>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @author    Manuel Pichler <mapi@phpmd.org>
                    
38 * @copyright 2008-2014 Manuel Pichler. All rights reserved.
                    
38 * @copyright 2008-2014 Manuel Pichler. All rights reserved.
                    
39 * @license   http://www.opensource.org/licenses/bsd-license.php BSD License
                    
40 */
                    
41
                    
42namespace PHPMD;
                    
43
                    
                
init.php https://gitlab.com/che234/smproducciones | PHP | 321 lines
                    
1<?php
                    
2/** @var $gmDB
                    
144    if(isset($settings['commentsBGColor']) || isset($settings['commentsBGAlpha'])) {
                    
145        if(method_exists($gmCore, 'hex2rgb')) {
                    
146            $rgb   = implode(',', $gmCore->hex2rgb($allsettings['commentsBGColor']));
                    
240            jQuery(function() {
                    
241                var settings = <?php echo $json_settings; ?>;
                    
242                var content = <?php echo json_encode($content); ?>;
                    
242                var content = <?php echo json_encode($content); ?>;
                    
243                jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').gmPhantom([content, settings]);
                    
244            });
                    
286                <div class="gmPhantom_ThumbContainer gmPhantom_ThumbLoader<?php echo(!in_array($item['type'], array('image'))? " mfp-iframe" : ''); ?>" data-ratio="<?php echo $thumb_r; ?>" data-no="<?php echo $i++; ?>"><?php
                    
287                ?><a href="<?php echo $gmCore->upload['url'] . $item['src']; ?>" class="gmPhantom_Thumb"><img style="<?php echo $style; ?>" src="<?php echo $item['thumb']; ?>" alt="<?php echo esc_attr($item['title']); ?>"/></a><?php
                    
288                if(in_array($allsettings['thumbsInfo'], array('label', 'label_bottom')) && ($item['title'] != '')) {
                    
293                    <div class="gmPhantom_ThumbLabel"><?php echo $item['title']; ?></div>
                    
294                    <div style="display:none;" class="gmPhantom_ThumbCaption"><?php echo $item['text']; ?></div><?php
                    
295                } ?></div><?php
                    
                
EntityTypeManager.php https://gitlab.com/geeta7/drupal | PHP | 261 lines
                    
1<?php
                    
2
                    
250    }
                    
251    if (method_exists($handler, 'setModuleHandler')) {
                    
252      $handler->setModuleHandler($this->moduleHandler);
                    
253    }
                    
254    if (method_exists($handler, 'setStringTranslation')) {
                    
255      $handler->setStringTranslation($this->stringTranslation);
                    
                
MemcachedEngine.php https://gitlab.com/captain4ever/ufriend_php | PHP | 338 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         CakePHP(tm) v 2.5.0
                    
45 *  - serialize = string, default => php. The serializer engine used to serialize data.
                    
46 *    Available engines are php, igbinary and json. Beside php, the memcached extension
                    
47 *    must be compiled with the appropriate serializer support.
                    
64		'json' => Memcached::SERIALIZER_JSON,
                    
65		'php' => Memcached::SERIALIZER_PHP
                    
66	);
                    
216 * @return bool True if the data was successfully cached, false on failure
                    
217 * @see http://php.net/manual/en/memcache.set.php
                    
218 */
                    
                
Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 313 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
27
                    
104                if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
                    
105                    #require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
106                    throw new Zend_Tool_Framework_Manifest_Exception(
                    
181                        if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) {
                    
182                            #require_once 'Zend/Tool/Framework/Metadata/Dynamic.php';
                    
183                        }
                    
187                    if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) {
                    
188                        #require_once 'Zend/Tool/Framework/Manifest/Exception.php';
                    
189                        throw new Zend_Tool_Framework_Manifest_Exception(
                    
284                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
285                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
286                $string .= $metadataString;
                    
                
Instantiator.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 273 lines
                    
1<?php
                    
2/*
                    
35    /**
                    
36     * Markers used internally by PHP to define whether {@see \unserialize} should invoke
                    
37     * the method {@see \Serializable::unserialize()} when dealing with classes implementing
                    
198    {
                    
199        if (\PHP_VERSION_ID >= 50600) {
                    
200            return ! ($this->hasInternalAncestors($reflectionClass) && $reflectionClass->isFinal());
                    
202
                    
203        return \PHP_VERSION_ID >= 50400 && ! $this->hasInternalAncestors($reflectionClass);
                    
204    }
                    
228     *
                    
229     * @link http://news.php.net/php.internals/74654
                    
230     *
                    
253    {
                    
254        return PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513;
                    
255    }
                    
                
Cache.php https://gitlab.com/luisrepo/ClienteWS | PHP | 207 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cache.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
51    /**
                    
52     * PHP SOAP wsdl cache constant
                    
53     *
                    
76        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
77            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
78            throw new Zend_Service_DeveloperGarden_Exception(
                    
105        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
106            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
107            throw new Zend_Service_DeveloperGarden_Exception(
                    
180        $cache = self::getCache();
                    
181        if (method_exists($cache, 'clean')) {
                    
182            $cache->clean();
                    
                
Cache.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 207 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
51    /**
                    
52     * PHP SOAP wsdl cache constant
                    
53     *
                    
76        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
77            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
78            throw new Zend_Service_DeveloperGarden_Exception(
                    
105        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
106            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
107            throw new Zend_Service_DeveloperGarden_Exception(
                    
180        $cache = self::getCache();
                    
181        if (method_exists($cache, 'clean')) {
                    
182            $cache->clean();
                    
                
Table.php https://gitlab.com/sandipmavani/rspsms | PHP | 440 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
318		{
                    
319			if ( ! method_exists($query, 'list_fields'))
                    
320			{
                    
438
                    
439/* End of file Table.php */
                    
440/* Location: ./system/libraries/Table.php */
                    
                
CommonModel.php https://gitlab.com/randydanniswara/website | PHP | 279 lines
                    
1<?php
                    
2/**
                    
145            $repo = $this->getRepository();
                    
146            if (method_exists($repo, 'getEntity')) {
                    
147                return $repo->getEntity($id);
                    
                
function.html_radios.php https://gitlab.com/Red54/thinkphp | 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
                    
71                } elseif (is_object($_val)) {
                    
72                    if (method_exists($_val, "__toString")) {
                    
73                        $selected = smarty_function_escape_special_chars((string) $_val->__toString());
                    
144    if (is_object($value)) {
                    
145        if (method_exists($value, "__toString")) {
                    
146            $value = (string) $value->__toString();
                    
                
update.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 449 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
48
                    
49	if ( method_exists( $wpdb, 'db_version' ) )
                    
50		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
160		case 'load-plugins.php' :
                    
161		case 'load-update.php' :
                    
162			$timeout = HOUR_IN_SECONDS;
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
View.php https://gitlab.com/steven.r/recargaonline | PHP | 282 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Slim - a micro PHP 5 framework
                    
4 *
                    
171            // Ensure original behavior is maintained. DO NOT invoke stored Closures.
                    
172            if (is_object($args[1]) && method_exists($args[1], '__invoke')) {
                    
173                $this->data->set($args[0], $this->data->protect($args[1]));
                    
                
FeedAbstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 321 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Feed/Reader.php';
                    
26
                    
29 */
                    
30#require_once 'Zend/Feed/Reader/FeedInterface.php';
                    
31
                    
271        foreach ($this->_extensions as $extension) {
                    
272            if (method_exists($extension, $method)) {
                    
273                return call_user_func_array(array($extension, $method), $args);
                    
275        }
                    
276        #require_once 'Zend/Feed/Exception.php';
                    
277        throw new Zend_Feed_Exception('Method: ' . $method
                    
                
AbstractAdapter.php https://gitlab.com/yousafsyed/easternglamor | PHP | 310 lines
                    
1<?php
                    
2/**
                    
105        if (!empty($checksum)) {
                    
106            if (method_exists($this, $checksum)) {
                    
107                return $this->$checksum($value);
                    
                
Compress.php https://gitlab.com/yousafsyed/easternglamor | PHP | 197 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Filter/Interface.php';
                    
26
                    
78            $method = 'set' . ucfirst($key);
                    
79            if (method_exists($this, $method)) {
                    
80                $this->$method($value);
                    
99        if (!class_exists($adapter)) {
                    
100            #require_once 'Zend/Loader.php';
                    
101            if (Zend_Loader::isReadable('Zend/Filter/Compress/' . ucfirst($adapter) . '.php')) {
                    
108        if (!$this->_adapter instanceof Zend_Filter_Compress_CompressInterface) {
                    
109            #require_once 'Zend/Filter/Exception.php';
                    
110            throw new Zend_Filter_Exception("Compression adapter '" . $adapter . "' does not implement Zend_Filter_Compress_CompressInterface");
                    
137        if (!is_string($adapter)) {
                    
138            #require_once 'Zend/Filter/Exception.php';
                    
139            throw new Zend_Filter_Exception('Invalid adapter provided; must be string or instance of Zend_Filter_Compress_CompressInterface');
                    
                
Engine.php https://gitlab.com/Laolballs/BcryptGenerator | PHP | 507 lines
                    
1<?php
                    
2/**
                    
5 * @copyright   Copyright (c) 2011, Mike Cao <mike@mikecao.com>
                    
6 * @license     MIT, http://flightphp.com/license
                    
7 */
                    
165    public function map($name, $callback) {
                    
166        if (method_exists($this, $name)) {
                    
167            throw new \Exception('Cannot override an existing framework method.');
                    
182    public function register($name, $class, array $params = array(), $callback = null) {
                    
183        if (method_exists($this, $name)) {
                    
184            throw new \Exception('Cannot override an existing framework method.');
                    
                
FormRequest.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 226 lines
                    
1<?php
                    
2
                    
76
                    
77        if (method_exists($this, 'validator')) {
                    
78            return $this->container->call([$this, 'validator'], compact('factory'));
                    
105    {
                    
106        if (method_exists($this, 'authorize')) {
                    
107            return $this->container->call([$this, 'authorize']);
                    
                
FilesystemAdapter.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 383 lines
                    
1<?php
                    
2
                    
121     */
                    
122    public function prepend($path, $data, $separator = PHP_EOL)
                    
123    {
                    
137     */
                    
138    public function append($path, $data, $separator = PHP_EOL)
                    
139    {
                    
240            return '/storage/'.$path;
                    
241        } elseif (method_exists($adapter, 'getUrl')) {
                    
242            return $adapter->getUrl($path);
                    
                
Dynamic.php https://gitlab.com/devtoannh/cafe | PHP | 219 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Dynamic.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Metadata/Interface.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Tool/Framework/Metadata/Attributable.php';
                    
32
                    
187    {
                    
188        if (method_exists($this, 'get' . $name)) {
                    
189            return $this->{'get' . $name}();
                    
192        } else {
                    
193            require_once 'Zend/Tool/Framework/Registry/Exception.php';
                    
194            throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this metadata.');
                    
                
Hostname.php https://gitlab.com/yousafsyed/easternglamor | PHP | 330 lines
                    
1<?php
                    
2/**
                    
269    {
                    
270        if (!method_exists($request, 'getUri')) {
                    
271            return;
                    
                
Backtrace.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 230 lines
                    
1<?php
                    
2
                    
18     * and array notation for class methods.
                    
19     * PHP's debug_backtrace() doesn't allow to inspect the argument names,
                    
20     * so all arguments of the provided functions will be filtered out.
                    
37        array('SilverStripe\\Security\\PasswordValidator', 'validate'),
                    
38        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'encrypt'),
                    
39        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'salt'),
                    
39        array('SilverStripe\\Security\\PasswordEncryptor_PHPHash', 'salt'),
                    
40        array('SilverStripe\\Security\\PasswordEncryptor_LegacyPHPHash', 'encrypt'),
                    
41        array('SilverStripe\\Security\\PasswordEncryptor_LegacyPHPHash', 'salt'),
                    
176            foreach ($item['args'] as $arg) {
                    
177                if (!is_object($arg) || method_exists($arg, '__toString')) {
                    
178                    $sarg = is_array($arg) ? 'Array' : strval($arg);
                    
                
ViewHelper.php https://gitlab.com/luisrepo/ClienteWS | PHP | 256 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Form_Decorator_Abstract */
                    
22require_once 'Zend/Form/Decorator/Abstract.php';
                    
23
                    
41 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
42 * @version    $Id: ViewHelper.php 23775 2011-03-01 17:25:24Z ralph $
                    
43 */
                    
155
                    
156        if (method_exists($element, 'getSeparator')) {
                    
157            if (null !== ($listsep = $element->getSeparator())) {
                    
224        if (null === $view) {
                    
225            require_once 'Zend/Form/Decorator/Exception.php';
                    
226            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
228
                    
229        if (method_exists($element, 'getMultiOptions')) {
                    
230            $element->getMultiOptions();
                    
                
ErrorHandler.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 301 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Error
                    
17 * @since         CakePHP(tm) v 0.10.5.1732
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
19 */
                    
68 * Using the built-in exception handling, you can log all the exceptions
                    
69 * that are dealt with by ErrorHandler by setting `Exception.log` to true in your core.php.
                    
70 * Enabling this will log every exception to CakeLog and the configured loggers.
                    
105 * @return void
                    
106 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
107 */
                    
                
Feed.php https://gitlab.com/yousafsyed/easternglamor | PHP | 361 lines
                    
1<?php
                    
2/**
                    
74        if (!ctype_alpha($value) && strlen($value) > 0) {
                    
75            #require_once 'Zend/Feed/Exception.php';
                    
76            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
79        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
80            #require_once 'Zend/Feed/Exception.php';
                    
81            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
110        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
111            #require_once 'Zend/Feed/Exception.php';
                    
112            throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
                    
135                if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
136                    #require_once 'Zend/Feed/Exception.php';
                    
137                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
142                if (iconv_strlen($key, $this->getEncoding()) > 255) {
                    
143                    #require_once 'Zend/Feed/Exception.php';
                    
144                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
                
ControllerResolver.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 238 lines
                    
1<?php
                    
2
                    
60        if (is_object($controller)) {
                    
61            if (method_exists($controller, '__invoke')) {
                    
62                return $controller;
                    
68        if (false === strpos($controller, ':')) {
                    
69            if (method_exists($controller, '__invoke')) {
                    
70                return $this->instantiateController($controller);
                    
116            if (array_key_exists($param->name, $attributes)) {
                    
117                if (PHP_VERSION_ID >= 50600 && $param->isVariadic() && is_array($attributes[$param->name])) {
                    
118                    $arguments = array_merge($arguments, array_values($attributes[$param->name]));
                    
146     *
                    
147     * @return callable A PHP callable
                    
148     *
                    
184
                    
185            if (class_exists($callable) && !method_exists($callable, '__invoke')) {
                    
186                return sprintf('Class "%s" does not have a method "__invoke".', $callable);
                    
                
NormalizerFormatter.php https://gitlab.com/kimting254/wbms | PHP | 280 lines
                    
1<?php
                    
2
                    
33        if (!function_exists('json_encode')) {
                    
34            throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter');
                    
35        }
                    
93            // TODO 2.0 only check for Throwable
                    
94            if ($data instanceof Exception || (PHP_VERSION_ID > 70000 && $data instanceof \Throwable)) {
                    
95                return $this->normalizeException($data);
                    
98            // non-serializable objects that implement __toString stringified
                    
99            if (method_exists($data, '__toString') && !$data instanceof \JsonSerializable) {
                    
100                $value = $data->__toString();
                    
176    {
                    
177        if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
                    
178            return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 190 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class FilterViewFilter extends JView
                    
13		$function = $this->getLayout();
                    
14		if(method_exists($this,$function)) $this->$function();
                    
15		parent::display($tpl);
                    
109					try{
                    
110						new Ajax('index.php?'+document.adminForm.toQueryString()+'&option=com_acymailing&tmpl=component&ctrl=filter&task=countresults&num='+num,{ method: 'post', update: document.getElementById('countresult_'+num)}).request();
                    
111					}catch(err){
                    
113						method: 'post',
                    
114						url: 'index.php?'+document.adminForm.toQueryString()+'&option=com_acymailing&tmpl=component&ctrl=filter&task=countresults&num='+num,
                    
115						onSuccess: function(responseText, responseXML) {
                    
                
update.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 451 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
48
                    
49	if ( method_exists( $wpdb, 'db_version' ) )
                    
50		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
160		case 'load-plugins.php' :
                    
161		case 'load-update.php' :
                    
162			$timeout = 3600; // 1 hour
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
Application.php https://gitlab.com/yousafsyed/easternglamor | PHP | 440 lines
                    
1<?php
                    
2/**
                    
67     *
                    
68     * Initialize application. Potentially initializes include_paths, PHP
                    
69     * settings, and bootstrap class.
                    
80
                    
81        #require_once 'Zend/Loader/Autoloader.php';
                    
82        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
153        if (!empty($options['phpsettings'])) {
                    
154            $this->setPhpSettings($options['phpsettings']);
                    
155        }
                    
166            $autoloader = $this->getAutoloader();
                    
167            if (method_exists($autoloader, 'setZfPath')) {
                    
168                $zfPath    = $options['autoloaderzfpath'];
                    
266    /**
                    
267     * Set PHP configuration settings
                    
268     *
                    
                
TriggerModel.php https://gitlab.com/jankube/mautic | PHP | 398 lines
                    
1<?php
                    
2/**
                    
215                $func = "set" .  ucfirst($f);
                    
216                if (method_exists($event, $func)) {
                    
217                    $event->$func($v);
                    
                
Citation.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 666 lines
                    
1<?php
                    
2
                    
9 * @copyright 2009 California State University
                    
10 * @version $Id: Citation.php 1030 2010-01-05 18:42:09Z dwalker@calstate.edu $
                    
11 * @package Xerxes
                    
107			
                    
108			if ( method_exists($xerxes, $method) )
                    
109			{
                    
337		{
                    
338			if ( method_exists($this, $name) )
                    
339			{
                    
                
JUnit.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 458 lines
                    
17 */
                    
18class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
                    
19{
                    
137     */
                    
138    public function addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, $time)
                    
139    {
                    
150     */
                    
151    public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
                    
152    {
                    
217     *
                    
218     * @param PHPUnit_Framework_Test $test
                    
219     * @param Exception              $e
                    
428     *
                    
429     * @param PHPUnit_Framework_Test $test
                    
430     * @param Exception              $e
                    
                
Router.php https://gitlab.com/kimting254/wbms | PHP | 346 lines
                    
1<?php
                    
2
                    
116            'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
                    
117            'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
                    
118            'generator_cache_class' => 'ProjectUrlGenerator',
                    
120            'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher',
                    
121            'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
                    
122            'matcher_cache_class' => 'ProjectUrlMatcher',
                    
254            $this->matcher = new $this->options['matcher_class']($this->getRouteCollection(), $this->context);
                    
255            if (method_exists($this->matcher, 'addExpressionLanguageProvider')) {
                    
256                foreach ($this->expressionLanguageProviders as $provider) {
                    
264        $class = $this->options['matcher_cache_class'];
                    
265        $cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']);
                    
266        if (!$cache->isFresh()) {
                    
267            $dumper = $this->getMatcherDumperInstance();
                    
268            if (method_exists($dumper, 'addExpressionLanguageProvider')) {
                    
269                foreach ($this->expressionLanguageProviders as $provider) {
                    
                
customizer.php https://gitlab.com/hop23typhu/list-theme | PHP | 357 lines
                    
1<?php
                    
2/**
                    
24		//** Register new customizer elements
                    
25		if ( method_exists( $this, 'register' ) ) {
                    
26			add_action( 'customize_register', array( $this, 'register'), 15 );
                    
31		//* Customizer scripts
                    
32		if ( method_exists( $this, 'scripts' ) ) {
                    
33			add_action( 'customize_preview_init', 'scripts' );
                    
                
view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 273 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class SubscriberViewSubscriber extends JView
                    
15		$function = $this->getLayout();
                    
16		if(method_exists($this,$function)) $this->$function();
                    
17		parent::display($tpl);
                    
246		if(!empty($subscriber->userid)){
                    
247			if(file_exists(ACYMAILING_ROOT.'components'.DS.'com_comprofiler'.DS.'comprofiler.php')){
                    
248				$editLink = 'index.php?option=com_comprofiler&task=edit&cid[]=';
                    
249			}elseif(version_compare(JVERSION,'1.6.0','<')){
                    
250				$editLink = 'index.php?option=com_users&task=edit&cid[]=';
                    
251			}else{
                    
251			}else{
                    
252				$editLink = 'index.php?option=com_users&task=user.edit&id=';
                    
253			}
                    
                
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;
                    
95		// Here, we just say no if you are missing it and aren't loading a jpeg.
                    
96		if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && $mime_type != 'image/jpeg' )
                    
97				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 ) );
                    
                
class.wpcom-json-api-sharing-buttons-endpoint.php https://gitlab.com/ibnukipa/cakra | PHP | 385 lines
                    
1<?php
                    
2
                    
14		} else if ( ! class_exists( 'Sharing_Service' ) || ! class_exists( 'Sharing_Source' ) ||
                    
15				( method_exists( 'Jetpack', 'is_module_active' ) && ! Jetpack::is_module_active( 'sharedaddy' ) ) ) {
                    
16			return new WP_Error( 'missing_jetpack_module', 'The Sharing module must be activated in order to use this endpoint', 400 );
                    
38
                    
39		if ( method_exists( $button, 'get_options' ) ) {
                    
40			// merge get_options() values into response, primarily to account
                    
                
RendererAbstract.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 540 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: RendererAbstract.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
119            $method = 'set' . $key;
                    
120            if (method_exists($this, $method)) {
                    
121                $this->$method($value);
                    
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(
                    
                
RendererAbstract.php https://gitlab.com/luisrepo/ClienteWS | PHP | 540 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: RendererAbstract.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
119            $method = 'set' . $key;
                    
120            if (method_exists($this, $method)) {
                    
121                $this->$method($value);
                    
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(
                    
                
class-wc-gateway-paypal-ipn-handler.php https://gitlab.com/webkod3r/tripolis | PHP | 321 lines
                    
1<?php
                    
2
                    
6
                    
7include_once( 'class-wc-gateway-paypal-response.php' );
                    
8
                    
62
                    
63			if ( method_exists( $this, 'payment_status_' . $posted['payment_status'] ) ) {
                    
64				call_user_func( array( $this, 'payment_status_' . $posted['payment_status'] ), $order, $posted );
                    
256			$this->send_ipn_email_notification(
                    
257				sprintf( __( 'Payment for order %s refunded', 'woocommerce' ), '<a class="link" href="' . esc_url( admin_url( 'post.php?post=' . $order->id . '&action=edit' ) ) . '">' . $order->get_order_number() . '</a>' ),
                    
258				sprintf( __( 'Order #%s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] )
                    
271		$this->send_ipn_email_notification(
                    
272			sprintf( __( 'Payment for order %s reversed', 'woocommerce' ), '<a class="link" href="' . esc_url( admin_url( 'post.php?post=' . $order->id . '&action=edit' ) ) . '">' . $order->get_order_number() . '</a>' ),
                    
273			sprintf( __( 'Order #%s has been marked on-hold due to a reversal - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), wc_clean( $posted['reason_code'] ) )
                    
284			sprintf( __( 'Reversal cancelled for order #%s', 'woocommerce' ), $order->get_order_number() ),
                    
285			sprintf( __( 'Order #%s has had a reversal cancelled. Please check the status of payment and update the order status accordingly here: %s', 'woocommerce' ), $order->get_order_number(), esc_url( admin_url( 'post.php?post=' . $order->id . '&action=edit' ) ) )
                    
286		);
                    
                
Form.php https://gitlab.com/yousafsyed/easternglamor | PHP | 119 lines
                    
1<?php
                    
2/**
                    
59    {
                    
60        if (method_exists($form, 'prepare')) {
                    
61            $form->prepare();
                    
                
FormModel.php https://gitlab.com/jankube/mautic | PHP | 465 lines
                    
1<?php
                    
2/**
                    
147                $func = "set" . ucfirst($f);
                    
148                if (method_exists($field, $func)) {
                    
149                    $field->$func($v);
                    
212
                    
213                if (method_exists($action, $func)) {
                    
214                    $action->$func($v);
                    
283        $html = $templating->render(
                    
284            $theme.'MauticFormBundle:Builder:form.html.php',
                    
285            array(
                    
                
update.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 354 lines
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the
                    
13 * WordPress server at api.wordpress.org server. Will only check if WordPress
                    
26	global $wp_version, $wpdb, $wp_local_package;
                    
27	$php_version = phpversion();
                    
28
                    
57	$local_package = isset( $wp_local_package )? $wp_local_package : '';
                    
58	$url = "http://api.wordpress.org/core/version-check/1.5/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package&blogs=$num_blogs&users={$user_count['total_users']}&multisite_enabled=$multisite_enabled";
                    
59
                    
136	$new_option->last_checked = time();
                    
137	$timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
                    
138	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
210	if ( !function_exists( 'get_themes' ) )
                    
211		require_once( ABSPATH . 'wp-includes/theme.php' );
                    
212
                    
                
HelperBroker.php https://gitlab.com/yousafsyed/easternglamor | PHP | 381 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Controller/Action/HelperBroker/PriorityStack.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Loader.php';
                    
32
                    
69        if ((null !== $loader) && (!$loader instanceof Zend_Loader_PluginLoader_Interface)) {
                    
70            #require_once 'Zend/Controller/Action/Exception.php';
                    
71            throw new Zend_Controller_Action_Exception('Invalid plugin loader provided to HelperBroker');
                    
83        if (null === self::$_pluginLoader) {
                    
84            #require_once 'Zend/Loader/PluginLoader.php';
                    
85            self::$_pluginLoader = new Zend_Loader_PluginLoader(array(
                    
181        if (!isset($stack->{$name})) {
                    
182            #require_once 'Zend/Controller/Action/Exception.php';
                    
183            throw new Zend_Controller_Action_Exception('Action helper "' . $name . '" has not been registered with the helper broker');
                    
                
posts.php https://gitlab.com/mybbpl/merge-1.6-pl | PHP | 234 lines
                    
1<?php
                    
2/** 
                    
81
                    
82		if(method_exists($this, "after_import"))
                    
83		{
                    
                
FormRow.php https://gitlab.com/yousafsyed/easternglamor | PHP | 442 lines
                    
1<?php
                    
2/**
                    
380
                    
381        if (method_exists($this->view, 'plugin')) {
                    
382            $this->labelHelper = $this->view->plugin('form_label');
                    
409
                    
410        if (method_exists($this->view, 'plugin')) {
                    
411            $this->elementHelper = $this->view->plugin('form_element');
                    
431
                    
432        if (method_exists($this->view, 'plugin')) {
                    
433            $this->elementErrorsHelper = $this->view->plugin('form_element_errors');
                    
                
axis214ipptz_extra.php https://gitlab.com/talueses/SIPVE | PHP | 287 lines
                    
1<?php 
                    
2/*******************************************************************************\
                    
37?>
                    
38<?php
                    
39
                    
39
                    
40session_start(); // start up your PHP session!
                    
41
                    
44
                    
45require_once "../controller/monitorremoto.control.php"; // Class CONTROLLER
                    
46
                    
50
                    
51if (method_exists($obj, $_REQUEST["extraPanelMethod"])){
                    
52    call_user_func(array($obj, $_REQUEST["extraPanelMethod"]));    
                    
84            $(function() {
                    
85                var maxFocus = parseInt(<?php echo $obj->maxFocus;?>);
                    
86                var minFocus = parseInt(<?php echo $obj->minFocus;?>);
                    
                
dropdown-menus.php https://gitlab.com/hop23typhu/list-theme | PHP | 260 lines
                    
1<?php
                    
2/*
                    
44function dropdown_add_blank_item( $items, $args ) {
                    
45	if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) ) {
                    
46		if ( ( ! isset( $args->menu ) || empty( $args->menu ) ) && isset( $args->theme_location ) ) {
                    
62function dropdown_remove_empty_items( $items, $args ) {
                    
63	if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) )
                    
64		$items = str_replace( "<option></option>", "", $items );
                    
76		var getElementsByClassName=function(a,b,c){if(document.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||document;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(document.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=document.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=document.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=document.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)},
                    
77			dropdowns = getElementsByClassName( '<?php echo apply_filters( 'dropdown_menus_class', 'dropdown-menu' ); ?>' );
                    
78		for ( i=0; i<dropdowns.length; i++ )
                    
235			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'tfbasedetails' ) ?></label>
                    
236			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $title; ?>" />
                    
237		</p>
                    
238		<p>
                    
239			<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:', 'tfbasedetails' ); ?></label>
                    
240			<select id="<?php echo $this->get_field_id( 'nav_menu' ); ?>" name="<?php echo $this->get_field_name( 'nav_menu' ); ?>">
                    
                
mdl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 309 lines
                    
1<?php
                    
2/**
                    
5 * @package
                    
6 * @version $Id: mdl.messenger.php 1429 2008-04-08 05:22:50Z flaboy $
                    
7 * @copyright 2003-2007 ShopEx
                    
11//adapted into plugin style by Alex 2008-3-14
                    
12require_once('plugin.php');
                    
13
                    
27            $this->_sender[$sender] = &$obj;
                    
28            if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions'))
                    
29                $obj->config = $this->getOptions($sender,true);
                    
29                $obj->config = $this->getOptions($sender,true);
                    
30            if(method_exists($obj,'outgoingConfig')||method_exists($obj,'outgoingconfig'))
                    
31                $obj->outgoingOptions = $this->outgoingConfig($sender,true);
                    
39        if(!$obj->_isReady){
                    
40            if(method_exists($obj,'ready')) $obj->ready($obj->config);
                    
41            if(method_exists($obj,'finish')){
                    
                
class_image_gd.php https://gitlab.com/AhmedMedo/Seo | PHP | 354 lines
                    
1<?php
                    
2
                    
189        $method = "output_$type";
                    
190        if (!method_exists($this, $method))
                    
191            return false;
                    
                
DebugClassLoader.php https://gitlab.com/Laolballs/evotting | PHP | 223 lines
                    
1<?php
                    
2
                    
43    {
                    
44        $this->wasFinder = is_object($classLoader) && method_exists($classLoader, 'findFile');
                    
45
                    
50            $this->classLoader = $classLoader;
                    
51            $this->isFinder = is_array($classLoader) && method_exists($classLoader[0], 'findFile');
                    
52        }
                    
54        if (!isset(self::$caseCheck)) {
                    
55            self::$caseCheck = false !== stripos(PHP_OS, 'win') ? (false !== stripos(PHP_OS, 'darwin') ? 2 : 1) : 0;
                    
56        }
                    
75    {
                    
76        // Ensures we don't hit https://bugs.php.net/42098
                    
77        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
182                if (false !== strpos($class, '/')) {
                    
183                    throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
                    
184                }
                    
                
Helper.php https://gitlab.com/wuhang2003/typecho | PHP | 442 lines
                    
1<?php
                    
2/**
                    
55            if (!isset($activatedPlugins[$pluginName]) || !class_exists($className)
                    
56            || !method_exists($className, 'deactivate')) {
                    
57                throw new Typecho_Widget_Exception(_t('无法禁用插件'), 500);
                    
266        $fileName = urlencode(trim($fileName, '/'));
                    
267        $panelTable['child'][$index][] = array($title, $subTitle, 'extending.php?panel=' . $fileName, $level, $hidden, $addLink);
                    
268
                    
302        foreach ($panelTable['child'][$index] as $key => $val) {
                    
303            if ($val[2] == 'extending.php?panel=' . $fileName) {
                    
304                unset($panelTable['child'][$index][$key]);
                    
323    {
                    
324        return Typecho_Common::url('extending.php?panel=' . (trim($fileName, '/')), self::options()->adminUrl);
                    
325    }
                    
                
Json.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 383 lines
                    
1<?php
                    
2/**
                    
101        if (is_object($valueToEncode)) {
                    
102            if (method_exists($valueToEncode, 'toJson')) {
                    
103                return $valueToEncode->toJson();
                    
103                return $valueToEncode->toJson();
                    
104            } elseif (method_exists($valueToEncode, 'toArray')) {
                    
105                return static::encode($valueToEncode->toArray(), $cycleCheck, $options);
                    
217     *
                    
218     * This function converts the SimpleXMLElement object into a PHP array by
                    
219     * calling a recursive (protected static) function in this class. Once all
                    
219     * calling a recursive (protected static) function in this class. Once all
                    
220     * the XML elements are stored in the PHP array, it is returned to the caller.
                    
221     *
                    
297     *
                    
298     * This function converts the XML formatted string into a PHP array by
                    
299     * calling a recursive (protected static) function in this class. Then, it
                    
                
DefaultController.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 130 lines
                    
1<?php
                    
2/**
                    
104        $method = 'action' . $name;
                    
105        if (method_exists($generator, $method)) {
                    
106            return $generator->$method();
                    
                
DebugClassLoader.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 258 lines
                    
1<?php
                    
2
                    
33    private static $deprecated = array();
                    
34    private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
                    
35
                    
44    {
                    
45        $this->wasFinder = is_object($classLoader) && method_exists($classLoader, 'findFile');
                    
46
                    
52            $this->classLoader = $classLoader;
                    
53            $this->isFinder = is_array($classLoader) && method_exists($classLoader[0], 'findFile');
                    
54        }
                    
56        if (!isset(self::$caseCheck)) {
                    
57            self::$caseCheck = false !== stripos(PHP_OS, 'win') ? (false !== stripos(PHP_OS, 'darwin') ? 2 : 1) : 0;
                    
58        }
                    
75    {
                    
76        // Ensures we don't hit https://bugs.php.net/42098
                    
77        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
                
vc-column.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 231 lines
                    
1<?php
                    
2
                    
40				$method_name = vc_camel_case( 'output-editor-control-' . $control );
                    
41				if ( method_exists( $this, $method_name ) ) {
                    
42					$output .= $this->$method_name();
                    
                
Loader.php https://gitlab.com/r.collas/site_central | PHP | 548 lines
                    
1<?php
                    
2/**
                    
12
                    
13require_once 'Exception.php';
                    
14
                    
167
                    
168		return str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
                    
169
                    
183
                    
184			if(!method_exists($class, $method))
                    
185				throw new Yab_Exception('"'.$method.'" does not exists on '.$class);
                    
275		$space = $is_cli ? ' ' : '&nbsp;';
                    
276		$crlf = $is_cli ? PHP_EOL : '<br />';
                    
277		
                    
302
                    
303		if($this->getRequest()->isCli() || PHP_VERSION < '5.3')
                    
304			return print_r($var, true);
                    
                
class_image.php https://gitlab.com/ilya.webcity/anna | PHP | 241 lines
                    
1<?php
                    
2
                    
9  * @copyright 2010, 2011 KCFinder Project
                    
10  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
11  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
93            $class = "image_$driver";
                    
94            if (class_exists($class) && method_exists($class, "available")) {
                    
95                eval("\$avail = $class::available();");
                    
151
                    
152/** Checks if PHP needs some extra extensions to use the image driver. This
                    
153  * static method should be implemented into driver classes like abstract
                    
                
RestController.class.php https://gitlab.com/fangjianwei/weifenxiao | PHP | 234 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
13/**
                    
14 * ThinkPHP REST控制器类
                    
15 */
                    
71        if( 0 === strcasecmp($method,ACTION_NAME.C('ACTION_SUFFIX'))) {
                    
72            if(method_exists($this,$method.'_'.$this->_method.'_'.$this->_type)) { // RESTFul方法支持
                    
73                $fun  =  $method.'_'.$this->_method.'_'.$this->_type;
                    
74                $this->$fun();
                    
75            }elseif($this->_method == $this->defaultMethod && method_exists($this,$method.'_'.$this->_type) ){
                    
76                $fun  =  $method.'_'.$this->_type;
                    
                
utils.php https://gitlab.com/aristath/maera | PHP | 174 lines
                    
1<?php
                    
2/**
                    
82        // parameters and trigger errors exactly as the built-in array_column()
                    
83        // does in PHP 5.5.
                    
84        $argc = func_num_args();
                    
100            && $params[1] !== null
                    
101            && !(is_object($params[1]) && method_exists($params[1], '__toString'))
                    
102        ) {
                    
110            && !is_string($params[2])
                    
111            && !(is_object($params[2]) && method_exists($params[2], '__toString'))
                    
112        ) {
                    
                
FormDataExtractor.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 204 lines
                    
1<?php
                    
2
                    
131
                    
132                    $cause = method_exists($cause, 'getCause') ? $cause->getCause() : null;
                    
133
                    
                
Lexer.php https://gitlab.com/I-NOZex/quiz | PHP | 357 lines
                    
1<?php
                    
2
                    
99                    if (class_exists('DOMDocument') &&
                    
100                        method_exists('DOMDocument', 'loadHTML') &&
                    
101                        !extension_loaded('domxml')
                    
136
                    
137        // once PHP DOM implements native line numbers, or we
                    
138        // hack out something using XSLT, remove this stipulation
                    
                
 

Source

Language