PageRenderTime 567ms queryFilters 0ms Sphinxql 371ms GetByIds 150ms meta 0ms repositoryFilters 9ms languageFilters 1ms sourceFilters 2ms

90,577 results for 'php method_exists repo:Amit_Ashckenazi/unmatched-archives' (567 ms)

Source

Language

Repository

base.php https://github.com/floviolleau/selfoss.git | PHP | 2,620 lines
1<?php
2
69	const
70		//! Mapped PHP globals
71		GLOBALS='GET|POST|COOKIE|REQUEST|SESSION|FILES|SERVER|ENV',
110	/**
111	*	Sync PHP global with corresponding hive key
112	*	@return array
358					$out.='['.$this->stringify($part).']';
359			// PHP can't unset a referenced variable
360			eval('unset($this->hive'.$out.');');
499	/**
500	*	Convert PHP expression/value to compressed exportable string
501	*	@return string
518							$func($arg,$val);
519				return method_exists($arg,'__tostring')?
520					$arg:
Object.php https://github.com/daslicht/SilverStripe-cms-v3.1.5.git | PHP | 1,143 lines
1<?php
2/**
8 * See {@link Extension} on how to implement a custom multiple
9 * inheritance for object instances based on PHP5 method call overloading.
10 * 
147	/**
148	 * Create an object from a string representation.  It treats it as a PHP constructor without the
149	 * 'new' keyword.  It also manages to construct the object without the use of eval().
194	public static function parse_class_spec($classSpec) {
195		$tokens = token_get_all("<?php $classSpec");
196		$class = null;
381	 *
382	 * If any extra values are discovered, they are then merged with the default PHP static values, or in some cases
383	 * completely replace the default PHP static when you set $replace = true, and do not define extra data on any
769	 *
770	 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via
771	 * extensions
base.php https://github.com/panchalkalpesh/fatfree.git | PHP | 2,638 lines
1<?php
2
88	const
89		//! Mapped PHP globals
90		GLOBALS='GET|POST|COOKIE|REQUEST|SESSION|FILES|SERVER|ENV',
128	/**
129	*	Sync PHP global with corresponding hive key
130	*	@return array
178	/**
179	*	Convert JS-style token to PHP expression
180	*	@return string
522	/**
523	*	Convert PHP expression/value to compressed exportable string
524	*	@return string
649	function dupe($arg) {
650		if (method_exists('ReflectionClass','iscloneable')) {
651			$ref=new ReflectionClass($arg);
Restler.php https://github.com/justericgg/Restler.git | PHP | 1,452 lines
1<?php
2namespace Luracast\Restler;
435    {
436        // fix SCRIPT_NAME for PHP 5.4 built-in web server
437        if (false === strpos($_SERVER['SCRIPT_NAME'], '.php'))
531        if (!$tempStream) {
532            $tempStream = fopen('php://temp', 'r+');
533            $rawInput = fopen('php://input', 'r');
544     *
545     * @return array php data
546     */
697            '.',
698            parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
699        );
941                //changed the above test to below for addressing this php bug
942                //https://bugs.php.net/bug.php?id=53727
943                if (function_exists("$validator::validate")) {
install.php https://github.com/janssit/logopedie-vuegen.be.git | PHP | 1,148 lines
1<?php
2
185
186        //require_once($admin . '/helpers/parameter.php');
187        // check for groups table / data
485        // remove legacy admin files
486        $files = array('editor.php', 'helper.php', 'updater.php');
487
502        // remove legacy admin files
503        $files = array('popup.php');
504
548
549                        require_once(JPATH_ADMINISTRATOR . '/components/com_jce/models/profiles.php');
550                        $groups = WFModelProfiles::getUserGroups((int) $profile->children('area'));
656            // remove legend model
657            $admin . '/models/legend.php',
658            // remove extension adapter
xengine.php https://github.com/xopherdeep/Skeleton-App.git | PHP | 1,432 lines
1<?php
2	/**
301
302				$xphp = $this->getXtras();
303				
303				
304    			foreach($xphp as $k => $x){
305    				try {	    			
347			$this->_comment("Looking for Class $Xtra");
348			$php  = XPHP_DIR."/$Xtra.php";
349			$this->_comment("Looking for file $php");
611				'LAYOUTS'     =>  $this->_CFG['html'],
612				'thumb'       => '/'.$this->_CFG['dir']['backdoor'].'/'.$lib.'/phpThumb/phpThumb.php?f=png&q=100&'
613
853				$php = str_replace('.php','',$k);
854				if( method_exists($php,'dbSync') ){
855					$db = $php::dbSync();
xengine.php https://github.com/xopherdeep/x4deep0.1.git | PHP | 1,452 lines
1<?php
2	/**
59			define('LIBS_DIR'	,DOC_ROOT.'/'.$cfg['dir']['libs']); 			# Location of the Library Files
60			define('XPHP_DIR'	,DOC_ROOT.'/'.$cfg['dir']['Xtra']); 			# Location of the Xtras Files
61			
320
321				$xphp = $this->getXtras();
322				
366			$this->_comment("Looking for Class $Xtra");
367			$php  = XPHP_DIR."/$Xtra.php";
368			$this->_comment("Looking for file $php");
630				'LAYOUTS'     =>  $this->_CFG['html'],
631				'thumb'       => '/'.$this->_CFG['dir']['backdoor'].'/'.$lib.'/phpThumb/phpThumb.php?f=png&q=100&'
632
873				$php = str_replace('.php','',$k);
874				if( method_exists($php,'dbSync') ){
875					$db = $php::dbSync();
component.php https://github.com/mariuz/firetube.git | PHP | 254 lines
1<?php
2/* SVN FILE: $Id$ */
4 *
5 * PHP versions 4 and 5
6 *
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link          http://cakephp.org CakePHP(tm) Project
15 * @package       cake
16 * @subpackage    cake.cake.libs.controller
17 * @since         CakePHP(tm) v TBD
18 * @version       $Revision$
20 * @lastmodified  $Date$
21 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
22 */
component.php https://github.com/samanz/cakecart.git | PHP | 232 lines
1<?php
2/* SVN FILE: $Id: component.php 7296 2008-06-27 09:09:03Z gwoo $ */
4 *
5 * PHP versions 4 and 5
6 *
6 *
7 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
8 * Copyright 2005-2008, Cake Software Foundation, Inc.
16 * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc.
17 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
18 * @package			cake
19 * @subpackage		cake.cake.libs.controller
20 * @since			CakePHP(tm) v TBD
21 * @version			$Revision: 7296 $
23 * @lastmodified	$Date: 2008-06-27 02:09:03 -0700 (Fri, 27 Jun 2008) $
24 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
25 */
component.php https://github.com/yjcqwliu/xuanjianghui.git | PHP | 240 lines
1<?php
2/* SVN FILE: $Id: component.php 7690 2008-10-02 04:56:53Z nate $ */
4 *
5 * PHP versions 4 and 5
6 *
6 *
7 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
8 * Copyright 2005-2008, Cake Software Foundation, Inc.
16 * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc.
17 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
18 * @package			cake
19 * @subpackage		cake.cake.libs.controller
20 * @since			CakePHP(tm) v TBD
21 * @version			$Revision: 7690 $
23 * @lastmodified	$Date: 2008-10-02 00:56:53 -0400 (Thu, 02 Oct 2008) $
24 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
25 */
component.php https://github.com/MrRio/wildflower.git | PHP | 259 lines
1<?php
2/* SVN FILE: $Id: component.php 7945 2008-12-19 02:16:01Z gwoo $ */
4 *
5 * PHP versions 4 and 5
6 *
6 *
7 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
8 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
14 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
15 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
16 * @package       cake
17 * @subpackage    cake.cake.libs.controller
18 * @since         CakePHP(tm) v TBD
19 * @version       $Revision: 7945 $
21 * @lastmodified  $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
22 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
23 */
Memory.php https://github.com/wrobel/horde-glue.git | PHP | 1,521 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
3// +----------------------------------------------------------------------+
4// | PHP Version 4                                                        |
5// +----------------------------------------------------------------------+
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2003 The PHP Group                                |
7// +----------------------------------------------------------------------+
7// +----------------------------------------------------------------------+
8// | This source file is subject to version 2.02 of the PHP license,      |
9// | that is bundled with this package in the file LICENSE, and is        |
10// | available at through the world-wide-web at                           |
11// | http://www.php.net/license/2_02.txt.                                 |
12// | If you did not receive a copy of the PHP license and are unable to   |
13// | obtain it through the world-wide-web, please send a note to          |
14// | license@php.net so we can mail you a copy immediately.               |
15// +----------------------------------------------------------------------+
component.php https://github.com/yisraeldov/iPhPhoto.git | PHP | 255 lines
1<?php
2/* SVN FILE: $Id: component.php 8120 2009-03-19 20:25:10Z gwoo $ */
4 *
5 * PHP versions 4 and 5
6 *
6 *
7 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
8 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
14 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
15 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
16 * @package       cake
17 * @subpackage    cake.cake.libs.controller
18 * @since         CakePHP(tm) v TBD
19 * @version       $Revision: 8120 $
21 * @lastmodified  $Date: 2009-03-19 22:25:10 +0200 (ה', 19 מרץ 2009) $
22 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
23 */
patForms.php https://github.com/chregu/fluxcms.git | PHP | 2,820 lines
1<?php
2/**
9 * @author		Sebastian Mordziol <argh@php-tools.net>
10 * @author		gERD Schaufelberger <gerd@php-tools.net>
11 * @author		Stephan Schmidt <schst@php-tools.net>
11 * @author		Stephan Schmidt <schst@php-tools.net>
12 * @copyright	2003-2004 PHP Application Tools
13 * @license		LGPL
13 * @license		LGPL
14 * @link		http://www.php-tools.net
15 */
33 */
34include_once PATFORMS_INCLUDE_PATH . "/Element.php";
35 
916	* patForms pre-PHP5 constructor - does nothing for the moment except being a wrapper
917	* for the PHP5 contructor for older PHP versions support.
918	*
View.php https://github.com/humansky/qframe.git | PHP | 342 lines
1<?php
2/**
26 */
27require_once 'Haml/Engine.php';
28
297      if(substr($prefix, -1, 1) != '_') $prefix .= '_';
298      $helperFile = $path . DIRECTORY_SEPARATOR . ucfirst($method) . '.php';
299      if(file_exists($helperFile)) {
302        $object = $class->newInstance();
303        if(method_exists($object, 'setView')) $object->setView($this);
304        return call_user_func_array(array(&$object, $method), $args);
312      if(substr($prefix, -1, 1) != '_') $prefix .= '_';
313      $globalHelperFile = $path . DIRECTORY_SEPARATOR . ucfirst($controllerName) . 'Helpers.php';
314      if(file_exists($globalHelperFile)) {
317        $object = $class->newInstance();
318        if(method_exists($object, 'setView')) $object->setView($this);
319        if(method_exists($object, $method))
ft.ff_matrix.php https://github.com/peteralewis/bk.fieldframe.ee_addon.git | PHP | 1,065 lines
1<?php
2
286			{
287				if (method_exists($ftype, 'display_cell'))
288				{
332
333			if (method_exists($ftype, 'display_cell_settings'))
334			{
369				'preview' => $ftype->display_cell($preview_name.'['.rand().']', '', $cell_settings),
370				'settings' => (method_exists($ftype, 'display_cell_settings') ? $ftype->display_cell_settings($cell_settings) : ''),
371				'isNew' => isset($this->col['new'])
377
378		// add json lib if < PHP 5.2
379		include_once 'includes/jsonwrapper/jsonwrapper.php';
433			$ftype = isset($ftypes[$this->col['type']]) ? $ftypes[$this->col['type']] : $ftypes['ff_matrix_text'];
434			if (method_exists($ftype, 'save_cell_settings'))
435			{
GeneratedObjectTest.php https://github.com/nextbigsound/propel-orm.git | PHP | 1,355 lines
1<?php
2
10
11require_once 'tools/helpers/bookstore/BookstoreEmptyTestBase.php';
12
33		parent::setUp();
34		require_once 'tools/helpers/bookstore/behavior/TestAuthor.php';
35	}
79  {
80    $this->assertTrue(method_exists('Publisher', 'applyDefaultValues'), 'Tables with default values should have an applyDefaultValues() method');
81    $this->assertFalse(method_exists('Book', 'applyDefaultValues'), 'Tables with no default values should not have an applyDefaultValues() method');
105	 *
106	 * @link       http://propel.phpdb.org/trac/ticket/378
107	 * @link       http://propel.phpdb.org/trac/ticket/555
149	 *
150	 * @link       http://propel.phpdb.org/trac/ticket/378
151	 * @link       http://propel.phpdb.org/trac/ticket/555
Object.php https://github.com/chillu/silverstripe-book.git | PHP | 629 lines
1<?php
2/**
3 * Base object that all others should inherit from.
4 * This object provides a number of helper methods that patch over PHP's deficiencies.
5 * 
193	 * Strong_create is a function to enforce a certain class replacement
194	 * e.g Php5.2's latest introduction of a namespace conflict means we have to replace
195	 * all instances of Datetime with SSdatetime.
214	public function hasMethod($methodName) {
215		if(method_exists($this, $methodName)) return true;
216
237		// Hack to fix Fatal error: Call to undefined method stdClass::allMethodNames()
238		if(method_exists($obj, 'allMethodNames')) {
239			$methodNames = $obj->allMethodNames(true);
256	 * @param methodName The name of the method
257	 * @param methodCode The PHP code of the method, in a string.  Arguments will be contained
258	 * in an array called $args.  The object will be $obj, not $this.  You won't be able to access
eztemplate.php https://github.com/aurelienRT1/ezpublish.git | PHP | 2,703 lines
1<?php
2//
37/*!
38  \class eZTemplate eztemplate.php
39  \ingroup eZTemplate
44  template files are parsed and processed with template variables set
45  by the PHP code.
46
60
61  - eZTemplatePHPOperator - Allows for easy redirection of operator names to PHP functions.
62  - eZTemplateLocaleOperator - Allows for locale conversions.
97  for instance an element in an array or data in an object. Since the syntax is the
98  same for arrays and objects the PHP code can use simple arrays when speed is required,
99  the template code will not care.
116
117$tpl->registerOperators( new eZTemplatePHPOperator( array( "upcase" => "strtoupper",
118                                                           "reverse" => "strrev" ) ) );
class.dispatcher.php https://github.com/wufoo/Garden.git | PHP | 625 lines
1<?php if (!defined('APPLICATION')) exit();
2/*
15 * @copyright 2003 Mark O'Sullivan
16 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
17 * @package Garden
26    * for controllers. This property is filled by the applications array
27    * located in /conf/applications.php and included in /bootstrap.php
28    *
35    * property is filled by the applications array located in
36    * /conf/applications.php and included in /bootstrap.php
37    *
247         $PluginManagerHasReplacementMethod = Gdn::PluginManager()->HasNewMethod($this->ControllerName(), $this->_ControllerMethod);
248         if (!$PluginManagerHasReplacementMethod && ($this->_ControllerMethod == '' || !method_exists($Controller, $ControllerMethod))) {
249            // Check to see if there is an 'x' version of the method.
249            // Check to see if there is an 'x' version of the method.
250            if (method_exists($Controller, 'x'.$ControllerMethod)) {
251               // $PluginManagerHasReplacementMethod = TRUE;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21