PageRenderTime 632ms queryFilters 1ms Sphinxql 418ms GetByIds 173ms meta 0ms repositoryFilters 3ms languageFilters 1ms sourceFilters 1ms

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

Source

Language

Repository

data.class.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 493 lines
1<?php
2/**
52  public function __set($name, $value) {
53    if (method_exists($this, $set = 'set' . $name)) {
54      $this->$set($value);
73  public  function __call($name, $params) {
74    if (method_exists($this, strtolower($name))) {
75      return call_user_func_array(array($this, strtolower($name)), $params);
78    foreach ($this->coinstances as $coinstance) {
79      if (method_exists($coinstance, $name) || $coinstance->method_exists($name))
80      return call_user_func_array(array($coinstance, $name), $params);
85  public function __isset($name) {
86    if (array_key_exists($name, $this->data) || method_exists($this, "get$name") || method_exists($this, "Get$name")) return true;
87    foreach ($this->coinstances as $coinstance) {
126    if ($filename = litepublisher::$classes->getclassfilename($class, true)) {
127      $externalname = basename($filename, '.php') . '.install.php';
128      $dir = dirname($filename) . DIRECTORY_SEPARATOR;
HTTP.php https://code.google.com/p/mwenhanced/ | PHP | 796 lines
1<?php
2//
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2004 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// +----------------------------------------------------------------------+
209    /**
210     * Assign values from $PHP_AUTH_USER and $PHP_AUTH_PW or 'Authorization' header
211     * to internal variables and sets the session id based
testgradeitem.php https://moodleazure.svn.codeplex.com/svn | PHP | 509 lines
1<?php // $Id: testgradeitem.php,v 1.6.2.3 2008/03/27 17:13:00 nicolasconnault Exp $
2
64        $grade_item = new grade_item();
65        $this->assertTrue(method_exists($grade_item, 'insert'));
66
83        $grade_item = new grade_item($this->grade_items[0]);
84        $this->assertTrue(method_exists($grade_item, 'delete'));
85
92        $grade_item = new grade_item($this->grade_items[0]);
93        $this->assertTrue(method_exists($grade_item, 'update'));
94
108        $grade_item = new grade_item($this->grade_items[2]);
109        $this->assertTrue(method_exists($grade_item, 'load_scale'));
110        $scale = $grade_item->load_scale();
223        $grade_item = new grade_item($this->grade_items[0]);
224        $this->assertTrue(method_exists($grade_item, 'set_parent'));
225
testgradecategory.php https://moodleazure.svn.codeplex.com/svn | PHP | 472 lines
1<?php // $Id: testgradecategory.php,v 1.7.2.3 2009/04/29 13:44:17 skodak Exp $
2
79        $grade_category = new grade_category($this->grade_categories[1]);
80        $this->assertTrue(method_exists($grade_category, 'build_path'));
81        $path = grade_category::build_path($grade_category);
86        $grade_category = new grade_category();
87        $this->assertTrue(method_exists($grade_category, 'fetch'));
88
95        $grade_category = new grade_category();
96        $this->assertTrue(method_exists($grade_category, 'fetch_all'));
97
103        $grade_category = new grade_category($this->grade_categories[0]);
104        $this->assertTrue(method_exists($grade_category, 'update'));
105
339        $category = new grade_category($this->grade_categories[0]);
340        $this->assertTrue(method_exists($category, 'load_grade_item'));
341        $this->assertEqual(null, $category->grade_item);
SluggableBehaviorTest.php git://github.com/eventhorizonpl/forked-php-orm-benchmark.git | PHP | 428 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php';
12
25        $this->assertEquals(count($table13->getColumns()), 3, 'Sluggable adds one columns by default');
26        $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a slug column by default');
27        $table14 = Table14Peer::getTableMap();
28        $this->assertEquals(count($table14->getColumns()), 3, 'Sluggable does not add a column when it already exists');
29        $this->assertTrue(method_exists('Table14', 'getUrl'), 'Sluggable allows customization of slug_column name');
30        $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a standard getter for the slug column');
34    {
35        $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a getter for the slug column');
36        $t = new Table13();
38        $this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug');
39        $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a getter for the slug column, even if the column does not have the default name');
40        $t = new Table14();
SearchResult.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 1,602 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/lib/core/Search/SearchResult.php : implements interface to results from a search
4 * ----------------------------------------------------------------------
39# ----------------------------------------------------------------------
40include_once(__CA_LIB_DIR__."/core/BaseObject.php");
41include_once(__CA_LIB_DIR__."/core/Datamodel.php");
41include_once(__CA_LIB_DIR__."/core/Datamodel.php");
42include_once(__CA_LIB_DIR__."/core/Media/MediaInfoCoder.php");
43include_once(__CA_LIB_DIR__."/core/File/FileInfoCoder.php");
43include_once(__CA_LIB_DIR__."/core/File/FileInfoCoder.php");
44include_once(__CA_LIB_DIR__."/core/Parsers/TimeExpressionParser.php");
45include_once(__CA_LIB_DIR__."/core/Parsers/TimecodeParser.php");
45include_once(__CA_LIB_DIR__."/core/Parsers/TimecodeParser.php");
46include_once(__CA_LIB_DIR__."/core/ApplicationChangeLog.php");
47
Object.php https://github.com/FrediL/yii2.git | PHP | 289 lines
1<?php
2/**
132        $getter = 'get' . $name;
133        if (method_exists($this, $getter)) {
134            return $this->$getter();
134            return $this->$getter();
135        } elseif (method_exists($this, 'set' . $name)) {
136            throw new InvalidCallException('Getting write-only property: ' . get_class($this) . '::' . $name);
144     *
145     * Do not call this method directly as it is a PHP magic method that
146     * will be implicitly called when executing `$object->property = $value;`.
155        $setter = 'set' . $name;
156        if (method_exists($this, $setter)) {
157            $this->$setter($value);
278     *
279     * The default implementation is a call to php function `method_exists()`.
280     * You may override this method when you implemented the php magic method `__call()`.
EntityGeneratorTest.php https://github.com/dbruenig/doctrine2.git | PHP | 676 lines
1<?php
2
107    {
108        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
109        $this->assertFileExists($path);
120        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
121        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', '__construct'), "EntityGeneratorBook::__construct() missing.");
122        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
122        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
123        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setName'), "EntityGeneratorBook::setName() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
125        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setAuthor'), "EntityGeneratorBook::setAuthor() missing.");
126        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
126        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
127        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getComments'), "EntityGeneratorBook::getComments() missing.");
128        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'addComment'), "EntityGeneratorBook::addComment() missing.");
class.extensibleobject.php https://github.com/Fishgate/privatecollectionswp.git | PHP | 1,419 lines
1<?php
2define('__EXTOBJ_STATIC__', '__STATICALLY_CALLED__');
134
135		              if (method_exists($this, 'define_class')) {
136						  $this->call_callback($this, 'define_class', $args);
137		              }
138		              elseif (method_exists($this, 'define_static')) {
139						  $this->call_callback($this, 'define_static', $args);
156        {
157            if (method_exists($this, 'define_instance'))
158            {
162            }
163            elseif (method_exists($this, 'define')) {
164                $reflection = new ReflectionMethod($this, 'define');
173                // Initialize the state of the object
174                if (method_exists($this, 'initialize')) {
175                    $reflection = new ReflectionMethod($this, 'initialize');
ext.fieldframe.php https://github.com/pixelandtonic/fieldframe.git | PHP | 3,181 lines
1<?php
2
83		// require PHP 5
84		if (phpversion() < 5) return;
85
235		{
236			if (method_exists($FF, $method))
237			{
627			// PHP
628			if (isset($OBJ->requires['php']) AND phpversion() < $OBJ->requires['php'])
629			{
630				if ($req_strict) return FALSE;
631				else $OBJ->_requires['PHP'] = $OBJ->requires['php'];
632			}
2282				if ( ! $tag_func) $tag_func = 'display_tag';
2283				$method_exists = method_exists($field['ftype'], $tag_func);
2284
class.plugin.php https://github.com/jeffrydegrande/sideposts.git | PHP | 543 lines
1<?php
2/**
27
28require_once ( SPOSTS_LIB . '/plugins.php' );
29
43 *
44 * @uses		plugins.php
45 * @author		Jordi Canals
147		$this->p_file = trim($plugin_file);
148		$this->ID = ( empty($ID) ) ? strtolower(basename($this->p_file, '.php')) : trim($ID) ;
149
150		// Load component data and settings.
151		if ( method_exists($this, 'setDefaults') ) {
152			$this->setDefaults();
159			register_activation_hook($this->p_file, array($this, '_activatePlugin'));
160			if ( method_exists($this, '_deactivate') ) {
161				register_deactivation_hook($this->p_file, array($this, '_deactivate'));
QueryBuilderTest.php https://github.com/nextbigsound/propel-orm.git | PHP | 921 lines
1<?php
2
10
11require_once 'tools/helpers/bookstore/BookstoreTestBase.php';
12require_once 'tools/helpers/bookstore/BookstoreDataPopulator.php';
17 * @author     Franรงois Zaninotto
18 * @version    $Id: QueryBuilderTest.php 1347 2009-12-03 21:06:36Z francois $
19 * @package    generator.builder.om
235	{
236		foreach (BookPeer::getFieldNames(BasePeer::TYPE_PHPNAME) as $colName) {
237			$filterMethod = 'filterBy' . $colName;
237			$filterMethod = 'filterBy' . $colName;
238			$this->assertTrue(method_exists('BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column');
239			$q = BookQuery::create()->$filterMethod(1);
513	{
514		$this->assertTrue(method_exists('BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods');
515		$this->assertTrue(method_exists('BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys');
QueryBuilderTest.php https://github.com/albrzykowski/zforum.git | PHP | 913 lines
1<?php
2
10
11require_once 'tools/helpers/bookstore/BookstoreTestBase.php';
12require_once 'tools/helpers/bookstore/BookstoreDataPopulator.php';
17 * @author     Franรงois Zaninotto
18 * @version    $Id: QueryBuilderTest.php 1347 2009-12-03 21:06:36Z francois $
19 * @package    generator.builder.om
235	{
236		foreach (BookPeer::getFieldNames(BasePeer::TYPE_PHPNAME) as $colName) {
237			$filterMethod = 'filterBy' . $colName;
237			$filterMethod = 'filterBy' . $colName;
238			$this->assertTrue(method_exists('BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column');
239			$q = BookQuery::create()->$filterMethod(1);
505	{
506		$this->assertTrue(method_exists('BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods');
507		$this->assertTrue(method_exists('BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys');
QueryBuilderTest.php https://github.com/mattleff/propel.git | PHP | 986 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php';
12require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreDataPopulator.php';
17 * @author     Franรงois Zaninotto
18 * @version    $Id: QueryBuilderTest.php 1347 2009-12-03 21:06:36Z francois $
19 * @package    generator.builder.om
235	{
236		foreach (BookPeer::getFieldNames(BasePeer::TYPE_PHPNAME) as $colName) {
237			$filterMethod = 'filterBy' . $colName;
237			$filterMethod = 'filterBy' . $colName;
238			$this->assertTrue(method_exists('BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column');
239			$q = BookQuery::create()->$filterMethod(1);
513	{
514		$this->assertTrue(method_exists('BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods');
515		$this->assertTrue(method_exists('BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys');
base.php https://gitlab.com/f3/f3-skeleton.git | PHP | 2,361 lines
1<?php
2
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',
50		TEXT_Write='%s must have write permission on %s',
51		TEXT_Tags='PHP short tags are not supported by this server';
52	//@}
123	const
124		//! Framework-mapped PHP globals
125		PHP_Globals='GET|POST|COOKIE|REQUEST|SESSION|FILES|SERVER|ENV',
152	/**
153		Convert PHP expression/value to string
154			@return string
1901		$list=array_map('self::fixslashes',get_included_files());
1902		// Support NS_class.php and NS/class.php namespace-mapping styles
1903		foreach (array(str_replace('\\','_',$class),$class) as $style)
language.php https://bitbucket.org/elin/joomla-platform | PHP | 1,198 lines
1<?php
2/**
211			// Class does not exist. Try to find it in the Administrator Language Folder
212			$localise = JPATH_ADMINISTRATOR . "/language/$lang/$lang.localise.php";
213			if (file_exists($localise)) {
225			 */
226			if (method_exists($class, 'transliterate')) {
227				$this->transliterator = array($class, 'transliterate');
228			}
229			if (method_exists($class, 'getPluralSuffixes')) {
230				$this->pluralSufficesCallback = array($class, 'getPluralSuffixes');
231			}
232			if (method_exists($class, 'getIgnoredSearchWords')) {
233				$this->ignoredSearchWordsCallback = array($class, 'getIgnoredSearchWords');
764				// We didn't find any errors but there's probably a parse notice.
765				$this->errorfiles['PHP'.$filename] = 'PHP parser errors :'.$php_errormsg;
766			}
QueryBuilderTest.php https://bitbucket.org/franhb/propel | PHP | 1,096 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php';
12require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreDataPopulator.php';
17 * @author     Franรงois Zaninotto
18 * @version    $Id: QueryBuilderTest.php 1347 2009-12-03 21:06:36Z francois $
19 * @package    generator.builder.om
298    {
299        foreach (BookPeer::getFieldNames(BasePeer::TYPE_PHPNAME) as $colName) {
300            $filterMethod = 'filterBy' . $colName;
300            $filterMethod = 'filterBy' . $colName;
301            $this->assertTrue(method_exists('BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column');
302            $q = BookQuery::create()->$filterMethod(1);
581    {
582        $this->assertTrue(method_exists('BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods');
583        $this->assertTrue(method_exists('BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys');
mock_objects_test.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 691 lines
1<?php
2    // $Id: mock_objects_test.php,v 1.24 2006/11/20 23:10:18 lastcraft Exp $
2    // $Id: mock_objects_test.php,v 1.24 2006/11/20 23:10:18 lastcraft Exp $
3    require_once(dirname(__FILE__) . '/../expectation.php');
4
169            $stub = &new StubDummy();
170            $this->assertTrue(method_exists($stub, "aMethod"));
171            $this->assertNull($stub->aMethod(null));
175            $stub = &new StubDummyWithExtraMethods();
176            $this->assertTrue(method_exists($stub, "extraMethod"));
177        }
180            $stub = &new AnotherStubDummy();
181            $this->assertTrue(method_exists($stub, "aMethod"));
182        }
400        function skip() {
401            $this->skipIf(version_compare(phpversion(), '5', '<='), 'Overloading not tested for PHP 4');
402        }
ModuleHandler.class.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 1,198 lines
1<?php
2
435		// If there is no such action in the module object
436		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
437		{
488					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
489					if(!is_object($oModule) || !method_exists($oModule, $this->act))
490					{
557			}
558			else if($xml_info->default_index_act && method_exists($oModule, $xml_info->default_index_act))
559			{
887									$menu->xml_file = str_replace('.xml.php', $homeMenuSrl . '.xml.php', $menu->xml_file);
888									$menu->php_file = str_replace('.php', $homeMenuSrl . '.php', $menu->php_file);
889									$layout_info->menu->{$menu_id}->menu_srl = $homeMenuSrl;
893									$menu->xml_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->xml_file);
894									$menu->php_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->php_file);
895								}
TimestampableBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 259 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../tools/helpers/bookstore/BookstoreTestBase.php';
12require_once dirname(__FILE__) . '/../../../../generator/lib/config/GeneratorConfig.php';
12require_once dirname(__FILE__) . '/../../../../generator/lib/config/GeneratorConfig.php';
13require_once dirname(__FILE__) . '/../../../../generator/lib/model/Behavior.php';
14require_once dirname(__FILE__) . '/../../../../generator/lib/behavior/TimestampableBehavior.php';
14require_once dirname(__FILE__) . '/../../../../generator/lib/behavior/TimestampableBehavior.php';
15require_once dirname(__FILE__) . '/../../../../generator/lib/util/PropelQuickBuilder.php';
16
29        $this->assertEquals(count($table2->getColumns()), 4, 'Timestampable adds two columns by default');
30        $this->assertTrue(method_exists('Table2', 'getCreatedAt'), 'Timestamplable adds a created_at column by default');
31        $this->assertTrue(method_exists('Table2', 'getUpdatedAt'), 'Timestamplable adds an updated_at column by default');
33        $this->assertEquals(count($table1->getColumns()), 4, 'Timestampable does not add two columns when they already exist');
34        $this->assertTrue(method_exists('Table1', 'getCreatedOn'), 'Timestamplable allows customization of create_column name');
35        $this->assertTrue(method_exists('Table1', 'getUpdatedOn'), 'Timestamplable allows customization of update_column name');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21