100+ results results for 'php is_null repo:triartdesign/ZanPHP' (351 ms)
1<?php 2/** 317 * 318 * PHP system touch doesn't work correctly with the compress.zlib file. 319 * 366 { 367 if ( !is_null( $this->fp ) ) 368 {HelperForm.php https://gitlab.com/staging06/myproject | 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-2015 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_,class.gdn.php https://github.com/dkobia/Garden.git | PHP | 397 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 196 $Config = self::Config($Config); 197 if(is_null($Alias)) 198 $Alias = $Config['Alias']; 225 $Config = self::Config($Config); 226 if(is_null($Alias)) 227 $Alias = $Config['Alias']; 245 246 if(!is_null($Value)) { 247 self::$_FactoryOverwrite = $Value; 275 public static function Locale() { 276 if(is_null(self::$_Locale)) 277 self::$_Locale = self::Factory(self::AliasLocale); 306 $Request = self::$_Request; //self::Factory(self::AliasRequest); 307 if (!is_null($NewRequest)) { 308 if(is_string($NewRequest))ApiQueryDeletedrevs.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 408 lines
81 foreach( array( 'from', 'to', 'prefix', /*'namespace',*/ 'continue', /*'unique'*/ ) as $p ) { 82 if ( !is_null( $params[$p] ) ) { 83 $this->dieUsage( "The '{$p}' parameter cannot be used in modes 1 or 2", 'badparams'); 87 foreach( array( 'start', 'end' ) as $p ) { 88 if ( !is_null( $params[$p] ) ) { 89 $this->dieUsage( "The {$p} parameter cannot be used in mode 3", 'badparams'); 93 94 if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) { 95 $this->dieUsage( 'user and excludeuser cannot be used together', 'badparams' ); 156 157 if ( !is_null( $params['user'] ) ) { 158 $this->addWhereFld( 'ar_user_text', $params['user'] ); 158 $this->addWhereFld( 'ar_user_text', $params['user'] ); 159 } elseif ( !is_null( $params['excludeuser'] ) ) { 160 $this->addWhere( 'ar_user_text != ' .ArrayTest.php https://github.com/gonzalobenitez/zf2.git | PHP | 348 lines
1<?php 2/** 32 33if (!defined('PHPUnit_MAIN_METHOD')) { 34 define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main'); 49 */ 50class ArrayTest extends \PHPUnit_Framework_TestCase 51{ 89 try { 90 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/failed.php', 'en'); 91 $this->fail('Exception expected'); 104 { 105 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/translation_en.php', 'en'); 106 $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1')); 114 { 115 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/translation_en.php', 'en'); 116 $this->assertTrue($adapter->isTranslated('Message 1'));Storage.php https://github.com/skoop/Gesichtbuch.git | PHP | 507 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Storage.php 6352 2010-08-16 15:02:45Z tpater $ 21 */ 25 */ 26// require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php'; 27 30 */ 31// require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php'; 32 35 */ 36// require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php'; 37 40 */ 41// require_once 'Zend/Service/WindowsAzure/Exception.php'; 42PostgresGrammar.php https://gitlab.com/fayimora/pp | PHP | 568 lines
1<?php 2 549 { 550 if (! is_null($column->default)) { 551 return ' default '.$this->getDefaultValue($column->default);HelperForm.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | 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-2016 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_,Product.php https://github.com/njaeger/magento_github.git | PHP | 441 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 145 { 146 if(is_null($this->_statuses)) { 147 $this->_statuses = array();//Mage::getModel('catalog/product_status')->getResourceCollection()->load(); 181 { 182 if (is_null($storeId)) { 183 $storeId = Mage::app()->getStore()->getId(); 224 225 if (is_null($inputType)) { 226 return $inputTypes;Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 315 foreach ($keys as $value) { 316 if (is_null($this->get($value))) { 317 return false; 353 354 return is_null($key) ? count($old) > 0 : ! is_null($old); 355 }Product.php https://github.com/edbull/magento.git | PHP | 441 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 */ 145 { 146 if(is_null($this->_statuses)) { 147 $this->_statuses = array();//Mage::getModel('catalog/product_status')->getResourceCollection()->load(); 181 { 182 if (is_null($storeId)) { 183 $storeId = Mage::app()->getStore()->getId(); 224 225 if (is_null($inputType)) { 226 return $inputTypes;class-wp-hook.php https://gitlab.com/VTTE/sitios-vtte | 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 *StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
1<?php 2 14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal 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 */ 35 * @package WindowsAzure\Common\Internal 36 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 37 * @copyright 2012 Microsoft Corporation 39 * @version Release: @package_version@ 40 * @link https://github.com/windowsazure/azure-sdk-for-php 41 */Grammar.php https://gitlab.com/Sigpot/AirSpot | 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))) {Entry.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 630 lines
14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal\Atom 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 */ 34 * @package WindowsAzure\Common\Internal\Atom 35 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 36 * @copyright 2012 Microsoft Corporation 523 { 524 if (!is_null($this->attributes)) { 525 if (is_array($this->attributes)) {VariableCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 345 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 { 331 * 332 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 333 * @param int $stackPtr The position where the double quoted 337 */ 338 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 339 {Store.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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) 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 */ 447 { 448 if (is_null($type)) { 449 $this->_loadWebsiteCollection();Store.php https://github.com/rgranadino/magento-mirror.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) 2011 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();WCCitation.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 326 lines
1<?php 2/** 149 $type = $this->reference->getProperty( $scope, $propertyEnumType ); 150 if ( is_null( $this->reference->getProperty( $scope, $propertyEnumTitle ) ) && is_null( $this->getProperty( $scope, $propertyEnumType ) ) ) { 151 $this->reference->setProperty( $scope, $propertyEnumTitle, new WCTitle( $value ) ); 206 if ( $match ) { 207 if ( is_null( $this->reference->getNames( $scope, $nameEnum ) ) ) { 208 $this->reference->setNames( $scope, $nameEnum, new WCNames() );class-wp-hook.php https://gitlab.com/WPonEB/WPonEB | PHP | 510 lines
392 * 393 * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php 394 * 406 * 407 * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php 408 * 420 * 421 * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php 422 * 438 * 439 * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php 440 * 451 * 452 * @link https://secure.php.net/manual/en/iterator.current.php 453 *Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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;class-yoast-notification-center.php https://gitlab.com/iamgraeme/royalmile | PHP | 568 lines
1<?php 2/** 93 94 $user_id = ( ! is_null( $user_id ) ? $user_id : get_current_user_id() ); 95 $dismissal_key = $notification->get_dismissal_key(); 195 $present_notification = $this->get_notification_by_id( $notification_id ); 196 if ( ! is_null( $present_notification ) ) { 197 $this->remove_notification( $present_notification, false ); 199 200 if ( is_null( $present_notification ) ) { 201 $this->new[] = $notification_id;exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
1<?php 2/** 11 * @copyright 2005-2009, TestLink community 12 * @version CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $ 13 * @link http://www.teamst.org/index.php 34/** 35 * @uses common.php required basic environment (configuration and core libraries) 36 **/ 36 **/ 37require_once('common.php'); 38 91 $cf_map = $cfield_mgr->get_linked_cfields_at_execution($exec_signature->tproject_id,$ENABLED,'testcase'); 92 $has_custom_fields = is_null($cf_map) ? 0 : 1; 93 213 // BUGID 3440 - added is_object() check 214 if( !is_null($map) && is_object($bug_interface)) 215 {AbstractPaginator.php https://gitlab.com/zan_zan/laravel_sample | PHP | 487 lines
1<?php 2 154 { 155 if (is_null($fragment)) { 156 return $this->fragment;Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 334 // If we passed max decimals 335 if ( ! is_null( $max_decimals ) ) { 336 $max = max( $max_decimals, $max );playlist.c https://github.com/GazNicoll/libspotify-php.git | C | 322 lines
25 26#include "php_spotify.h" 27 29 30PHP_METHOD(SpotifyPlaylist, __construct) 31{ 52 53PHP_METHOD(SpotifyPlaylist, __destruct) 54{ 58 59PHP_METHOD(SpotifyPlaylist, getName) 60{ 66 67PHP_METHOD(SpotifyPlaylist, getTracks) 68{helper.php https://github.com/dg482/joomla-platform.git | PHP | 523 lines
1<?php 2/** 54 // If we didn't find it, and the name is mod_something, create a dummy object 55 if (is_null($result) && substr($name, 0, 4) == 'mod_') 56 { 124 125 return !is_null($result); 126 } 161 $module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module); 162 $path = JPATH_BASE . '/modules/' . $module->module . '/' . $module->module . '.php'; 163 187 188 include_once JPATH_THEMES . '/system/html/modules.php'; 189 $chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/modules.php'; 264 // Build the template and base path for the layout 265 $tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php'; 266 $bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php';PluginInfo.php https://gitlab.com/fabiorf/chat | PHP | 383 lines
1<?php 2/* 74 { 75 if (is_null($this->pluginState)) { 76 $state = State::loadByName($this->pluginName); 98 { 99 if (!is_null($this->pluginState)) { 100 if ($this->pluginState->id) { 114 { 115 if (is_null($this->pluginClass)) { 116 $this->pluginClass = Utils::getPluginClassName($this->pluginName);AttributeController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 374 lines
1<?php 2/** 51 { 52 if (is_null($this->_entityType)) { 53 $this->_entityType = Mage::getSingleton('eav/config')->getEntityType('customer_address');SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2012 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 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 115 if ($cellResult === FALSE) { 116 throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); 117 }User_agent.php https://github.com/usagi-project/mynets1.git | PHP | 500 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 * 65 66 if ( ! is_null($this->agent)) 67 {editer_article.php https://github.com/denisbz/SPIP.git | PHP | 356 lines
1<?php 2 18 $err=""; 19 if (is_null($arg)){ 20 $securiser_action = charger_fonction('securiser_action', 'inc');str.php https://bitbucket.org/codeyash/bootstrap.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; 131Store.php https://github.com/gryzz/crystal_magento.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();SqliteMetadata.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 392 lines
1<?php 2/** 92 'column_default' => $row['dflt_value'], 93 'is_nullable' => !((bool) $row['notnull']), 94 'data_type' => $row['type'],str.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2012 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; 131arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
1<?php 2/** 262 // Handle the default case 263 if (is_null($result)) 264 { 436 * 437 * @see http://php.net/manual/en/function.array-unique.php 438 * @since 11.2admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 135 // No parent around? Do what you like 136 if (is_null($parent_id)) 137 {ImagesController.php https://gitlab.com/jensdwul1/nmdad3.local | PHP | 362 lines
1<?php 2 335 if ($form->isValid()) { 336 $statusCode = is_null($image->getId()) ? Response::HTTP_CREATED : Response::HTTP_NO_CONTENT; 337field.taglist.php https://github.com/nils-werner/symphony-2.git | PHP | 468 lines
1<?php 2 /** 5 6 require_once FACE . '/interface.exportablefield.php'; 7 require_once FACE . '/interface.importablefield.php'; 153 154 $fields['pre_populate_source'] = (is_null($this->get('pre_populate_source')) ? NULL : implode(',', $this->get('pre_populate_source'))); 155 $fields['validator'] = ($fields['validator'] == 'custom' ? NULL : $this->get('validator'));postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
1<?php 2/** 326 327 if (is_null($this->forUpdate)) 328 { 353 354 if (is_null($this->forShare)) 355 { 479 480 if (is_null($this->noWait)) 481 { 498 { 499 if (is_null($this->limit)) 500 { 517 { 518 if (is_null($this->offset)) 519 {EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 74//needed when creating a new case with default values passed in 75if(isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { 76 $focus->contact_name = $_REQUEST['contact_name']; 77} 78if(isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) { 79 $focus->contact_id = $_REQUEST['contact_id']; 80} 81if(isset($_REQUEST['parent_name']) && is_null($focus->parent_name)) { 82 $focus->parent_name = $_REQUEST['parent_name']; 83} 84if(isset($_REQUEST['parent_id']) && is_null($focus->parent_id)) { 85 $focus->parent_id = $_REQUEST['parent_id'];queues.php https://gitlab.com/xivo.solutions/xivo-web-interface | PHP | 412 lines
1<?php 2 137 { 138 if(!is_null($result['queue']['joinempty'])) 139 $result['queue']['joinempty'] = explode(',', $result['queue']['joinempty']); 140 141 if(!is_null($result['queue']['leavewhenempty'])) 142 $result['queue']['leavewhenempty'] = explode(',', $result['queue']['leavewhenempty']); 279 280 if(!is_null($return['queue']['joinempty'])) 281 $return['queue']['joinempty'] = explode(',', $return['queue']['joinempty']); 282 283 if(!is_null($return['queue']['leavewhenempty'])) 284 $return['queue']['leavewhenempty'] = explode(',', $return['queue']['leavewhenempty']);InputDocument.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 316 lines
1<?php 2/** 2/** 3 * InputDocument.php 4 * 27 28require_once 'classes/model/om/BaseInputDocument.php'; 29require_once 'classes/model/Content.php'; 67 $oInputDocument = InputDocumentPeer::retrieveByPK( $sInpDocUid ); 68 if (! is_null( $oInputDocument )) { 69 $aFields = $oInputDocument->toArray( BasePeer::TYPE_FIELDNAME ); 85 $oInputDocument = InputDocumentPeer::retrieveByPK( $sInpDocUid ); 86 if (is_null( $oInputDocument )) { 87 return false; 155 $oInputDocument = InputDocumentPeer::retrieveByPK( $aData['INP_DOC_UID'] ); 156 if (! is_null( $oInputDocument )) { 157 $oInputDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );fortissimo.php https://github.com/zorkian/fortissimo.git | PHP | 329 lines
1<?php 2 3 # include needful things 4 require_once("config.php"); # better be in the same path as us...! 5 6 # bring in object classes 7 require_once("EVEObject.php"); 8 require_once("EVERegion.php"); 8 require_once("EVERegion.php"); 9 require_once("EVEConstellation.php"); 10 require_once("EVESystem.php"); 12 # extra things we need to run 13 require_once("db.php"); 14 require_once("user.php"); 14 require_once("user.php"); 15 require_once("eveheader.php"); 16 require_once("session.php");Triggers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 360 lines
1<?php 2/** 2/** 3 * Triggers.php 4 * @package workflow.engine.classes.model 26 27require_once 'classes/model/Content.php'; 28require_once 'classes/model/om/BaseTriggers.php'; 129 $oRow = TriggersPeer::retrieveByPK( $TriUid ); 130 if (!is_null($oRow)) { 131 $aFields = $oRow->toArray(BasePeer::TYPE_FIELDNAME); 234 $oTri = TriggersPeer::retrieveByPK( $TriUid ); 235 if (!is_null($oTri)) { 236 Content::removeContent( 'TRI_TITLE', '', $this->getTriUid()); 269 { 270 require_once "classes/model/Event.php"; 271 require_once "classes/model/StepTrigger.php";Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 347 lines
1<?php 2/** 14 * Sales Rules resource collection model. 15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 16 */ 126 * @use $this->addWebsiteGroupDateFilter() 127 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 128 * @return $this 216 if (!$this->getFlag('website_group_date_filter')) { 217 if (is_null($now)) { 218 $now = $this->_date->date()->format('Y-m-d');class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
1<?php 2/** 77 $this->config = Config::getInstance(); 78 if(is_null(self::$pdo)) { 79 self::$pdo = $this->connect(); 156 foreach( $columns as $column) { 157 $field_value = (! is_null($args)) && isset( $args[ $column['Field'] ]) ? $args[ $column['Field'] ] : null; 158 if( isset($column['Key']) && $column['Key'] == 'UNI' && ! $field_value) {submissionsoap.class.php https://github.com/danmarsden/moodle-plagiarism_turnitin.git | PHP | 236 lines
1<?php 2/* @ignore 6 7require_once( 'soap.class.php' ); 8require_once( 'tiisubmission.class.php' ); 8require_once( 'tiisubmission.class.php' ); 9require_once( 'response.class.php' ); 10require_once( 'sdkexception.class.php' ); 217 $value = ( gettype( $value ) == 'boolean' ) ? (integer)$value : $value; 218 if (!is_null($value)) { 219 $request['resultRecord']['result']['extension']['extensionField'][$i]['fieldName'] = $name;file_info_context_module.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 347 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 141 142 $filepath = is_null($filepath) ? '/' : $filepath; 143 $filename = is_null($filename) ? '.' : $filename; 152 153 $urlbase = $CFG->wwwroot.'/pluginfile.php'; 154 return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('moduleintro'), false, true, true, false); 173 174 $filepath = is_null($filepath) ? '/' : $filepath; 175 $filename = is_null($filename) ? '.' : $filename; 187 188 $urlbase = $CFG->wwwroot.'/pluginfile.php'; 189 return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('activitybackup', 'repository'), false, $downloadable, $uploadable, false);class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 316 317 if ( is_null( $s ) || 'null' === $s ) { 318 return "{$field_name} IS NULL"; 331 332 if ( is_null( $d ) || 'null' === $d ) { 333 return "{$field_name} IS NULL";Socket.php https://bitbucket.org/acidel/buykoala.git | PHP | 537 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 249 * 250 * @param string $uri ex. http://google.com/index.php?a=b 251 * @return string ex. /index.php?a=b 328 list($key, $val) = explode("=", $values[0]); 329 if(is_null($val)) { 330 continue; 355 list($key, $val) = explode("=", $values[0]); 356 if(is_null($val)) { 357 continue;lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 305 lines
1<?php 2 79 global $CFG; 80 require_once("$CFG->libdir/resourcelib.php"); 81 88 // fix invalid null popup and options data 89 if (!array_key_exists('popup', $data) or is_null($data['popup'])) { 90 $data['popup'] = ''; 91 } 92 if (!array_key_exists ('options', $data) or is_null($data['options'])) { 93 $data['options'] = ''; 113 // use the version of the successor instead of the current mod/resource 114 // beware - the version.php declares info via $module object, do not use 115 // a variable of such name here 116 $module = new stdClass(); 117 include $CFG->dirroot.'/mod/'.$successor->get_modname().'/version.php'; 118 $cminfo['version'] = $module->version;list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
1<?php 2/** 174 175 if (is_null($ret)) 176 {downloadalbum.php https://github.com/zcopley/gallery3-contrib.git | PHP | 300 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 */error_report.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 364 lines
16 */ 17if (is_readable('js/line_counts.php')) { 18 include_once 'js/line_counts.php'; 60 "configuration_storage" => 61 is_null($relParams['db']) ? "disabled" : 62 "enabled", 62 "enabled", 63 "php_version" => phpversion() 64 ); 83 } 84 } elseif ($exception_type == 'php') { 85 $errors = array(); 85 $errors = array(); 86 // create php error report 87 $i = 0;tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php';tcpdf_adapter.cls.php https://gitlab.com/devdoblea/factutextil.local | PHP | 498 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'); 43editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 104 /// paso 1, eliminamos los asientos asociados 105 if( !is_null($this->factura->idasiento) ) 106 {class-vc-edit-form-fields.php https://gitlab.com/rubengrb/ws.vidrialum | 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.4Client.php https://github.com/Exercise/zf2.git | PHP | 331 lines
1<?php 2/** 217 { 218 if (!is_null($method)) { 219 $this->setMethod($method);SfObjectBuilder.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 392 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);linea_albaran_cliente.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 509 lines
1<?php 2/* 6 7require_model('articulo.php'); 8require_model('albaran_cliente.php'); 233 { 234 return 'index.php?page=ventas_albaran&id='.$this->idalbaran; 235 } 238 { 239 if( is_null($this->referencia) OR $this->referencia == '') 240 { 240 { 241 return "index.php?page=ventas_articulos"; 242 } 243 else 244 return "index.php?page=ventas_articulo&ref=".urlencode($this->referencia); 245 }Engine.php https://github.com/xoops-pi/engine.git | PHP | 287 lines
1<?php 2/** 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @author Taiwen Jiang <phppp@users.sourceforge.net> 15 * @since 3.0 30 */ 31require SMARTY_DIR . 'Smarty.class.php'; 32 39 if (substr($_class, 0, 16) === 'smarty_internal_' || $_class == 'smarty_security') { 40 return SMARTY_SYSPLUGINS_DIR . $_class . '.php'; 41 } 106 $segs = array(); 107 $segs[] = is_null($module_dirname) 108 ? XOOPS::config('identifier') 109 : $module_dirname; 110 $segs[] = is_null($theme_set) 111 ? XOOPS::config('theme_set')User.php https://github.com/weburnit/magento-lite.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());Observer.php https://github.com/speedupmate/Magento-CE-Mirror.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-2020 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);interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
27 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_download_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> | 28 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_delete_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a> 29 71 function hmbkp_safe_mode_warning() { 72 echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>'; 73 } 119 if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) ) 120 $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] ); 121 251 <?php if ( $schedule->get_type() !== 'database' ) { ?> 252 <a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a> | 253 <?php } ?> 254 255 <a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a> | 256Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 222 // listeners. Otherwise we will add the response on the response list. 223 if ( ! is_null($response) && $halt) 224 {User_agent.php https://gitlab.com/RikaPM/manik | 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 {builtin-functions.h https://github.com/tstarling/hiphop-php.git | C Header | 376 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 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 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_BUILTIN_FUNCTIONS_H_ 18#define incl_HPHP_BUILTIN_FUNCTIONS_H_Socket.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 537 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 */ 249 * 250 * @param string $uri ex. http://google.com/index.php?a=b 251 * @return string ex. /index.php?a=b 328 list($key, $val) = explode("=", $values[0]); 329 if(is_null($val)) { 330 continue; 355 list($key, $val) = explode("=", $values[0]); 356 if(is_null($val)) { 357 continue;progressive_parser.class.php https://github.com/kpike/moodle.git | PHP | 283 lines
1<?php 2 51 * 52 * TODO: Finish phpdocs 53 */ 55 56 protected $xml_parser; // PHP's low level XML SAX parser 57 protected $file; // full path to file being progressively parsed | => mutually exclusive 130 } 131 if (is_null($this->xml_parser)) { 132 throw new progressive_parser_exception('progressive_parser_already_used');Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 118 { 119 if (is_null($this->_queryText)) { 120 $this->_queryText = $this->_getRequest()->getParam($this->getQueryParamName());CacheBase.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 368 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 voidURI.php https://gitlab.com/unofficial-mirrors/moodle | 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);Settings.php https://gitlab.com/team_fsn/fsn-php | PHP | 387 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Settings 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 35} 118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 120 * @return boolean Success or failure 138 * for Zip file management 139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 140 */class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/cakra | PHP | 429 lines
1<?php 2 153 function error( $error = null ) { 154 if ( !is_null( $error ) ) { 155 $this->error = $error; 340 $url = (string) $json_api_args[1]; 341 $post_body = is_null( $json_api_args[2] ) ? null : (string) $json_api_args[2]; 342 $user_details = (array) $json_api_args[4]; 404 // needed? 405 require_once ABSPATH . 'wp-admin/includes/admin.php'; 406 406 407 require_once JETPACK__PLUGIN_DIR . 'class.json-api.php'; 408 $api = WPCOM_JSON_API::init( $method, $url, $post_body ); 409 $api->token_details['user'] = $user_details; 410 require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php'; 411NpgsqlSchema.cs https://github.com/iainlane/mono.git | C# | 286 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"); 221Data.php https://github.com/arush/desparation-deprecated.git | PHP | 309 lines
1<?php 2class Evogue_Customer_Helper_Data extends Mage_Core_Helper_Abstract { 182 183 if (is_null($inputType)) { 184 return $inputTypes;Collection.php https://github.com/rgranadino/magento-mirror.git | PHP | 468 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 234 { 235 if (is_null($store)) { 236 $store = Mage::app()->getStore()->getId(); 330 * wishlist product collection 331 * - this method is useless because we can calculate days in php, and don't use MySQL for it 332 * 457 public function getItemsQty(){ 458 if (is_null($this->_itemsQty)) { 459 $this->_itemsQty = 0;Cache.php https://gitlab.com/jslee1/PrestaShop | PHP | 400 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-2015 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 258 259 if (is_null($this->sql_tables_cached)) { 260 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 323 { 324 if (is_null($this->sql_tables_cached)) { 325 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 362 { 363 // PHP is not efficient at storing array 364 // Better delete the whole cache if there areclass-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
1<?php 2/** 32 // Check cart class is loaded or abort 33 if ( is_null( WC()->cart ) ) { 34 return; 50 51 wc_get_template( 'myaccount/form-login.php' ); 52 90 91 wc_get_template( 'myaccount/my-account.php', array( 92 'current_user' => get_user_by( 'id', get_current_user_id() ), 266 if ( empty( $wp_hasher ) ) { 267 require_once ABSPATH . 'wp-includes/class-phpass.php'; 268 $wp_hasher = new PasswordHash( 8, true ); 310 if ( empty( $wp_hasher ) ) { 311 require_once ABSPATH . 'wp-includes/class-phpass.php'; 312 $wp_hasher = new PasswordHash( 8, true );DatabaseHandle.php https://gitlab.com/tomgidden/php-DatabaseObject | PHP | 375 lines
1<?php 2 /* DatabaseHandle 6 7require_once('DatabaseObject/common/vars.php'); 8 19 * 20 * The prepared query caching may not be necessary, as I think DB.php 21 * does this itself. 50 // If there is no DSN, and there's a global one defined, use it. 51 if(is_null($dsn)) 52 if(defined('DSN')) 171 // Remove the stupid SQL dump at the start of the message 172 if(!is_null($msg)) 173 if(preg_match('/^.*?\[nativecode=([^\]]+)\]$/', $msg, $parts)) 181 // If $msg is still null, then everything's fine 182 if(is_null($msg)) { 183 $this->sqllog[] = array(true, $end-$start, $sql, $params, null);install.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 259 lines
20 <h2>Error: PHP is not running</h2> 21 <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p> 22</body> 66<body class="wp-core-ui<?php if ( is_rtl() ) echo ' rtl'; ?>"> 67<h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1> 68 152$mysql_version = $wpdb->db_version(); 153$php_compat = version_compare( $php_version, $required_php_version, '>=' ); 154$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); 156if ( !$mysql_compat && !$php_compat ) 157 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); 158elseif ( !$php_compat ) 158elseif ( !$php_compat ) 159 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); 160elseif ( !$mysql_compat )Lexer.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 298 lines
1<?php 2 87 88 if (is_null($lexer)) { do { 89 // auto-detection algorithm 129 130 // once PHP DOM implements native line numbers, or we 131 // hack out something using XSLT, remove this stipulationMethodProphecySpec.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 342 lines
1<?php 2 4 5use PhpSpec\ObjectBehavior; 6use Prophecy\Argument\ArgumentsWildcard; 57 58 function its_constructor_does_not_touch_third_argument_if_it_is_null($objectProphecy) 59 {overview_table.php https://github.com/kpike/moodle.git | PHP | 349 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 128 protected function format_average($record, $question = false) { 129 if (is_null($record->grade)) { 130 $average = '-'; 138 return $average; 139 } else if (is_null($record->numaveraged)) { 140 return html_writer::tag('span', html_writer::tag('span', 221 } 222 return html_writer::link(new moodle_url('/mod/quiz/review.php', 223 array('attempt' => $attempt->attempt)), $grade, 229 * @param object $attempt the row of data - see the SQL in display() in 230 * mod/quiz/report/overview/report.php to see what fields are present, 231 * and what they are called. 248 $grade = '-'; 249 } else if (is_null($stepdata->fraction)) { 250 if ($state == question_state::$needsgrading) {ApiQueryAllpages.php https://github.com/daevid/MWFork.git | PHP | 335 lines
1<?php 2/** 28 // Eclipse helper - will be ignored in production 29 require_once( 'ApiQueryBase.php' ); 30} 82 $dir = ( $params['dir'] == 'descending' ? 'older' : 'newer' ); 83 $from = ( is_null( $params['from'] ) ? null : $this->titlePartToKey( $params['from'] ) ); 84 $to = ( is_null( $params['to'] ) ? null : $this->titlePartToKey( $params['to'] ) ); 90 91 if ( is_null( $resultPageSet ) ) { 92 $selectFields = array( 182 183 if ( is_null( $resultPageSet ) ) { 184 $title = Title::makeTitle( $row->page_namespace, $row->page_title ); 199 200 if ( is_null( $resultPageSet ) ) { 201 $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'p' );controller.php https://github.com/md-tech/openemr.git | PHP | 301 lines
1<?php 2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com> 13 $rule = $this->getRuleManager()->getRule( $ruleId ); 14 if (is_null($rule)) { 15 $rule = $this->getRuleManager()->newRule(); 18 $this->viewBean->rule = $rule; 19 $this->set_view( "summary.php" ); 20 } 25 $title = _post('fld_title'); 26 if ( is_null($rule_id)) { 27 // its a new rule submit 30 // redirect to the intervals page 31 $this->redirect("index.php?action=edit!intervals&id=$ruleId"); 32 } else { 32 } else { 33 $this->redirect("index.php?action=detail!view&id=$ruleId"); 34 }ProblemsetIdentityRequest.php https://github.com/omegaup/omegaup.git | PHP | 374 lines
1<?php 2/** ************************************************************************ * 73 ( 74 !is_null($Problemset_Identity_Request->accepted) ? 75 intval($Problemset_Identity_Request->accepted) : 114 ( 115 is_null($Problemset_Identity_Request->accepted) ? 116 null : 120 ( 121 is_null($Problemset_Identity_Request->identity_id) ? 122 null : 125 ( 126 is_null($Problemset_Identity_Request->problemset_id) ? 127 null : 280 '; 281 if (!is_null($orden)) { 282 $sql .= (class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 49 $row = mysqli_fetch_row($res); 50 return is_null($row) ? 0 : $row[0]; 51 } 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))SalesForceClient.php https://github.com/gotham-city-drupal/Houston.git | PHP | 523 lines
1<?php 2 3require_once 'Houston/Controllers/Controller.php'; 4require_once 'Houston/Controllers/Salesforce/phptoolkit/soapclient/SforceEnterpriseClient.php'; 5require_once 'Houston/Application.php'; 82 83 if (is_null(self::$instance)) { 84 self::$instance = new self(array('db' => Zend_Registry::get('drupal_db'), 'wsdlFilename' => Zend_Registry::get('wsdlFilename')));SpecialExport.php https://github.com/abma/spring-website.git | PHP | 414 lines
1<?php 2# Copyright (C) 2003-2008 Brion Vibber <brion@pobox.com> 101 } 102 if ( !is_null( $offset ) ) { 103 $history['offset'] = $offset; 266 $title = Title::newFromText( $page ); 267 if( is_null( $title ) ) continue; #TODO: perhaps output an <error> tag or something. 268 if( !$title->userCanRead() ) continue; #TODO: perhaps output an <error> tag or something.translations.php https://bitbucket.org/lordmuffin/origin.git | PHP | 275 lines
1<?php 2/** 4 * 5 * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/entry.php'; 11 143 function gettext_select_plural_form($count) { 144 if (!isset($this->_gettext_select_plural_form) || is_null($this->_gettext_select_plural_form)) { 145 list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms')); 175 * Adds parantheses to the inner parts of ternary operators in 176 * plural expressions, because PHP evaluates ternary oerators from left to right 177 *Debug.php https://github.com/hinablue/TextCube.git | PHP | 479 lines
1<?php 2/// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation 94 global $__tcSqlLog, $__tcSqlQueryBeginTime, $__tcSqlLogCount, $__tcPageStartTime, $__tcPageEndTime; 95 if (is_null($description)) { 96 $description = 'Point';CleanerHelper.php https://github.com/bmcclure/CakePHP-Utils-Plugin.git | PHP | 452 lines
1<?php 2/** 8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 91 public function configure($options) { 92 if (is_null($options)) { 93 return;Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 189 { 190 if (!is_null($store)) { 191 $this->getSelect()->where('relation.store_id IN (?)', $store); 268 269 if (!is_null($storeId)) { 270 $condition[] = $this->getConnection()->quoteInto('prelation.store_id = ?', $storeId); 349 350 if (!is_null($storeId)) { 351 $tagsCollection->addStoreFilter($storeId);lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
1<?php 2 26 ); 27 if (is_null($conn)) { 28 return array("status" => self::ERROR, 48 $assoc_column = 'ticket'; 49 if (is_null($conn)) { 50 return array("status" => self::ERROR, 67 $conn = $conn ?: Persistence::get_database_object(); 68 if (is_null($conn)) { 69 return array("status" => self::ERROR, 87 $table_name = 'jira'; 88 if (is_null($conn)) { 89 return array("status" => self::ERROR, 105 $conn = $conn ?: Persistence::get_database_object(); 106 if (is_null($conn)) { 107 return array("status" => self::ERROR,mysqli_stmt_affected_rows.php https://gitlab.com/iranjith4/hhvm | 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<?phpMoveFiles.php https://gitlab.com/shinvdu/ad | PHP | 278 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 25 110 // check #2 (resource type) 111 if (is_null($_resourceTypeConfig[$type])) { 112 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);SpecialContact.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 441 lines
1<?php 2/** 3 * Speclial:Contact, a contact form for visitors. 4 * Based on SpecialEmailUser.php 5 * 46 $nu = User::newFromName( $wgContactUser ); 47 if( is_null( $nu ) || !$nu->canReceiveEmail() ) { 48 wfDebug( "Target is invalid user or can't receive.\n" );ElementDef.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 216 lines
1<?php 2 185 } 186 if (!is_null($def->child)) { 187 $this->child = $def->child; 188 } 189 if (!is_null($def->formatting)) { 190 $this->formatting = $def->formatting;ConfigFile.class.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 503 lines
12 * 13 * @package phpMyAdmin 14 */ 17 /** 18 * Stores default PMA config from config.default.php 19 * @var array 79 $cfg = &$this->cfg; 80 include './libraries/config.default.php'; 81 $cfg['fontsize'] = '82%'; 87 $cfg_db = &$this->cfgDb; 88 include './libraries/config.values.php'; 89 294 * Returns default config value or $default it it's not set ie. it doesn't 295 * exist in config.default.php ($cfg) and config.values.php 296 * ($_cfg_db['_overrides'])Validator.php https://bitbucket.org/hamaswa/destinationgreece.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) {Download.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 317 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 */ 93 94 if (is_null($this->_handle)) { 95 if ($this->_linkType == self::LINK_TYPE_URL) {inline_renderer.cls.php https://bitbucket.org/fusioninvoice_it/fusioninvoice.git | PHP | 191 lines
1<?php 2/** 6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 * @version $Id: inline_renderer.cls.php 448 2011-11-13 13:00:03Z fabien.menager $ 8 */ 47 48 if ( !is_null($w) && $child_x < $x + $w ) { 49 //This branch seems to be supposed to being called on the first part 106 107 if ( is_null($w) ) 108 $w = $child_w;compras_recibo.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 370 lines
1<?php 2 7 8require_model('asiento.php'); 9require_model('cuenta_banco.php'); 9require_model('cuenta_banco.php'); 10require_model('cuenta_banco_proveedor.php'); 11require_model('ejercicio.php'); 11require_model('ejercicio.php'); 12require_model('factura_proveedor.php'); 13require_model('forma_pago.php'); 13require_model('forma_pago.php'); 14require_model('pago_recibo_proveedor.php'); 15require_model('partida.php'); 15require_model('partida.php'); 16require_model('proveedor.php'); 17require_model('recibo_factura.php');index.php https://bitbucket.org/gopchu/gopchu.org.git | PHP | 421 lines
12 13 //require_once('markdown.php'); 14 23 if (!isset($BASE_URL)) { $BASE_URL = "/wigit"; } 24 if (!isset($SCRIPT_URL)) { $SCRIPT_URL = "$BASE_URL/index.php?r="; } 25 if (!isset($TITLE)) { $TITLE = "WiGit"; } 79 function getHTTPUser() { 80 // This code is copied from phpMyID. Thanks to the phpMyID dev(s). 81 if (function_exists('apache_request_headers') && ini_get('safe_mode') == false) { 87 $hdr = $_SERVER['HTTP_AUTHORIZATION']; 88 } elseif (isset($_ENV['PHP_AUTH_DIGEST'])) { 89 $hdr = $_ENV['PHP_AUTH_DIGEST']; 97 : $hdr; 98 if (!is_null($digest)) { 99 $hdr = array();Indexer.php https://bitbucket.org/acidel/buykoala.git | PHP | 309 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 82 { 83 if (is_null($store)) { 84 $this->_getResource()->prepareFlatTables(); 105 { 106 if (is_null($store)) { 107 foreach (Mage::app()->getStores() as $store) { 129 { 130 if (is_null($store)) { 131 foreach (Mage::app()->getStores() as $store) {ApiQueryUserInfo.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 248 lines
1<?php 2/** 28 // Eclipse helper - will be ignored in production 29 require_once( 'ApiQueryBase.php' ); 30} 48 49 if ( !is_null( $params['prop'] ) ) { 50 $this->prop = array_flip( $params['prop'] ); 104 if ( isset( $this->prop['preferencestoken'] ) && 105 is_null( $this->getMain()->getRequest()->getVal( 'callback' ) ) 106 ) { 124 $auth = $wgUser->getEmailAuthenticationTimestamp(); 125 if ( !is_null( $auth ) ) { 126 $vals['emailauthenticated'] = wfTimestamp( TS_ISO_8601, $auth ); 175 foreach ( $categories as $cat ) { 176 if ( isset( $limits[$cat] ) && !is_null( $limits[$cat] ) ) { 177 $retval[$action][$cat]['hits'] = intval( $limits[$cat][0] );pdo_mysql_prepare_native.php https://github.com/tstarling/hiphop-php.git | PHP | 332 lines
1<?php 2 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); 36 37 if (is_null($input_params)) 38 $input_params = array(); 327?> 328<?php 329require dirname(__FILE__) . '/mysql_pdo_test.inc';GetCharactersCharacterIdPlanetsPlanetIdOkRoutes.php https://gitlab.com/mglinski/php-esi-lib | PHP | 398 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 366 { 367 if (is_null($offset)) { 368 $this->container[] = $value;