PageRenderTime 217ms queryFilters 0ms Sphinxql 241ms GetByIds 1076ms meta 0ms repositoryFilters 96ms languageFilters 0ms sourceFilters 67ms

31,137 results for 'php method_exists repo:dzio/yii-bootstrap' (217 ms)

Source

Language

Repository

phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
179		
180		'method_exists' => 'php.method_exists',
181		'property_exists' => 'php.property_exists',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
pts_client.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 1,690 lines
434			$php_version = explode('.', PHP_VERSION);
435			define('PHP_VERSION_ID', ($php_version[0] * 10000 + $php_version[1] * 100 + $php_version[2]));
436		}
518					{
519						echo PHP_EOL . 'The following PHP extensions are REQUIRED by the Phoronix Test Suite:' . PHP_EOL . PHP_EOL;
520						$printed_required_header = true;
532					{
533						echo PHP_EOL . ($printed_required_header ? null : 'NOTICE: ') . 'The following PHP extensions are OPTIONAL but recommended:' . PHP_EOL . PHP_EOL;
534						$printed_optional_header = true;
635		$pso->add_object('last_core_version', PTS_CORE_VERSION); // PTS version last run
636		$pso->add_object('last_php_version', phpversion()); // PHP version last run
637
1233			{
1234				echo PHP_EOL . 'There is an error in the requested command: ' . $command . PHP_EOL . PHP_EOL;
1235			}
php-classobj.el git://github.com/ejmr/php-mode.git | Lisp | 173 lines
21;; To install php-ext.el:
22;; You can add (load "path/php-ext/php-ext.el") to your .emacs
23
24;; Classes Functions
25;; http://php.net/manual/en/ref.classobj.php
26;; file:///usr/share/doc/php-doc/html/ref.classobj.html
27
28(define-skeleton php-class
29  "Insert a class statement."
44
45(define-skeleton php__autoload 
46  "Insert a __autoload statement. Attempt to load undefined class"
149
150(define-skeleton php-method_exists
151  "Insert a method_exists statement."
EntityGeneratorTest.php git://github.com/doctrine/doctrine2.git | PHP | 1,110 lines
1<?php
2
201        $className = basename(str_replace('\\', '/', $metadata->name));
202        $path = $this->_tmpDir . '/' . $this->_namespace . '/' . $className . '.php';
203
228        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
229        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', '__construct'), "EntityGeneratorBook::__construct() missing.");
230        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
230        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
231        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setName'), "EntityGeneratorBook::setName() missing.");
232        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
232        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
233        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setStatus'), "EntityGeneratorBook::setStatus() missing.");
234        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getStatus'), "EntityGeneratorBook::getStatus() missing.");
234        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getStatus'), "EntityGeneratorBook::getStatus() missing.");
235        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setAuthor'), "EntityGeneratorBook::setAuthor() missing.");
236        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
TComponent.php http://prado3.googlecode.com/svn/trunk/ | PHP | 2,414 lines
1<?php
2/**
263 * operational, there is a mechanism for catching events called that are not
264 * implemented (similar to the built-in PHP method {@link __call}).  When
265 * a dynamic or global event is called but a behavior does not implement it, 
279 * @author Brad Anderson <javalizard@mac.com>
280 * @version $Id: TComponent.php 3212 2012-10-31 09:40:15Z ctrlaltca $
281 * @package System
680		
681		if(method_exists($this,'get'.$name)||method_exists($this,'getjs'.$name))
682		{
796	{
797		if(method_exists($this,'get'.$name)||method_exists($this,'getjs'.$name))
798			return true;
820	{
821		if(method_exists($this,'set'.$name)||method_exists($this,'setjs'.$name))
822			return true;
yiilite.php https://bitbucket.org/dinhtrung/yiicorecms/ | PHP | 9,618 lines
1<?php
2/**
19 * @license http://www.yiiframework.com/license/
20 * @version $Id: yiilite.php 3325 2011-06-26 18:01:42Z qiang.xue $
21 * @since 1.0
100				$class=new ReflectionClass($type);
101				// Note: ReflectionClass::newInstanceArgs() is available for PHP 5.1.3+
102				// $object=$class->newInstanceArgs($args);
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
747	{
748		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
749	}
yiilite.php http://yii.googlecode.com/svn/trunk/ | PHP | 9,680 lines
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3465			return Yii::app()->findLocalizedFile($viewFile.$extension);
3466		else if($extension!=='.php' && is_file($viewFile.'.php'))
3467			return Yii::app()->findLocalizedFile($viewFile.'.php');
5532				return Yii::app()->findLocalizedFile($viewFile.$extension);
5533			else if($extension!=='.php' && is_file($viewFile.'.php'))
5534				return Yii::app()->findLocalizedFile($viewFile.'.php');
5538			return Yii::app()->findLocalizedFile($viewFile.$extension);
5539		else if($extension!=='.php' && is_file($viewFile.'.php'))
5540			return Yii::app()->findLocalizedFile($viewFile.'.php');
yiilite.php http://yii-doctrine2.googlecode.com/svn/trunk/ | PHP | 9,482 lines
1<?php
2/**
19 * @license http://www.yiiframework.com/license/
20 * @version $Id: yiilite.php 3134 2011-03-27 01:39:25Z qiang.xue $
21 * @since 1.0
99				$class=new ReflectionClass($type);
100				// Note: ReflectionClass::newInstanceArgs() is available for PHP 5.1.3+
101				// $object=$class->newInstanceArgs($args);
404		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
405		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
406		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
480		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
481		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
482		'CUserIdentity' => '/web/auth/CUserIdentity.php',
718	{
719		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
720	}
yiilite.php git://github.com/yiisoft/yii.git | PHP | 10,762 lines
481		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
482		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
483		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
562		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
563		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
564		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3929			return Yii::app()->findLocalizedFile($viewFile.$extension);
3930		elseif($extension!=='.php' && is_file($viewFile.'.php'))
3931			return Yii::app()->findLocalizedFile($viewFile.'.php');
6341				return Yii::app()->findLocalizedFile($viewFile.$extension);
6342			elseif($extension!=='.php' && is_file($viewFile.'.php'))
6343				return Yii::app()->findLocalizedFile($viewFile.'.php');
6347			return Yii::app()->findLocalizedFile($viewFile.$extension);
6348		elseif($extension!=='.php' && is_file($viewFile.'.php'))
6349			return Yii::app()->findLocalizedFile($viewFile.'.php');
CComponent.js git://github.com/phpnode/YiiJS.git | JavaScript | 758 lines
254		}
255		if(php.method_exists(this,'get'+php.ucfirst(name))) {
256			throw new Yii.CException(Yii.t('yii','Property "{class}.{property}" is read only.',
293		}
294		else if(php.strncasecmp(name,'on',2)===0 && php.method_exists(this,name))
295		{
340		}
341		else if(php.strncasecmp(name,'on',2)===0 && php.method_exists(this,name)) {
342			delete this._e[name.toLowerCase()];
549Yii.CComponent.prototype.hasProperty = function (name) {
550		return this[name] !== undefined || php.method_exists(this,'get'+php.ucfirst(name)) || php.method_exists(this,'set'+php.ucfirst(name));
551	};
735 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
736 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
737 * for more details. In the expression, the component object can be accessed using $this.
yiilite.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 8,430 lines
389		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
390		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
391		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
464		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
465		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
466		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3259			return Yii::app()->findLocalizedFile($viewFile.$extension);
3260		else if($extension!=='.php' && is_file($viewFile.'.php'))
3261			return Yii::app()->findLocalizedFile($viewFile.'.php');
5224					return Yii::app()->findLocalizedFile($viewFile.$extension);
5225				else if($extension!=='.php' && is_file($viewFile.'.php'))
5226					return Yii::app()->findLocalizedFile($viewFile.'.php');
5231			return Yii::app()->findLocalizedFile($viewFile.$extension);
5232		else if($extension!=='.php' && is_file($viewFile.'.php'))
5233			return Yii::app()->findLocalizedFile($viewFile.'.php');
yiilite.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 9,618 lines
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3413			return Yii::app()->findLocalizedFile($viewFile.$extension);
3414		else if($extension!=='.php' && is_file($viewFile.'.php'))
3415			return Yii::app()->findLocalizedFile($viewFile.'.php');
5479				return Yii::app()->findLocalizedFile($viewFile.$extension);
5480			else if($extension!=='.php' && is_file($viewFile.'.php'))
5481				return Yii::app()->findLocalizedFile($viewFile.'.php');
5485			return Yii::app()->findLocalizedFile($viewFile.$extension);
5486		else if($extension!=='.php' && is_file($viewFile.'.php'))
5487			return Yii::app()->findLocalizedFile($viewFile.'.php');
MySQLConnectorTest.php https://hg.codeplex.com/odatamysqlphpconnect | PHP | 148 lines
1<?php
2
2
3require_once 'PHPUnit\Framework\Assert.php';
4require_once 'PHPUnit\Framework\Test.php';
4require_once 'PHPUnit\Framework\Test.php';
5require_once 'PHPUnit\Framework\SelfDescribing.php';
6require_once 'PHPUnit\Framework\TestCase.php';
6require_once 'PHPUnit\Framework\TestCase.php';
7require_once 'PHPUnit\Framework\TestSuite.php';
8require_once 'Tests\CustomMySQLConnector.php';
13
14Class TestMySQLConnector extends PHPUnit_Framework_TestCase {
15
31		$this->cmdArgv = array (
32    		 "MySQLConnector.php",
33			 "/db=".$this->db,
yiilite.php https://bitbucket.org/lyubomirv/scrumtool.git | PHP | 10,030 lines
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3462			return Yii::app()->findLocalizedFile($viewFile.$extension);
3463		else if($extension!=='.php' && is_file($viewFile.'.php'))
3464			return Yii::app()->findLocalizedFile($viewFile.'.php');
5529				return Yii::app()->findLocalizedFile($viewFile.$extension);
5530			else if($extension!=='.php' && is_file($viewFile.'.php'))
5531				return Yii::app()->findLocalizedFile($viewFile.'.php');
5535			return Yii::app()->findLocalizedFile($viewFile.$extension);
5536		else if($extension!=='.php' && is_file($viewFile.'.php'))
5537			return Yii::app()->findLocalizedFile($viewFile.'.php');
yiilite.php https://bitbucket.org/alxkolm/dry_test.git | PHP | 9,618 lines
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3413			return Yii::app()->findLocalizedFile($viewFile.$extension);
3414		else if($extension!=='.php' && is_file($viewFile.'.php'))
3415			return Yii::app()->findLocalizedFile($viewFile.'.php');
5479				return Yii::app()->findLocalizedFile($viewFile.$extension);
5480			else if($extension!=='.php' && is_file($viewFile.'.php'))
5481				return Yii::app()->findLocalizedFile($viewFile.'.php');
5485			return Yii::app()->findLocalizedFile($viewFile.$extension);
5486		else if($extension!=='.php' && is_file($viewFile.'.php'))
5487			return Yii::app()->findLocalizedFile($viewFile.'.php');
yiilite.php https://bitbucket.org/roycocup/stargym.git | PHP | 10,030 lines
433		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
434		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
435		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
509		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
510		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
511		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3462			return Yii::app()->findLocalizedFile($viewFile.$extension);
3463		else if($extension!=='.php' && is_file($viewFile.'.php'))
3464			return Yii::app()->findLocalizedFile($viewFile.'.php');
5529				return Yii::app()->findLocalizedFile($viewFile.$extension);
5530			else if($extension!=='.php' && is_file($viewFile.'.php'))
5531				return Yii::app()->findLocalizedFile($viewFile.'.php');
5535			return Yii::app()->findLocalizedFile($viewFile.$extension);
5536		else if($extension!=='.php' && is_file($viewFile.'.php'))
5537			return Yii::app()->findLocalizedFile($viewFile.'.php');
test_cases.php git://github.com/openmelody/melody.git | PHP | 450 lines
1<?php
2
2
3require_once './config.php';
4require_once SMARTY_DIR . 'Smarty.class.php';
4require_once SMARTY_DIR . 'Smarty.class.php';
5require_once 'PHPUnit.php';
6
21    
22class SmartyTest extends PHPUnit_TestCase {   
23    // contains the object handle of the string class
29    function SmartyTest($name) {
30       $this->PHPUnit_TestCase($name);
31    }
33    // called before the test functions will be executed    
34    // this function is defined in PHPUnit_TestCase and overwritten 
35    // here
CComponent.php https://bitbucket.org/dinhtrung/yiicorecms/ | PHP | 699 lines
1<?php
2/**
112			return $this->$getter();
113		else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name))
114		{
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
419	{
420		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
421	}
605	 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
606	 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
607	 * for more details. In the expression, the component object can be accessed using $this.
608	 *
609	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
610	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
CComponent.php http://yii.googlecode.com/svn/trunk/ | PHP | 687 lines
1<?php
2/**
112			return $this->$getter();
113		else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name))
114		{
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
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.
CComponent.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 687 lines
1<?php
2/**
112			return $this->$getter();
113		else if(strncasecmp($name,'on',2)===0 && method_exists($this,$name))
114		{
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
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