PageRenderTime 645ms queryFilters 0ms Sphinxql 469ms GetByIds 132ms meta 0ms repositoryFilters 6ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

it-post-type.php https://bitbucket.org/cblakebarber/circle_bastiat.git | PHP | 561 lines
1<?php
2
12	1.0.2 - 2010-10-06 - Chris Jean
13		Removed "public" from function definition for PHP 4 compatibility
14	1.0.3 - 2011-05-03 - Chris Jean
29if ( ! class_exists( 'ITPostType' ) ) {
30	it_classes_load( 'it-filterable-templates.php' );
31	
72			if ( true == $this->_use_storage ) {
73				it_classes_load( 'it-storage.php' );
74				
90			add_action( 'pre_get_posts', array( &$this, '__identify_post_type' ) );
91			add_action( 'load-post-new.php', array( &$this, '__identify_editor' ) );
92			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
92			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
93			add_action( 'load-edit.php', array( &$this, '__identify_editor' ) );
94			
it-post-type.php https://bitbucket.org/cblakebarber/circle_bastiat.git | PHP | 561 lines
1<?php
2
12	1.0.2 - 2010-10-06 - Chris Jean
13		Removed "public" from function definition for PHP 4 compatibility
14	1.0.3 - 2011-05-03 - Chris Jean
29if ( ! class_exists( 'ITPostType' ) ) {
30	it_classes_load( 'it-filterable-templates.php' );
31	
72			if ( true == $this->_use_storage ) {
73				it_classes_load( 'it-storage.php' );
74				
90			add_action( 'pre_get_posts', array( &$this, '__identify_post_type' ) );
91			add_action( 'load-post-new.php', array( &$this, '__identify_editor' ) );
92			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
92			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
93			add_action( 'load-edit.php', array( &$this, '__identify_editor' ) );
94			
CComponent.php https://github.com/skyquiet/yii.git | PHP | 687 lines
135	 * Sets value of a component property.
136	 * Do not call this method. This is a PHP magic method that we override
137	 * to allow using the following syntax to set a property or attach an event handler
246	 * Calls the named method which is not a class method.
247	 * Do not call this method. This is a PHP magic method that we override
248	 * to implement the behavior feature.
409	{
410		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
411	}
595	 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
596	 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
597	 * for more details. In the expression, the component object can be accessed using $this.
598	 *
599	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
600	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
mock_objects_test.php https://github.com/archives-of-michigan/ContentDM-REST.git | PHP | 1,013 lines
1<?php
2// $Id: mock_objects_test.php 1869 2009-03-10 23:59:31Z lastcraft $
3require_once(dirname(__FILE__) . '/../autorun.php');
4require_once(dirname(__FILE__) . '/../expectation.php');
5require_once(dirname(__FILE__) . '/../mock_objects.php');
181    function testCanThrowException() {
182        if (version_compare(phpversion(), '5', '>=')) {
183            $schedule = new SimpleCallSchedule();
221        $mock = new MockDummy();
222        $this->assertTrue(method_exists($mock, "aMethod"));
223        $this->assertNull($mock->aMethod());
678    function skip() {
679        $this->skipIf(version_compare(phpversion(), '5.1', '<'), '__isset and __unset overloading not tested unless PHP 5.1+');
680    }
697    function skip() {
698        $this->skipIf(version_compare(phpversion(), '5', '<'), 'Overloading not tested unless PHP 5+');
699    }
mock_objects_test.php http://xe-core.googlecode.com/svn/trunk/ | text | 0 lines
670    function skip() {
671        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Overloading not tested unless PHP 5+');
672    }
732    function skip() {
733        $this->skipUnless(version_compare(phpversion(), '5', '>='), 'Static methods not tested unless PHP 5+');
734    }
749    function skip() {
750        $this->skipUnless(version_compare(phpversion(), '5', '>='), 'Exception throwing not tested unless PHP 5+');
751    }
878    function skip() {
879        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Static methods not tested unless PHP 5+');
880    }
895    function skip() {
896        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Abstract class/methods not tested unless PHP 5+');
897    }
mock_objects_test.php git://github.com/12meses12katas/Enero-String-Calculator.git | PHP | 985 lines
1<?php
2// $Id: mock_objects_test.php 1900 2009-07-29 11:44:37Z lastcraft $
3require_once(dirname(__FILE__) . '/../autorun.php');
4require_once(dirname(__FILE__) . '/../expectation.php');
5require_once(dirname(__FILE__) . '/../mock_objects.php');
181    function testCanThrowException() {
182        if (version_compare(phpversion(), '5', '>=')) {
183            $schedule = new SimpleCallSchedule();
221        $mock = new MockDummy();
222        $this->assertTrue(method_exists($mock, "aMethod"));
223        $this->assertNull($mock->aMethod());
651    function skip() {
652        $this->skipIf(version_compare(phpversion(), '5.1', '<'), '__isset and __unset overloading not tested unless PHP 5.1+');
653    }
670    function skip() {
671        $this->skipIf(version_compare(phpversion(), '5', '<'), 'Overloading not tested unless PHP 5+');
672    }
report.php https://code.google.com/p/torrentpier/ | PHP | 819 lines
1<?php
2
33{
34	redirect(append_sid("index.php", true));
35}
37$return_links = array(
38	'index' => '<br /><br />' . sprintf($lang['CLICK_RETURN_INDEX'], '<a href="' . append_sid("index.php") . '">', '</a>'),
39	'list' => '<br /><br />' . sprintf($lang['CLICK_RETURN_REPORT_LIST'], '<a href="' . append_sid("report.php") . '">', '</a>')
144	{
145		$redirect_url = (method_exists($report_module, 'subject_url')) ? $report_module->subject_url($report_subject_id, true) : append_sid("index.php", true);
146		redirect($redirect_url);
296			{
297				$redirect_url = ($single_report) ? "report.php?" . POST_REPORT_URL . '=' . $reports[0] : "report.php";
298				redirect(append_sid($redirect_url, true));
347					
348					$meta_url = ($single_report) ? "report.php?" . POST_REPORT_URL . '=' . $reports[0] : "report.php";
349					$template->assign_var('META', '<meta http-equiv="refresh" content="3;url=' . append_sid($meta_url) . '">');
mock_objects_test.php git://github.com/swiftmailer/swiftmailer.git | PHP | 1,013 lines
1<?php
2// $Id: mock_objects_test.php 1801 2008-09-01 23:22:06Z tswicegood $
3require_once(dirname(__FILE__) . '/../autorun.php');
4require_once(dirname(__FILE__) . '/../expectation.php');
5require_once(dirname(__FILE__) . '/../mock_objects.php');
181    function testCanThrowException() {
182        if (version_compare(phpversion(), '5', '>=')) {
183            $schedule = new SimpleCallSchedule();
221        $mock = new MockDummy();
222        $this->assertTrue(method_exists($mock, "aMethod"));
223        $this->assertNull($mock->aMethod());
678    function skip() {
679        $this->skipIf(version_compare(phpversion(), '5.1', '<'), '__isset and __unset overloading not tested unless PHP 5.1+');
680    }
697    function skip() {
698        $this->skipIf(version_compare(phpversion(), '5', '<'), 'Overloading not tested unless PHP 5+');
699    }
DocumentGeneratorTest.php git://github.com/doctrine/mongodb-odm.git | PHP | 301 lines
1<?php
2
73    {
74        $path = $this->tmpDir . '/'. $this->namespace . '/DocumentGeneratorBook.php';
75        $this->assertFileExists($path);
87        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
88        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', '__construct'), "DocumentGeneratorBook::__construct() missing.");
89        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getId'), "DocumentGeneratorBook::getId() missing.");
89        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getId'), "DocumentGeneratorBook::getId() missing.");
90        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'setName'), "DocumentGeneratorBook::setName() missing.");
91        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getName'), "DocumentGeneratorBook::getName() missing.");
91        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getName'), "DocumentGeneratorBook::getName() missing.");
92        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'setAuthor'), "DocumentGeneratorBook::setAuthor() missing.");
93        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getAuthor'), "DocumentGeneratorBook::getAuthor() missing.");
93        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getAuthor'), "DocumentGeneratorBook::getAuthor() missing.");
94        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'getComments'), "DocumentGeneratorBook::getComments() missing.");
95        $this->assertTrue(method_exists($metadata->namespace . '\DocumentGeneratorBook', 'addComment'), "DocumentGeneratorBook::addComment() missing.");
mock_objects_test.php git://github.com/klevo/wildflower.git | PHP | 994 lines
670    function skip() {
671        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Overloading not tested unless PHP 5+');
672    }
732    function skip() {
733        $this->skipUnless(version_compare(phpversion(), '5', '>='), 'Static methods not tested unless PHP 5+');
734    }
749    function skip() {
750        $this->skipUnless(version_compare(phpversion(), '5', '>='), 'Exception throwing not tested unless PHP 5+');
751    }
878    function skip() {
879        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Static methods not tested unless PHP 5+');
880    }
895    function skip() {
896        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Abstract class/methods not tested unless PHP 5+');
897    }
base.php https://bitbucket.org/thejeshgn/php-bootstrap-boilerplate | PHP | 2,398 lines
1<?php
2
3/**
4	PHP Fat-Free Framework
5
34		TEXT_NotArray='%s is not an array',
35		TEXT_PHPExt='PHP extension %s is not enabled',
36		TEXT_Apache='Apache mod_rewrite module is not enabled',
48		TEXT_Write='%s must have write permission on %s',
49		TEXT_Tags='PHP short tags are not supported by this server';
50	//@}
121	const
122		//! Framework-mapped PHP globals
123		PHP_Globals='GET|POST|COOKIE|REQUEST|SESSION|FILES|SERVER|ENV',
151	/**
152		Convert PHP expression/value to compressed exportable string
153			@return string
Module.php https://github.com/etienne/qsprog.git | PHP | 1,359 lines
1<?php
2
2
3require_once('classes/Database.php');
4require_once('classes/Date.php');
4require_once('classes/Date.php');
5require_once('classes/Filesystem.php');
6require_once('classes/Form.php');
6require_once('classes/Form.php');
7require_once('classes/HTTP.php');
8require_once('classes/Path.php');
8require_once('classes/Path.php');
9require_once('classes/Layout.php');
10require_once('classes/Template.php');
10require_once('classes/Template.php');
11require_once('classes/Query.php');
12require_once('classes/Query.php');
Server.php https://github.com/chregu/fluxcms.git | PHP | 1,882 lines
1<?php
2//
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// +----------------------------------------------------------------------+
152        
153        if (method_exists($this, $wrapper) && ($method == "options" || method_exists($this, $method))) {
154            $this->$wrapper();  // call method by name
PhpDumperTest.php git://github.com/symfony/symfony.git | PHP | 1,504 lines
427
428        $this->assertStringEqualsFile(self::$fixturesPath.'/php/container_alias_deprecation.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_Aliases_Deprecation']));
429
489
490        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services26.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_EnvParameters', 'file' => self::$fixturesPath.'/php/services26.php', 'inline_factories_parameter' => false, 'inline_class_loader_parameter' => false]));
491
540
541        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_csv_env.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_CsvParameters']));
542
579
580        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_url_env.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_UrlParameters']));
581
969
970        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_array_params.php', str_replace('\\\\Dumper', '/Dumper', $dumper->dump(['file' => self::$fixturesPath.'/php/services_array_params.php', 'inline_factories_parameter' => false, 'inline_class_loader_parameter' => false])));
971    }
PhpDumperTest.php git://github.com/fabpot/symfony.git | PHP | 1,413 lines
485
486        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services26.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_EnvParameters', 'file' => self::$fixturesPath.'/php/services26.php', 'inline_factories_parameter' => false, 'inline_class_loader_parameter' => false]));
487
519
520        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_base64_env.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_Base64Parameters']));
521
536
537        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_csv_env.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_CsvParameters']));
538
951
952        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_array_params.php', str_replace('\\\\Dumper', '/Dumper', $dumper->dump(['file' => self::$fixturesPath.'/php/services_array_params.php', 'inline_factories_parameter' => false, 'inline_class_loader_parameter' => false])));
953    }
1102        $dumper = new PhpDumper($container);
1103        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services_inline_self_ref.php', $dumper->dump(['class' => 'Symfony_DI_PhpDumper_Test_Inline_Self_Ref']));
1104    }
Decorator.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 558 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
4// +----------------------------------------------------------------------+
5// | PHP Version 4                                                        |
6// +----------------------------------------------------------------------+
6// +----------------------------------------------------------------------+
7// | Copyright (c) 1997-2002 The PHP Group                                |
8// +----------------------------------------------------------------------+
8// +----------------------------------------------------------------------+
9// | This source file is subject to version 2.02 of the PHP license,      |
10// | that is bundled with this package in the file LICENSE, and is        |
11// | available at through the world-wide-web at                           |
12// | http://www.php.net/license/3_0.txt.                                  |
13// | If you did not receive a copy of the PHP license and are unable to   |
14// | obtain it through the world-wide-web, please send a note to          |
15// | license@php.net so we can mail you a copy immediately.               |
16// +----------------------------------------------------------------------+
EntityGeneratorTest.php git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | PHP | 654 lines
1<?php
2
12
13require_once __DIR__ . '/../../TestInit.php';
14
109    {
110        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
111        $this->assertFileExists($path);
122        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
123        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', '__construct'), "EntityGeneratorBook::__construct() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
125        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setName'), "EntityGeneratorBook::setName() missing.");
126        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
126        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
127        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setAuthor'), "EntityGeneratorBook::setAuthor() missing.");
128        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
mock_objects_test.php git://github.com/99designs/simpletest.git | PHP | 985 lines
1<?php
2// $Id$
4require_once(dirname(__FILE__) . '/../expectation.php');
5require_once(dirname(__FILE__) . '/../mock_objects.php');
6
181    function testCanThrowException() {
182        if (version_compare(phpversion(), '5', '>=')) {
183            $schedule = new SimpleCallSchedule();
221        $mock = new MockDummy();
222        $this->assertTrue(method_exists($mock, "aMethod"));
223        $this->assertNull($mock->aMethod());
651    function skip() {
652        $this->skipIf(version_compare(phpversion(), '5.1', '<'), '__isset and __unset overloading not tested unless PHP 5.1+');
653    }
670    function skip() {
671        $this->skipIf(version_compare(phpversion(), '5', '<'), 'Overloading not tested unless PHP 5+');
672    }
InstallerComponent.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 1,972 lines
1<?php
2/**
4 *
5 * PHP version 5
6 *
64 *		  - Config/
65 *			  - bootstrap.php
66 *			  - routes.php
68 *			  - Component/
69 *				  - InstallComponent.php
70 *		  - ModuleFolderName.yaml
194							'bootstrap' => array(
195								'test' => file_exists($packagePath . 'Config' . DS . 'bootstrap.php'),
196								'header' => __t('Bootstrap File'),
196								'header' => __t('Bootstrap File'),
197								'msg' => __t('"Config/bootstrap.php" file not found')
198							),
it-post-type.php https://github.com/ArzuA/gitwordpress.git | PHP | 564 lines
1<?php
2
12	1.0.2 - 2010-10-06 - Chris Jean
13		Removed "public" from function definition for PHP 4 compatibility
14	1.0.3 - 2011-05-03 - Chris Jean
31if ( ! class_exists( 'ITPostType' ) ) {
32	it_classes_load( 'it-filterable-templates.php' );
33	
74			if ( true == $this->_use_storage ) {
75				it_classes_load( 'it-storage.php' );
76				
92			add_action( 'pre_get_posts', array( &$this, '__identify_post_type' ) );
93			add_action( 'load-post-new.php', array( &$this, '__identify_editor' ) );
94			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
94			add_action( 'load-post.php', array( &$this, '__identify_editor' ) );
95			add_action( 'load-edit.php', array( &$this, '__identify_editor' ) );
96			
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21