PageRenderTime 14ms queryFilters 1ms Sphinxql 491ms GetByIds 373ms meta 0ms repositoryFilters 3ms languageFilters 0ms sourceFilters 1ms

206,208 results for 'php is_null repo:sebs/mosolar' (14 ms)

Source

Language

Repository

ClassMixer.php git://github.com/wellspringworldwide/PHP-ClassMixer.git | PHP | 977 lines
1<?php
2/*******************************************************************************
60     */
61    public static function php_min_version($min_version_str)
62    {
62    {
63        //Get the minimum version desired, and the PHP version of the system
64        $min_version = explode('.', $min_version_str);
716    private static function available_base_class_methods($klass, $is_parent=false) {
717        $php5_available = CM_Utils::php_min_version('5');
718
754                                              $before_cutpoint=false, $after_cutpoint=false) {
755        $php5_available = CM_Utils::php_min_version('5');
756        if ($php5_available) {
772    private static function form_class_variables($mixins) {
773        $php5_available = CM_Utils::php_min_version('5');
774        if ($php5_available) {
TableServiceFunctionalTest.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 1,971 lines
18 * @package   Tests\Functional\WindowsAzure\Table
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
558            }
559            else if (is_null($ent->getPartitionKey()) || is_null($ent->getRowKey())) {
560                $this->assertEquals(400, $e->getCode(), 'getCode');
1483            foreach($initialEnt->getProperties() as $pname => $actualProp)  {
1484                if (!is_null($actualProp) && !is_null($actualProp->getValue())) {
1485                    $cloneProp = null;
1497            // All other properties will be updated.
1498            if (!is_null($actualProp) && !is_null($actualProp->getValue())) {
1499                $cloneProp = new Property();
1509            // columns, null valued or not.
1510            if (!is_null($actualProp) && !is_null($actualProp->getValue())) {
1511                $cloneProp = new Property();
TableServiceFunctionalTestUtils.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 498 lines
18 * @package   Tests\Functional\WindowsAzure\Table
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
412    private static function nullPropGt($left, $right) {
413        if (is_null($left) || is_null($right)) {
414            return null;
421    private static function nullPropGe($left, $right) {
422        if (is_null($left) || is_null($right)) {
423            return null;
430    private static function nullPropLt($left, $right) {
431        if (is_null($left) || is_null($right)) {
432            return null;
439    private static function nullPropLe($left, $right) {
440        if (is_null($left) || is_null($right)) {
441            return null;
Controller.php git://github.com/ethna/ethna.git | PHP | 1,870 lines
1<?php
2// vim: foldmethod=marker
6 *  @author     Masaki Fujimoto <fujimoto@php.net>
7 *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License
8 *  @package    Ethna
15 *
16 *  @author     Masaki Fujimoto <fujimoto@php.net>
17 *  @access     public
68    public $ext = array(
69        'php'           => 'php',
70        'tpl'           => 'tpl',
259        $this->url = $this->config->get('url');
260        if (empty($this->url) && PHP_SAPI != 'cli') {
261            $this->url = Ethna_Util::getUrlFromRequestUri();
363        //    数字で始まっていてはいけない
364        //    @see http://www.php.net/manual/en/language.variables.php
365        if (preg_match('/^[a-zA-Z][a-zA-Z0-9]*$/', $id) === 0) {
lmbUTF8BaseDriver.class.php git://github.com/limb-php-framework/limb.git | PHP | 718 lines
9
10// This class is based on Harry Fuecks' phputf8 library code(http://sourceforge.net/projects/phputf8)
11// and original ideas taken from http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php
425    function _preg_match($pattern, $subject, &$matches, $flags=null, $offset=null) {
426        if(!is_null($flags) && !is_null($offset)) {
427            return preg_match($pattern . 'u', $subject, $matches, $flags, $offset);
473    function _preg_split($pattern, $subject, $limit=null, $flags=null) {
474        if(!is_null($limit) && !is_null($flags)) {
475            return preg_split($pattern . 'u', $subject, $limit, $flags);
475            return preg_split($pattern . 'u', $subject, $limit, $flags);
476        } elseif (is_null($flags) && !is_null($limit)) {
477            return preg_split($pattern .'u', $subject, $limit);
487    * @author Scott Michael Reynen <scott@randomchaos.com>
488    * @link http://www.randomchaos.com/document.php?source=php_and_unicode
489    * @see toUTF8
Modules.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 3,635 lines
1<?php
2
741
742		// if the filename doesn't end with .module or .module.php, then stop and move onto the next
743		if(!strpos($filename, '.module') || (substr($filename, -7) !== '.module' && substr($filename, -11) !== '.module.php')) return false;
816
817		if(is_null($module)) {
818			// placeholder for a module, which is not yet included and instantiated
1213			if(!is_null($requiredVersion)) {
1214				$currentVersion = $class === 'PHP' ? PHP_VERSION : $this->wire('config')->version; 
1215			}
1900		// we will try to get info from a PHP or JSON info file
1901		$filePHP = $path . "$moduleName.info.php";
1902		$fileJSON = $path . "$moduleName.info.json";
2213			} else if($configurable) {
2214				// configurable via external file: ModuleName.config.php or ModuleNameConfig.php file
2215				$info['configurable'] = basename($configurable); 
Queue.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 547 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 24241 2009-07-22 09:43:13Z unknown $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
32
35 */
36require_once 'Zend/Http/Client.php';
37
40 */
41require_once 'Zend/Http/Response.php';
42
config.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 776 lines
1<?php
2/*
21
22require_once dirname(__FILE__).'/classes/core/Z.php';
23Z::getInstance()->run();
24
25require_once dirname(__FILE__).'/debug.inc.php';
26require_once dirname(__FILE__).'/gettextwrapper.inc.php';
26require_once dirname(__FILE__).'/gettextwrapper.inc.php';
27require_once dirname(__FILE__).'/defines.inc.php';
28require_once dirname(__FILE__).'/func.inc.php';
28require_once dirname(__FILE__).'/func.inc.php';
29require_once dirname(__FILE__).'/html.inc.php';
30
32
33require_once dirname(__FILE__).'/profiles.inc.php';
34require_once dirname(__FILE__).'/../conf/maintenance.inc.php';
blocks.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 1,334 lines
1<?php
2/*
20?>
21<?php
22require_once dirname(__FILE__).'/graphs.inc.php';
22require_once dirname(__FILE__).'/graphs.inc.php';
23require_once dirname(__FILE__).'/screens.inc.php';
24require_once dirname(__FILE__).'/maps.inc.php';
24require_once dirname(__FILE__).'/maps.inc.php';
25require_once dirname(__FILE__).'/users.inc.php';
26
70
71			$link = new CLink(get_node_name_by_elid($sourceid, null, ': ').$host['name'].':'.$item['name'], 'history.php?action=showgraph&itemid='.$sourceid);
72			$link->setTarget('blank');
80
81			$link = new CLink(get_node_name_by_elid($sourceid, null, ': ').$ghost['name'].':'.$graph['name'], 'charts.php?graphid='.$sourceid);
82			$link->setTarget('blank');
CScript.php git://pkgs.fedoraproject.org/zabbix | PHP | 611 lines
1<?php
2/*
20?>
21<?php
22
107		}
108		elseif (!is_null($options['editable'])) {
109			return $result;
122		// groupids
123		if (!is_null($options['groupids'])) {
124			zbx_value2array($options['groupids']);
133		// usrgrpids
134		if (!is_null($options['usrgrpids'])) {
135			zbx_value2array($options['usrgrpids']);
144		// hostids
145		if (!is_null($options['hostids'])) {
146			zbx_value2array($options['hostids']);
html_api.php git://pkgs.fedoraproject.org/mantis | PHP | 1,693 lines
61 */
62require_once( 'current_user_api.php' );
63/**
65 */
66require_once( 'string_api.php' );
67/**
89 */
90require_once( 'rss_api.php' );
91/**
93 */
94require_once( 'php_api.php' );
95
589	#    verification comparison to fail
590	if ( auth_is_user_authenticated() && !current_user_is_anonymous() && !( is_page_name( 'verify.php' ) || is_page_name( 'account_update.php' ) ) ) {
591		$t_user_id = auth_get_current_user_id();
DataTree.php git://pkgs.fedoraproject.org/horde | PHP | 1,636 lines
1<?php
2/**
4 *
5 * $Horde: framework/DataTree/DataTree.php,v 1.151.2.24 2009/01/06 15:23:01 jan Exp $
6 */
7
8/** List every object in an array, similar to PEAR/html/menu.php. */
9define('DATATREE_FORMAT_TREE', 1);
168
169        if (!is_null($newparent)) {
170            $pid = $this->getId($newparent);
246    {
247        if (!is_array($order) && !is_null($order)) {
248            // Single update (add/del).
248            // Single update (add/del).
249            if (is_null($cid)) {
250                // No id given so shuffle down.
Auth.php git://pkgs.fedoraproject.org/horde | PHP | 1,376 lines
1<?php
2/**
68 *
69 * $Horde: framework/Auth/Auth.php,v 1.142.10.37 2009/10/26 11:58:58 jan Exp $
70 *
73 * See the enclosed file COPYING for license information (LGPL). If you
74 * did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
75 *
623            !empty($_SESSION['__auth']['authenticated'])) {
624            require_once 'Horde/Secret.php';
625            $credentials = Secret::read(Secret::getKey('auth'), $_SESSION['__auth']['credentials']);
648            !empty($_SESSION['__auth']['authenticated'])) {
649            require_once 'Horde/Secret.php';
650            $credentials = @unserialize(Secret::read(Secret::getKey('auth'), $_SESSION['__auth']['credentials']));
695
696        require_once 'Horde/Secret.php';
697        $credentials = Secret::write(Secret::getKey('auth'), serialize($credentials));
Registry.php git://pkgs.fedoraproject.org/horde | PHP | 1,164 lines
1<?php
2/**
2/**
3 * $Horde: framework/Horde/Horde/Registry.php,v 1.243.2.43 2011/01/25 21:55:42 slusarz Exp $
4 *
181
182        $reg_mtime = filemtime(HORDE_BASE . '/config/registry.php');
183
196        if (!empty($GLOBALS['conf']['vhosts'])) {
197            $registry_vhost = HORDE_BASE . '/config/registry-' . $GLOBALS['conf']['server']['name'] . '.php';
198            if (file_exists($registry_vhost)) {
211            /* Read the registry configuration files. */
212            require HORDE_BASE . '/config/registry.php';
213            if ($registry_d) {
213            if ($registry_d) {
214                $files = glob(HORDE_BASE . '/config/registry.d/*.php');
215                if ($files) {
Part.php git://pkgs.fedoraproject.org/horde | PHP | 1,463 lines
1<?php
2
2
3require_once 'Horde/String.php';
4require_once dirname(__FILE__) . '/../MIME.php';
42 *
43 * $Horde: framework/MIME/MIME/Part.php,v 1.177.4.30 2010/07/07 23:27:51 slusarz Exp $
44 *
161     * when sending a message.
162     * It is not crucial here since the PHP/PEAR mailing functions will handle
163     * the EOL details.
223
224        if (!is_null($mimetype)) {
225            $this->setType($mimetype);
226        }
227        if (!is_null($contents)) {
228            $this->setContents($contents, $encoding);
oci_native_moodle_database.php git://pkgs.fedoraproject.org/moodle | PHP | 1,690 lines
1<?php
2
30require_once($CFG->libdir.'/dml/moodle_database.php');
31require_once($CFG->libdir.'/dml/oci_native_moodle_recordset.php');
32require_once($CFG->libdir.'/dml/oci_native_moodle_temptables.php');
37 * One complete reference for PHP + OCI:
38 * http://www.oracle.com/technology/tech/php/underground-php-oracle-manual.html
39 */
53    /**
54     * Detects if all needed PHP stuff installed.
55     * Note: can be used before connect()
59        if (!extension_loaded('oci8')) {
60            return get_string('ociextensionisnotpresentinphp', 'install');
61        }
162        // Switching to OFF (OCI_DEFAULT), when playing with transactions
163        // please note this thing is not defined if oracle driver not present in PHP
164        // which means it can not be used as default value of object property!
lib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,771 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
20 * This contains functions that are called also from outside the quiz module
21 * Functions that are only called by the quiz module itself are in {@link locallib.php}
22 *
31
32require_once($CFG->libdir . '/eventslib.php');
33require_once($CFG->dirroot . '/calendar/lib.php');
62 * Given an object containing all the necessary data,
63 * (defined by the form in mod_form.php) this function
64 * will create a new instance and return the id number
93 * Given an object containing all the necessary data,
94 * (defined by the form in mod_form.php) this function
95 * will update an existing instance with new data.
112    if (!$quiz->shufflequestions && !empty($quiz->repaginatenow)) {
113        require_once($CFG->dirroot . '/mod/quiz/locallib.php');
114        $quiz->questions = quiz_repaginate(quiz_clean_layout($oldquiz->questions, true),
dataexport.php git://pkgs.fedoraproject.org/phpPgAdmin | PHP | 346 lines
1<?php
2
6	 *
7	 * $Id: dataexport.php,v 1.26 2007/07/12 19:26:22 xzilla Exp $
8	 */
29		$_no_output = true;
30		include_once('./libraries/lib.inc.php');
31		
37						&& ($_REQUEST['d_format'] == 'copy' || $_REQUEST['d_format'] == 'sql')) {
38					include('./dbexport.php');
39					exit;
49				if ($misc->isDumpEnabled()) {
50					include('./dbexport.php');
51					exit;
58				if ($misc->isDumpEnabled()) {
59					include('./dbexport.php');
60					exit;
htmlMimeMail.php https://git01.codeplex.com/kwamoja | PHP | 776 lines
1<?php
2/* $Id$*/
10
11require_once('includes/mimePart.php');
12
193	{
194		if (!is_null($host)) $this->smtp_params['host'] = $host;
195		if (!is_null($port)) $this->smtp_params['port'] = $port;
195		if (!is_null($port)) $this->smtp_params['port'] = $port;
196		if (!is_null($helo)) $this->smtp_params['helo'] = $helo;
197		if (!is_null($auth)) $this->smtp_params['auth'] = $auth;
197		if (!is_null($auth)) $this->smtp_params['auth'] = $auth;
198		if (!is_null($user)) $this->smtp_params['user'] = $user;
199		if (!is_null($pass)) $this->smtp_params['pass'] = $pass;
395*/
396	function _addTextPart(&$obj, $text) // // FIXED PHP & PEAR LIBRARY ERROR - ONLY VARIABLE REFERENCES SHOULD BE RETURNED BY REFERENCE
397	{
TableServiceFunctionalTest.php https://hg.codeplex.com/bukuphpjs | PHP | 1,976 lines
18 * @package   Tests\Functional\WindowsAzure\Table
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
536                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
537            } else if (is_null($ent->getPartitionKey()) || is_null($ent->getRowKey())) {
538                $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
1504            // All other properties will be updated.
1505            if (!is_null($actualProp) && !is_null($actualProp->getValue())) {
1506                $cloneProp = new Property();
1516            // columns, null valued or not.
1517            if (!is_null($actualProp) && !is_null($actualProp->getValue())) {
1518                $cloneProp = new Property();
1920    {
1921        if (is_null($concurType) || is_null($opType)) {
1922            return -1;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21