PageRenderTime 1896ms queryFilters 142ms Sphinxql 802ms GetByIds 793ms meta 0ms repositoryFilters 23ms languageFilters 0ms sourceFilters 78ms

70,509 results for 'php is_null repo:istran/core' (1896 ms)

Source

Language

Repository

plugin_api.php git://github.com/mantisbt/mantisbt.git | PHP | 1,102 lines
1<?php
2# MantisBT - A PHP based bugtracking system
28 *
29 * @uses access_api.php
30 * @uses config_api.php
30 * @uses config_api.php
31 * @uses constant_inc.php
32 * @uses database_api.php
32 * @uses database_api.php
33 * @uses error_api.php
34 * @uses event_api.php
34 * @uses event_api.php
35 * @uses file_api.php
36 * @uses helper_api.php
898			# Final check on the class
899			if( is_null( $t_plugin->name ) || is_null( $t_plugin->version ) ) {
900				return null;
LinqToZendDb.php https://PHPLinq.svn.codeplex.com/svn | PHP | 1,202 lines
53/** Register ILinqProvider */
54PHPLinq_Initiator::registerProvider('PHPLinq_LinqToZendDb');
55
757	public function where($expression) {
758		$this->_where = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
759		return $this;
790	public function takeWhile($expression) {
791		$this->_takeWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
792		return $this;
801	public function skipWhile($expression) {
802		$this->_skipWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
803		return $this;
860	public function distinct($expression) {
861		$this->_distinct = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
862		return $this;
class.phpwsdlclient.php http://php-wsdl-creator.googlecode.com/svn/trunk/ | PHP | 693 lines
25
26require_once(dirname(__FILE__).'/class.phpwsdl.php');
27
284				$uri=$this->WsdlUri;
285			PhpWsdl::Debug('Create a PHP SoapClient object in PhpWsdlClient from '.$uri);
286			if(!is_null(PhpWsdl::$CacheFolder)){
446	public function ParseWsdl(){
447		if(!is_null($this->ServiceName)&&!is_null($this->EndPoint)&&!is_null($this->NameSpace))
448			return;
500	public function CreatePhpSoapClient($filename=null,$options=Array()){
501		$php=$this->CreateServerFromWsdl()->OutputPhp(false,false,$options);
502		if(!is_null($filename))
527			'wsdluri'		=>	$wsdluri,
528			'filename'		=>	(is_null(PhpWsdl::$CacheFolder))?null:PhpWsdl::$CacheFolder.'/client-'.sha1((is_null($wsdluri))?$this->WsdlUri:$wsdluri).'.wsdl'
529		);
pluginlib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,692 lines
527     * Passing the parameter $typeclass allows us to reach the same effect as with the
528     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
529     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
860
861        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
862            return plugin_manager::PLUGIN_STATUS_NEW;
863
864        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
865            if (plugin_manager::is_deleted_standard_plugin($this->type, $this->name)) {
1374
1375        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1376            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1537
1538        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1539            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,907 lines
4115												  break;
4116			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
4117												  break;
4175			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4176			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4177
4226			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4227				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4228			} else {
4906												  break;
4907			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4908												  break;
4944												  break;
4945			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4946												  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 9,540 lines
4718			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4719			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4720
4769			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4770				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4771			} else {
4771			} else {
4772				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4773			}
5471												  break;
5472			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
5473												  break;
5509												  break;
5510			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
5511												  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 12,056 lines
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
5956			} else {
5957				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
5958			}
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,527 lines
4077												  break;
4078			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
4079												  break;
4137			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4138			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4139
4188			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4189				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4190			} else {
4190			} else {
4191				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4192			}
4198													  break;
4199				case self::RETURNDATE_PHP_OBJECT	: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
4200													  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 7,143 lines
4197			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4198			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4199
4248			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4249				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4250			} else {
4250			} else {
4251				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4252			}
4940												  break;
4941			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4942												  break;
4978												  break;
4979			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4980												  break;
weblcms_manager.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 1,794 lines
1<?php
2namespace application\weblcms;
30 */
31require_once dirname(__FILE__) . '/weblcms_search_form.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
33require_once dirname(__FILE__) . '/../tool/tool.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
35require_once dirname(__FILE__) . '/../tool_list_renderer.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
37require_once dirname(__FILE__) . '/../course/course_request.class.php';
38require_once dirname(__FILE__) . '/../course/course_create_request.class.php';
778        {
779            $path = $directory . $tool . '/php/' . $tool . '_tool.class.php';
780
box.container.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2// $Header: /cvsroot/html2ps/box.container.php,v 1.68 2007/05/06 18:49:29 Konstantin Exp $
5require_once(HTML2PS_DIR.'strategy.width.min.nowrap.php');
6require_once(HTML2PS_DIR.'strategy.width.max.php');
7require_once(HTML2PS_DIR.'strategy.width.max.natural.php');
127        if ($driver->contains($child)) {
128          if (is_null($child->show($driver))) {
129            return null;
291
292    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
293    $dummy = null;
316
317    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
318    $dummy = null;
335
336    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
337    $dummy = null;
OrderByParserTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 717 lines
7use ODataProducer\UriProcessor\QueryProcessor\OrderByParser\OrderByParser;
8require_once 'PHPUnit\Framework\Assert.php';
9require_once 'PHPUnit\Framework\Test.php';
11require_once 'PHPUnit\Framework\TestCase.php';
12require_once 'PHPUnit\Framework\TestSuite.php';
13require_once 'ODataProducer\Common\ClassAutoLoader.php';
256            /**
257             	$flag1 = is_null($CustomersA) || is_null($CustomersA->Address) || is_null($CustomersA->Address->HouseNumber); 
258				$flag2 = is_null($CustomersB) || is_null($CustomersB->Address) || is_null($CustomersB->Address->HouseNumber); 
555             $flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Order) || is_null($Order_DetailsA->Order->Price); 
556			 $flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Order) || is_null($Order_DetailsB->Order->Price); 
557			 if($flag1 && $flag2) { 
616            
617			$flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Product) || is_null($Order_DetailsA->Product->ProductName); 
618			$flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Product) || is_null($Order_DetailsB->Product->ProductName); 
Table.php http://grupal.googlecode.com/svn/trunk/ | PHP | 932 lines
1<?php
2/**
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/TableInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
42
548		// Add continuation querystring parameters?
549		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
550		    if ($queryString !== '') {
629			// More entities?
630		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
631		        if (strpos($queryString, '$top') === false) {
RPC.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 519 lines
2
3require_once PHPRPC_ROOT . 'classes.php';
4require_once PHPRPC_ROOT . 'primitives.php';
4require_once PHPRPC_ROOT . 'primitives.php';
5require_once PHPRPC_ROOT . 'primitives_serializers.php';
6require_once PHPRPC_ROOT . 'collections.php';
6require_once PHPRPC_ROOT . 'collections.php';
7require_once PHPRPC_ROOT . 'collections_serializers.php';
8require_once PHPRPC_ROOT . 'datetime.php';
8require_once PHPRPC_ROOT . 'datetime.php';
9require_once PHPRPC_ROOT . 'datetime_serializers.php';
10require_once PHPRPC_ROOT . 'serialization.php';
16require_once PHPRPC_ROOT . 'rpc/RPCServletUtils.php';
17require_once PHPRPC_ROOT . 'rpc/javaclasses.php';
18
renderer.php git://github.com/moodle/moodle.git | PHP | 1,160 lines
1<?php
2
68
69        if (!is_null($url) and !is_null($label)) {
70            $o .= $this->output->single_button($url, $label, 'get');
134            if (!empty($CFG->enableplagiarism)) {
135                require_once($CFG->libdir.'/plagiarismlib.php');
136                $content .= plagiarism_get_links(array('userid' => $submission->authorid,
185            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
186            $userurl            = new moodle_url('/user/view.php',
187                                            array('id' => $author->id, 'course' => $this->page->course->id));
525                    $cell->attributes['class'] = 'receivedgrade';
526                    if (is_null($assessment) or is_null($assessment->grade)) {
527                        $cell->attributes['class'] .= ' null';
549                    $cell->attributes['class'] = 'givengrade';
550                    if (is_null($assessment) or is_null($assessment->grade)) {
551                        $cell->attributes['class'] .= ' null';
CaisseMarcheCommandeControleur.php http://zeybux.googlecode.com/svn/trunk/ | PHP | 384 lines
85			
86			if(!is_null($lAchat) && !is_null($lPdtNvAchat)) { // Maj de l'achat
87				$lNvAchat = new AchatVO();
125				$lAchatService->set($lNvAchat); // Achat des produits
126			} else if(!is_null($lAchat) && is_null($lPdtNvAchat)){ // Supression
127				$lAchatService->delete($lAchat->getId());
129			
130			if(!is_null($lAchatSolidaire) && !is_null($lPdtNvAchatSolidaire)) { // Maj de l'achat
131		//		echo "maj";
156				$lAchatService->set($lNvAchatSolidaire);
157			} else if(is_null($lAchatSolidaire) && !is_null($lPdtNvAchatSolidaire)){ // Ajout
158				
179				
180			} else if(!is_null($lAchatSolidaire) && is_null($lPdtNvAchatSolidaire)){ // Supression
181				//echo "supp";
renderer.php git://github.com/moodle/moodle.git | PHP | 1,146 lines
1<?php
2
68
69        if (!is_null($url) and !is_null($label)) {
70            $o .= $this->output->single_button($url, $label, 'get');
134            if (!empty($CFG->enableplagiarism)) {
135                require_once($CFG->libdir.'/plagiarismlib.php');
136                $content .= plagiarism_get_links(array('userid' => $submission->authorid,
185            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
186            $userurl            = new moodle_url('/user/view.php',
187                                            array('id' => $author->id, 'course' => $this->page->course->id));
517                    $cell->attributes['class'] = 'receivedgrade';
518                    if (is_null($assessment) or is_null($assessment->grade)) {
519                        $cell->attributes['class'] .= ' null';
541                    $cell->attributes['class'] = 'givengrade';
542                    if (is_null($assessment) or is_null($assessment->grade)) {
543                        $cell->attributes['class'] .= ' null';
limonade.php git://github.com/sofadesign/limonade.git | PHP | 2,707 lines
1252 *   a function, an object method, a static method or a closure.
1253 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1254 *   to learn more about callbacks.
1898 *   or an object and the name of a method within the object
1899 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1900 *   to learn more about callbacks.
2609   * For PHP 5 < 5.3.0 (backward compatibility)
2610   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2611   * 
2644 * This implementation no longer requires 
2645 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2646 * so it will improve compatibility with older PHP versions.
2660 * For PHP 5 < 5.1.0 (backward compatibility)
2661 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2662 * 
frmMain.user.php https://Phalanger.svn.codeplex.com/svn | PHP | 1,215 lines
1<? //Š Đonny 2009 - Part of Phalanger project
2    import namespace RegEditPHP;
3    import namespace System:::Windows:::Forms;
17             private function Init(){
18                //Call to this method wa manually added to __construct() in frmMain.php
19                //Following commented lines are no longer needed because pictures now can be added form designer
67            private function tmiJump_Click(System:::Object $sender, System:::EventArgs $e) {
68                //get path to jump to using InputBox (see InputBox.user.php)
69                $Path = InputBox::GetInput(Program::$Resources->JumpToKey,Program::$Resources->JumpToKey_t);
98                    foreach($CurrentNodes as $Node)://Wee look for node with same at current level
99                        if($Node->Name->ToLower() == $Part->ToString()->ToLower())://Note: Usage of ToString() on PHP string is required to use ToLower(); $Node->Name is not PHP string but .NET string
100                            $this->NoExpandQuestion=true;//Turn of expand question ofr HKCR
491                    case Keys::F2://F2 key (w/o ...)
492                        if(!is_null($this->tvwRegistry->SelectedNode) and !is_null($this->tvwRegistry->SelectedNode->Parent)):
493                            $this->tvwRegistry->SelectedNode->BeginEdit();        
LinqToAzure.php https://PHPLinq.svn.codeplex.com/svn | PHP | 1,123 lines
50/** Register ILinqProvider */
51PHPLinq_Initiator::registerProvider('PHPLinq_LinqToAzure');
52
701	public function where($expression) {
702		$this->_where = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
703		return $this;
734	public function takeWhile($expression) {
735		$this->_takeWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
736		return $this;
745	public function skipWhile($expression) {
746		$this->_skipWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
747		return $this;
804	public function distinct($expression) {
805		$this->_distinct = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
806		return $this;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21