PageRenderTime 1744ms queryFilters 0ms Sphinxql 438ms GetByIds 1178ms meta 0ms repositoryFilters 7ms languageFilters 2ms sourceFilters 1ms

206,208 results for 'php is_null repo:lyrixx/phpcr-utils' (1744 ms)

Source

Language

Repository

UriProcessorTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 2,461 lines
23use ODataProducer\Common\ODataException;
24require_once 'PHPUnit\Framework\Assert.php';
25require_once 'PHPUnit\Framework\Test.php';
25require_once 'PHPUnit\Framework\Test.php';
26require_once 'PHPUnit\Framework\SelfDescribing.php';
27require_once 'PHPUnit\Framework\TestCase.php';
27require_once 'PHPUnit\Framework\TestCase.php';
28require_once 'PHPUnit\Framework\TestSuite.php';
29require_once 'ODataProducer\Common\ClassAutoLoader.php';
1125            $this->assertEquals($code, 
1126            'if(((!(is_null($lt->OrderID)) && !(is_null($lt->OrderDate))) && (($lt->OrderID == 123) && (ODataProducer\Providers\Metadata\Type\DateTime::dateTimeCmp($lt->OrderDate, \'2000-11-11\') <= 0)))) { return true; } else { return false;}');
1127            $host->getWebOperationContext()->resetWebContextInternal();
1206            $this->assertEquals($code, 
1207            'if(((!(is_null($lt->OrderID)) && !(is_null($lt->OrderDate))) && (($lt->OrderID == 123) && (ODataProducer\Providers\Metadata\Type\DateTime::dateTimeCmp($lt->OrderDate, \'2000-11-11\') <= 0)))) { return true; } else { return false;}');
1208            $host->getWebOperationContext()->resetWebContextInternal();
PHPExpressionProviderTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 692 lines
117            $actualPHPExpression = $expressionProcessor->processExpression();
118            $expectedPHPExpression = '((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->LineNumber))) && (($lt->Customer->Address->LineNumber + 2) == 4)) || (((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->LineNumber2))) && (($lt->Customer->Address->LineNumber2 - 2) != 6)))';
119            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
125            $actualPHPExpression = $expressionProcessor->processExpression();
126            $expectedPHPExpression = '((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && ($lt->Customer->Address->Address2->IsPrimary == true))';
127            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
133            $actualPHPExpression = $expressionProcessor->processExpression();  
134            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && !(is_null($lt->Customer->Address->IsValid))) && ($lt->Customer->Address->Address2->IsPrimary && $lt->Customer->Address->IsValid))';
135            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
141            $actualPHPExpression = $expressionProcessor->processExpression();  
142            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && $lt->Customer->Address->Address2->IsPrimary) || (((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->IsValid))) && $lt->Customer->Address->IsValid))';
143            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
148            $actualPHPExpression = $expressionProcessor->processExpression();
149            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && !(is_null($lt->Customer->Address->IsValid))) && ($lt->Customer->Address->Address2->IsPrimary <= $lt->Customer->Address->IsValid))';
150            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
Blob.php http://grupal.googlecode.com/svn/trunk/ | PHP | 2,143 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 24697 2012-03-23 13:11:04Z ezimuel $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/BlobInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/BlobContainer.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/PageRegionInstance.php';
42
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;
main.php git://github.com/bcosca/fatfree.git | PHP | 3,577 lines
1<?php
2
86					$this->expect(
87						!is_null($this->get('ERROR')) && $this->get('ERROR.code')===500,
88						$this->get('ERROR.text'),
118
119		foreach (explode('|',F3::PHP_Globals) as $php) {
120			$this->set($php.'.x',3.14);
122			$this->expect(
123				$this->get($php)==$GLOBALS['_'.$php],
124				$php.' matches $_'.$php,
124				$php.' matches $_'.$php,
125				$php.' does not match $_'.$php.': '.
126					var_export($this->get($php),TRUE).' != '.
431		$this->expect(
432			is_null($this->get('{{@b.1}}')) && !is_null($this->get('ERROR')),
433			'Incorrect variable variable usage',
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 | 11,481 lines
5724			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5725			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5726
5775			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5776				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5777			} else {
5777			} else {
5778				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
5779			}
6523												  break;
6524			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6525												  break;
6562												  break;
6563			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6564												  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;
pipeline.class.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2
2
3require_once(HTML2PS_DIR.'utils_array.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
5require_once(HTML2PS_DIR.'utils_url.php');
6require_once(HTML2PS_DIR.'utils_text.php');
6require_once(HTML2PS_DIR.'utils_text.php');
7require_once(HTML2PS_DIR.'utils_units.php');
8require_once(HTML2PS_DIR.'utils_number.php');
9
10require_once(HTML2PS_DIR.'value.color.php');
11
11
12require_once(HTML2PS_DIR.'config.parse.php');
13
config.class.php git://github.com/splitbrain/dokuwiki.git | PHP | 1,415 lines
1<?php
2/**
18        var $_name = 'conf';           // name of the config variable found in the files (overridden by $config['varname'])
19        var $_format = 'php';          // format of the config file, supported formats - php (overridden by $config['format'])
20        var $_heading = '';            // heading string written at top of config file - don't include comment indicators
199                if(file_exists($file)){
200                    $contents = @php_strip_whitespace($file);
201                }else{
238        /**
239         * Convert php string into value
240         *
272            $out = '';
273            if ($this->_format == 'php') {
274                $out .= '<'.'?php'."\n".
940            $valid = parent::update($input);
941            if ($valid && !(is_null($this->_min) && is_null($this->_max))) {
942                $numeric_local = (int) eval('return '.$this->_local.';');
Client.php http://grupal.googlecode.com/svn/trunk/ | PHP | 610 lines
1<?php
2/**
30 */
31 require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
32 
35 */
36 require_once 'Zend/Service/SqlAzure/Management/ServerInstance.php';
37 
40 */
41 require_once 'Zend/Service/SqlAzure/Management/FirewallRuleInstance.php';
42 
131		$this->_retryPolicy = $retryPolicy;
132		if (is_null($this->_retryPolicy)) {
133		    $this->_retryPolicy = Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract::noRetry();
356                }
357                if (is_null($location) && is_null($affinityGroup)) {
358                    require_once 'Zend/Service/SqlAzure/Management/Exception.php';
pluginlib.php git://github.com/moodle/moodle.git | PHP | 1,691 lines
526     * Passing the parameter $typeclass allows us to reach the same effect as with the
527     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
528     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
859
860        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
861            return plugin_manager::PLUGIN_STATUS_NEW;
862
863        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
864            if (plugin_manager::is_deleted_standard_plugin($this->type, $this->name)) {
1373
1374        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1375            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1536
1537        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1538            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
pluginlib.php git://github.com/moodle/moodle.git | text | 0 lines
502     * Passing the parameter $typeclass allows us to reach the same effect as with the
503     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
504     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
832
833        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
834            return plugin_manager::PLUGIN_STATUS_NEW;
835
836        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
837            return plugin_manager::PLUGIN_STATUS_MISSING;
1342
1343        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1344            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1505
1506        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1507            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
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;
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		);
Functions.php git://github.com/indowebit/Ext-PHP.git | PHP | 12,038 lines
5810												  break;
5811			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
5812												  break;
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 {
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;
setup.php git://github.com/thorsten/phpMyFAQ.git | PHP | 935 lines
26
27define('COPYRIGHT', '&copy; 2001-2012 <a href="http://www.phpmyfaq.de/">phpMyFAQ Team</a> | Follow us on <a href="http://twitter.com/phpMyFAQ">Twitter</a> | All rights reserved.');
28define('PMF_ROOT_DIR', dirname(__DIR__));
79
80    <title>phpMyFAQ <?php print PMF_System::getVersion(); ?> Setup</title>
81
465            <input class="btn-primary btn-large" type="submit"
466                   value="Click to install phpMyFAQ <?php print PMF_System::getVersion(); ?>" />
467        </div>
794        <iframe onload="iframeUpdated();" name="questionaireResult" style="display:none"></iframe>
795        <form action="http://www.phpmyfaq.de/stats/getstatdata.php" method="post" target="questionaireResult"
796              id="questionnaireForm" class="form-horizontal">
803                If you don't want to participate in the survey, you can directly visit
804                <a href="../index.php">your version of phpMyFAQ</a> or login into your
805                <a href="../admin/index.php">admin section</a>.
limonade.php git://github.com/sofadesign/limonade-blog-example.git | PHP | 2,289 lines
1<?php
2                                                                  
62define('E_LIM_HTTP',            32768);
63define('E_LIM_PHP',             65536);
64define('E_LIM_DEPRECATED',      35000);
71
72# for PHP 5.3.0 <
73if(!defined('E_DEPRECATED'))      define('E_DEPRECATED', 8192);
197  $name = array_shift($args);
198  if(is_null($name)) return $options;
199  if(!empty($args))
995
996      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
997  	  $uri = str_replace($base_path, '', $request_uri);
1649  static $_name = null;
1650  if(is_null($name) && !is_null($_name))
1651  {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21