PageRenderTime 2139ms queryFilters 101ms Sphinxql 795ms GetByIds 1031ms meta 0ms repositoryFilters 40ms languageFilters 1ms sourceFilters 52ms

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

Source

Language

Repository

CComponent.php https://code.google.com/p/monkeys-job/ | PHP | 689 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
416	{
417		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
418	}
602	 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
603	 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
604	 * for more details. In the expression, the component object can be accessed using $this.
605	 *
606	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
607	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
test_cases.php git://github.com/gabrys/wikidot.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 git://github.com/yiisoft/yii.git | PHP | 696 lines
259			{
260				if($object->getEnabled() && method_exists($object,$name))
261					return call_user_func_array(array($object,$name),$parameters);
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.
599	 * A PHP expression can be any PHP code that has a value. To learn more about what an expression is,
600	 * please refer to the {@link http://www.php.net/manual/en/language.expressions.php php manual}.
601	 *
601	 *
602	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
603	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
CComponent.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 688 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
416	{
417		return method_exists($this,'get'.$name) || method_exists($this,'set'.$name);
418	}
602	 * If a PHP expression is used, the second parameter will be "extracted" into PHP variables
603	 * that can be directly accessed in the expression. See {@link http://us.php.net/manual/en/function.extract.php PHP extract}
604	 * for more details. In the expression, the component object can be accessed using $this.
605	 *
606	 * @param mixed $_expression_ a PHP expression or PHP callback to be evaluated.
607	 * @param array $_data_ additional parameters to be passed to the above expression/callback.
kernel.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 2,871 lines
1<?php
2/**
382  public function __set($name, $value) {
383    if (method_exists($this, $set = 'set' . $name)) {
384      $this->$set($value);
403  public  function __call($name, $params) {
404    if (method_exists($this, strtolower($name))) {
405      return call_user_func_array(array($this, strtolower($name)), $params);
408    foreach ($this->coinstances as $coinstance) {
409      if (method_exists($coinstance, $name) || $coinstance->method_exists($name))
410      return call_user_func_array(array($coinstance, $name), $params);
415  public function __isset($name) {
416    if (array_key_exists($name, $this->data) || method_exists($this, "get$name") || method_exists($this, "Get$name")) return true;
417    foreach ($this->coinstances as $coinstance) {
456    if ($filename = litepublisher::$classes->getclassfilename($class, true)) {
457      $externalname = basename($filename, '.php') . '.install.php';
458      $dir = dirname($filename) . DIRECTORY_SEPARATOR;
test.txt git://github.com/phpnode/YiiJS.git | Plain Text | 26,755 lines
32	 */
33	_coreClasses: {'CApplication':'/base/CApplication.js','CApplicationComponent':'/base/CApplicationComponent.js','CBehavior':'/base/CBehavior.js','CComponent':'/base/CComponent.js','CErrorEvent':'/base/CErrorEvent.js','CErrorHandler':'/base/CErrorHandler.js','CException':'/base/CException.js','CExceptionEvent':'/base/CExceptionEvent.js','CHttpException':'/base/CHttpException.js','CModel':'/base/CModel.js','CModelBehavior':'/base/CModelBehavior.js','CModelEvent':'/base/CModelEvent.js','CModule':'/base/CModule.js','CSecurityManager':'/base/CSecurityManager.js','CStatePersister':'/base/CStatePersister.js','CApcCache':'/caching/CApcCache.js','CCache':'/caching/CCache.js','CDbCache':'/caching/CDbCache.js','CDummyCache':'/caching/CDummyCache.js','CEAcceleratorCache':'/caching/CEAcceleratorCache.js','CFileCache':'/caching/CFileCache.js','CMemCache':'/caching/CMemCache.js','CWinCache':'/caching/CWinCache.js','CXCache':'/caching/CXCache.js','CZendDataCache':'/caching/CZendDataCache.js','CCacheDependency':'/caching/dependencies/CCacheDependency.js','CChainedCacheDependency':'/caching/dependencies/CChainedCacheDependency.js','CDbCacheDependency':'/caching/dependencies/CDbCacheDependency.js','CDirectoryCacheDependency':'/caching/dependencies/CDirectoryCacheDependency.js','CExpressionDependency':'/caching/dependencies/CExpressionDependency.js','CFileCacheDependency':'/caching/dependencies/CFileCacheDependency.js','CGlobalStateCacheDependency':'/caching/dependencies/CGlobalStateCacheDependency.js','CAttributeCollection':'/collections/CAttributeCollection.js','CConfiguration':'/collections/CConfiguration.js','CList':'/collections/CList.js','CListIterator':'/collections/CListIterator.js','CMap':'/collections/CMap.js','CMapIterator':'/collections/CMapIterator.js','CQueue':'/collections/CQueue.js','CQueueIterator':'/collections/CQueueIterator.js','CStack':'/collections/CStack.js','CStackIterator':'/collections/CStackIterator.js','CTypedList':'/collections/CTypedList.js','CTypedMap':'/collections/CTypedMap.js','CConsoleApplication':'/console/CConsoleApplication.js','CConsoleCommand':'/console/CConsoleCommand.js','CConsoleCommandRunner':'/console/CConsoleCommandRunner.js','CHelpCommand':'/console/CHelpCommand.js','CDbCommand':'/db/CDbCommand.js','CDbConnection':'/db/CDbConnection.js','CDbDataReader':'/db/CDbDataReader.js','CDbException':'/db/CDbException.js','CDbMigration':'/db/CDbMigration.js','CDbTransaction':'/db/CDbTransaction.js','CActiveFinder':'/db/ar/CActiveFinder.js','CActiveRecord':'/db/ar/CActiveRecord.js','CActiveRecordBehavior':'/db/ar/CActiveRecordBehavior.js','CDbColumnSchema':'/db/schema/CDbColumnSchema.js','CDbCommandBuilder':'/db/schema/CDbCommandBuilder.js','CDbCriteria':'/db/schema/CDbCriteria.js','CDbExpression':'/db/schema/CDbExpression.js','CDbSchema':'/db/schema/CDbSchema.js','CDbTableSchema':'/db/schema/CDbTableSchema.js','CMssqlColumnSchema':'/db/schema/mssql/CMssqlColumnSchema.js','CMssqlCommandBuilder':'/db/schema/mssql/CMssqlCommandBuilder.js','CMssqlPdoAdapter':'/db/schema/mssql/CMssqlPdoAdapter.js','CMssqlSchema':'/db/schema/mssql/CMssqlSchema.js','CMssqlTableSchema':'/db/schema/mssql/CMssqlTableSchema.js','CMysqlColumnSchema':'/db/schema/mysql/CMysqlColumnSchema.js','CMysqlSchema':'/db/schema/mysql/CMysqlSchema.js','CMysqlTableSchema':'/db/schema/mysql/CMysqlTableSchema.js','COciColumnSchema':'/db/schema/oci/COciColumnSchema.js','COciCommandBuilder':'/db/schema/oci/COciCommandBuilder.js','COciSchema':'/db/schema/oci/COciSchema.js','COciTableSchema':'/db/schema/oci/COciTableSchema.js','CPgsqlColumnSchema':'/db/schema/pgsql/CPgsqlColumnSchema.js','CPgsqlSchema':'/db/schema/pgsql/CPgsqlSchema.js','CPgsqlTableSchema':'/db/schema/pgsql/CPgsqlTableSchema.js','CSqliteColumnSchema':'/db/schema/sqlite/CSqliteColumnSchema.js','CSqliteCommandBuilder':'/db/schema/sqlite/CSqliteCommandBuilder.js','CSqliteSchema':'/db/schema/sqlite/CSqliteSchema.js','CChoiceFormat':'/i18n/CChoiceFormat.js','CDateFormatter':'/i18n/CDateFormatter.js','CDbMessageSource':'/i18n/CDbMessageSource.js','CGettextMessageSource':'/i18n/CGettextMessageSource.js','CLocale':'/i18n/CLocale.js','CMessageSource':'/i18n/CMessageSource.js','CNumberFormatter':'/i18n/CNumberFormatter.js','CPhpMessageSource':'/i18n/CPhpMessageSource.js','CGettextFile':'/i18n/gettext/CGettextFile.js','CGettextMoFile':'/i18n/gettext/CGettextMoFile.js','CGettextPoFile':'/i18n/gettext/CGettextPoFile.js','CDbLogRoute':'/logging/CDbLogRoute.js','CEmailLogRoute':'/logging/CEmailLogRoute.js','CFileLogRoute':'/logging/CFileLogRoute.js','CLogFilter':'/logging/CLogFilter.js','CLogRoute':'/logging/CLogRoute.js','CLogRouter':'/logging/CLogRouter.js','CLogger':'/logging/CLogger.js','CProfileLogRoute':'/logging/CProfileLogRoute.js','CWebLogRoute':'/logging/CWebLogRoute.js','CDateTimeParser':'/utils/CDateTimeParser.js','CFileHelper':'/utils/CFileHelper.js','CFormatter':'/utils/CFormatter.js','CMarkdownParser':'/utils/CMarkdownParser.js','CPropertyValue':'/utils/CPropertyValue.js','CTimestamp':'/utils/CTimestamp.js','CVarDumper':'/utils/CVarDumper.js','CBooleanValidator':'/validators/CBooleanValidator.js','CCaptchaValidator':'/validators/CCaptchaValidator.js','CCompareValidator':'/validators/CCompareValidator.js','CDateValidator':'/validators/CDateValidator.js','CDefaultValueValidator':'/validators/CDefaultValueValidator.js','CEmailValidator':'/validators/CEmailValidator.js','CExistValidator':'/validators/CExistValidator.js','CFileValidator':'/validators/CFileValidator.js','CFilterValidator':'/validators/CFilterValidator.js','CInlineValidator':'/validators/CInlineValidator.js','CNumberValidator':'/validators/CNumberValidator.js','CRangeValidator':'/validators/CRangeValidator.js','CRegularExpressionValidator':'/validators/CRegularExpressionValidator.js','CRequiredValidator':'/validators/CRequiredValidator.js','CSafeValidator':'/validators/CSafeValidator.js','CStringValidator':'/validators/CStringValidator.js','CTypeValidator':'/validators/CTypeValidator.js','CUniqueValidator':'/validators/CUniqueValidator.js','CUnsafeValidator':'/validators/CUnsafeValidator.js','CUrlValidator':'/validators/CUrlValidator.js','CValidator':'/validators/CValidator.js','CActiveDataProvider':'/web/CActiveDataProvider.js','CArrayDataProvider':'/web/CArrayDataProvider.js','CAssetManager':'/web/CAssetManager.js','CBaseController':'/web/CBaseController.js','CCacheHttpSession':'/web/CCacheHttpSession.js','CClientScript':'/web/CClientScript.js','CController':'/web/CController.js','CDataProvider':'/web/CDataProvider.js','CDbHttpSession':'/web/CDbHttpSession.js','CExtController':'/web/CExtController.js','CFormModel':'/web/CFormModel.js','CHttpCookie':'/web/CHttpCookie.js','CHttpRequest':'/web/CHttpRequest.js','CHttpSession':'/web/CHttpSession.js','CHttpSessionIterator':'/web/CHttpSessionIterator.js','COutputEvent':'/web/COutputEvent.js','CPagination':'/web/CPagination.js','CSort':'/web/CSort.js','CSqlDataProvider':'/web/CSqlDataProvider.js','CTheme':'/web/CTheme.js','CThemeManager':'/web/CThemeManager.js','CUploadedFile':'/web/CUploadedFile.js','CUrlManager':'/web/CUrlManager.js','CWebApplication':'/web/CWebApplication.js','CWebModule':'/web/CWebModule.js','CWidgetFactory':'/web/CWidgetFactory.js','CAction':'/web/actions/CAction.js','CInlineAction':'/web/actions/CInlineAction.js','CViewAction':'/web/actions/CViewAction.js','CAccessControlFilter':'/web/auth/CAccessControlFilter.js','CAuthAssignment':'/web/auth/CAuthAssignment.js','CAuthItem':'/web/auth/CAuthItem.js','CAuthManager':'/web/auth/CAuthManager.js','CBaseUserIdentity':'/web/auth/CBaseUserIdentity.js','CDbAuthManager':'/web/auth/CDbAuthManager.js','CPhpAuthManager':'/web/auth/CPhpAuthManager.js','CUserIdentity':'/web/auth/CUserIdentity.js','CWebUser':'/web/auth/CWebUser.js','CFilter':'/web/filters/CFilter.js','CFilterChain':'/web/filters/CFilterChain.js','CInlineFilter':'/web/filters/CInlineFilter.js','CForm':'/web/form/CForm.js','CFormButtonElement':'/web/form/CFormButtonElement.js','CFormElement':'/web/form/CFormElement.js','CFormElementCollection':'/web/form/CFormElementCollection.js','CFormInputElement':'/web/form/CFormInputElement.js','CFormStringElement':'/web/form/CFormStringElement.js','CGoogleApi':'/web/helpers/CGoogleApi.js','CHtml':'/web/helpers/CHtml.js','CJSON':'/web/helpers/CJSON.js','CJavaScript':'/web/helpers/CJavaScript.js','CPradoViewRenderer':'/web/renderers/CPradoViewRenderer.js','CViewRenderer':'/web/renderers/CViewRenderer.js','CWebService':'/web/services/CWebService.js','CWebServiceAction':'/web/services/CWebServiceAction.js','CWsdlGenerator':'/web/services/CWsdlGenerator.js','CActiveForm':'/web/widgets/CActiveForm.js','CAutoComplete':'/web/widgets/CAutoComplete.js','CClipWidget':'/web/widgets/CClipWidget.js','CContentDecorator':'/web/widgets/CContentDecorator.js','CFilterWidget':'/web/widgets/CFilterWidget.js','CFlexWidget':'/web/widgets/CFlexWidget.js','CHtmlPurifier':'/web/widgets/CHtmlPurifier.js','CInputWidget':'/web/widgets/CInputWidget.js','CMarkdown':'/web/widgets/CMarkdown.js','CMaskedTextField':'/web/widgets/CMaskedTextField.js','CMultiFileUpload':'/web/widgets/CMultiFileUpload.js','COutputCache':'/web/widgets/COutputCache.js','COutputProcessor':'/web/widgets/COutputProcessor.js','CStarRating':'/web/widgets/CStarRating.js','CTabView':'/web/widgets/CTabView.js','CTextHighlighter':'/web/widgets/CTextHighlighter.js','CTreeView':'/web/widgets/CTreeView.js','CWidget':'/web/widgets/CWidget.js','CCaptcha':'/web/widgets/captcha/CCaptcha.js','CCaptchaAction':'/web/widgets/captcha/CCaptchaAction.js','CBasePager':'/web/widgets/pagers/CBasePager.js','CLinkPager':'/web/widgets/pagers/CLinkPager.js','CListPager':'/web/widgets/pagers/CListPager.js'},
34	/**
1325Yii.CComponent.prototype.hasProperty = function (name) {
1326		return this[name] !== undefined || php.method_exists(this,'get'+php.ucfirst(name)) || php.method_exists(this,'set'+php.ucfirst(name));
1327	};
6283Yii.CSecurityManager.prototype.generateRandomKey = function () {
6284		return php.sprintf('%08x%08x%08x%08x',php.mt_rand(),php.mt_rand(),php.mt_rand(),php.mt_rand());
6285	};
9548		if(pattern==='W') {
9549			return php.date('W',php.mktime(0,0,0,date.mon, date.mday,date.year))-php.date('W', php.mktime(0,0,0,date.mon,1,date.year))+1;
9550		}
13178    // *     returns 1: 'Asia/Hong_Kong'
13179    if (this.php_js && this.php_js.ini && this.php_js.ini[varname] && this.php_js.ini[varname].local_value !== undefined) {
13180        if (this.php_js.ini[varname].local_value === null) {
yiilite.php https://github.com/trofimovm/fa2014.git | PHP | 10,406 lines
450		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
451		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
452		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
530		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
531		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
532		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3760			return Yii::app()->findLocalizedFile($viewFile.$extension);
3761		elseif($extension!=='.php' && is_file($viewFile.'.php'))
3762			return Yii::app()->findLocalizedFile($viewFile.'.php');
6036				return Yii::app()->findLocalizedFile($viewFile.$extension);
6037			elseif($extension!=='.php' && is_file($viewFile.'.php'))
6038				return Yii::app()->findLocalizedFile($viewFile.'.php');
6042			return Yii::app()->findLocalizedFile($viewFile.$extension);
6043		elseif($extension!=='.php' && is_file($viewFile.'.php'))
6044			return Yii::app()->findLocalizedFile($viewFile.'.php');
yiilite.php https://github.com/zhuyanxi/yii.git | PHP | 10,565 lines
456		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
457		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
458		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
537		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
538		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
539		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3828			return Yii::app()->findLocalizedFile($viewFile.$extension);
3829		elseif($extension!=='.php' && is_file($viewFile.'.php'))
3830			return Yii::app()->findLocalizedFile($viewFile.'.php');
6167				return Yii::app()->findLocalizedFile($viewFile.$extension);
6168			elseif($extension!=='.php' && is_file($viewFile.'.php'))
6169				return Yii::app()->findLocalizedFile($viewFile.'.php');
6173			return Yii::app()->findLocalizedFile($viewFile.$extension);
6174		elseif($extension!=='.php' && is_file($viewFile.'.php'))
6175			return Yii::app()->findLocalizedFile($viewFile.'.php');
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/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    }
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			
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 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/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    }
yiilite.php https://bitbucket.org/ddonthula/zurmo26 | PHP | 9,814 lines
440		'CNumberFormatter' => '/i18n/CNumberFormatter.php',
441		'CPhpMessageSource' => '/i18n/CPhpMessageSource.php',
442		'CGettextFile' => '/i18n/gettext/CGettextFile.php',
516		'CDbAuthManager' => '/web/auth/CDbAuthManager.php',
517		'CPhpAuthManager' => '/web/auth/CPhpAuthManager.php',
518		'CUserIdentity' => '/web/auth/CUserIdentity.php',
3514			return Yii::app()->findLocalizedFile($viewFile.$extension);
3515		else if($extension!=='.php' && is_file($viewFile.'.php'))
3516			return Yii::app()->findLocalizedFile($viewFile.'.php');
5605				return Yii::app()->findLocalizedFile($viewFile.$extension);
5606			else if($extension!=='.php' && is_file($viewFile.'.php'))
5607				return Yii::app()->findLocalizedFile($viewFile.'.php');
5611			return Yii::app()->findLocalizedFile($viewFile.$extension);
5612		else if($extension!=='.php' && is_file($viewFile.'.php'))
5613			return Yii::app()->findLocalizedFile($viewFile.'.php');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21