PageRenderTime 2263ms queryFilters 0ms Sphinxql 323ms GetByIds 1855ms meta 0ms repositoryFilters 5ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

Table.php git://github.com/centurion-project/Centurion.git | PHP | 816 lines
1<?php
2/**
30 */
31//$1 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
32
35 */
36//$1 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
37
40 */
41//$1 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
42
525		// Add continuation querystring parameters?
526		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
527		    if ($queryString !== '') {
604			// More entities?
605		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
606		        if (strpos($queryString, '$top') === false) {
ajaxservice.php git://github.com/thorsten/phpMyFAQ.git | PHP | 935 lines
177
178        if (!is_null($username) && !is_null($mailer) && !is_null($comment) && $stopWords->checkBannedWord(
179                $comment
337
338        if (!is_null($author) && !is_null($email) && !is_null($question) && $stopWords->checkBannedWord(strip_tags($question)) &&
339            !is_null($answer) && $stopWords->checkBannedWord(strip_tags($answer)) &&
339            !is_null($answer) && $stopWords->checkBannedWord(strip_tags($answer)) &&
340            ((is_null($faqId) && !is_null($categories['rubrik'])) || (!is_null($faqId) && !is_null($faqLanguage) &&
341                    Language::isASupportedLanguage($faqLanguage)))) {
733
734        if (!is_null($author) && !is_null($email) && !is_null($question) &&
735            !empty($question) && $stopWords->checkBannedWord(Strings::htmlspecialchars($question))) {
905
906        if (!is_null($author) && !is_null($email) && !is_null($question) &&
907            !empty($question) && $stopWords->checkBannedWord(Strings::htmlspecialchars($question))) {
functions.php git://github.com/Cotonti/Cotonti.git | PHP | 5,759 lines
14{
15	(function_exists('version_compare') && version_compare(PHP_VERSION, '5.3.3', '>=')) or die('Cotonti system requirements: PHP 5.3.3 or above.'); // TODO: Need translate
16	extension_loaded('mbstring') or die('Cotonti system requirements: mbstring PHP extension must be loaded.'); // TODO: Need translate
779
780	if (count($date) > 0 && is_null($year) && is_null($month) && is_null($day) && is_null($hour) && is_null($minute))
781	{
5150 * Unregisters globals if globals are On
5151 * @see http://www.php.net/manual/en/faq.misc.php#faq.misc.registerglobals
5152 */
5378
5379	$url = in_array($name, array('admin', 'login', 'message')) ? "$name.php" : 'index.php';
5380	if (!in_array($name, array('admin', 'index', 'login', 'message', 'plug')))
5477 * @param array $url Array of URL parts
5478 * @see http://php.net/manual/en/function.parse-str.php
5479 */
BlobServiceFunctionalTest.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 2,327 lines
1<?php
2
14 * 
15 * PHP version 5
16 *
18 * @package   Tests\Functional\WindowsAzure\Blob
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
23 */
122    {
123        $effOptions = (is_null($options) ? new BlobServiceOptions() : $options);
124        try {
124        try {
125            $ret = (is_null($options) ? $this->restProxy->getServiceProperties() : $this->restProxy->getServiceProperties($effOptions));
126
BlobRestProxy.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 2,338 lines
1<?php
2
18 * @package   WindowsAzure\Blob
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
23 */
81 * @package   WindowsAzure\Blob
82 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
83 * @copyright 2012 Microsoft Corporation
85 * @version   Release: @package_version@
86 * @link      https://github.com/windowsazure/azure-sdk-for-php
87 */
338    {
339        if (!is_null($start) || !is_null($end)) {
340            $range = $start . '-' . $end;
PHPReportsUtil.php git://github.com/taq/phpreports.git | PHP | 397 lines
10	*																										*
11	*	This function will return if there is a PHPReports path in the PHP			*
12	*	ini_get("include_path").																	*
171	*	http://www.gingerall.com/charlie/ga/xml/p_sab.xml									*
172	*	http://www.php.net/manual/en/ref.xslt.php												*
173	*	Used on PHP4 or installed from the PECL modules.									*
314			$this->_aMsgs["NOXMLTRANS"]["default"]		= "COL parameter <b>%s</b> not found on XML translation.";
315			$this->_aMsgs["NOXSLT"]["default"]			= "There is no XSLT processor available. Check if you compiled PHP with <b>--enable-xslt</b> and the <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> library (for <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) or with <b>--enable-xsl</b> (for <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
316			$this->_aMsgs["NOPATH"]["default"]			= "Seems that you didn't specified the phpReports path on the PHP <b>include_path</b> statement or <b>php.ini</b>. I don't know there the classes are.";
346			$this->_aMsgs["NOXMLTRANS"]["pt_BR"]		= "O parâmetro <b>%s</b> de COL não foi encontrado na tradução para XML.";
347			$this->_aMsgs["NOXSLT"]["pt_BR"]				= "Não há um processador XSLT disponível. Verifique se você compilou o PHP com <b>--enable-xslt</b> e a library <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> (para o <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) ou com <b>--enable-xsl</b> (para o <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
348			$this->_aMsgs["NOPATH"]["pt_BR"]				= "Parece que você não especificou o path do phpReports com o comando <b>include_path</b> ou no <b>php.ini</b>. Não sei onde as classes estão.";
364			else
365				$sLang = isset($GLOBALS["phpReportsLanguage"]) ? $GLOBALS["phpReportsLanguage"] : null;
366			if(!$sLang)
qdmail.php git://github.com/slywalker/account_manager.git | PHP | 4,121 lines
5 *
6 * PHP versions 4 and 5 (PHP4.3 upper)
7 *
1370	function addressField( $addr = null , $name = null ){
1371		if( is_null($addr) && is_null($name) ){
1372			return array( $this->tokey['_ADDR'] , $this->tokey['_NAME'] );
3471		'php4'=>'application/x-httpd-php',
3472		'php3'=>'application/x-httpd-php',
3473		'phtml'=>'application/x-httpd-php',
3473		'phtml'=>'application/x-httpd-php',
3474		'phps'=>'application/x-httpd-php-source',
3475		'js'=>'application/x-javascript',
3483	function iniGather(){
3484		$ret  = 'OS '.PHP_OS.' ; PHP Version '.PHP_VERSION.' ; '.$this->name.' version '.$this->version;
3485		$ret .= $this->LFC.'php.ini status: mb_language = '.mb_language()
Sanitizer.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 1,595 lines
1<?php
2
662				$value = str_replace(' ', '', $value);
663				/** @noinspection PhpUnusedLocalVariableInspection */
664				list($tel, $num) = explode(':', $value);
852			// value needs more filtering, replace all non-alphanumeric, non-single-quote and space chars
853			// See: http://php.net/manual/en/regexp.reference.unicode.php
854			// See: http://www.regular-expressions.info/unicode.html
882	 * The arguments used hre are identical to those for PHP's htmlentities function: 
883	 * http://www.php.net/manual/en/function.htmlentities.php
884	 *
1003	 * The arguments used hre are identical to those for PHP's heml_entity_decode function: 
1004	 * http://www.php.net/manual/en/function.html-entity-decode.php
1005	 *
1247			'precision' => null, // Optional number of digits to round to 
1248			'mode' => PHP_ROUND_HALF_UP, // Mode to use for rounding precision (default=PHP_ROUND_HALF_UP)
1249			'blankValue' => 0.0, // Value to return (whether float or non-float) if provided $value is an empty non-float (default=0.0)
Wikimate.php git://github.com/hamstar/Wikimate.git | PHP | 1,937 lines
1<?php
2/// =============================================================================
218	 * @param   array  $array  Array of details to be passed in the query
219	 * @return  array          Unserialized php output from the wiki API
220	 */
223		$array['action'] = 'query';
224		$array['format'] = 'php';
225
234	 * @param   array  $array  Array of details to be passed in the query
235	 * @return  array          Unserialized php output from the wiki API
236	 */
239		$array['action'] = 'parse';
240		$array['format'] = 'php';
241
250	 * @param   array  $array  Array of details to be passed in the query
251	 * @return  array          Unserialized php output from the wiki API
252	 */
micro.class.php git://github.com/newscloud/open-social-media-toolkit.git | PHP | 1,015 lines
1<?php
2/*
5
6require_once (PATH_CORE . '/classes/dbRowObject.class.php');
7class microAccountRow extends dbRowObject
43	{
44		if (is_null($db)) 
45		{ 
45		{ 
46			require_once('db.class.php');
47			$this->db=new cloudDatabase();
104	{
105		if (is_null($db)) 
106		{ 
106		{ 
107			require_once('db.class.php');
108			$this->db=new cloudDatabase();
Table.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 816 lines
1<?php
2/**
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
42
525		// Add continuation querystring parameters?
526		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
527		    if ($queryString !== '') {
604			// More entities?
605		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
606		        if (strpos($queryString, '$top') === false) {
Consumer.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 272 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Consumer.php 20232 2010-01-12 17:56:33Z matthew $
20 */
22/** Zend_Oauth */
23require_once 'Zend/Oauth.php';
24
25/** Zend_Uri */
26require_once 'Zend/Uri.php';
27
28/** Zend_Oauth_Http_RequestToken */
29require_once 'Zend/Oauth/Http/RequestToken.php';
30
31/** Zend_Oauth_Http_UserAuthorization */
32require_once 'Zend/Oauth/Http/UserAuthorization.php';
33
fsource_PHPExcel__PHPExcelNamedRange.php.html git://github.com/shimondoodkin/node_spreadsheet.git | HTML | 320 lines
60<h1 align="center">Source for file NamedRange.php</h1>
61<p>Documentation is available at <a href="../PHPExcel/_PHPExcel---NamedRange.php.html">NamedRange.php</a></p>
62<div class="src-code">
143<li><div class="src-line"><a name="a81"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
144<li><div class="src-line"><a name="a82"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel/PHPExcel_NamedRange.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-var">$pName&nbsp;</span>=&nbsp;<span class="src-id">null</span><span class="src-sym">,&nbsp;</span><span class="src-id">PHPExcel_Worksheet&nbsp;</span><span class="src-var">$pWorksheet</span><span class="src-sym">,&nbsp;</span><span class="src-var">$pRange&nbsp;</span>=&nbsp;<span class="src-str">'A1'</span><span class="src-sym">,&nbsp;</span><span class="src-var">$pLocalOnly&nbsp;</span>=&nbsp;<span class="src-id">false</span><span class="src-sym">,&nbsp;</span><span class="src-var">$pScope&nbsp;</span>=&nbsp;<span class="src-id">null</span><span class="src-sym">)</span></div></li>
145<li><div class="src-line"><a name="a83"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
146<li><div class="src-line"><a name="a84"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Validate&nbsp;data</span></div></li>
147<li><div class="src-line"><a name="a85"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$pName</span><span class="src-sym">)&nbsp;</span>||&nbsp;<a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$pWorksheet</span><span class="src-sym">)</span>||&nbsp;<a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$pRange</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
148<li><div class="src-line"><a name="a86"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id">Exception</span><span class="src-sym">(</span><span class="src-str">'Parameters&nbsp;can&nbsp;not&nbsp;be&nbsp;null.'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
175<li><div class="src-line"><a name="a113"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel/PHPExcel_NamedRange.html#methodsetName">setName</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-id">null</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
176<li><div class="src-line"><a name="a114"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(</span><span class="src-sym">!</span><a href="http://www.php.net/is_null">is_null</a><span class="src-sym">(</span><span class="src-var">$value</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
177<li><div class="src-line"><a name="a115"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;Old&nbsp;title</span></div></li>
191<li><div class="src-line"><a name="a129"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$newTitle&nbsp;</span>=&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_name</span><span class="src-sym">;</span></div></li>
192<li><div class="src-line"><a name="a130"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-id"><a href="../PHPExcel/PHPExcel_ReferenceHelper.html">PHPExcel_ReferenceHelper</a></span><span class="src-sym">::</span><a href="../PHPExcel/PHPExcel_ReferenceHelper.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">updateNamedFormulas</span><span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-var">_worksheet</span><span class="src-sym">-&gt;</span><span class="src-id">getParent</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">,&nbsp;</span><span class="src-var">$oldTitle</span><span class="src-sym">,&nbsp;</span><span class="src-var">$newTitle</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
193<li><div class="src-line"><a name="a131"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
adodb-session.php git://github.com/BigBlueHat/dotproject.git | PHP | 917 lines
1<?php
2
28if (!defined('_ADODB_LAYER')) {
29	require_once realpath(dirname(__FILE__) . '/../adodb.inc.php');
30}
37/* 
38	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821 
39	
56/*
57	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
58	Since adodb 4.61.
89    Generate database table for session data
90    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
91    @return 0 if failure, 1 if errors, 2 if successful.
120	
121		if (!is_null($lock)) $_lock = $lock;
122		return $lock;
plugin_api.php git://pkgs.fedoraproject.org/mantis | PHP | 894 lines
32 */
33require_once( $t_class_path . 'MantisPlugin.class.php' );
34
75function plugin_page( $p_page, $p_redirect = false, $p_basename = null ) {
76	if( is_null( $p_basename ) ) {
77		$t_current = plugin_get_current();
81	if( $p_redirect ) {
82		return 'plugin.php?page=' . $t_current . '/' . $p_page;
83	} else {
253function plugin_history_log( $p_bug_id, $p_field_name, $p_old_value, $p_new_value = '', $p_user_id = null, $p_basename = null ) {
254	if( is_null( $p_basename ) ) {
255		$t_basename = plugin_get_current();
757			# Final check on the class
758			if( is_null( $t_plugin->name ) || is_null( $t_plugin->version ) ) {
759				return null;
Contents.php git://pkgs.fedoraproject.org/horde | PHP | 1,309 lines
1<?php
2
3require_once dirname(__FILE__) . '/Message.php';
4require_once dirname(__FILE__) . '/Structure.php';
5
31 *
32 * $Horde: framework/MIME/MIME/Contents.php,v 1.129.4.48 2010/10/26 23:21:49 slusarz Exp $
33 *
170     *                                 a reference to the base object.
171     * (This last parameter needs to be handled via an array because PHP <
172     *  5.0 doesn't handle optional pointer parameters otherwise.)
474        if (!isset($this->_viewerCache[$key])) {
475            require_once dirname(__FILE__) . '/Viewer.php';
476            $this->_viewerCache[$key] = MIME_Viewer::factory($mime_part, $mime_type);
894    {
895        return ((strpos($_SERVER['PHP_SELF'], 'view.php') !== false) &&
896                (!$popup || Util::getFormData('popup_view')));
Tree.php git://pkgs.fedoraproject.org/horde | PHP | 2,011 lines
1<?php
2/* Constants for mailboxElt attributes.
12 *   LATT_HASNOCHILDREN (long) 0x40 = 64
13 * ...but these constant names do not appear in PHP until PHP 4.3.5 and 5.0.
14 *
62 *
63 * $Horde: framework/IMAP/IMAP/Tree.php,v 1.48.2.47 2009/01/06 15:23:11 jan Exp $
64 *
268        if (!empty($_SESSION[$app][$cachename])) {
269            require_once 'Horde/SessionObjects.php';
270            $cacheSess = &Horde_SessionObjects::singleton();
312
313            require_once 'Horde/SessionObjects.php';
314            $cacheSess = &Horde_SessionObjects::singleton();
577    {
578        if (is_null($this->_currkey) && is_null($this->_currparent)) {
579            return false;
filelib.php git://pkgs.fedoraproject.org/moodle | PHP | 3,935 lines
127
128    if (is_null($itemid) or is_null($context)) {
129        $contextid = null;
215
216    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
217        $data->{$field} = $editor['text'];
242    }
243    if (is_null($itemid) or is_null($context)) {
244        $itemid = null;
374            // this happens when developers forget to post process the text
375            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
376        }
393 * @param string $text The content that may contain ULRs in need of rewriting.
394 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
395 * @param integer $contextid This parameter and the next two identify the file area to use.
advmultiselect.php git://pkgs.fedoraproject.org/php-pear-HTML-QuickForm-advmultiselect | PHP | 1,178 lines
1<?php
2/**
31 *
32 * PHP versions 4 and 5
33 *
37 * @copyright 2005-2009 Laurent Laville
38 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
39 * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
39 * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
40 * @link      http://pear.php.net/package/HTML_QuickForm_advmultiselect
41 * @since     File available since Release 0.4.0
43
44require_once 'HTML/QuickForm/select.php';
45
64 * @copyright 2005-2009 Laurent Laville
65 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
66 * @version   Release: @package_version@
BlobServiceFunctionalTest.php https://hg.codeplex.com/bukuphpjs | PHP | 2,394 lines
1<?php
2
18 * @package   Tests\Functional\WindowsAzure\Blob
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
114        try {
115            $ret = (is_null($options) ? $this->restProxy->getServiceProperties() : $this->restProxy->getServiceProperties($effOptions));
116
1622
1623        if (is_null($properties) || !is_null($properties->getBlobContentLength()) || !is_null($properties->getSequenceNumber())) {
1624            $this->assertNull($res->getProperties()->getCacheControl(), 'blob getProperties->getCacheControl');
1636
1637        if (is_null($properties) || is_null($properties->getBlobContentLength())) {
1638            $this->assertEquals(512, $res->getProperties()->getContentLength(), 'blob getProperties->getContentLength');
1642
1643        if (is_null($properties) || is_null($properties->getSequenceNumber())) {
1644            $this->assertEquals(0, $res->getProperties()->getSequenceNumber(), 'blob getProperties->getSequenceNumber');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21