PageRenderTime 301ms queryTime 85ms sortTime 24ms getByIdsTime 40ms findMatchingLines 39ms

100+ results results for 'php is_null repo:libis/providencelibiscode' (301 ms)

Not the results you expected?
Email.php https://bitbucket.org/wallindev/wallindev-wp.git | PHP | 411 lines
                    
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
                    
2
                    
58            foreach( $data[ 'fields' ] as $field ){
                    
59                if( is_null( $field ) ) continue;
                    
60                if( is_array( $field ) ){
                    
                
workflows.php https://bitbucket.org/kbasarab/kbasarab_vim.git | PHP | 482 lines
                    
1<?php
                    
2/**
                    
3* Name: 		Workflows
                    
4* Description: 	This PHP class object provides several useful functions for retrieving, parsing,
                    
5* 				and formatting data to be used with Alfred 2 Workflows.
                    
36
                    
37		if ( !is_null( $bundleid ) ):
                    
38			$this->bundle = $bundleid;
                    
64	{
                    
65		if ( is_null( $this->bundle ) ):
                    
66			return false;
                    
81	{
                    
82		if ( is_null( $this->bundle ) ):
                    
83			return false;
                    
84		else:
                    
85			if ( is_null( $this->cache ) ):
                    
86				return false;
                    
                
record.add.php git://github.com/thorsten/phpMyFAQ.git | PHP | 330 lines
                    
12 * @author Thorsten Rinne <thorsten@phpmyfaq.de>
                    
13 * @copyright 2003-2021 phpMyFAQ Team
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link https://www.phpmyfaq.de
                    
16 * @since 2003-02-23
                    
28use phpMyFAQ\Instance\Elasticsearch;
                    
29use phpMyFAQ\Link;
                    
30use phpMyFAQ\Logging;
                    
30use phpMyFAQ\Logging;
                    
31use phpMyFAQ\Notification;
                    
32use phpMyFAQ\Question;
                    
114
                    
115    if (!is_null($question) && !is_null($categories['rubrik'])) {
                    
116        // new entry
                    
                
CacheBase.php git://github.com/moodle/moodle.git | PHP | 369 lines
                    
3/**
                    
4 * PHPExcel_CachedObjectStorage_CacheBase
                    
5 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
23 * @package    PHPExcel_CachedObjectStorage
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
81     *
                    
82     * @return    PHPExcel_Worksheet
                    
83     */
                    
311     *
                    
312     * @param    PHPExcel_Worksheet    $parent        The new worksheet
                    
313     * @return    void
                    
                
fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
                    
1<?php
                    
2
                    
6* Released under the MIT license, see:
                    
7* http://www.opensource.org/licenses/mit-license.php
                    
8*/
                    
191		$class = strtolower($class);
                    
192		if (is_null($object_name))
                    
193		{
                    
291	 *
                    
292	 * The config/autoload.php file contains an array that permits sub-systems,
                    
293	 * libraries, plugins, and helpers to be loaded automatically.
                    
369    * Can load a view file from an absolute path and
                    
370    * relative to the CodeIgniter index.php file
                    
371    * Handy if you have views outside the usual CI views dir
                    
                
Transcoding.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 379 lines
                    
1<?php
                    
2/**
                    
231    $movie = new ffmpeg_movie($file->getFile());
                    
232    if (!is_null($movie)){
                    
233      $file->setResolutionVer($movie->getFrameHeight());
                    
309    
                    
310    if((strlen($this->getPathIni()) == 0)||is_null($this->getMmId())||is_null($this->getPerfilId())){
                    
311      throw new sfException("Error en autoEnd");
                    
344    $linea_comandos = $this->getPerfil()->getBat();;
                    
345    $linea_comandos = str_replace('%1', (is_null($file_in)?$this->getPathIni():$file_in), $linea_comandos);
                    
346    $linea_comandos = str_replace('%2', $this->getPathEnd(), $linea_comandos);
                    
                
Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 398 lines
                    
61/** PHPExcel_Writer_Excel2007_Theme */
                    
62require_once 'PHPExcel/Writer/Excel2007/Theme.php';
                    
63
                    
81 * @package    PHPExcel_Writer
                    
82 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
83 */
                    
165			// Set property PHPExcel
                    
166			$this->setPHPExcel($pPHPExcel);
                    
167		} else {
                    
314	 *
                    
315	 * @param 	PHPExcel 	$pPHPExcel	PHPExcel object
                    
316	 * @throws	Exception
                    
318	public function setPHPExcel($pPHPExcel = null) {
                    
319		if ($pPHPExcel instanceof PHPExcel) {
                    
320			$this->_spreadSheet = $pPHPExcel;
                    
                
Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 * 
                    
18 * @copyright   2001-2009 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $
                    
                
class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
                    
1<?php
                    
2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
                    
5#
                    
6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $
                    
7
                    
10 */
                    
11require_once('adodb.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
13require_once('adodb-exceptions.inc.php');
                    
14
                    
79    public function __get( $name ) {
                    
80        if (is_null($this->_prefix))
                    
81            return;
                    
90	public function __set($name, $value) {
                    
91        if (is_null($this->_prefix))
                    
92            return;
                    
                
dbDiff.class.php https://bitbucket.org/idler/mmp/ | PHP | 388 lines
                    
1<?php
                    
2
                    
178    if ($column['Null'] === 'NO') $sql .= " NOT NULL ";
                    
179    if (!is_null($column['Default'])) $sql .= " DEFAULT \\'{$column['Default']}\\' ";
                    
180  }
                    
                
Linux_DHCPPool_Resource.c git://pkgs.fedoraproject.org/sblim-cmpi-dhcp | C | 283 lines
                    
8/// You can obtain a current copy of the Eclipse Public License from
                    
9/// http://www.opensource.org/licenses/eclipse-1.0.php
                    
10///
                    
100    {
                    
101        setRaStatus( &ra_status, RA_RC_FAILED, OBJECT_PATH_IS_NULL, _("Object Path is NULL") );
                    
102	return ra_status;
                    
114    if(cmpi_name == NULL) {
                    
115        setRaStatus( &ra_status, RA_RC_FAILED,  CMPI_INSTANCE_NAME_IS_NULL, _("Cmpi instance name is NULL") );
                    
116	return ra_status;
                    
218    if(CMIsNullObject(instance)) {
                    
219        setRaStatus( &ra_status, RA_RC_FAILED, INSTANCE_ID_IS_NULL, _("Instance is NULL") );
                    
220	return ra_status;
                    
                
Language.php git://github.com/thorsten/phpMyFAQ.git | PHP | 377 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   Language
                    
12 * @package   Language
                    
13 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
14 * @author    Matteo scaramuccia <matteo@phpmyfaq.de>
                    
15 * @author    Aurimas FiĀšeras <aurimas@gmail.com>
                    
16 * @copyright 2009-2012 phpMyFAQ Team
                    
17 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
17 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
18 * @link      http://www.phpmyfaq.de
                    
19 * @since     2009-05-14
                    
                
NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 422 lines
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
37 * @package    PHPExcel_Style
                    
38 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
39 */
                    
39 */
                    
40class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
                    
41{	
                    
130     *
                    
131     * Returns the PHPExcel_Style_NumberFormat that is actual bound to PHPExcel_Style
                    
132	 *
                    
147     *
                    
148     * If no PHPExcel_Style_NumberFormat has been bound to PHPExcel_Style then bind this one. Return the actual bound one.
                    
149	 *
                    
                
Validator.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 206 lines
                    
1<?php
                    
2
                    
39        $this->aliases = array();
                    
40        // PHP is a bit lax with integer <=> string conversions in
                    
41        // arrays, so we don't use the identical !== comparison
                    
91
                    
92        if (!is_null($d->allowed) || !empty($d->valueAliases)) {
                    
93            // allowed and valueAliases require that we be dealing with
                    
112    public function validateDirectiveAllowed($d) {
                    
113        if (is_null($d->allowed)) return;
                    
114        $this->with($d, 'allowed')
                    
131    public function validateDirectiveValueAliases($d) {
                    
132        if (is_null($d->valueAliases)) return;
                    
133        $this->with($d, 'valueAliases')
                    
142        }
                    
143        if (!is_null($d->allowed)) {
                    
144            foreach ($d->valueAliases as $alias => $real) {
                    
                
service.zep.c git://github.com/phalcon/cphalcon.git | C | 454 lines
                    
5
                    
6#include <php.h>
                    
7#include "../../php_ext.h"
                    
35 *
                    
36 *```php
                    
37 * $service = new \Phalcon\Di\Service(
                    
71 */
                    
72PHP_METHOD(Phalcon_Di_Service, __construct)
                    
73{
                    
80	ZVAL_BOOL(&__$false, 0);
                    
81#if PHP_VERSION_ID >= 80000
                    
82	bool is_null_true = 1;
                    
109 */
                    
110PHP_METHOD(Phalcon_Di_Service, getDefinition)
                    
111{
                    
                
update.zep.c git://github.com/phalcon/cphalcon.git | C | 541 lines
                    
5
                    
6#include <php.h>
                    
7#include "../../../php_ext.h"
                    
30 *
                    
31 * Implementation of this file has been influenced by AtlasPHP
                    
32 *
                    
32 *
                    
33 * @link    https://github.com/atlasphp/Atlas.Query
                    
34 * @license https://github.com/atlasphp/Atlas.Qyert/blob/1.x/LICENSE.md
                    
51 */
                    
52PHP_METHOD(Phalcon_DataMapper_Query_Update, __construct)
                    
53{
                    
65	ZVAL_UNDEF(&_4);
                    
66#if PHP_VERSION_ID >= 80000
                    
67	bool is_null_true = 1;
                    
                
faq.php git://github.com/thorsten/phpMyFAQ.git | PHP | 400 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package phpMyFAQ
                    
11 * @author Thorsten Rinne <thorsten@phpmyfaq.de>
                    
12 * @author Lars Tiedemann <larstiedemann@yahoo.de>
                    
13 * @copyright 2002-2021 phpMyFAQ Team
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link https://www.phpmyfaq.de
                    
16 * @since 2002-08-27
                    
18
                    
19use phpMyFAQ\Attachment\AttachmentException;
                    
20use phpMyFAQ\Attachment\AttachmentFactory;
                    
20use phpMyFAQ\Attachment\AttachmentFactory;
                    
21use phpMyFAQ\Captcha;
                    
22use phpMyFAQ\Comments;
                    
                
cvt_multietapes.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 307 lines
                    
1<?php
                    
2
                    
253			// possibilite de poster dans _retour_etape_x
                    
254			if (!is_null(_request("_retour_etape_$e"))) {
                    
255				$etape_demandee = $e;
                    
                
phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/*
                    
50
                    
51        if(is_null($this->escapeChars) ){
                    
52            $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3))  == "win" ) ;
                    
144        if(key_exists($name, $this->loadedPlugins)) {
                    
145            if(! is_null($version)) {
                    
146               if( property_exists($this->loadedPlugins[$name], 'version') ){
                    
163        $base = dirname(__FILE__) . '/plugins';
                    
164        $plugins = glob($base . '/*.php');
                    
165        foreach($plugins as $plugin){
                    
166            include_once $plugin ;
                    
167            $name = basename($plugin, '.php');
                    
168            $className = 'phMagick_'.$name ;
                    
                
User_agent.php git://github.com/imagecms/ImageCMS.git | PHP | 550 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
66
                    
67		if ( ! is_null($this->agent))
                    
68		{
                    
87	{
                    
88		if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))
                    
89		{
                    
89		{
                    
90			include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');
                    
91		}
                    
91		}
                    
92		elseif (is_file(APPPATH.'config/user_agents.php'))
                    
93		{
                    
                
VariableCommentSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 347 lines
                    
42 * @version   Release: @package_version@
                    
43 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
44 */
                    
314     *
                    
315     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
316     * @param int                  $stackPtr  The position where the double quoted
                    
320     */
                    
321    protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
322    {
                    
332     *
                    
333     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
334     * @param int                  $stackPtr  The position where the double quoted
                    
338     */
                    
339    protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
340    {
                    
                
downloadalbum.php git://github.com/gallery/gallery3-contrib.git | PHP | 301 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
40        $container = ORM::factory("tag", $id);
                    
41        if (is_null($container->name)) {
                    
42          throw new Kohana_Exception('container is not a tag: '.$id);
                    
214  /**
                    
215   * See system/helpers/download.php
                    
216   */
                    
224  /**
                    
225   * See system/helpers/download.php
                    
226   */
                    
227  private function sendHeaders($filename, $filesize = null) {
                    
228    if (!is_null($filesize)) {
                    
229      header('Content-Length: '.$filesize);
                    
287  /**
                    
288   * See http://bugs.php.net/bug.php?id=45028
                    
289   */
                    
                
NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 498 lines
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
32/** PHPExcel_Shared_Date */
                    
33require_once 'PHPExcel/Shared/Date.php';
                    
34
                    
40 * @package    PHPExcel_Style
                    
41 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
42 */
                    
42 */
                    
43class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
                    
44{	
                    
448			if (is_float($value)) {
                    
449				return date($format, PHPExcel_Shared_Date::ExceltoPHP($value));
                    
450			}
                    
                
session.inc http://arronwork.googlecode.com/svn/trunk/ | PHP | 426 lines
                    
1<?php
                    
2class session
                    
102    {/*{{{*/
                    
103        if(is_null($this->sid))
                    
104        {
                    
137    {/*{{{*/
                    
138        if(is_null($this->sid))
                    
139        {
                    
173    {/*{{{*/
                    
174        if(is_null($this->sid))
                    
175        {
                    
212    {/*{{{*/
                    
213        if(is_null($this->sid))
                    
214        {
                    
271    {/*{{{*/
                    
272        if(is_null($this->sid))
                    
273        {
                    
                
SfObjectBuilder.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 393 lines
                    
2
                    
3require_once 'propel/engine/builder/om/php5/PHP5ObjectBuilder.php';
                    
4
                    
31       // remove all inline includes: object classes include the peers
                    
32      $objectCode = preg_replace("/include_once\s*.*Base.*Peer\.php.*\s*/", "", $objectCode);
                    
33    }
                    
167          {
                    
168            $culture = $col->getPhpName();
                    
169            $culture_peername = PeerBuilder::getColumnName($col, $className);
                    
177          $script .= '
                    
178  public function get'.$col->getPhpName().'($culture = null)
                    
179  {
                    
371    {
                    
372      $behavior_file_name = 'Base'.$this->getTable()->getPhpName().'Behaviors';
                    
373      $behavior_file_path = ClassTools::getFilePath($this->getStubObjectBuilder()->getPackage().'.om', $behavior_file_name);
                    
                
Unit_test.php https://github.com/marcoliverteschke/redesign.marcoliverteschke.de.git | PHP | 347 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
61	
                    
62		if (in_array($expected, array('is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE))
                    
63		{
                    
304 	{
                    
305 		if ( ! is_null($this->_template_rows))
                    
306 		{
                    
309 		
                    
310 		if (is_null($this->_template))
                    
311 		{
                    
345
                    
346/* End of file Unit_test.php */
                    
347/* Location: ./system/libraries/Unit_test.php */
                    
                
patients_con.php https://bitbucket.org/vincentbii/amurt.git | PHP | 447 lines
                    
8 8. * @date 31. March 2008
                    
9 9. * @version $Id: csql.php 820 2010-02-14 18:30:45Z jozo $
                    
10 10. */
                    
56    $quot_right = array_key_exists(1, (array) $quot) ? $quot[1] : $quot[0];
                    
57    $val = is_null($val) ? "null" : $quot[0] . preg_replace("/'/", "''", $val) . $quot_right;
                    
58}
                    
231
                    
232        if(!is_null($sort)) {
                    
233            $sql .= " order by $sort";
                    
233            $sql .= " order by $sort";
                    
234            $sql .= is_null($dir) ? "" : " $dir";
                    
235        }
                    
235        }
                    
236        if(!is_null($start) && !is_null($limit)) {
                    
237            $sql .= " limit $start,$limit";
                    
                
slideshare_external_repository_manager_connector.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-slideshare-dev/ | PHP | 304 lines
                    
1<?php
                    
2namespace common\extensions\external_repository_manager\implementation\slideshare;
                    
21
                    
22require_once dirname(__FILE__) . '/slideshare_external_repository_object.class.php';
                    
23require_once dirname(__FILE__) . '/webservices/slideshare_rest_client.class.php';
                    
57    {
                    
58        if (is_null($condition))
                    
59        {
                    
107    {
                    
108        if (is_null($condition))
                    
109        {
                    
182
                    
183    /* (non-PHPdoc)
                    
184     * @see application/common/external_repository_manager/ExternalRepositoryManagerConnector#retrieve_external_repository_object()
                    
                
Wincache.php git://github.com/Dolibarr/dolibarr.git | PHP | 231 lines
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_Wincache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
                
vars.php http://goodgirl.googlecode.com/svn/ | PHP | 302 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
112
                    
113        if (is_null($name)){
                    
114            $key = ($this->parallel ? (max(array_keys($this->parallel)) + 1) : 0);
                    
                
user.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 417 lines
                    
1<?php
                    
2/**
                    
386		// Check for User ID
                    
387		if (is_null($userId))
                    
388		{
                    
                
GetExtendedList.php https://bitbucket.org/RickCalder/durawp_new.git | PHP | 548 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
510    {
                    
511        if (is_null($offset)) {
                    
512            $this->container[] = $value;
                    
                
admin_request_browser.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 191 lines
                    
1<?php
                    
2namespace application\weblcms;
                    
22/**
                    
23 * $Id: admin_course_type_browser.class.php 218 2010-03-11 14:21:26Z Yannick & Tristan $
                    
24 * @package application.lib.weblcms.weblcms_manager.component
                    
25 */
                    
26require_once dirname(__FILE__) . '/admin_request_browser/admin_request_browser_table.class.php';
                    
27require_once dirname(__FILE__) . '/../../course/requests_tree_renderer.class.php';
                    
51
                    
52        if (is_null($this->request_type))
                    
53            $this->request_type = CommonRequest :: CREATION_REQUEST;
                    
53            $this->request_type = CommonRequest :: CREATION_REQUEST;
                    
54        if (is_null($this->request_view))
                    
55            $this->request_view = self :: PENDING_REQUEST_VIEW;
                    
                
nodes.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 350 lines
                    
1<?php
                    
2/*
                    
122
                    
123	if (!is_null($perm)) {
                    
124		return get_accessible_nodes_by_user(CWebUser::$data, $perm, PERM_RES_IDS_ARRAY, $ZBX_AVAILABLE_NODES);
                    
125	}
                    
126	elseif (is_null($force_all_nodes)) {
                    
127		if ($ZBX_VIEWED_NODES['selected'] == 0) {
                    
193
                    
194	if ($force_with_all_nodes === false || (is_null($force_with_all_nodes) && $ZBX_VIEWED_NODES['selected'] != 0)) {
                    
195		return null;
                    
                
SubscriptionInfo.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 403 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\ServiceBus\Models
                    
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 */
                    
39 * @package   WindowsAzure\ServiceBus\Models
                    
40 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
41 * @copyright 2012 Microsoft Corporation
                    
43 * @version   Release: @package_version@
                    
44 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
45 */
                    
                
QType.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 423 lines
                    
1<?php
                    
2	/**
                    
17	 *
                    
18	 * PHP does not support strongly named types.  The QCubed type library
                    
19	 * and QCubed typing in general attempts to bring some structure to types
                    
23	 * The Type library attempts to allow as much flexibility as possible to
                    
24	 * set and cast variables to other types, similar to how PHP does it natively,
                    
25	 * but simply adds a big more structure to it.
                    
41	 * For values, specifically int to string conversion, one different between
                    
42	 * QType::Cast and PHP (in order to add structure) is that if an integer contains
                    
43	 * alpha characters, PHP would normally allow that through w/o complaint, simply
                    
48	 * In theory, the type library should maintain the same level of flexibility
                    
49	 * PHP developers are accostomed to, while providing a mechanism to limit
                    
50	 * careless coding errors and tough to figure out mistakes due to PHP's sometimes
                    
114						return $mixItem;
                    
115					if (is_null($mixItem))
                    
116						return false;
                    
                
FolderHandler.php git://github.com/forkcms/forkcms.git | PHP | 272 lines
                    
1<?php
                    
2/*
                    
23 */
                    
24require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/FileSystem.php";
                    
25
                    
134
                    
135        if (is_null($this->_resourceTypeConfig)) {
                    
136            $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
                    
173    {
                    
174        if (is_null($this->_url)) {
                    
175            $this->_resourceTypeConfig = $this->getResourceTypeConfig();
                    
175            $this->_resourceTypeConfig = $this->getResourceTypeConfig();
                    
176            if (is_null($this->_resourceTypeConfig)) {
                    
177                $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector");
                    
197    {
                    
198        if (is_null($this->_serverPath)) {
                    
199            $this->_resourceTypeConfig = $this->getResourceTypeConfig();
                    
                
PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 383 lines
                    
32/** PHPExcel_DocumentProperties */
                    
33require_once 'PHPExcel/DocumentProperties.php';
                    
34
                    
38/** PHPExcel_Worksheet */
                    
39require_once 'PHPExcel/Worksheet.php';
                    
40
                    
41/** PHPExcel_Shared_ZipStreamWrapper */
                    
42require_once 'PHPExcel/Shared/ZipStreamWrapper.php';
                    
43
                    
44/** PHPExcel_NamedRange */
                    
45require_once 'PHPExcel/NamedRange.php';
                    
46
                    
52 * @package    PHPExcel
                    
53 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
54 */
                    
                
mssql_extractor.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\db\extractor;
                    
15
                    
15
                    
16use phpbb\db\extractor\exception\extractor_not_initialized_exception;
                    
17
                    
23	* @return null
                    
24	* @throws \phpbb\db\extractor\exception\extractor_not_initialized_exception when calling this function before init_extractor()
                    
25	*/
                    
                
AdminFilter.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
297
                    
298                if (is_null($operator)) {
                    
299                    $pattern = '#BETWEEN (?P<min>\d+\.?\d*) AND (?P<max>\d+\.?\d*)#';
                    
                
fpdi_pdf_parser.php git://github.com/moodle/moodle.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
11if (!class_exists('pdf_parser')) {
                    
12    require_once('pdf_parser.php');
                    
13}
                    
209        
                    
210        if (!is_null($box) && $box[0] == pdf_parser::TYPE_OBJREF) {
                    
211            $tmp_box = $this->resolveObject($box);
                    
214            
                    
215        if (!is_null($box) && $box[0] == pdf_parser::TYPE_ARRAY) {
                    
216            $b = $box[1];
                    
                
view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
                    
1<?php
                    
2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
3
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
11 * @package mvc
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
19 * @package mvc
                    
67     *
                    
68     * @var QView_Render_PHP_Parser
                    
69     */
                    
234 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
236 * @package mvc
                    
                
header.php http://massey-se-c-team2.googlecode.com/svn/trunk/ | PHP | 418 lines
                    
1<?php
                    
2require 'openid/openid.php';
                    
31
                    
32        	header('Location: connect_through_openid.php?gender=M&img=images/profile/d0.gif&userid=' . $arr['contact/email'] . '&email=' . $arr['contact/email'] . '&name=' . $arr['namePerson/first'] . ' ' . $arr['namePerson/last']);
                    
33
                    
35			//setcookie("email", $arr['contact/email'], time()+3600);
                    
36			//header('Location: index.php');
                    
37
                    
51	function nz($v,$r=''){
                    
52		if(isset($v) && !is_null($v)){
                    
53			return $v;
                    
243
                    
244								$.get('connect_through_facebook.php?gender='+response[0].sex+'&img=https://graph.facebook.com/' + user.id + '/picture&userid='+user.id+'&name='+response[0].name+'&email='+response[0].email,
                    
245									function(result){
                    
287    <div id="l1201" class="mainLinks">
                    
288	        <a href="index.php">Home</a> |
                    
289	        <a href="about.php">About</a> |
                    
                
html.php git://github.com/ericbarnes/Status-Board.git | PHP | 344 lines
                    
1<?php namespace Laravel;
                    
2
                    
47
                    
48		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
49	}
                    
75
                    
76		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
77	}
                    
196
                    
197		if (is_null($title)) $title = $email;
                    
198
                    
300
                    
301			if ( ! is_null($value))
                    
302			{
                    
                
BankController.php https://bitbucket.org/kiruthiga208/expertplus_enc.git | PHP | 369 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
51
                    
52		$sort = (!is_null($request->input('sort')) ? $request->input('sort') : 'id'); 
                    
53		$order = (!is_null($request->input('order')) ? $request->input('order') : 'asc');
                    
55		// Filter Search for query		
                    
56		$filter = (!is_null($request->input('search')) ? $this->buildSearch() : '');
                    
57
                    
61			'page'		=> $page ,
                    
62			'limit'		=> (!is_null($request->input('rows')) ? filter_var($request->input('rows'),FILTER_VALIDATE_INT) : static::$per_page ) ,
                    
63			'sort'		=> $sort ,
                    
153			$newID = $this->model->insertRow($data , $request->input('id'));
                    
154			if(!is_null($request->input('apply')))
                    
155			{
                    
                
PackageScaffolderAbstract.php https://code.google.com/p/celebrio/ | PHP | 325 lines
                    
1<?php
                    
2/**
                    
30 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
31 * @license    http://phpazure.codeplex.com/license
                    
32 * @version    $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $
                    
37 */
                    
38//require_once dirname(__FILE__) . '/../../../AutoLoader.php';
                    
39
                    
43 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
44 * @license    http://phpazure.codeplex.com/license
                    
45 */ 
                    
122		}
                    
123		file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
                    
124	}
                    
135		$phar->extractTo($path);
                    
136		@unlink($path . '/index.php');
                    
137		@unlink($path . '/build.bat');
                    
                
PageManager.php git://github.com/atk4/atk4.git | PHP | 242 lines
                    
1<?php
                    
2/**
                    
132        $url = $this->app->getConfig('atk/base_url', null);
                    
133        if (is_null($url)) {
                    
134            // Detect it
                    
221            $request_uri = $_SERVER['REQUEST_URI'];
                    
222        } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP as CGI
                    
223            $request_uri = $_SERVER['ORIG_PATH_INFO'];
                    
                
NpgsqlSchema.cs git://github.com/mono/mono.git | C# | 287 lines
                    
7//  npgsql-general@gborg.postgresql.org
                    
8//  http://gborg.postgresql.org/project/npgsql/projdisplay.php
                    
9//
                    
204                                                          new DataColumn("column_default"),
                    
205                                                          new DataColumn("is_nullable"),
                    
206                                                          new DataColumn("data_type"),
                    
219
                    
220            getColumns.Append("SELECT table_catalog, table_schema, table_name, column_name, ordinal_position, column_default, is_nullable, udt_name AS data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_precision_radix, numeric_scale, datetime_precision, character_set_catalog, character_set_schema, character_set_name, collation_catalog FROM information_schema.columns");
                    
221
                    
                
str.php git://github.com/eryx/php-framework-benchmark.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * PHP needs to be compiled with --enable-mbstring
                    
19 * or a fallback without encoding support is used
                    
129		// substr functions don't parse null correctly
                    
130		$length = is_null($length) ? (function_exists('mb_substr') ? mb_strlen($str, $encoding) : strlen($str)) - $start : $length;
                    
131
                    
                
class.set.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 648 lines
                    
1<?php
                    
2
                    
486			if(
                    
487				(is_null($ModelID) || $Set->getModel()->getID() == $ModelID)				&&
                    
488				(is_null($SetID) || $Set->getID() == $SetID)						 		&&
                    
488				(is_null($SetID) || $Set->getID() == $SetID)						 		&&
                    
489				(is_null($Prefix) || strlen($Prefix) == 0 || $Set->getPrefix() == $Prefix)  &&
                    
490				(
                    
490				(
                    
491					is_null($Name) ||
                    
492					strlen($Name) == 0 ||
                    
                
download_danger_prompt_views.cc https://gitlab.com/hkratz/chromium | C++ | 363 lines
                    
32const int kMessageWidth = 320;
                    
33const int kParagraphPadding = 15;
                    
34
                    
89      contents_view_(NULL) {
                    
90  DCHECK(!done_.is_null());
                    
91  download_->AddObserver(this);
                    
114
                    
115    layout->AddPaddingRow(0, kParagraphPadding);
                    
116  }
                    
346  }
                    
347  if (!done.is_null())
                    
348    done.Run(action);
                    
                
api_b2b_1_0_productline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
163                                
                    
164                                 if(!isset($goods['cat_id']) || (!isset($goods['brand_id']) && !is_null($goods['brand_id'])) ){
                    
165                                     $goods = $objGoods->getFieldById($goods['goods_id']);
                    
                
paginator.php git://github.com/ericbarnes/Status-Board.git | PHP | 424 lines
                    
1<?php namespace Laravel;
                    
2
                    
292
                    
293		if (is_null($text))
                    
294		{
                    
389	 	// implementation of sorting or other things the developer may need.
                    
390		if ( ! is_null($this->appendage)) return $this->appendage;
                    
391
                    
                
ExportMediawiki.class.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 355 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package    PhpMyAdmin-Export
                    
7 * @subpackage MediaWiki
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
13/* Get the export interface */
                    
14require_once "libraries/plugins/ExportPlugin.class.php";
                    
15
                    
18 *
                    
19 * @package PhpMyAdmin-Export
                    
20 */
                    
175     *                            deprecated but the parameter is left here
                    
176     *                            because export.php calls exportStructure()
                    
177     *                            also for other export types which use this
                    
                
funcs-misc.php http://umspx.googlecode.com/svn/trunk/ | PHP | 198 lines
                    
1<?php
                    
2	include_once($_SERVER["DOCUMENT_ROOT"].'/umsp/funcs-config.php');
                    
8			$pluginFile = _getPluginFile($tmpArr[1]);
                    
9			if (is_null($pluginFile)) {
                    
10				return NULL;
                    
24		$tmpPluginPath = Array(
                    
25			dirname(__FILE__).'/user-plugins/'. $pluginName . '.php',
                    
26			dirname(__FILE__).'/plugins/'. $pluginName . '.php',
                    
26			dirname(__FILE__).'/plugins/'. $pluginName . '.php',
                    
27			dirname(__FILE__).'/plugins/'. $pluginName . '/' . $tmpArr[2] . '.php',
                    
28			dirname(__FILE__).'/plugins/'. $pluginName . '/' . $pluginName . '.php'
                    
                
HelperForm.php https://bitbucket.org/Yanachkov/updatepanda18.git | PHP | 337 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2017 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
70        $this->tpl = $this->createTemplate($this->base_tpl);
                    
71        if (is_null($this->submit_action)) {
                    
72            $this->submit_action = 'submitAdd'.$this->table;
                    
253            'required_fields' => $this->getFieldsRequired(),
                    
254            'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'),
                    
255            'module_dir' => _MODULE_DIR_,
                    
                
superuserslist.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 612 lines
                    
1<?php
                    
2/**
                    
43
                    
44		if (!is_null($isUserSaveOrApply))
                    
45		{
                    
                
plugin.php http://tpblog.googlecode.com/svn/ | PHP | 357 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
45 */
                    
46function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php')
                    
47{
                    
85                            if($subfile == "." || $subfile == "..")   continue;
                    
86                            if (preg_match('/\.php$/', $subfile))
                    
87                                $plugin_files[] = "$file/$subfile";
                    
260    foreach ($_filter as $priority => $functions) {
                    
261        if ( !is_null($functions) ) {
                    
262            foreach($functions as $function) {
                    
                
sfTesterResponse.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 316 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfTesterResponse.class.php 12517 2008-11-01 07:10:55Z fabien $
                    
18 */
                    
68  {
                    
69    if (is_null($this->dom))
                    
70    {
                    
205      {
                    
206        if (is_null($value))
                    
207        {
                    
301        $cookie['value'],
                    
302        is_null($cookie['expire']) ? '' : sprintf('expires=%s; ', date('D d-M-Y H:i:s T', $cookie['expire'])),
                    
303        $cookie['path'],
                    
                
SassParser.class.php git://github.com/m3nt0r/chaml---cakephp-haml-sass-integration.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
5 * @link http://haml.hamptoncatlin.com/ Original Sass parser (for Ruby)
                    
6 * @link http://phphaml.sourceforge.net/ Online documentation
                    
7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page
                    
7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page
                    
8 * @license http://www.opensource.org/licenses/mit-license.php MIT (X11) License
                    
9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com>
                    
9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com>
                    
10 * @package phpHaml
                    
11 * @subpackage Sass
                    
13
                    
14require_once dirname(__FILE__) . '/../common/CommonCache.class.php';
                    
15require_once dirname(__FILE__) . '/../common/CommonParser.class.php';
                    
15require_once dirname(__FILE__) . '/../common/CommonParser.class.php';
                    
16require_once dirname(__FILE__) . '/SassException.class.php';
                    
17require_once dirname(__FILE__) . '/SassCalculator.interface.php';
                    
                
password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
4 *
                    
5 * @author Anthony Ferrara <ircmaxell@php.net>
                    
6 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
13        /**
                    
14         * PHPUnit Process isolation caches constants, but not function declarations.
                    
15         * So we need to check if the constants are defined separately from 
                    
39            }
                    
40            if (is_null($password) || is_int($password)) {
                    
41                $password = (string) $password;
                    
296        /**
                    
297         * Check if current PHP version is compatible with the library
                    
298         *
                    
                
HashTable.php https://PHPExcel.svn.codeplex.com/svn | PHP | 221 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
37 * @package    PHPExcel
                    
38 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
39 */
                    
39 */
                    
40class PHPExcel_HashTable
                    
41{
                    
58     *
                    
59     * @param 	PHPExcel_IComparable[] $pSource	Optional source array to create HashTable from
                    
60     * @throws 	Exception
                    
                
PHPReportCol.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 507 lines
                    
11	*/
                    
12	class PHPReportCol extends PHPReportXMLElement {
                    
13		var $_aParms;				// column parameters
                    
59			$this->_sOnMouseOut	= "";
                    
60			$this->_oError			= new PHPReportsErrorTr();
                    
61			$this->makeTranslationArray();
                    
82			Add a parameter
                    
83			@param PHPReportColParm - parameter object
                    
84		*/	
                    
187			Gets the column value
                    
188			This function will be always called from a PHPReportRow, that 
                    
189			must provide the row number for checking if we must use an odd or even
                    
376			$oRpt=$oGroup_->getReport();
                    
377			if(!is_null($oRpt)) {
                    
378				$this->_sDecSep=$oRpt->getDecSep();
                    
                
class-wp-hook.php git://github.com/wordpress/wordpress.git | PHP | 510 lines
                    
392	 *
                    
393	 * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
                    
394	 *
                    
406	 *
                    
407	 * @link https://www.php.net/manual/en/arrayaccess.offsetget.php
                    
408	 *
                    
420	 *
                    
421	 * @link https://www.php.net/manual/en/arrayaccess.offsetset.php
                    
422	 *
                    
438	 *
                    
439	 * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
                    
440	 *
                    
451	 *
                    
452	 * @link https://www.php.net/manual/en/iterator.current.php
                    
453	 *
                    
                
GMapClient.class.php https://bitbucket.org/leandroaromero/sgp.git | PHP | 274 lines
                    
1<?php
                    
2
                    
41  {
                    
42    if (!is_null($api_keys))
                    
43    {
                    
46
                    
47    if (!is_null($api_key))
                    
48    {
                    
148  {
                    
149    if (is_null($api_keys) && class_exists('sfConfig'))
                    
150    {
                    
                
index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 435 lines
                    
175		<td valign="top" align="center" class="<?php echo $provider_name ?>">
                    
176		<img src="http://chart.apis.google.com/chart?chs=225x108&cht=gom&chd=t:<?php echo urlencode($score)?>&chl=<?php echo urlencode($pretty_score.' ('.$score.')') ?>" alt="<?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" title="Current <?php echo $provider['title'] ?> <?php echo $provider['score_name'] ?>: <?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)"/>
                    
177		<div>Current <a target="_blank" href="<?php echo $provider['url'] ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div>
                    
277	{
                    
278		?><span title="<?php echo htmlentities($metric['description'])?>" style="color: <?php echo array_key_exists('color', $metric) ? $metric['color'] : 'black' ?>"><?php echo htmlentities($metric['title'])?></span> (<a href="data_metric.php?metric=<?php echo urlencode($name);?>&url=<?php echo urlencode($url);?>">csv</a>);
                    
279<?php
                    
335							<td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td>
                    
336							<td><div class="gbox" title="Current <?php echo $provider['score_name']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td>
                    
337						<?php
                    
415
                    
416	<p>You can see latest HAR data in the viewer here: <a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">HAR for <?php echo htmlentities($url)?></a>.</p>
                    
417
                    
425?>
                    
426	<tr><td><?php echo htmlentities($harentry['t'])?></td><td><a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">view in HAR viewer</a></td></tr>
                    
427<?php
                    
                
Route.php https://bitbucket.org/mauro014/ownakaunting.git | PHP | 632 lines
                    
1<?php
                    
2
                    
369    {
                    
370        return ! is_null($this->throttle);
                    
371    }
                    
                
manymany.php git://github.com/ronan-gloo/plex-over.git | PHP | 349 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright	2010 - 2012 Fuel Development Team
                    
10 * @link		http://fuelphp.com
                    
11 */
                    
211
                    
212		if ( ! is_array($models_to) and ($models_to = is_null($models_to) ? array() : $models_to) !== array())
                    
213		{
                    
299
                    
300		$cascade = is_null($cascade) ? $this->cascade_save : (bool) $cascade;
                    
301		if ($cascade and ! empty($models_to))
                    
326
                    
327		$cascade = is_null($cascade) ? $this->cascade_delete : (bool) $cascade;
                    
328		if ($cascade and ! empty($model_to))
                    
                
Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 458 lines
                    
56/** PHPExcel_Writer_Excel2007_ContentTypes */
                    
57require_once 'PHPExcel/Writer/Excel2007/ContentTypes.php';
                    
58
                    
59/** PHPExcel_Writer_Excel2007_DocProps */
                    
60require_once 'PHPExcel/Writer/Excel2007/DocProps.php';
                    
61
                    
77/** PHPExcel_Writer_Excel2007_Drawing */
                    
78require_once 'PHPExcel/Writer/Excel2007/Drawing.php';
                    
79
                    
342	 *
                    
343	 * @param 	PHPExcel 	$pPHPExcel	PHPExcel object
                    
344	 * @throws	Exception
                    
345	 */
                    
346	public function setPHPExcel(PHPExcel $pPHPExcel = null) {
                    
347		$this->_spreadSheet = $pPHPExcel;
                    
                
mls_queries.php https://bitbucket.org/jv-cortez/test-environment.git | PHP | 475 lines
                    
1<?php
                    
2//error_reporting(E_ALL);
                    
3//ini_set('display_errors', 1);
                    
4require_once('../../require/db_conn.php');
                    
5// require_once('../../require/core.php');
                    
100
                    
101			if(is_null($property_result)) {
                    
102				$nextseq = $collection_counter->findOneAndUpdate(
                    
346
                    
347			if(is_null($property_result)) {
                    
348				$nextseq = $collection_counter->findOneAndUpdate(
                    
                
Store.php https://github.com/amoro119/QINNKO.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
447    {
                    
448        if (is_null($type)) {
                    
449            $this->_loadWebsiteCollection();
                    
                
KeyDescriptorTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 267 lines
                    
1<?php
                    
2use ODataProducer\UriProcessor\ResourcePathProcessor\SegmentParser\KeyDescriptor;
                    
4use ODataProducer\Common\ODataException;
                    
5require_once 'PHPUnit\Framework\Assert.php';
                    
6require_once 'PHPUnit\Framework\Test.php';
                    
6require_once 'PHPUnit\Framework\Test.php';
                    
7require_once 'PHPUnit\Framework\SelfDescribing.php';
                    
8require_once 'PHPUnit\Framework\TestCase.php';
                    
8require_once 'PHPUnit\Framework\TestCase.php';
                    
9require_once 'PHPUnit\Framework\TestSuite.php';
                    
10require_once 'ODataProducer\Common\ClassAutoLoader.php';
                    
10require_once 'ODataProducer\Common\ClassAutoLoader.php';
                    
11require_once (dirname(__FILE__) . "\..\..\..\Resources\NorthWindMetadata.php");
                    
12ODataProducer\Common\ClassAutoLoader::register();
                    
12ODataProducer\Common\ClassAutoLoader::register();
                    
13class TestKeyDescriptor extends PHPUnit_Framework_TestCase
                    
14{
                    
                
yaf_config.c https://gitlab.com/lcp0578/yaf.git | C | 405 lines
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
23#include "php_ini.h"
                    
24#include "standard/php_filestat.h" /* for php_stat */
                    
25
                    
25
                    
26#include "php_yaf.h"
                    
27#include "yaf_namespace.h"
                    
48	zval  n_ctime;
                    
49	php_stat(Z_STRVAL_P(file), Z_STRLEN_P(file), 7 /* FS_CTIME */ , &n_ctime TSRMLS_CC);
                    
50	if (Z_TYPE(n_ctime) != IS_BOOL && ctime != Z_LVAL(n_ctime)) {
                    
                
actions.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 220 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__).'/../lib/driverGeneratorConfiguration.class.php';
                    
4require_once dirname(__FILE__).'/../lib/driverGeneratorHelper.class.php';
                    
11 * @author     Your name here
                    
12 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
                    
13 */
                    
114  {
                    
115    if (is_null($this->filters))
                    
116    {
                    
166	}else{
                    
167    	// camelize lower case to be able to compare with BasePeer::TYPE_PHPNAME translate field name
                    
168    	$column = DriverPeer::translateFieldName(sfInflector::camelize(strtolower($sort[0])), BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME);
                    
                
class.FlxMapPlugin.php https://gitlab.com/lobsterhands/OctaveHigherEast.git | PHP | 490 lines
                    
1<?php
                    
2/**
                    
17
                    
18		if (is_null($instance)) {
                    
19			$instance = new self();
                    
35			// kick off the admin handling
                    
36			require FLXMAP_PLUGIN_ROOT . 'class.FlxMapAdmin.php';
                    
37			new FlxMapAdmin($this);
                    
                
transport.php https://bitbucket.org/effectal/ondi.git | PHP | 282 lines
                    
1<?php
                    
2
                    
188
                    
189        if(is_null($socket_wrapper)) {
                    
190            $socket_wrapper = new CF7CM_CS_REST_SocketWrapper();
                    
                
Database.php git://github.com/gabordemooij/redbean.git | PHP | 509 lines
                    
1<?php
                    
2
                    
5use RedUNIT\Base as Base;
                    
6use RedBeanPHP\Facade as R;
                    
7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT;
                    
7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT;
                    
8use RedBeanPHP\OODB as OODB;
                    
9use RedBeanPHP\OODBBean as OODBBean;
                    
9use RedBeanPHP\OODBBean as OODBBean;
                    
10use RedBeanPHP\ToolBox as ToolBox;
                    
11use RedBeanPHP\AssociationManager as AssociationManager;
                    
11use RedBeanPHP\AssociationManager as AssociationManager;
                    
12use RedBeanPHP\RedException as RedException;
                    
13use RedBeanPHP\RedException\SQL as SQL;
                    
13use RedBeanPHP\RedException\SQL as SQL;
                    
14use RedBeanPHP\QueryWriter\MySQL as MySQL;
                    
15use RedBeanPHP\QueryWriter\PostgreSQL as PostgreSQL;
                    
                
Grammar.php https://bitbucket.org/idkhs04/blwc_2018.git | PHP | 459 lines
                    
1<?php
                    
2
                    
102        // the affected columns, which will get something like "cascade", etc.
                    
103        if (! is_null($command->onDelete)) {
                    
104            $sql .= " on delete {$command->onDelete}";
                    
106
                    
107        if (! is_null($command->onUpdate)) {
                    
108            $sql .= " on update {$command->onUpdate}";
                    
335            foreach ($fluent->getAttributes() as $key => $value) {
                    
336                if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) {
                    
337                    if (method_exists($column, $method = 'set'.ucfirst($option))) {
                    
                
User.php https://github.com/amoro119/QINNKO.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
86
                    
87        if ( !is_null($this->getIsActive()) ) {
                    
88            $data['is_active'] = intval($this->getIsActive());
                    
                
TCPDFAdapter.php https://bitbucket.org/1blankz7/bibioteka.git | PHP | 499 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * DOMPDF - PHP5 HTML to PDF renderer
                    
4 *
                    
25 * Alternatively, you may distribute this software under the terms of the
                    
26 * PHP License, version 3.0 or later.  A copy of this license should have
                    
27 * been distributed with this file in the file LICENSE.PHP .  If this is not
                    
27 * been distributed with this file in the file LICENSE.PHP .  If this is not
                    
28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt.
                    
29 *
                    
39
                    
40/* $Id: tcpdf_adapter.cls.php 311 2010-09-05 20:02:01Z fabien.menager $ */
                    
41
                    
41
                    
42require_once(DOMPDF_LIB_DIR . '/tcpdf/tcpdf.php');
                    
43
                    
                
WebModeClientOracle.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 317 lines
                    
1<?php
                    
2/*
                    
20
                    
21require_once PHPRPC_ROOT . 'classes.php';
                    
22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php';
                    
22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php';
                    
23require_once PHPRPC_ROOT . 'derpc/rpcphptools.php';
                    
24
                    
24
                    
25require_once PHPRPC_ROOT . 'stream.php';
                    
26
                    
26
                    
27require_once PHPRPC_ROOT . 'derpc/WebModePayloadSink.php';
                    
28
                    
208		$toReturn = $this->operableFieldMap->get($clazz);
                    
209		if (!is_null($toReturn)) {
                    
210			return $toReturn;
                    
                
class-vc-edit-form-fields.php https://bitbucket.org/RickCalder/mcc.git | PHP | 328 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
111	protected function parseShortcodeAttributeValue( $param_settings, $value ) {
                    
112		if ( is_null( $value ) ) { // If value doesn't exists
                    
113			if ( isset( $param_settings['std'] ) ) {
                    
206		$deprecated = $this->setting( 'deprecated' );
                    
207		require_once vc_path_dir( 'AUTOLOAD_DIR', 'class-vc-settings-presets.php' );
                    
208		$list_vendor_presets = Vc_Settings_Preset::listVendorSettingsPresets( $this->tag );
                    
227				$name = isset( $param['param_name'] ) ? $param['param_name'] : null;
                    
228				if ( ! is_null( $name ) ) {
                    
229					$value = isset( $this->atts[ $name ] ) ? $this->atts[ $name ] : null;
                    
310	 * List of params stored in global variable $vc_params_list.
                    
311	 * Please check include/params/load.php for default params list.
                    
312	 * @since 4.4
                    
                
MultiSafepayTransaction.class.php https://bitbucket.org/multimedium/bob361.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
301		// Make sure the amount is set
                    
302		if(is_null($this->getAmount())) {
                    
303			throw new M_Exception(spintf(
                    
312		// to int casting issues:
                    
313		// http://php.net/manual/en/function.intval.php (post Ben L)
                    
314		return (int) (string) ($this->getAmount() * 100);
                    
                
PackageScaffolderAbstract.php https://PHPAzure.svn.codeplex.com/svn | PHP | 325 lines
                    
1<?php
                    
2/**
                    
30 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
31 * @license    http://phpazure.codeplex.com/license
                    
32 * @version    $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $
                    
37 */
                    
38require_once dirname(__FILE__) . '/../../../AutoLoader.php';
                    
39
                    
43 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
44 * @license    http://phpazure.codeplex.com/license
                    
45 */ 
                    
122		}
                    
123		file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
                    
124	}
                    
135		$phar->extractTo($path);
                    
136		@unlink($path . '/index.php');
                    
137		@unlink($path . '/build.bat');
                    
                
Message.php git://github.com/spotweb/spotweb.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
47		 */
                    
48		private $sApplication = 'ProwlPHP';
                    
49
                    
312		public function validate() {
                    
313			if (is_null($this->sEvent)) {
                    
314				throw new \InvalidArgumentException('Validation Error: Event is missing');
                    
                
Observer.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
104        $productIds = array_keys($collection->getItems());
                    
105        if (!is_null($limit) && $limit <= count($productIds)) {
                    
106            return $this;
                    
128
                    
129        if (!is_null($limit)) {
                    
130            $bundleCollection->setPageSize($limit);
                    
                
class-wc-connect-options.php https://bitbucket.org/spirulineteam/spiruline.git | PHP | 338 lines
                    
1<?php
                    
2
                    
309
                    
310			if ( is_null( $group ) || 'non_compact' === $group ) {
                    
311				if ( in_array( $name, self::get_option_names( $group ) ) ) {
                    
316			foreach ( array_keys( self::$grouped_options ) as $_group ) {
                    
317				if ( is_null( $group ) || $group === $_group ) {
                    
318					if ( in_array( $name, self::get_option_names( $_group ) ) ) {
                    
                
Currency.php https://bitbucket.org/brijesh_sn/finalezaars.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
183    {
                    
184        if (is_null($toCurrency)) {
                    
185            return $price;
                    
                
duplicates.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
52		// Lets load the content if it doesn't already exist
                    
53		if (is_null($this->_data))
                    
54		{
                    
                
ResourceTypeConfig.php git://github.com/forkcms/forkcms.git | PHP | 368 lines
                    
1<?php
                    
2/*
                    
233
                    
234        if (is_null($this->_config)) {
                    
235            $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
                    
240
                    
241            // First, check the last extension (ex. in file.php.jpg, the "jpg").
                    
242            if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) {
                    
259        else {
                    
260            // Check only the last extension (ex. in file.php.jpg, only "jpg").
                    
261            return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) );
                    
276    {
                    
277        if (is_null($this->_config)) {
                    
278            $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
                    
298    {
                    
299        if (is_null($this->_config)) {
                    
300            $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
                    
                
Store.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 510 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
449    {
                    
450        if (is_null($type)) {
                    
451            $this->_loadWebsiteCollection();
                    
                
html.php https://bitbucket.org/hugobraulio/dosxtremos.git | PHP | 589 lines
                    
1<?php namespace Gas\Extension;
                    
2
                    
169	{
                    
170		if (is_null($headings))
                    
171		{
                    
193
                    
194		if (is_null($this->table_headings)) $this->heading();
                    
195
                    
460
                    
461		if (is_null($this->form_definitions)) $this->definition();
                    
462
                    
                
CleanerHelper.php git://github.com/CakeDC/comments.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
84	public function configure($options) {
                    
85		if (is_null($options)) {
                    
86			return;
                    
                
API.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 340 lines
                    
1<?php
                    
2
                    
8 * @author Evert Pot (http://www.rooftopsolutions.nl/) 
                    
9 * @license http://code.google.com/p/dropbox-php/wiki/License MIT
                    
10 */
                    
121
                    
122        if (is_null($root)) $root = $this->root;
                    
123        $result = $this->oauth->fetch('http://api-content.dropbox.com/0/files/' . $root . '/' . ltrim($path,'/'));
                    
141        if($directory==='.') $directory = '';
                    
142        if (is_null($root)) $root = $this->root;
                    
143
                    
169
                    
170        if (is_null($root)) $root = $this->root;
                    
171        $response = $this->oauth->fetch('http://api.dropbox.com/0/fileops/copy', array('from_path' => $from, 'to_path' => $to, 'root' => $root));
                    
187
                    
188        if (is_null($root)) $root = $this->root;
                    
189
                    
                
assessment_results_table_overview_data_provider.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-assessment-dev/ | PHP | 218 lines
                    
1<?php
                    
2namespace application\weblcms\tool\assessment;
                    
26/**
                    
27 * $Id: assessment_results_table_overview_data_provider.class.php 216 2009-11-13 14:08:06Z kariboe $
                    
28 * @package application.lib.weblcms.tool.assessment.component.assessment_results_table_admin
                    
210        $c = Utilities :: query_to_condition($this->query);
                    
211        if (! is_null($c))
                    
212        {
                    
                
Sql.php git://github.com/noah-goodrich/gacela.git | PHP | 790 lines
                    
1<?php
                    
2/**
                    
516		// If its not an insert or an update, it might also be a delete
                    
517		if(!is_null($this->_delete)) {
                    
518			$sql = "DELETE FROM {$this->_delete}\n";
                    
692	{
                    
693		if(is_null($type)) {
                    
694			$type = 'inner';
                    
                
URI.php git://github.com/ezyang/htmlpurifier.git | PHP | 316 lines
                    
59    {
                    
60        $this->scheme = is_null($scheme) || ctype_lower($scheme) ? $scheme : strtolower($scheme);
                    
61        $this->userinfo = $userinfo;
                    
129        // and it is our default scheme.
                    
130        if (!is_null($this->scheme) && is_null($this->host) || $this->host === '') {
                    
131            // support for relative paths is pretty abysmal when the
                    
139        // validate username
                    
140        if (!is_null($this->userinfo)) {
                    
141            $encoder = new HTMLPurifier_PercentEncoder($chars_sub_delims . ':');
                    
177                }
                    
178            } elseif (!is_null($this->scheme)) {
                    
179                // path-rootless (hier)
                    
204
                    
205        if (!is_null($this->query)) {
                    
206            $this->query = $qf_encoder->encode($this->query);
                    
                
runner.php git://github.com/noonat/pecs.git | PHP | 182 lines
                    
1<?php
                    
2
                    
145            function run($formatter=null) {
                    
146                if (!is_null($formatter))
                    
147                    $this->formatter = $formatter;
                    
                
Stopwords.php git://github.com/thorsten/phpMyFAQ.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   PMF_Stopwords
                    
13 * @author    Anatoliy Belsky
                    
14 * @author    Matteo Scaramuccia <matteo@phpmyfaq.de>
                    
15 * @copyright 2009-2012 phpMyFAQ Team
                    
16 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
17 * @link      http://www.phpmyfaq.de
                    
18 * @since     2009-04-01
                    
20
                    
21if (!defined('IS_VALID_PHPMYFAQ')) {
                    
22    exit();
                    
                
list.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
174
                    
175			if (is_null($ret))
                    
176			{
                    
                
UserRepository.php https://bitbucket.org/ghanu/chope.git | PHP | 362 lines
                    
1<?php
                    
2
                    
306    {
                    
307        if (is_null($user->deleted_at)) {
                    
308            throw new GeneralException(__('exceptions.backend.access.users.delete_first'));
                    
332    {
                    
333        if (is_null($user->deleted_at)) {
                    
334            throw new GeneralException(__('exceptions.backend.access.users.cant_restore'));
                    
                
Client.php git://github.com/njh/easyrdf.git | PHP | 417 lines
                    
1<?php
                    
2namespace EasyRdf\Sparql;
                    
35 * @copyright  Copyright (c) Nicholas J Humfrey
                    
36 * @license    https://www.opensource.org/licenses/bsd-license.php
                    
37 */
                    
49 * @copyright  Copyright (c) Nicholas J Humfrey
                    
50 * @license    https://www.opensource.org/licenses/bsd-license.php
                    
51 */
                    
73
                    
74        if (strlen(parse_url($queryUri, PHP_URL_QUERY)) > 0) {
                    
75            $this->queryUri_has_params = true;
                    
164        $query = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s ?p ?o}}";
                    
165        if (!is_null($limit)) {
                    
166            $query .= " LIMIT ".(int)$limit;
                    
                
box.img.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2// $Header: /cvsroot/html2ps/box.img.php,v 1.50 2007/05/06 18:49:29 Konstantin Exp $
                    
24
                    
25  function is_null() { 
                    
26    return false; 
                    
123      $ascender  = $driver->font_ascender($font_name, 'iso-8859-1');
                    
124      if (is_null($ascender)) {
                    
125        error_log("ImgBox::reflow_text: cannot get font ascender");
                    
129      $descender = $driver->font_descender($font_name, 'iso-8859-1'); 
                    
130      if (is_null($descender)) {
                    
131        error_log("ImgBox::reflow_text: cannot get font descender");
                    
203    $status = $driver->setfont("Times-Roman", "iso-8859-1", $size);
                    
204    if (is_null($status)) {
                    
205      return null;
                    
248
                    
249    if (is_null($src_img)) {
                    
250      // image could not be opened, use ALT attribute
                    
                
sqlite_statement.c git://github.com/vpj/PHP-Extension-API.git | C | 366 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2009 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.01 of the PHP license,      |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
Comment.php git://github.com/croogo/croogo.git | PHP | 242 lines
                    
1<?php
                    
2
                    
12 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
13 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
14 * @link     http://www.croogo.org
                    
120		$foreignKey = (int)$foreignKey;
                    
121		$parentId = is_null($options['parentId']) ? null : (int)$options['parentId'];
                    
122		$userData = $options['userData'];
                    
132
                    
133		if (!is_null($parentId)) {
                    
134			if (
                    
                
Links.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
72    {
                    
73        if (is_null($this->_purchasedSeparatelyAttribute)) {
                    
74            $_attributeCode = 'links_purchased_separately';
                    
                
class.applicationmanager.php git://github.com/vanillaforums/Garden.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
134        $applicationInfo = val($applicationName, $this->availableApplications(), null);
                    
135        if (is_null($applicationInfo)) {
                    
136            return false;
                    
138
                    
139        if (!is_null($key)) {
                    
140            return getValueR($key, $applicationInfo, false);
                    
250    public function testApplication($applicationName) {
                    
251        // Add the application to the $EnabledApplications array in conf/applications.php
                    
252        $ApplicationInfo = arrayValueI($applicationName, $this->availableApplications(), []);
                    
264        if (!class_exists($hooks)) {
                    
265            $hooksPath = PATH_APPLICATIONS.DS.$ApplicationFolder.'/settings/class.hooks.php';
                    
266            if (file_exists($hooksPath)) {
                    
                
form.php https://github.com/vudduu/SaltenaSystem.git | PHP | 423 lines
                    
1<?php namespace System;
                    
2
                    
22	{
                    
23		$attributes['action'] = HTML::entities(URL::to(((is_null($action)) ? Request::uri() : $action), $https));
                    
24
                    
37		{
                    
38			$html .= PHP_EOL.static::input('hidden', 'REQUEST_METHOD', $method);
                    
39		}
                    
40
                    
41		return $html.PHP_EOL;
                    
42	}
                    
132
                    
133		return '<label for="'.$name.'"'.HTML::attributes($attributes).'>'.HTML::entities($value).'</label>'.PHP_EOL;
                    
134	}
                    
147
                    
148		return '<input'.HTML::attributes(array_merge($attributes, compact('type', 'name', 'value', 'id'))).'>'.PHP_EOL;
                    
149	}
                    
                
ShopifyCatalogFeedFileGenerator.php https://bitbucket.org/cdelacruz_sft/hitch.git | PHP | 322 lines
                    
1<?php
                    
2
                    
48                $vendor = VendorPeer::findByDivisionAndVendorName($host->getDivision(), $vendorName);
                    
49                if (is_null($vendor)) {
                    
50
                    
114                $itemColorCode = ItemColorCdPeer::findByDivisionAndColorDesc($host->getDivision(), $colorDesc);
                    
115                if (is_null($itemColorCode)) {
                    
116                    $colorCode = ($codeGenerator->generateCode(
                    
180                $itemSizeCode = ItemSizeCdPeer::findByDivisionAndSizeDesc($this->getDivision(), $sizeDesc);
                    
181                if (is_null($itemSizeCode)) {
                    
182                    $sizeCode = ($codeGenerator->generateCode(
                    
301            foreach ($item['skus'] as $sku) {
                    
302                if (is_null($sku['barcode']) || $sku['barcode'] == '') {
                    
303                    throw new Exception("SKU " . print_r($sku, TRUE) . " doesn't have a valid barcode.");
                    
                
IsType.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 177 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework_Constraint
                    
38 * @subpackage Framework_Constraint
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
51 *
                    
52 * @package    PHPUnit
                    
53 * @subpackage Framework_Constraint
                    
53 * @subpackage Framework_Constraint
                    
54 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
55 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
60 */
                    
61class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint
                    
62{
                    
                
LimeLexer.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 402 lines
                    
1<?php
                    
2
                    
13/**
                    
14 * Analyzes PHP scripts syntactically.
                    
15 *
                    
16 * You can extend this class if you want to write your own lexer that parses
                    
17 * a PHP file for specific information.
                    
18 *
                    
26 *
                    
27 * A lexer is stateless. This means that you can analyze any number of PHP
                    
28 * scripts with the same lexer instance.
                    
32 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
33 * @version    SVN: $Id: LimeLexer.php 25934 2009-12-27 20:44:07Z bschussek $
                    
34 */
                    
47  /**
                    
48   * Analyzes the given file or PHP code.
                    
49   *
                    
                
Links.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
72    {
                    
73        if (is_null($this->_purchasedSeparatelyAttribute)) {
                    
74            $_attributeCode = 'links_purchased_separately';
                    
                
FilterQuery.php git://github.com/basdenooijer/solarium.git | PHP | 221 lines
                    
1<?php
                    
2/**
                    
121    {
                    
122        if (!is_null($bind)) {
                    
123            $helper = new Helper;
                    
                
ApiQueryFilearchive.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 400 lines
                    
1<?php
                    
2/**
                    
8 * Copyright Ā© 2008 Vasiliev Victor vasilvv@gmail.com,
                    
9 * based on ApiQueryAllPages.php
                    
10 *
                    
81
                    
82		if ( !is_null( $params['continue'] ) ) {
                    
83			$cont = explode( '|', $params['continue'] );
                    
92		$from = ( $params['from'] === null ? null : $this->titlePartToKey( $params['from'], NS_FILE ) );
                    
93		if ( !is_null( $params['continue'] ) ) {
                    
94			$from = $params['continue'];
                    
204			}
                    
205			if ( $fld_archivename && !is_null( $row->fa_archive_name ) ) {
                    
206				$file['archivename'] = $row->fa_archive_name;
                    
389		return array(
                    
390			'api.php?action=query&list=filearchive' => array(
                    
391				'Simple Use',
                    
                
UrlHandler_Simple_Test.php git://github.com/ethna/ethna.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  UrlHandler_Simple_Test.php
                    
4 */
                    
5
                    
6require_once 'Ethna/class/UrlHandler/Simple.php';
                    
7
                    
204        $ret = $this->url_handler->actionToRequest($action, $param);
                    
205        $this->assertFalse(is_null($ret));
                    
206        list($path, $path_key) = $ret;
                    
222        $ret = $this->url_handler->actionToRequest($action, $param);
                    
223        $this->assertTrue(is_null($ret));
                    
224    }
                    
                
mysqli_stmt_affected_rows.php git://github.com/facebook/hiphop-php.git | PHP | 231 lines
                    
1<?php
                    
2	require_once("connect.inc");
                    
220
                    
221	if (!is_null($tmp = mysqli_stmt_affected_rows($stmt)))
                    
222		printf("[047] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
                    
227?>
                    
228<?php error_reporting(0); ?>
                    
229<?php
                    
                
LoggerOptionConverter.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 446 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
24 * @version $Revision: 31 $ 
                    
25 * @package log4php
                    
26 * @subpackage helpers
                    
79	public static function toBoolean($value, $default=true) {
                    
80		if (is_null($value)) {
                    
81			return $default;
                    
166	 * where <i>full_file_classname</i> means the class filename with path
                    
167	 * but without php extension, then the specified class' <i>toLevel()</i> method
                    
168	 * is called to process the specified level string; if no '#'
                    
                
Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
                    
1<?php
                    
2#################################################################
                    
210		if($this->submitted()) {
                    
211			if(is_null($this->bPersisted)) {
                    
212				throw new \Exception("\Formal\Form->persisted(): information is not available yet. This method may only be called after execute()");
                    
                
 

Source

Language