PageRenderTime 75ms queryFilters 26ms Sphinxql 55ms app.CodeModel.GetByIds 1001ms findMatchingLines 41ms GetByIds 1042ms meta 0ms repositoryFilters 5ms languageFilters 3ms sourceFilters 3ms

60,014 results for 'php is_null repo:fuel/oil' (75 ms)

Source

Language

Repository

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
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');
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>
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;
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;
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.
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_list_items.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 626 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/models/ca_list_items.php : table access class for table ca_list_items
4 * ----------------------------------------------------------------------
36 
37require_once(__CA_LIB_DIR__.'/ca/BundlableLabelableBaseModelWithAttributes.php');
38require_once(__CA_LIB_DIR__.'/ca/IHierarchy.php');
38require_once(__CA_LIB_DIR__.'/ca/IHierarchy.php');
39require_once(__CA_MODELS_DIR__.'/ca_lists.php');
40require_once(__CA_MODELS_DIR__.'/ca_places.php');
40require_once(__CA_MODELS_DIR__.'/ca_places.php');
41require_once(__CA_MODELS_DIR__.'/ca_locales.php');
42
50				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
51				'IS_NULL' => false, 
52				'DEFAULT' => '',
filelib.php https://bitbucket.org/bmbrands/swets.git | PHP | 3,173 lines
127
128    if (is_null($itemid) or is_null($context)) {
129        $contextid = null;
212
213    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
214        $data->{$field} = $editor['text'];
239    }
240    if (is_null($itemid) or is_null($context)) {
241        $itemid = null;
371            // this happens when developers forget to post process the text
372            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
373        }
390 * @param string $text The content that may contain ULRs in need of rewriting.
391 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
392 * @param integer $contextid This parameter and the next two identify the file area to use.
pagelib.php https://bitbucket.org/ngmares/moodle.git | PHP | 2,220 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
309     * @var int Sets the page to refresh after a given delay (in seconds) using
310     * meta refresh in {@link standard_head_html()} in outputlib.php
311     * If set to null(default) the page is not refreshed
377        global $SITE;
378        if (is_null($this->_course)) {
379            return $SITE;
401    protected function magic_get_activityrecord() {
402        if (is_null($this->_module) && !is_null($this->_cm)) {
403            $this->load_activity_record();
413    protected function magic_get_activityname() {
414        if (is_null($this->_cm)) {
415            return null;
450    protected function magic_get_context() {
451        if (is_null($this->_context)) {
452            if (CLI_SCRIPT or NO_MOODLE_COOKIES) {
filelib.php https://bitbucket.org/ngmares/moodle.git | PHP | 4,318 lines
129
130    if (is_null($itemid) or is_null($context)) {
131        $contextid = null;
218
219    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
220        $data->{$field} = $editor['text'];
246    }
247    if (is_null($itemid) or is_null($context)) {
248        $itemid = null;
401            // this happens when developers forget to post process the text
402            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
403        }
421 * @param string $text The content that may contain ULRs in need of rewriting.
422 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
423 * @param int $contextid This parameter and the next two identify the file area to use.
file_info_context_course.php https://bitbucket.org/ngmares/moodle.git | PHP | 700 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
102        }
103        if (is_null($itemid)) {
104            return $this;
108
109        $filepath = is_null($filepath) ? '/' : $filepath;
110        $filename = is_null($filename) ? '.' : $filename;
118        }
119        $urlbase = $CFG->wwwroot.'/pluginfile.php';
120        return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('areacourseintro', 'repository'), false, true, true, false);
148
149        $filepath = is_null($filepath) ? '/' : $filepath;
150        $filename = is_null($filename) ? '.' : $filename;
158        }
159        $urlbase = $CFG->wwwroot.'/pluginfile.php';
160        return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, $section->section, true, true, true, false);
locallib.php https://bitbucket.org/ngmares/moodle.git | PHP | 1,565 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
20 * This contains functions that are called from within the quiz module only
21 * Functions that are also called by core Moodle are in {@link lib.php}
22 * This script also loads the code in {@link questionlib.php} which holds
34
35require_once($CFG->dirroot . '/mod/quiz/lib.php');
36require_once($CFG->dirroot . '/mod/quiz/accessmanager.php');
36require_once($CFG->dirroot . '/mod/quiz/accessmanager.php');
37require_once($CFG->dirroot . '/mod/quiz/accessmanager_form.php');
38require_once($CFG->dirroot . '/mod/quiz/renderer.php');
38require_once($CFG->dirroot . '/mod/quiz/renderer.php');
39require_once($CFG->dirroot . '/mod/quiz/attemptlib.php');
40require_once($CFG->dirroot . '/question/editlib.php');
40require_once($CFG->dirroot . '/question/editlib.php');
41require_once($CFG->libdir  . '/eventslib.php');
42require_once($CFG->libdir . '/filelib.php');
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 1,801 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');
69 * Given an object containing all the necessary data,
70 * (defined by the form in mod_form.php) this function
71 * will create a new instance and return the id number
100 * Given an object containing all the necessary data,
101 * (defined by the form in mod_form.php) this function
102 * will update an existing instance with new data.
119    if (!$quiz->shufflequestions && !empty($quiz->repaginatenow)) {
120        require_once($CFG->dirroot . '/mod/quiz/locallib.php');
121        $quiz->questions = quiz_repaginate(quiz_clean_layout($oldquiz->questions, true),
lib.php https://bitbucket.org/andrewdavidson/sl-clone.git | PHP | 1,803 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');
69 * Given an object containing all the necessary data,
70 * (defined by the form in mod_form.php) this function
71 * will create a new instance and return the id number
100 * Given an object containing all the necessary data,
101 * (defined by the form in mod_form.php) this function
102 * will update an existing instance with new data.
119    if (!$quiz->shufflequestions && !empty($quiz->repaginatenow)) {
120        require_once($CFG->dirroot . '/mod/quiz/locallib.php');
121        $quiz->questions = quiz_repaginate(quiz_clean_layout($oldquiz->questions, true),
filelib.php https://bitbucket.org/andrewdavidson/sl-clone.git | PHP | 4,367 lines
129
130    if (is_null($itemid) or is_null($context)) {
131        $contextid = null;
218
219    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
220        $data->{$field} = $editor['text'];
246    }
247    if (is_null($itemid) or is_null($context)) {
248        $itemid = null;
401            // this happens when developers forget to post process the text
402            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
403        }
421 * @param string $text The content that may contain ULRs in need of rewriting.
422 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
423 * @param int $contextid This parameter and the next two identify the file area to use.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21