PageRenderTime 1857ms queryFilters 0ms Sphinxql 565ms GetByIds 1255ms meta 0ms repositoryFilters 5ms languageFilters 0ms sourceFilters 3ms

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

Source

Language

Repository

konstrukt.inc.php http://konstrukt.googlecode.com/svn/trunk/ | PHP | 1,715 lines
1<?php
2require_once 'konstrukt/adapter.inc.php';
2require_once 'konstrukt/adapter.inc.php';
3require_once 'konstrukt/charset.inc.php';
4require_once 'konstrukt/response.inc.php';
4require_once 'konstrukt/response.inc.php';
5require_once 'konstrukt/logging.inc.php';
6require_once 'konstrukt/template.inc.php';
233  function __construct($injector, $document = null) {
234    if (!method_exists($injector, 'create')) {
235      throw new Exception("Injector must provide a method `create`");
1029    if ($charset !== 'utf-8') {
1030      // This could probably be dealt with a bit more elegantly, but that would require us to re-implement PHP's native input-parsing.
1031      // For now, if you get this error, you should just fix the problem by requiring your clients to speak utf-8.
1129    if ($postfix) {
1130      if (method_exists($this, 'post' . $postfix)) {
1131        return $this->{'post' . $postfix}();
sfDebug.class.php http://streeme.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php
2
34  /**
35   * Returns PHP information as an array.
36   *
36   *
37   * @return array An array of php information
38   */
38   */
39  public static function phpInfoAsArray()
40  {
41    $values = array(
42      'php'        => phpversion(),
43      'os'         => php_uname(),
53      {
54        $values['extensions'][$key] = phpversion($extension) ? sprintf('%s (%s)', $extension, phpversion($extension)) : $extension;
55      }
Object.php http://flinders-mppda.googlecode.com/svn/trunk/ | PHP | 1,118 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 * 
87		
88		if(version_compare(PHP_VERSION, '5.1.3', '>=')) {
89			$reflector = new ReflectionClass($class);
91		} else {
92			// we're using a PHP install that doesn't support ReflectionClass->newInstanceArgs()
93			
101	/**
102	 * Create an object from a string representation.  It treats it as a PHP constructor without the
103	 * 'new' keyword.  It also manages to construct the object without the use of eval().
732	 *
733	 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via
734	 * extensions
Parser.php http://easyrest.googlecode.com/svn/trunk/ | PHP | 769 lines
1<?php
2
9 *
10 * PHP versions 4 and 5
11 *
13 *
14 * Copyright (c) 2002-2008 The PHP Group
15 * All rights reserved.
44 * @author    Tomas V.V.Cox <cox@idecnet.com>
45 * @author    Stephan Schmidt <schst@php.net>
46 * @copyright 2002-2008 The PHP Group
47 * @license   http://opensource.org/licenses/bsd-license New BSD License
48 * @version   CVS: $Id: Parser.php,v 1.29 2008/08/24 21:48:21 ashnazg Exp $
49 * @link      http://pear.php.net/package/XML_Parser
54 */
55require_once (PEAR_LIB.'PEAR.php');
56
TSBuyerProtection.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 1,394 lines
9* It is also available through the world-wide-web at this URL:
10* http://opensource.org/licenses/afl-3.0.php
11* If you did not receive a copy of the license and are unable to
23*  @version  Release: $Revision: 7001 $
24*  @license	http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
25*  International Registered Trademark & Property of PrestaShop SA
26*/
27include(_PS_MODULE_DIR_.'trustedshops/lib/TSBPException.php');
28
155		TSBPException::setTranslationObject($this);
156		if (!method_exists('Tools', 'jsonDecode') || !method_exists('Tools', 'jsonEncode'))
157		{
182	{
183		if (!method_exists('Tools', 'jsonDecode') || !method_exists('Tools', 'jsonEncode'))
184			return false;
format.php https://moodleazure.svn.codeplex.com/svn | PHP | 612 lines
1<?PHP // $Id: format.php,v 1.12.4.17 2010/06/10 23:37:23 gbateson Exp $
2////////////////////////////////////////////////////////////////////////////
9
10// Based on default.php, included by ../import.php
11/**
14 */
15require_once($CFG->dirroot . '/mod/hotpot/lib.php');
16
46        }
47        require_once($CFG->libdir.'/filelib.php');
48        $baseurl = get_file_url($courseid).'/';
109        } else {
110            if (method_exists($this, 'error')) { // Moodle >= 1.8
111                $this->error(get_string('giftnovalidquestion', 'quiz'));
139
140            if (method_exists($this, 'defaultquestion')) {
141                $question = $this->defaultquestion();
paraglide.php git://github.com/bgoldman/Paraglide.git | PHP | 803 lines
1<?php
2/*
39			if (file_exists(APP_PATH . 'lib/hooks.php')) {
40				require_once APP_PATH . 'lib/hooks.php';
41			}
42			
43			if (method_exists('Hooks', $hook)) {
44				call_user_func(array('Hooks', $hook));
50		if ($source == 'controller') {
51			if (method_exists(self::$_controller_instance, '_' . $hook)) {
52				call_user_func(array(self::$_controller_instance, '_' . $hook));
195		// SITE_FILENAME is the path and real filename of this application relative to the domain, with leading and trailing slashes
196		// example: for http://www.example.com/shop/index[.php]/categories/5?size=medium, SITE_FILENAME is /shop/index.php/
197		define('SITE_FILENAME', substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT'])));
210		// SITE_URL is path and accessed filename of this application relative to the domain, with leading and trailing slashes
211		// example: for http://www.example.com/shop/index[.php]/categories/5?size=medium, SITE_URL is /shop/index[.php]/
212		$uri = $_SERVER['REQUEST_URI'];
core.php git://github.com/unirgy/buckyball.git | PHP | 2,076 lines
132        case 'PHP5.3':
133            $compat = version_compare(phpversion(), '5.3.0', '>=');
134            break;
475        switch ($ext) {
476        case 'php':
477            $config = include($filename);
1273    {
1274        if (method_exists($this->_decoratedComponent, '__sleep')) {
1275            return $this->_decoratedComponent->__sleep();
1702            // update session cookie expiration to reflect current visit
1703            // @see http://www.php.net/manual/en/function.session-set-cookie-params.php#100657
1704            setcookie(session_name(), session_id(), time()+$ttl, $path, $domain);
1980        if (!apc_exists($this->_prefix.'/TS')) {
1981            // creating non-empty array @see http://us.php.net/manual/en/function.apc-store.php#107359
1982            apc_store($this->_prefix.'/TS', array(''));
utilities.class.php git://github.com/vanity/vanity.git | PHP | 681 lines
1<?php
2class Util
19
20		if (method_exists($o, 'isFinal'))
21		{
23		}
24		if (method_exists($o, 'isAbstract'))
25		{
27		}
28		if (method_exists($o, 'isPrivate'))
29		{
31		}
32		if (method_exists($o, 'isProtected'))
33		{
35		}
36		if (method_exists($o, 'isPublic'))
37		{
Gear.php git://github.com/panada/Panada.git | PHP | 288 lines
1<?php
2
9 *
10 * @license http://www.opensource.org/licenses/bsd-license.php
11 *
81
82        if (!file_exists($file = $folder.str_ireplace('\\', '/', $file).'.php')) {
83            throw new Resources\RunException('Resource '.$file.' not available!');
101
102        if (!file_exists($classFile = APP.'Controllers/'.$this->firstUriPath.'.php')) {
103            $this->subControllerHandler();
119
120        if (!method_exists($instance, $method)) {
121            $request = array_slice($this->uriObj->path(), 1);
123
124            if (!method_exists($instance, $method)) {
125                throw new Resources\HttpException('Method '.$this->uriObj->getMethod().' does not exists in controller '.$this->firstUriPath);
NestedSetBehaviorTest.php git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | PHP | 48 lines
1<?php
2
3/*
4 *	$Id: NestedSetBehaviorTest.php 1612 2010-03-16 22:56:21Z francois $
5 * This file is part of the Propel package.
11
12require_once 'tools/helpers/bookstore/BookstoreTestBase.php';
13
26		$this->assertEquals(count($table9->getColumns()), 5, 'nested_set adds three column by default');
27		$this->assertTrue(method_exists('Table9', 'getTreeLeft'), 'nested_set adds a tree_left column by default');
28		$this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
28		$this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
29		$this->assertTrue(method_exists('Table9', 'getTreeRight'), 'nested_set adds a tree_right column by default');
30		$this->assertTrue(method_exists('Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
30		$this->assertTrue(method_exists('Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
31		$this->assertTrue(method_exists('Table9', 'getTreeLevel'), 'nested_set adds a tree_level column by default');
32		$this->assertTrue(method_exists('Table9', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
konstrukt.inc.php git://github.com/troelskn/konstrukt.git | PHP | 1,721 lines
1<?php
2require_once 'konstrukt/adapter.inc.php';
2require_once 'konstrukt/adapter.inc.php';
3require_once 'konstrukt/charset.inc.php';
4require_once 'konstrukt/response.inc.php';
4require_once 'konstrukt/response.inc.php';
5require_once 'konstrukt/logging.inc.php';
6require_once 'konstrukt/template.inc.php';
233  function __construct($injector, $document = null) {
234    if (!method_exists($injector, 'create')) {
235      throw new Exception("Injector must provide a method `create`");
1036    if ($charset !== 'utf-8') {
1037      // This could probably be dealt with a bit more elegantly, but that would require us to re-implement PHP's native input-parsing.
1038      // For now, if you get this error, you should just fix the problem by requiring your clients to speak utf-8.
1136    if ($postfix) {
1137      if (method_exists($this, 'post' . $postfix)) {
1138        return $this->{'post' . $postfix}();
Parser.php git://pkgs.fedoraproject.org/zarafa | PHP | 736 lines
1<?php
2/*
51?>
52<?php
53//
54// +----------------------------------------------------------------------+
55// | PHP Version 4                                                        |
56// +----------------------------------------------------------------------+
56// +----------------------------------------------------------------------+
57// | Copyright (c) 1997-2004 The PHP Group                                |
58// +----------------------------------------------------------------------+
58// +----------------------------------------------------------------------+
59// | This source file is subject to version 3.0 of the PHP license,       |
60// | that is bundled with this package in the file LICENSE, and is        |
61// | available at through the world-wide-web at                           |
62// | http://www.php.net/license/3_0.txt.                                  |
63// | If you did not receive a copy of the PHP license and are unable to   |
ModuleHandler.class.php https://bitbucket.org/pipoket/hanu_xe.git | PHP | 779 lines
1<?php
2    /**
253				$oModule = &$this->getModuleInstance($this->module, $type, $kind);
254				if(!is_object($oModule) || !method_exists($oModule, $this->act)) {
255					$type = $orig_type;
272			// If there is no such action in the module object
273			if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
274			{
312						$oModule = &$this->getModuleInstance($forward->module, $type, $kind);
313						if(!is_object($oModule) || !method_exists($oModule, $this->act)) {
314							$type = $orig_type;
357				}
358				else if($xml_info->default_index_act && method_exists($oModule, $xml_info->default_index_act))
359				{
568                            foreach($layout_info->menu as $menu_id => $menu) {
569                                if(file_exists($menu->php_file)) @include($menu->php_file);
570                                Context::set($menu_id, $menu);
SearchEngine.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 1,111 lines
1<?php
2/* ----------------------------------------------------------------------
2/* ----------------------------------------------------------------------
3 * app/lib/core/Search/SearchEngine.php : Base class for searches
4 * ----------------------------------------------------------------------
31# ----------------------------------------------------------------------
32require_once(__CA_LIB_DIR__."/core/Search/SearchBase.php");
33require_once(__CA_LIB_DIR__."/core/Zend/Search/Lucene.php");
33require_once(__CA_LIB_DIR__."/core/Zend/Search/Lucene.php");
34require_once(__CA_LIB_DIR__."/core/Plugins/SearchEngine/CachedResult.php");
35require_once(__CA_LIB_DIR__."/core/Search/SearchIndexer.php");
35require_once(__CA_LIB_DIR__."/core/Search/SearchIndexer.php");
36require_once(__CA_LIB_DIR__."/core/Search/SearchResult.php");
37require_once(__CA_LIB_DIR__."/core/Search/SearchCache.php");
37require_once(__CA_LIB_DIR__."/core/Search/SearchCache.php");
38require_once(__CA_LIB_DIR__."/core/Logging/Searchlog.php");
39require_once(__CA_LIB_DIR__."/core/Utils/Timer.php");
format.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 719 lines
1<?PHP // $Id$
2////////////////////////////////////////////////////////////////////////////
9
10// Based on default.php, included by ../import.php
11/**
14 */
15require_once($CFG->dirroot . '/mod/hotpot/lib.php');
16
46        }
47        require_once($CFG->libdir.'/filelib.php');
48        $baseurl = get_file_url($courseid).'/';
114        } else {
115            if (method_exists($this, 'error')) { // Moodle >= 1.8
116                $this->error(get_string('giftnovalidquestion', 'quiz'));
144
145            if (method_exists($this, 'defaultquestion')) {
146                $question = $this->defaultquestion();
Addons_installer.php https://bitbucket.org/sims/heartbeets.git | PHP | 516 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
73
74			if (method_exists($this, $method))
75			{
129
130			if (method_exists($this, $method))
131			{
208		
209		if (method_exists($ACC, 'install'))
210		{
235		
236		if (method_exists($ACC, 'uninstall'))
237		{
260			
261			if (method_exists($EXT, 'activate_extension') === TRUE)
262			{
ft.matrix.php https://bitbucket.org/sims/heartbeets.git | PHP | 2,367 lines
1<?php if (! defined('EXT')) exit('Invalid file request');
2
630			// Add the included celltypes
631			require_once FT_PATH.'matrix/celltypes/text.php';
632			require_once FT_PATH.'matrix/celltypes/date.php';
643			{
644				if (method_exists($ftype, 'display_cell'))
645				{
676
677		if (method_exists($celltype, 'display_cell_settings'))
678		{
950
951		// add json lib if < PHP 5.2
952		require_once FT_PATH.'matrix/includes/jsonwrapper/jsonwrapper.php';
1012			$celltype = $celltypes[$col['type']];
1013			if (method_exists($celltype, 'save_cell_settings'))
1014			{
CComponent.php https://bitbucket.org/dfr/tehsad.git | PHP | 605 lines
1<?php
2/**
81 * @author Qiang Xue <qiang.xue@gmail.com>
82 * @version $Id: CComponent.php 1465 2009-10-17 11:06:11Z qiang.xue $
83 * @package system.base
92	 * Returns a property value, an event handler list or a behavior based on its name.
93	 * Do not call this method. This is a PHP magic method that we override
94	 * to allow using the following syntax to read a property or obtain event handlers:
106		$getter='get'.$name;
107		if(method_exists($this,$getter))
108			return $this->$getter();
108			return $this->$getter();
109		else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name))
110		{
368	{
369		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
370	}
CComponent.php https://bitbucket.org/NeMewSys/neowiki.git | PHP | 687 lines
136	 * Sets value of a component property.
137	 * Do not call this method. This is a PHP magic method that we override
138	 * to allow using the following syntax to set a property or attach an event handler
247	 * Calls the named method which is not a class method.
248	 * Do not call this method. This is a PHP magic method that we override
249	 * to implement the behavior feature.
407	{
408		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
409	}
593	 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
594	 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
595	 * for more details. In the expression, the component object can be accessed using $this.
596	 *
597	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
598	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21