PageRenderTime 67ms queryFilters 2ms Sphinxql 610ms GetByIds 1841ms meta 0ms repositoryFilters 8ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

underscore.php git://github.com/brianhaveri/Underscore.php.git | PHP | 1,120 lines
1<?php
2
3/**
4 * Underscore.php v1.3.1
5 * Copyright (c) 2011 Brian Haveri
5 * Copyright (c) 2011 Brian Haveri
6 * Underscore.php is licensed under the MIT license
7 * Underscore.php was inspired by and borrowed from Underscore.js
7 * Underscore.php was inspired by and borrowed from Underscore.js
8 * For docs, license, tests, and downloads, see: http://brianhaveri.github.com/Underscore.php
9 */
17
18// Underscore.php
19class __ {
41    
42    if(is_null($collection)) return self::_wrap(null);
43    
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 * 
io.php http://sloodle.googlecode.com/svn/trunk/ | PHP | 1,193 lines
1<?php
2    // This file is part of the Sloodle project (www.sloodle.org) and is released under the GNU GPL v3.
21    /** Include our general library. */
22    require_once(SLOODLE_DIRROOT . '/lib/general.php');
23    
46    /**
47    * A helper class to validate and structure data for output according to the {@link http://slisweb.sjsu.edu/sl/index.php/Sloodle_communications_specification Sloodle communications specification}.
48    * @package sloodle
69        * Integer status code of the response.
70        * Refer to the {@link http://slisweb.sjsu.edu/sl/index.php/Sloodle_status_codes status codes} page on the Sloodle wiki for a reference.
71        * <b>Required.</b>
242            // Validate
243            if (is_string($par) == false && is_null($par) == false) {
244                $this->_internal_validation_error("Sloodle - LSL response: invalid status descriptor specified; should be a string or null", 0);
551            // Make sure that if the page number is specified, that the total is as well
552            if (is_null($this->page_number) xor is_null($this->page_total)) {
553                $this->_internal_validation_error("Sloodle - LSL response: script must specify both \"page_total\" *and* \"page_number\", or specify neither");
Blob.php https://PHPAzure.svn.codeplex.com/svn | PHP | 2,030 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 54045 2010-11-25 19:32:07Z unknown $
34 */
38 */
39require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/Credentials/SharedAccessSignature.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
50
53 */
54require_once 'Microsoft/Http/Client.php';
55
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();        
QDateTime.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 838 lines
8	 * QDateTime (Standard)
9	 * REQUIRES: PHP >= 5.2.0
10	 * 
11	 * This DateTime class manages datetimes for the entire system.  It basically
12	 * provides a nice wrapper around the PHP DateTime class, which is included with
13	 * all versions of PHP >= 5.2.0.
14	 * 
15	 * For legacy PHP users (PHP < 5.2.0), please refer to QDateTime.legacy
16	 */
383			// If HOUR or MINUTE is NULL...
384			if (is_null($intHour) || is_null($intMinute)) {
385				parent::setTime($intHour, $intMinute, $intSecond);
753/*
754	This is a reference to the documentation for hte PHP DateTime classes (as of PHP 5.2)
755
jeromes-keywords.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 710 lines
1<?php
2/*
41    - added default options which are saved to the db
42    - moved old functions (template tags) to legacy.php
43    - many minor improvements, including random sorting of tag cloud & automatic meta keyword generation
57        'query_varname'  => 'tag',          // HTTP var name used for tag searches
58        'template'       => 'keywords.php', // template file to use for displaying tag queries
59
135            $this->rewriteon = true;                    // using rewrite rules
136            $this->base_url .= $wp_rewrite->root;		// set to "index.php/" if using that style
137            $this->base_url .= $this->option['query_varname'] . '/';
166        /* load administration class */
167        include (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'LightPressTagging.php');
168        $this->admin =& new LightPressTagging($this->_table);
170        /* add tag management menu */
171        add_management_page('Manage Jerome\'s Keywords', 'Keywords/Tags', 'manage_categories', 'jeromes-keywords/managetags.php');
172        add_options_page('Jerome\'s Keywords Options', 'Jerome\'s Keywords', 'manage_options', 'jeromes-keywords/options-jkeywords.php');
gradelib.php https://moodleazure.svn.codeplex.com/svn | PHP | 1,441 lines
1<?php // $Id: gradelib.php,v 1.120.2.32 2009/11/13 22:09:03 mudrd8mz Exp $
2
37require_once($CFG->libdir . '/grade/grade_item.php');
38require_once($CFG->libdir . '/grade/grade_grade.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
75
76    if (is_null($courseid) or is_null($itemtype)) {
77        debugging('Missing courseid or itemtype');
647    // no grade yet?
648    if (is_null($value)) {
649        return '-';
1203
1204        if (is_null($grademax) and is_null($scaleid)) {
1205           $grade_item->gradetype  = GRADE_TYPE_NONE;
1234
1235    if (is_null($grademax) and is_null($scaleid)) {
1236        $params['gradetype'] = GRADE_TYPE_NONE;
Slim.php git://github.com/eryx/php-framework-benchmark.git | PHP | 1,174 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
32
33//Ensure PHP session IDs only use the characters [a-z0-9]
34ini_set('session.hash_bits_per_character', 4);
46
47//This determines which errors are reported by PHP. By default, all
48//errors (including E_STRICT) are reported.
50
51//This tells PHP to auto-load classes using Slim's autoloader; this will
52//only auto-load a class file located in the same directory as Slim.php
53//whose file name (excluding the final dot and extension) is the same
54//as its class name (case-sensitive). For example, "View.php" will be
55//loaded when Slim uses the "View" class for the first time.
controller.php git://github.com/unirgy/buckyball.git | PHP | 2,261 lines
1<?php
2/**
60        if (!empty($_SERVER['ORIG_SCRIPT_NAME'])) {
61            $_SERVER['ORIG_SCRIPT_NAME'] = str_replace('/index.php/index.php', '/index.php', $_SERVER['ORIG_SCRIPT_NAME']);
62        }
63        if (!empty($_SERVER['ORIG_SCRIPT_FILENAME'])) {
64            $_SERVER['ORIG_SCRIPT_FILENAME'] = str_replace('/index.php/index.php', '/index.php', $_SERVER['ORIG_SCRIPT_FILENAME']);
65        }
264    *
265    * If request is /folder1/folder2/index.php, return /folder1/folder2/
266    *
294    {
295        if (is_null($forceSecure)) {
296            $scheme = static::https() ? 'https:' : '';
321        $path = explode('/', ltrim($pathInfo, '/'));
322        if (is_null($length)) {
323            return isset($path[$offset]) ? $path[$offset] : null;
index.php git://github.com/thorsten/phpMyFAQ.git | PHP | 742 lines
125// Login via local DB or LDAP or SSO
126if (!is_null($faqusername) && !is_null($faqpassword)) {
127    $user = new CurrentUser($faqConfig);
415    $includeTemplate = $action . '.html';
416    $includePhp = $action . '.php';
417    $renderUri = '?sid=' . $sessionId;
421        $includeTemplate = 'faq.html';
422        $includePhp = 'faq.php';
423    } else {
424        $includeTemplate = 'startpage.html';
425        $includePhp = 'startpage.php';
426    }
531    'switchLanguages' => LanguageHelper::renderSelectLanguage($faqLangCode, true),
532    'copyright' => 'powered with ❤️ and ☕️ by <a href="https://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
533        $faqConfig->get('main.currentVersion'),
QDateTime.class.php git://github.com/qcodo/qcodo.git | PHP | 812 lines
11	 * provides a nice wrapper around the PHP DateTime class, which is included with
12	 * all versions of PHP >= 5.2.0.
13	 * 
13	 * 
14	 * For legacy PHP users (PHP < 5.2.0), please refer to QDateTime.legacy
15	 */
389			// If HOUR or MINUTE is NULL...
390			if (is_null($intHour) || is_null($intMinute)) {
391				parent::setTime($intHour, $intMinute, $intSecond);
399
400			if (is_null($intHour))
401				$this->blnTimeNull = true;
767/*
768	This is a reference to the documentation for hte PHP DateTime classes (as of PHP 5.2)
769
coreylib.php git://github.com/collegeman/coreylib.git | PHP | 3,343 lines
137   * @return clNode if parsing succeeds; otherwise FALSE.
138   * @see http://php.net/manual/en/function.strtotime.php
139   */
269   * @return clDownload
270   * @see http://php.net/manual/en/function.strtotime.php
271   */
883   * @param mixed $timeout An expression of time or a positive integer indicating the number of seconds
884   * @see http://php.net/manual/en/function.strtotime.php
885   * @return a *nix timestamp in the future, or the current time if $timeout is 0, always in GMT.
1772   * and its children, suitable for exploring with print_r
1773   * @see http://php.net/manual/en/function.print-r.php
1774   */
2230      // TODO: in PHP >= 5.1.0, it's possible to silence SimpleXML parsing errors and then iterate over them
2231      // http://us.php.net/manual/en/function.simplexml-load-string.php
2232      return false;
ds_ldap.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 2,402 lines
529	 *
530	 * Users may configure phpLDAPadmin to use TLS in config,php thus:
531	 * <code>
641					error(sprintf(_('It seems that sasl_authz_id_regex "%s" contains invalid PCRE regular expression. The error is "%s".'),
642						$this->getValue('sasl','authz_id_regex'),(isset($php_errormsg) ? $php_errormsg : '')),
643						'error','index.php');
656
657		# @todo this function is different in PHP5.1 and PHP5.2
658		return @ldap_sasl_bind($resource,NULL,'',
667	 *
668	 * Users may configure phpLDAPadmin to use PROXY AUTH in config,php thus:
669	 * <code>
1452
1453		$schema_error_message = 'Please contact the phpLDAPadmin developers and let them know:<ul><li>Which LDAP server you are running, including which version<li>What OS it is running on<li>Which version of PHP<li>As well as a link to some documentation that describes how to obtain the SCHEMA information</ul><br />We\'ll then add support for your LDAP server in an upcoming release.';
1454		$schema_error_message_array = array('objectclasses','attributetypes');
QueueServiceFunctionalTest.php https://hg.codeplex.com/bukuphpjs | PHP | 1,413 lines
18 * @package   Tests\Functional\WindowsAzure\Queue
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
902                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
903            } else if (!is_null($options->getVisibilityTimeoutInSeconds()) && !is_null($options->getTimeToLiveInSeconds()) && $options->getVisibilityTimeoutInSeconds() > 0 && $options->getTimeToLiveInSeconds() <= $options->getVisibilityTimeoutInSeconds()) {
904                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
1167        // Default is 1 message
1168        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1169        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
1171        // Default is 30 seconds
1172        $effectiveVisTimeout = (is_null($options) || is_null($options->getVisibilityTimeoutInSeconds()) ? 30 : $options ->getVisibilityTimeoutInSeconds());
1173        $effectiveVisTimeout = ($effectiveVisTimeout < 0 ? 0 : $effectiveVisTimeout);
1284        // Default is 1 message
1285        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1286        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
Blob.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 2,001 lines
1<?php
2/**
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
45 */
46require_once 'Zend/Http/Response.php';
47
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21