PageRenderTime 3343ms queryFilters 1ms Sphinxql 919ms GetByIds 2369ms meta 0ms repositoryFilters 4ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

AppObject.php git://github.com/ethna/ethna.git | PHP | 1,658 lines
1<?php
2// vim: foldmethod=marker
99            return $db_list;
100        } else if (is_null($db_list['rw'])) {
101            return Ethna::raiseError(
145        // ?????????
146        if (is_null($key_type) && is_null($key) && is_null($prop)) {
147            // perhaps for adding object
629       //   ????????????
630       if (is_null($offset) == false || is_null($count) == false) {
631            $sql = $this->_getSQL_SearchLength($filter);
685        //   ????????????
686        if (is_null($offset) == false || is_null($count) == false) {
687            $sql = $this->_getSQL_SearchLength($filter);
1557
1558        // PHP 4?????????...??PHP 5??
1559        $table = preg_replace('/^([A-Z])/e', "strtolower('\$1')", $table);
Blob.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 1,401 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 36457 2010-01-04 07:36:33Z unknown $
21 */
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
class.contextio.php git://github.com/contextio/PHP-ContextIO.git | PHP | 1,550 lines
1<?php
2/*
29
30require_once dirname(__FILE__) . '/class.contextioresponse.php';
31require_once dirname(__FILE__) . '/OAuth.php';
200	public function listContacts($account, $params=null) {
201		if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
202			throw new InvalidArgumentException('account must be string representing accountId');
213	public function getContact($account, $params=array()) {
214		if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
215			throw new InvalidArgumentException('account must be string representing accountId');
233	public function listContactFiles($account, $params) {
234		if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
235			throw new InvalidArgumentException('account must be string representing accountId');
248	public function listContactMessages($account, $params) {
249		if (is_null($account) || ! is_string($account) || (! strpos($account, '@') === false)) {
250			throw new InvalidArgumentException('account must be string representing accountId');
Driver.php git://pkgs.fedoraproject.org/php-pear-Date-Holidays | PHP | 1,418 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
9 *
10 * This source file is subject to version 2.0 of the PHP license,
11 * that is bundled with this package in the file LICENSE, and is
12 * available at through the world-wide-web at
13 * http://www.php.net/license/2_02.txt.
14 * If you did not receive a copy of the PHP license and are unable to
24 * @author   Carsten Lucke <luckec@tool-garage.de>
25 * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
26 * @version  CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
36 * @author   Carsten Lucke <luckec@tool-garage.de>
37 * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
38 * @version  CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
120 * @author     Carsten Lucke <luckec@tool-garage.de>
121 * @license    http://www.php.net/license/3_01.txt PHP License 3.0.1
122 * @version    CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
Horde.php git://pkgs.fedoraproject.org/horde | PHP | 2,034 lines
1<?php
2/**
13/** Log */
14include_once 'Log.php';
15
16/** Util */
17include_once 'Horde/Util.php';
18
124            !isset($conf['log']['params'])) {
125            Horde::fatal(PEAR::raiseError('Horde is not correctly configured to log error messages. You must configure at least a text file log in horde/config/conf.php.'), __FILE__, __LINE__, false);
126        }
132        if (!is_a($logger, 'Log')) {
133            Horde::fatal(PEAR::raiseError('An error has occurred. Furthermore, Horde encountered an error attempting to log this error. Please check your Horde logging configuration in horde/config/conf.php.'), __FILE__, __LINE__, false);
134        }
1321     * Returns the Web server being used.
1322     * PHP string list built from the PHP 'configure' script.
1323     *
Form.php git://pkgs.fedoraproject.org/horde | PHP | 4,909 lines
148    {
149        require_once 'Horde/Form/Renderer.php';
150        $renderer = new Horde_Form_Renderer($params);
254
255        if (is_null($before)) {
256            $this->_variables[$this->_currentSection][] = &$var;
405    {
406        if (is_null($enctype) && !is_null($this->_enctype)) {
407            $enctype = $this->_enctype;
466
467        if (is_null($enctype) && !is_null($this->_enctype)) {
468            $enctype = $this->_enctype;
4253            'params' => array(
4254                'dsn' => array('label' => _("DSN (see http://pear.php.net/manual/en/package.database.db.intro-dsn.php)"),
4255                               'type'  => 'text'),
compose.php git://pkgs.fedoraproject.org/imp | PHP | 1,259 lines
1<?php
2/**
2/**
3 * $Horde: imp/compose.php,v 2.800.2.130 2009/12/16 21:56:13 jan Exp $
4 *
16    if (empty($url)) {
17        $url = Horde::applicationUrl('mailbox.php');
18    }
30{
31    require_once 'Horde/Menu.php';
32    $menu = new Menu(HORDE_MENU_MASK_NONE);
32    $menu = new Menu(HORDE_MENU_MASK_NONE);
33    $menu->add(Horde::applicationUrl('compose.php'), _("New Message"), 'compose.png');
34    $menu->add('', _("Close this window"), 'close.png', $GLOBALS['registry']->getImageDir('horde'), '', 'window.close();');
48    }
49    require_once IMP_BASE . '/lib/MIME/Contents.php';
50    $imp_contents = &IMP_Contents::singleton($index . IMP_IDX_SEP . $mailbox);
Tree.php git://pkgs.fedoraproject.org/imp | PHP | 2,115 lines
1<?php
2
10 *
11 * $Horde: imp/lib/IMAP/Tree.php,v 1.25.2.73 2010/09/29 18:35:42 slusarz Exp $
12 *
304    {
305        if ($showunsub && !is_null($this->_fulllist)) {
306            return $this->_fulllist;
306            return $this->_fulllist;
307        } elseif (!$showunsub && !is_null($this->_subscribed)) {
308            return array_keys($this->_subscribed);
410        $ns_info = $this->_getNamespace($elt['v']);
411        $tmp = explode(is_null($ns_info) ? $this->_delimiter : $ns_info['delimiter'], $elt['v']);
412        $elt['c'] = count($tmp) - 1;
607    {
608        if (is_null($this->_currkey) && is_null($this->_currparent)) {
609            return false;
pagelib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,925 lines
1<?php
2
197     * Sets the page to refresh after a given delay (in seconds) using meta refresh
198     * in {@link standard_head_html()} in outputlib.php
199     * If set to null(default) the page is not refreshed
263        global $SITE;
264        if (is_null($this->_course)) {
265            return $SITE;
288    protected function magic_get_activityrecord() {
289        if (is_null($this->_module) && !is_null($this->_cm)) {
290            $this->load_activity_record();
300    protected function magic_get_activityname() {
301        if (is_null($this->_cm)) {
302            return null;
337    protected function magic_get_context() {
338        if (is_null($this->_context)) {
339            if (CLI_SCRIPT or NO_MOODLE_COOKIES) {
schema.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 641 lines
1<?php
2/**
12 *
13 * @package phpLDAPadmin
14 * @subpackage Page
19
20require './common.php';
21
25
26if (! is_null($entry['value'])) {
27	$entry['viewed'] = false;
33	_('This could happen for several reasons, the most probable of which are:'),_('The server does not fully support the LDAP protocol.'),
34	_('Your version of PHP does not correctly perform the query.'),_('phpLDAPadmin doesn\'t know how to fetch the schema for your server.'),
35	_('Or lastly, your LDAP server doesnt provide this information.'));
59		if (isAjaxEnabled())
60			printf('<a href="cmd.php?%s" onclick="return ajDISPLAY(\'BODY\',\'%s\',\'Loading %s\');" title="Loading %s">%s</a>',
61				htmlspecialchars($entry['href'][$item]),htmlspecialchars($entry['href'][$item]),$value,$value,$value);
Template.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 1,572 lines
1<?php
2/**
17 *
18 * @author The phpLDAPadmin development team
19 * @package phpLDAPadmin
24 *
25 * @package phpLDAPadmin
26 * @subpackage Templates
62		# If this is the default template, we might disable leafs by default.
63		if (is_null($filename))
64			$this->noleaf = $_SESSION[APPCONFIG]->getValue('appearance','disable_default_leaf');
140								if ($sattr = $server->getSchemaAttribute($index))
141									if (is_null($this->getAttribute($sattr->getName())))
142										$this->addAttribute($sattr->getName(),$details,'XML');
210		foreach ($this->rdn as $key) {
211			if ((is_null($attribute = $this->getAttribute($key))) && (in_array_ignore_case('extensibleobject',$this->getObjectClasses()))) {
212				$attribute = $this->addAttribute($key,array('values'=>array()));
Table.php git://pkgs.fedoraproject.org/php-pear-HTML-Table | PHP | 1,047 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * - Handles col and rowspans.
14 * - PHP code is shorter, easier to read and to maintain.
15 * - Tables options can be reused.
17 * For auto filling of data and such then check out
18 * http://pear.php.net/package/HTML_Table_Matrix
19 *
19 *
20 * PHP versions 4 and 5
21 *
25 *                          Bertrand Mansion <bmansion@mamasam.com>,
26 *                          Mark Wiesemann <wiesemann@php.net>
27 * All rights reserved.
57 * @author     Bertrand Mansion <bmansion@mamasam.com>
58 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
59 * @version    CVS: $Id: Table.php 297540 2010-04-05 19:58:39Z wiesemann $
TableRestProxy.php https://hg.codeplex.com/bukuphpjs | PHP | 1,304 lines
1<?php
2
14 * 
15 * PHP version 5
16 *
18 * @package   WindowsAzure\Table
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 */
61 * @package   WindowsAzure\Table
62 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
63 * @copyright 2012 Microsoft Corporation
65 * @version   Release: @package_version@
66 * @link      https://github.com/windowsazure/azure-sdk-for-php
67 */
ca_object_representations.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 1,170 lines
1<?php
2/** ---------------------------------------------------------------------
35   */
36require_once(__CA_LIB_DIR__."/ca/IBundleProvider.php");
37require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
37require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
38require_once(__CA_MODELS_DIR__."/ca_object_representation_labels.php");
39require_once(__CA_MODELS_DIR__."/ca_representation_annotations.php");
39require_once(__CA_MODELS_DIR__."/ca_representation_annotations.php");
40require_once(__CA_MODELS_DIR__."/ca_representation_annotation_labels.php");
41require_once(__CA_MODELS_DIR__."/ca_object_representation_multifiles.php");
50				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
51				'IS_NULL' => false, 
52				'DEFAULT' => '',
904 		$vs_limit_sql = '';
905 		if (!is_null($pn_start) && !is_null($pn_num_files)) {
906 			if (($pn_start >= 0) && ($pn_num_files >= 1)) {
import_resources_zip.php https://bitbucket.org/bontiv/insomnia | PHP | 619 lines
43
44    require("classes/phpzip/phpzip.inc.php");
45    $zipfile=$_FILES['the_file']['tmp_name'];
226
227    require("classes/phpzip/phpzip.inc.php");
228    //$the_full_file_path = $tempdir . "/" . $_FILES['the_file']['name'];
330        }
331        elseif (is_null($aErrorFilesInfo) && is_null($aImportedFilesInfo))
332        {
339        }
340        elseif (!is_null($aErrorFilesInfo) && !is_null($aImportedFilesInfo))
341        {
408
409    require("classes/phpzip/phpzip.inc.php");
410    //$the_full_file_path = $tempdir . "/" . $_FILES['the_file']['name'];
Slim.php https://bitbucket.org/spo6/chronoview | PHP | 1,169 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.
ItemType.php https://github.com/touv/ait.git | PHP | 894 lines
1<?php
2// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 encoding=utf-8 fdm=marker :
29 * @copyright 2009 Nicolas Thouvenin
30 * @license   http://opensource.org/licenses/lgpl-license.php LGPL
31 * @version   SVN: $Id$
37 */
38require_once 'AIT.php';
39require_once 'AIT/Item.php';
39require_once 'AIT/Item.php';
40require_once 'AIT/TagType.php';
41
49 * @copyright 2009 Nicolas Thouvenin
50 * @license   http://opensource.org/licenses/lgpl-license.php LGPL
51 * @link      http://ait.touv.fr/
68
69        if (!is_string($l) and !is_null($l) and $id !== false)
70            trigger_error('Argument 1 passed to '.__METHOD__.' must be a string, '.gettype($l).' given', E_USER_ERROR);
RatingsDb.php https://github.com/neymanna/fusionforge.git | PHP | 778 lines
1<?php // -*-php-*-
2rcs_id('$Id: RatingsDb.php,v 1.13 2005/10/10 19:51:41 rurban Exp $');
30    //define('RATING_STORAGE','WIKIPAGE');   // not fully supported yet
31// leave undefined for internal, slow php engine.
32//if (!defined('RATING_EXTERNAL'))
32//if (!defined('RATING_EXTERNAL'))
33//    define('RATING_EXTERNAL',PHPWIKI_DIR . 'suggest.exe');
34
277    // TODO:
278    // Use wikilens/RatingsUser.php for the php methods.
279    //
289        if (is_null($userid))    $userid   = $this->userid; 
290        if (is_null($pagename))  $pagename = $this->pagename;
291
318     *       Only the SUGGEST_EstimateAlpha part
319     * Take wikilens/RatingsUser.php for the php methods.
320     */
functions.inc.php https://github.com/tylerhall/Shine.git | PHP | 809 lines
340    {
341        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
342        header("Location: $url");
463            $ch = curl_init();
464            if(!is_null($username) && !is_null($password))
465                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
474        {
475            if(!is_null($username) && !is_null($password))
476                $url = str_replace("://", "://$username:$password@", $url);
481        {
482            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
483            return false;
592    {
593        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
594        {
functions.inc.php https://github.com/cauld/simple-php-framework.git | PHP | 752 lines
287    {
288        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
289        header("Location: $url");
405            $ch = curl_init();
406            if(!is_null($username) && !is_null($password))
407                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
416        {
417            if(!is_null($username) && !is_null($password))
418                $url = str_replace("://", "://$username:$password@", $url);
423        {
424            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
425            return false;
534    {
535        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
536        {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21