100+ results results for 'php is_null repo:Rahisi/database' (245 ms)
1<?php 2 178 if ($column['Null'] === 'NO') $sql .= " NOT NULL "; 179 if (!is_null($column['Default'])) $sql .= " DEFAULT \\'{$column['Default']}\\' "; 180 }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 $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;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 *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 */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"); 221ESAPI.php http://owasp-esapi-php.googlecode.com/svn/trunk/ | PHP | 444 lines
1<?php 2/** 7 * 8 * PHP version 5.2 9 * 19 * @copyright 2009-2010 The OWASP Foundation 20 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 21 * @version SVN: $Id$ 21 * @version SVN: $Id$ 22 * @link http://www.owasp.org/index.php/ESAPI 23 */ 38 * @copyright 2009-2010 The OWASP Foundation 39 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 40 * @version Release: @package_version@ 40 * @version Release: @package_version@ 41 * @link http://www.owasp.org/index.php/ESAPI 42 */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 */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 {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;Validator.php https://code.google.com/p/osclass/ | PHP | 207 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) {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{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 }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<?phpInstallerTest.php https://bitbucket.org/chamilo/chamilo-install-dev/ | PHP | 353 lines
1<?php 2 11 12class InstallerTest extends \PHPUnit_Framework_TestCase 13{ 31 $this->backupGlobals = false; // MDB needs this 32 $this->install_configuration_file = __DIR__ . '/__files/install_config.php'; 33 } 46 { 47 Filesystem :: remove(Path :: get_common_path() . 'configuration/configuration.php'); 48 foreach ($this->EXTRA_DIRECTORIES as $directory) 58 $cx = $this->installer->get_db_connection(); 59 if (! is_null($cx)) 60 { 79 $this->installer_config->set_db_overwrite(false); // faster 80 $this->assertFileNotExists(Path :: get_common_path() . 'configuration/configuration.php'); 81 $this->installer->perform_install();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;MY_Form_validation.php git://github.com/pyrocms/pyrocms.git | PHP | 278 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed.'); 2 76 $callback = FALSE; 77 if ( ! in_array('required', $rules) AND is_null($postdata)) 78 { 93 // Isset Test. Typically this rule will only apply to checkboxes. 94 if (is_null($postdata) AND $callback == FALSE) 95 { 203 { 204 // If our own wrapper function doesn't exist we see if a native PHP function does. 205 // Users can use any native PHP function call that has one param. 277 278/* End of file MY_Form_validation.php */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 ExceptionAclSecurityHandler.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 322 lines
1<?php 2 173 $acl = $this->getObjectAcl($objectIdentity); 174 if (is_null($acl)) { 175 $acl = $this->createAcl($objectIdentity);create.class.php git://github.com/modxcms/revolution.git | PHP | 306 lines
1<?php 2/* 10 11require_once dirname(__FILE__).'/resource.class.php'; 12/** 94 /* set template */ 95 if (!is_null($this->resource->get('template')) && $this->resource->get('template') !== 0) { 96 $this->scriptProperties['template'] = $this->resource->get('template');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;questiontype.php git://github.com/moodle/moodle.git | PHP | 314 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot . '/question/type/questiontypebase.php'); 30 100 protected function init_qtype_lists() { 101 if (!is_null($this->excludedqtypes)) { 102 return; // Already done.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{ComparisonFailure.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 207 lines
36 * 37 * @package PHPUnit 38 * @subpackage Framework 54 * @version Release: 3.5.9 55 * @link http://www.phpunit.de/ 56 * @since Class available since Release 2.0.0 57 */ 58abstract class PHPUnit_Framework_ComparisonFailure extends PHPUnit_Framework_AssertionFailedError 59{ 134 * in the difference output. 135 * @return PHPUnit_Framework_ComparisonFailure 136 */ 140 { 141 return new PHPUnit_Framework_ComparisonFailure_Type($expected, $actual, TRUE, $message); 142 }CakePlugin.php git://github.com/cakephp/cakephp.git | PHP | 228 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Core 15 * @package Cake.Core 16 * @since CakePHP(tm) v 2.0.0 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 41 * `CakePlugin::load('DebugKit')` will load the DebugKit plugin and will not load any bootstrap nor route files 42 * `CakePlugin::load('DebugKit', array('bootstrap' => true, 'routes' => true))` will load the bootstrap.php and routes.php files 43 * `CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php 43 * `CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php 44 * `CakePlugin::load('DebugKit', array('bootstrap' => array('config1', 'config2')))` will load config1.php and config2.php files 45 * `CakePlugin::load('DebugKit', array('bootstrap' => 'aCallableMethod'))` will run the aCallableMethod function to initialize itWikiPlot.php http://wikiplot.googlecode.com/svn/trunk/ | PHP | 264 lines
1<?php 2/* 24/** 25*Include plot.class.php 26* 28*/ 29require_once("PlotClass/plot.class.php"); 30 31/** 32*Include xml.class.php 33* 35*/ 36require_once("xml.class.php"); 37 38/** 39*Include cache.class.php 40*Simpy.php git://github.com/moodle/moodle.git | PHP | 434 lines
1<?php 2 26 */ 27require_once 'Zend/Http/Client.php'; 28 88 if ($query != null) { 89 $query = array_diff($query, array_filter($query, 'is_null')); 90 $query = '?' . http_build_query($query); 110 */ 111 require_once 'Zend/Service/Exception.php'; 112 throw new Zend_Service_Exception($message, $code); 121 */ 122 require_once 'Zend/Service/Exception.php'; 123 throw new Zend_Service_Exception($response->getMessage(), $response->getStatus()); 145 */ 146 require_once 'Zend/Service/Simpy/TagSet.php'; 147 return new Zend_Service_Simpy_TagSet($doc);Logical.php https://PHPExcel.svn.codeplex.com/svn | PHP | 291 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 262 public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) { 263 $condition = (is_null($condition)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 265 $returnIfFalse = (is_null($returnIfFalse)) ? False : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 266 284 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 285 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 286class.base.php https://code.google.com/p/evedev-kb/ | PHP | 496 lines
1<?php 2/** 284 $sql = ""; 285 if(is_null($this->finalStartDate)) 286 { 483 { 484 if (is_null($this->qry)) 485 $this->execQuery();class_registry.php http://skygames.googlecode.com/svn/trunk/ | PHP | 347 lines
1<?php 2/* SVN FILE: $Id: class_registry.php 7805 2008-10-30 17:30:26Z AD7six $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 19 * @package cake 20 * @subpackage cake.cake.libs 21 * @since CakePHP(tm) v 0.9.2 22 * @version $Revision: 7805 $ 24 * @lastmodified $Date: 2008-10-30 12:30:26 -0500 (Thu, 30 Oct 2008) $ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */Feed.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 25 */ 26require_once 'Zend/Gdata.php'; 27 30 */ 31require_once 'Zend/Gdata/App/Feed.php'; 32 35 */ 36require_once 'Zend/Gdata/Entry.php'; 37 40 */ 41require_once 'Zend/Gdata/Extension/OpenSearchTotalResults.php'; 42 45 */ 46require_once 'Zend/Gdata/Extension/OpenSearchStartIndex.php'; 47class.cachehandler.php https://code.google.com/p/evedev-kb/ | PHP | 474 lines
1<?php 2/** 133 { 134 if (is_null($dir)) { 135 $dir = self::$defaultLocation; 329 { 330 if (is_null($location)) { 331 $location = self::$defaultLocation;file.php git://github.com/phpbb/phpbb3.git | PHP | 730 lines
21*/ 22class phpbb_cache_driver_file extends phpbb_cache_driver_base 23{ 37 global $phpbb_root_path; 38 $this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_root_path . 'cache/'; 39 } 82 global $phpbb_root_path; 83 include($phpbb_root_path . 'includes/functions.' . $phpEx); 84 } 698 global $phpbb_root_path; 699 include($phpbb_root_path . 'includes/functions.' . $phpEx); 700 } 717 global $phpbb_root_path, $phpEx; 718 include($phpbb_root_path . 'includes/functions.' . $phpEx); 719 }PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 648 lines
32/** PHPExcel_DocumentProperties */ 33require_once 'PHPExcel/DocumentProperties.php'; 34 41/** PHPExcel_Shared_ZipStreamWrapper */ 42require_once 'PHPExcel/Shared/ZipStreamWrapper.php'; 43 44/** PHPExcel_NamedRange */ 45require_once 'PHPExcel/NamedRange.php'; 46 47/** PHPExcel_WorksheetIterator */ 48require_once 'PHPExcel/WorksheetIterator.php'; 49 55 * @package PHPExcel 56 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 57 */linb.php http://linb.googlecode.com/svn/trunk/ | PHP | 482 lines
1<?php 2 if(function_exists('date_default_timezone_set')){ 6 /* 7 * phpLinb 1.2 8 * Copyright(c) 2008 Yingbo Li(linb.net, linb.net[at]gmail.com). 16 try{ 17 $path = LINB::$DIR_LINB.LINB::$DIR_CLASS.str_replace('_', DIRECTORY_SEPARATOR, str_replace('.', DIRECTORY_SEPARATOR, $class)).'.php'; 18 if(!file_exists($path)){ 18 if(!file_exists($path)){ 19 $path = LINB::$DIR_APP.LINB::$DIR_CLASS.str_replace('_', DIRECTORY_SEPARATOR, str_replace('.', DIRECTORY_SEPARATOR, $class)).'.php'; 20 } 125 /** 126 * The path of LINB.PHP 127 */ 218 foreach ($v as $k2=>$v2){ 219 if(is_null($v2)){ 220 if(isset($o[$k2])){DefinitionList.php git://github.com/zendframework/zf2.git | PHP | 353 lines
1<?php 2/** 206 $value = $classDefinition->getInstantiator($class); 207 if (!is_null($value)) { 208 return $value;JSimpleXMLElementTest.php git://github.com/joomla/joomla-platform.git | PHP | 0 lines
1<?php 2/** 9 10require_once JPATH_PLATFORM. '/joomla/utilities/simplexml.php'; 11 28 * Test class for JSimpleXMLElement. 29 * Generated by PHPUnit on 2009-11-05 at 13:01:47. 30 * 33 */ 34class JSimpleXMLElementTest extends PHPUnit_Framework_TestCase 35{ 133 $expAttr, $expSkip, $expLevel ) { 134 if ( is_null($options) ) 135 { 137 } 138 elseif ( is_null($level) ) 139 {Style.php https://PHPExcel.svn.codeplex.com/svn | PHP | 435 lines
38/** PHPExcel_Style_Borders */ 39require_once 'PHPExcel/Style/Borders.php'; 40 50/** PHPExcel_Style_Protection */ 51require_once 'PHPExcel/Style/Protection.php'; 52 53/** PHPExcel_IComparable */ 54require_once 'PHPExcel/IComparable.php'; 55 60 * @package PHPExcel_Cell 61 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 62 */ 62 */ 63class PHPExcel_Style implements PHPExcel_IComparable 64{InternalSkipTokenInfo.php https://hg01.codeplex.com/odataphpproducer | PHP | 317 lines
1<?php 2/** 6 * 7 * PHP version 5.3 8 * 10 * @package ODataProducer_UriProcessor_QueryProcessor_SkipTokenParser 11 * @author Anu T Chandy <odataphpproducer_alias@microsoft.com> 12 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com) 12 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com) 13 * @license New BSD license, (http://www.opensource.org/licenses/bsd-license.php) 14 * @version SVN: 1.0 14 * @version SVN: 1.0 15 * @link http://odataphpproducer.codeplex.com 16 * 31 * @package ODataProducer_UriProcessor_QueryProcessor_SkipTokenParser 32 * @author Anu T Chandy <odataphpproducer_alias@microsoft.com> 33 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)NotEmpty.php git://github.com/moodle/moodle.git | PHP | 238 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 41 const NULL = 64; 42 const PHP = 127; 43 const SPACE = 128; 56 self::NULL => 'null', 57 self::PHP => 'php', 58 self::SPACE => 'space', 135 if (!is_int($type) || ($type < 0) || ($type > self::ALL)) { 136 require_once 'Zend/Validate/Exception.php'; 137 throw new Zend_Validate_Exception('Unknown type'); 153 { 154 if (!is_null($value) && !is_string($value) && !is_int($value) && !is_float($value) && 155 !is_bool($value) && !is_array($value)) {ArrayTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ArrayTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main'); 29 */ 30require_once 'Zend/Translate/Adapter/Array.php'; 31 39 */ 40class Zend_Translate_Adapter_ArrayTest extends PHPUnit_Framework_TestCase 41{ 55 { 56 $suite = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_ArrayTest"); 57 $result = PHPUnit_TextUI_TestRunner::run($suite);team.inc http://leaguerunner.googlecode.com/svn/trunk/ | PHP | 554 lines
1<?php 2class Team extends LeaguerunnerObject 117 118 if( is_null($this->_player_count) ) { 119 $sth = $dbh->prepare("SELECT COUNT(r.player_id) 302 303 if( is_null($this->_avg_skill) ) { 304 $sth = $dbh->prepare('SELECT ROUND(AVG(p.skill_level),2) FROM teamroster r INNER JOIN person p ON (r.player_id = p.user_id) WHERE r.team_id = ?');cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
3/** 4 * Caching for CakePHP. 5 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 18 * @package cake 19 * @subpackage cake.cake.libs 20 * @since CakePHP(tm) v 1.2.0.4933 21 * @version $Revision: 7847 $inc.tplparse_feeds.php http://punchcms.googlecode.com/svn/trunk/ | PHP | 257 lines
1<?php 2 23 //*** Check sanitized input. 24 if (is_null($_CLEAN_POST["frm_active"])) { 25 $blnError = true; 27 28 if (is_null($_CLEAN_POST["frm_name"])) { 29 $blnError = true; 31 32 if (is_null($_CLEAN_POST["frm_feed"])) { 33 $blnError = true; 35 36 if (is_null($_CLEAN_POST["frm_basepath"])) { 37 $blnError = true; 39 40 if (is_null($_CLEAN_POST["frm_refresh"])) { 41 $blnError = true;DAO.php https://code.google.com/p/osclass/ | PHP | 0 lines
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.'); 2 77 public function formatValue($value) { 78 if(is_null($value)) return DB_CONST_NULL; 79 else $value = trim($value); 193 $where = ''; 194 if(!is_null($conditions)) { 195 foreach($conditions as $key => &$value) {complex_builder.class.php https://bitbucket.org/chamilo/chamilo-repository/ | PHP | 382 lines
1<?php 2namespace repository; 22/** 23 * $Id: complex_builder.class.php 200 2009-11-13 12:30:04Z kariboe $ 24 * @package repository.lib.complex_builder 25 */ 26require_once dirname(__FILE__) . '/complex_menu.class.php'; 27 101 //$file = Path :: get_repository_path() . 'lib/content_object/' . $type . '/builder/' . $type . '_builder.class.php'; 102 $file = dirname(__FILE__) . '/../../../content_object/' . $type . '/php/builder/' . $type . '_builder.class.php'; 103 require_once $file; 113 { 114 $file = dirname(__FILE__) . '/../../../content_object/' . $type . '/php/builder/' . $type . '_builder.class.php'; 115 243 { 244 if (is_null($this->menu)) 245 {FunctionCommentSniff.php git://github.com/ruflin/Elastica.git | PHP | 420 lines
13 * @version CVS: $Id: FunctionCommentSniff.php,v 1.24 2007/11/23 01:04:48 squiz Exp $ 14 * @link http://pear.php.net/package/PHP_CodeSniffer 15 */ 44 * @version Release: 1.0.1 45 * @link http://pear.php.net/package/PHP_CodeSniffer 46 */ 100 * 101 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 102 * @param int $stackPtr The position of the current token 106 */ 107 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 108 { 176 try { 177 $this->_commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile); 178 $this->_commentParser->parse();Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 405 lines
38/** PHPExcel_Worksheet */ 39require_once 'PHPExcel/Worksheet.php'; 40 74/** PHPExcel_Writer_Excel2007_Drawing */ 75require_once 'PHPExcel/Writer/Excel2007/Drawing.php'; 76 161 */ 162 public function __construct(PHPExcel $pPHPExcel = null) 163 { 325 * 326 * @param PHPExcel $pPHPExcel PHPExcel object 327 * @throws Exception 328 */ 329 public function setPHPExcel(PHPExcel $pPHPExcel = null) { 330 $this->_spreadSheet = $pPHPExcel;SilvercartGroupViewBase.php https://bitbucket.org/silvercart/silvercart/ | PHP | 230 lines
1<?php 2/** 165 public function getActive() { 166 if (is_null($this->active)) { 167 $this->setActive($this->Code == SilvercartGroupViewHandler::getActiveGroupView()); 188 public function getActiveHolder() { 189 if (is_null($this->activeHolder)) { 190 $this->setActiveHolder($this->Code == SilvercartGroupViewHandler::getActiveGroupHolderView());index.php git://github.com/moodle/moodle.git | PHP | 173 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 36 37require_once(__DIR__ . '/../config.php'); 38require_once($CFG->dirroot . '/my/lib.php'); 49if ($hassiteconfig && moodle_needs_upgrading()) { 50 redirect(new moodle_url('/admin/index.php')); 51} 83$PAGE->set_context($context); 84$PAGE->set_url('/my/index.php', $params); 85$PAGE->set_pagelayout('mydashboard'); 107 if ($reset !== null) { 108 if (!is_null($userid)) { 109 require_sesskey(); 142 $resetstring = get_string('resetpage', 'my'); 143 $reseturl = new moodle_url("$CFG->wwwroot/my/index.php", array('edit' => 1, 'reset' => 1)); 144ITDynamic.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 334 lines
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 * 16 * @package HTML_QuickForm 17 * @author Alexey Borzov <avb@php.net> 18 * @copyright 2001-2009 The PHP Group 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: ITDynamic.php 137 2009-11-09 13:24:37Z vanpouckesven $Nodes.php http://daisydiff.googlecode.com/svn/trunk/ | PHP | 457 lines
1<?php 2 26 27include_once 'Xml.php'; 28 44 if (!isset($this->parentTree)) { 45 if (!is_null($this->parent)) { 46 $this->parentTree = $this->parent->getParentTree(); 357 public function isSameText($other) { 358 if (is_null($other) || ! $other instanceof TextNode) { 359 return false; 376 parent::__construct($parent, $s); 377 if(!is_null($like) && $like instanceof TextNode) { 378 $newModification = clone $like->modification; 438 public function isSameText($other) { 439 if (is_null($other) || ! $other instanceof VisibleTextNode) { 440 return false;complex_builder.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 375 lines
1<?php 2namespace repository; 22/** 23 * $Id: complex_builder.class.php 200 2009-11-13 12:30:04Z kariboe $ 24 * @package repository.lib.complex_builder 25 */ 26require_once dirname(__FILE__) . '/complex_menu.class.php'; 27 101 //$file = Path :: get_repository_path() . 'lib/content_object/' . $type . '/builder/' . $type . '_builder.class.php'; 102 $file = dirname(__FILE__) . '/../../../content_object/' . $type . '/php/builder/' . $type . '_builder.class.php'; 103 require_once $file; 113 { 114 $file = dirname(__FILE__) . '/../../../content_object/' . $type . '/php/builder/' . $type . '_builder.class.php'; 115 243 { 244 if (is_null($this->menu)) 245 {index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 228 lines
1<?php 2require_once(dirname(dirname(dirname(__FILE__))).'/global.php'); 35 36$post_data = file_get_contents("php://input"); 37$post = json_decode($post_data, true); 38 39if (!is_null($post) && array_key_exists('u', $post) && array_key_exists('g', $post) 40 && array_key_exists('i', $post) && in_array($post['i'], $YSlow2AllowedProfiles) 209<h1>Configure your YSlow</h1> 210<p><b style="color: red">WARNING! Only use this beacon If you're OK with all your YSlow data to be recorded by this instance of ShowSlow and displayed at <a href="<?php echo $showslow_base?>"><?php echo $showslow_base?></a><br/>You can also <a href="http://www.showslow.org/Installation_and_configuration">install ShowSlow on your own server</a> to limit the risk.</b></p> 211 216<ul> 217<li>extensions.yslow.beaconUrl = <b style="color: blue"><?php echo $showslow_base?>beacon/yslow/</b></li> 218<li>extensions.yslow.beaconInfo = <b style="color: blue">grade</b></li> 222</body></html> 223<?php 224 exit;dropbox_external_repository_manager_connector.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-dropbox-dev/ | PHP | 361 lines
1<?php 2namespace common\extensions\external_repository_manager\implementation\dropbox; 21 22require_once 'OAuth/Request.php'; 23 23 24require_once Path :: get_plugin_path(__NAMESPACE__) . 'dropbox-api/API.php'; 25require_once dirname(__FILE__) . '/dropbox_external_repository_object.class.php'; 56 57 if (is_null($session_token)) 58 { 104 $folder = Request :: get('folder'); 105 if (! is_null($folder)) 106 { 274 275 /* (non-PHPdoc) 276 * @see application/common/external_repository_manager/ExternalRepositoryConnector#retrieve_external_repository_object()objects.py https://bitbucket.org/asuhan/happy/ | Python | 483 lines
15 self.type = zv.type 16 self.is_null = zv.is_null 17 masked_type = zv.type & IS_CONSTANT_TYPE_MASK 56 57 def is_null(self): 58 return self.null 71 def __nonzero__(self): 72 raise Exception('use is_null() for casting to bool') 73 317 def __nonzero__(self): 318 raise Exception('use is_null() for casting to bool') 319 428 def memcmp(self, o, length): 429 return hphp_string.string_data_memcmp(self.__sd, o.__sd, length) 430Cell.php https://PHPExcel.svn.codeplex.com/svn | PHP | 292 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/gpl.txt GPL 28/** PHPExcel_Cell_DataType */ 29require_once 'PHPExcel/Cell/DataType.php'; 30 36 * @package PHPExcel 37 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 38 */ 85 86 if (!is_null($pDataType)) { 87 $this->_dataType = $pDataType; 272 return 1; 273 } elseif (PHPExcel_Cell::columnIndexFromString($a->getColumn()) < PHPExcel_Cell::columnIndexFromString($b->getColumn())) { 274 return -1;phpQueryEvents.php http://jfxcms.googlecode.com/svn/ | PHP | 151 lines
12 * 13 * @param DOMNode|phpQueryObject|string $document 14 * @param unknown_type $type 49 while($node) { 50 phpQuery::debug("Triggering event '{$type}' on node ".phpQueryObject::whois($node)."\n"); 51 $event->currentTarget = $node; 85 * 86 * @param DOMNode|phpQueryObject|string $document 87 * @param unknown_type $type 96 $documentID = phpQuery::getDocumentID($document); 97// if (is_null($callback) && is_callable($data)) { 98// $callback = $data; 113 * 114 * @param DOMNode|phpQueryObject|string $document 115 * @param unknown_type $typeclass.dbobject.php git://github.com/tylerhall/simple-php-framework.git | PHP | 232 lines
1<?PHP 2 class DBObject 23 24 if(!is_null($id)) { 25 $this->select($id); 66 67 if(is_null($column)) $column = $this->idColumnName; 68 $column = $db->escape($column); 87 { 88 return !is_null($this->id); 89 } 92 { 93 if(is_null($this->id)) 94 $this->insert(); 107 foreach($this->columns as $k => $v) { 108 if(isset($v) && !is_null($v)) { 109 if(is_bool($v)) {ErrorHandler.php https://code.google.com/p/s3db/ | PHP | 231 lines
1<?php 2/** 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * LICENSE: This source file is subject to version 3.0 of the PHP license 11 * that is available through the world-wide-web at the following URI: 11 * that is available through the world-wide-web at the following URI: 12 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 13 * the PHP License and are unable to obtain it through the web, please 19 * @copyright 2005, 2006 Alexander Valyalkin 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version 1.2.0b 116 * @copyright 2005 Alexander Valyalkin 117 * @license http://www.php.net/license/3_0.txt PHP License 3.0 118 * @link http://pear.php.net/package/Crypt_RSAgw_search.php http://glossword.googlecode.com/svn/trunk/ | PHP | 396 lines
1<?php 2/** 71 /* Use values as key */ 72 /* PHP-bug: sometimes a string keys becomes interger */ 73 $ar_c_crc[$v] = sprintf( "%u", crc32( $v ) ); 84 $ar_sql = $jo_db->loadAssocList(); 85 if ( is_null( $ar_sql ) ){ $ar_sql = array(); } 86 130 131 #require_once( JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php' ); 132 151 $ar_sql = $jo_db->loadAssocList(); 152 if ( is_null( $ar_sql ) ){ $ar_sql = array(); } 153 159 160 require_once( $ar_cfg['path_core_abs'].'/gw_config.php' ); 161ims_xml_writer.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 362 lines
1<?php 2namespace common\libraries; 7 8require_once dirname(__FILE__) . '/../ims_id_factory.class.php'; 9 58 else 59 if (is_null($item)) 60 {validate.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 251 lines
1<?php 2/** 49 * @author Lukin <my@lukin.cn> 50 * @version $Id: validate.php 722 2011-01-17 16:28:17Z mylukin $ 51 */ 208 static $validate; 209 if ( is_null($validate) ) 210 $validate = new Validate();Serializer.php git://github.com/anantgarg/Qwench.git | PHP | 172 lines
1<?php 2 91 $base = $config->get('Cache.SerializerPath'); 92 $base = is_null($base) ? HTMLPURIFIER_PREFIX . '/HTMLPurifier/DefinitionCache/Serializer' : $base; 93 return $base; 153 } else { 154 // PHP's probably running as nobody, so we'll 155 // need to give global permissionsDB_result.php git://github.com/EllisLab/CodeIgniter.git | PHP | 667 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 216 217 is_null($this->row_data) OR $this->data_seek(0); 218 $this->custom_result_object[$class_name] = array(); 259 260 is_null($this->row_data) OR $this->data_seek(0); 261 while ($row = $this->_fetch_object()) 300 301 is_null($this->row_data) OR $this->data_seek(0); 302 while ($row = $this->_fetch_assoc())DB.php http://punchcms.googlecode.com/svn/trunk/ | PHP | 385 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4/** 5 * A framework for authentication and authorization in PHP applications 6 * 30 * 31 * PHP version 4 and 5 32 * 51 * @author Markus Wolff <wolff@21st.de> 52 * @author Helgi Ţormar Ţorbjörnsson <dufuz@php.net> 53 * @author Lukas Smith <smith@pooteeweet.org> 53 * @author Lukas Smith <smith@pooteeweet.org> 54 * @author Arnaud Limbourg <arnaud@php.net> 55 * @author Christian Dickmann <dickmann@php.net> 55 * @author Christian Dickmann <dickmann@php.net> 56 * @author Matt Scifo <mscifo@php.net> 57 * @author Bjoern Kraus <krausbn@php.net>NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 469 lines
32/** PHPExcel_Shared_Date */ 33require_once 'PHPExcel/Shared/Date.php'; 34 42 */ 43class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable 44{ 141 * 142 * Returns the PHPExcel_Style_NumberFormat that is actual bound to PHPExcel_Style 143 * 158 * 159 * If no PHPExcel_Style_NumberFormat has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 160 * 419 if (is_float($value)) { 420 return date($format, PHPExcel_Shared_Date::ExceltoPHP($value)); 421 }PDF.php https://PHPExcel.svn.codeplex.com/svn | PHP | 470 lines
22 * @package PHPExcel_Writer 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 38/** PHPExcel_Shared_Drawing */ 39require_once 'PHPExcel/Shared/Drawing.php'; 40 54 */ 55class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter { 56 /** 86 * 87 * @param PHPExcel $phpExcel PHPExcel object 88 */ 89 public function __construct(PHPExcel $phpExcel) { 90 $this->_phpExcel = $phpExcel; 91 $this->_sheetIndex = 0;condition_translator.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 282 lines
1<?php 2namespace common\libraries; 77 78 if (! is_null($condition_storage_unit)) 79 { 192 193 if (! is_null($condition_storage_unit)) 194 { 208 209 if (is_null($value)) 210 {SessionDBHandler.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 188 lines
1<?php 2/** 10 * @link http://code.google.com/p/openbiz-cubi/ 11 * @version $Id: SessionDBHandler.php 3372 2012-05-31 06:19:06Z rockyswen@gmail.com $ 12 */ 146 $offset = $value[1]; 147 if(!is_null( $lastOffset)) 148 {SilvercartGroupViewHandler.php https://bitbucket.org/silvercart/silvercart/ | PHP | 355 lines
1<?php 2/** 51 * a list of removed group view types. It is implemented to provide the 52 * configuration example in _config.php of silvercart. 53 * 59 * a list of removed group view types. It is implemented to provide the 60 * configuration example in _config.php of silvercart. 61 * 175 public static function setDefaultGroupView($defaultGroupView = null) { 176 if (is_null($defaultGroupView) 177 || !in_array($defaultGroupView, self::$groupViews)) { 195 public static function setDefaultGroupHolderView($defaultGroupHolderView = null) { 196 if (is_null($defaultGroupHolderView) 197 || !in_array($defaultGroupHolderView, self::$groupHolderViews)) { 313 public static function getActiveGroupView() { 314 if (is_null(Session::get('SilvercartGroupView'))) { 315 if (is_null(self::getDefaultGroupView())) {Ethna_DB_PEAR.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 541 lines
1<?php 2// vim: foldmethod=marker 3/** 4 * Ethna_DB_PEAR.php 5 * 5 * 6 * @author Masaki Fujimoto <fujimoto@php.net> 7 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License 8 * @package Ethna 9 * @version $Id: Ethna_DB_PEAR.php 530 2008-05-12 12:50:34Z mumumu-org $ 10 */ 10 */ 11require_once 'DB.php'; 12 16 * 17 * @author Masaki Fujimoto <fujimoto@php.net> 18 * @access publiccomplex_content_object_item.class.php https://bitbucket.org/chamilo/chamilo-repository/ | PHP | 336 lines
1<?php 2namespace repository; 9/** 10 * $Id: complex_content_object_item.class.php 204 2009-11-13 12:51:30Z kariboe $ 11 * @package repository.lib 212 213 if (StringUtilities :: is_null_or_empty($this->get_ref())) 214 { 225 226 if (StringUtilities :: is_null_or_empty($this->get_parent())) 227 { 320 $class = __NAMESPACE__ . '\content_object\\' . $type . '\Complex' . Utilities :: underscores_to_camelcase($type); 321 require_once dirname(__FILE__) . '/../../content_object/' . $type . '/php/complex_' . $type . '.class.php'; 322 return new $class($defaultProperties, $additionalProperties);ErrorCollector.php git://github.com/gallery/gallery3-contrib.git | PHP | 209 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 36 * Sends an error message to the collector for later use 37 * @param $severity int Error severity, PHP error style (don't use E_USER_) 38 * @param $msg string Error message text 57 $subst = array(); 58 if (!is_null($token)) { 59 $args['CurrentToken'] = $token; 60 } 61 if (!is_null($attr)) { 62 $subst['$CurrentAttr.Name'] = $attr; 182 $string .= "<span class=\"error e$severity\"><strong>$error</strong></span> "; 183 if (!is_null($line) && !is_null($col)) { 184 $string .= "<em class=\"location\">Line $line, Column $col: </em> ";object.php http://noserub.googlecode.com/svn/trunk/ | PHP | 312 lines
11 * 12 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 13 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 19 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 20 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 21 * @package cake 154 * @param string $msg Log message 155 * @param integer $type Error type constant. Defined in app/config/core.php. 156 * @return boolean Success of log write 162 } 163 if (is_null($this->_log)) { 164 $this->_log = new CakeLog(); 191 * Used to report user friendly errors. 192 * If there is a file app/error.php or app/app_error.php this file will be loaded 193 * error.php is the AppError class it should extend ErrorHandler class.DocumentProperties.php https://PHPExcel.svn.codeplex.com/svn | PHP | 589 lines
1<?php 2/** 4 * 5 * Copyright (c) 2006 - 2010 PHPExcel 6 * 22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 195 * @param datetime $pValue 196 * @return PHPExcel_DocumentProperties 197 */ 464 /** 465 * Implement PHP __clone to create a deep clone, not just a shallow copy. 466 */NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 453 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 37 * @package PHPExcel_Style 38 * @copyright Copyright (c) 2006 - 2009 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 *reflection_php5.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 432 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 1683 2008-03-05 21:57:08Z lastcraft $ 7 */ 29 * Checks that a class has been declared. Versions 30 * before PHP5.0.2 need a check that it's not really 31 * an interface. 45 /** 46 * Needed to kill the autoload feature in PHP5 47 * for classes created dynamically. 67 /** 68 * Needed to kill the autoload feature in PHP5 69 * for classes created dynamically. 379 $type = $parameter->getClass(); 380 if (is_null($type) && version_compare(phpversion(), '5.1.0', '>=') && $parameter->isArray()) 381 {RichText.php https://PHPExcel.svn.codeplex.com/svn | PHP | 236 lines
32/** PHPExcel_Cell */ 33require_once 'PHPExcel/Cell.php'; 34 41/** PHPExcel_RichText_Run */ 42require_once 'PHPExcel/RichText/Run.php'; 43 44/** PHPExcel_Style_Font */ 45require_once 'PHPExcel/Style/Font.php'; 46 51 * @package PHPExcel 52 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 53 */ 53 */ 54class PHPExcel_RichText implements PHPExcel_IComparable 55{DocumentProperties.php https://PHPExcel.svn.codeplex.com/svn | PHP | 300 lines
1<?php 2/** 4 * 5 * Copyright (c) 2006 - 2008 PHPExcel 6 * 20 * 21 * @category PHPExcel 22 * @package PHPExcel 22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 29/** 30 * PHPExcel_DocumentProperties 31 * 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */DocumentProperties.php https://PHPExcel.svn.codeplex.com/svn | PHP | 300 lines
1<?php 2/** 4 * 5 * Copyright (c) 2006 - 2007 PHPExcel 6 * 20 * 21 * @category PHPExcel 22 * @package PHPExcel 22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 29/** 30 * PHPExcel_DocumentProperties 31 * 33 * @package PHPExcel 34 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */RichText.php https://PHPExcel.svn.codeplex.com/svn | PHP | 236 lines
32/** PHPExcel_Cell */ 33require_once 'PHPExcel/Cell.php'; 34 41/** PHPExcel_RichText_Run */ 42require_once 'PHPExcel/RichText/Run.php'; 43 44/** PHPExcel_Style_Font */ 45require_once 'PHPExcel/Style/Font.php'; 46 51 * @package PHPExcel 52 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 53 */ 53 */ 54class PHPExcel_RichText implements PHPExcel_IComparable 55{OLERead.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 341 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 4 * 5 * Copyright (c) 2006 - 2011 PHPExcel 6 * 20 * 21 * @category PHPExcel 22 * @package PHPExcel_Shared 22 * @package PHPExcel_Shared 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 29 30class PHPExcel_Shared_OLERead 31{Users.php http://display-ui.googlecode.com/svn/trunk/ | PHP | 83 lines
1<?php 2/** 21 * @license http://code.google.com/p/display-ui/wiki/License Apache License 2.0 22 * @version $Id: Users.php 448 2011-06-24 22:23:22Z Frederick $ 23 */ 35 { 36 if (! is_null($this->db)) { 37 $select = $this->db->select() 56 { 57 if(is_null($this->db)) 58 return false; 75 $_id = (int) $_id; 76 if (! is_null($this->db)) { 77 $result = $this->db->delete('dui_users',mapper.tpl https://code.google.com/p/zend-db-model-generator/ | Smarty Template | 410 lines
125<?php else: ?> 126<?php if ($this->_primaryKey['phptype'] == 'array') : ?> 127 $where = array(); 151 $message .= ' Where: '; 152<?php if ($this->_primaryKey['phptype'] == 'array') : ?> 153 foreach ($where as $where_clause) { 196 197<?php if ($this->_primaryKey['phptype'] == 'array') : ?> 198 $primary_key = array(); 277 $model->get<?=$this->_getRelationName($key, 'dependent')?>() 278<?php if ($this->_primaryKey['phptype'] !== 'array') : ?> 279 ->set<?=$this->_getCapital($key['column_name'])?>($primary_key) 285 $success = $success && 286 $value<?php if ($this->_primaryKey['phptype'] !== 'array') : ?> 287->set<?=$this->_getCapital($key['column_name'])?>($primary_key)Cell.php https://PHPExcel.svn.codeplex.com/svn | PHP | 488 lines
29/** PHPExcel_Cell_DataType */ 30require_once 'PHPExcel/Cell/DataType.php'; 31 35/** PHPExcel_Worksheet */ 36require_once 'PHPExcel/Worksheet.php'; 37 38/** PHPExcel_Calculation */ 39require_once 'PHPExcel/Calculation.php'; 40 46 * @package PHPExcel 47 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 48 */ 466 return 1; 467 } elseif (PHPExcel_Cell::columnIndexFromString($a->getColumn()) < PHPExcel_Cell::columnIndexFromString($b->getColumn())) { 468 return -1;CIU_Loader.php https://bitbucket.org/rafsoaken/ciunit/ | PHP | 322 lines
1<?php 2 6* Released under the MIT license, see: 7* http://www.opensource.org/licenses/mit-license.php 8*/ 74 // return a new instance of the object 75 if ( ! is_null($object_name)) 76 { 113 // return a new instance of the object 114 if ( ! is_null($object_name)) 115 { 182 $class = strtolower($class); 183 if (is_null($object_name)) 184 { 225 * 226 * The config/autoload.php file contains an array that permits sub-systems, 227 * libraries, plugins, and helpers to be loaded automatically.locallib.php git://github.com/moodle/moodle.git | PHP | 203 lines
1<?php 2 25 26require_once("$CFG->dirroot/webservice/lib.php"); 27require_once( "{$CFG->dirroot}/webservice/amf/introspector.php"); 27require_once( "{$CFG->dirroot}/webservice/amf/introspector.php"); 28require_once 'Zend/Amf/Server.php'; 29/** 92 public static function validate_and_cast_values($description, $value) { 93 if (is_null($description)){ 94 return;CsvTest.php git://github.com/zendframework/zf2.git | PHP | 250 lines
1<?php 2/** 34/** 35 * PHPUnit test case 36 */ 45 */ 46class CsvTest extends \PHPUnit_Framework_TestCase 47{ 152 $this->assertEquals('testkey', $adapter->getOptions('testoption')); 153 $this->assertTrue(is_null($adapter->getOptions('nooption'))); 154 } 235 /** 236 * Ignores a raised PHP error when in effect, but throws a flag to indicate an error occurred 237 *fixture.php git://github.com/Datawalke/Coordino.git | PHP | 424 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.console.libs.tasks 17 * @since CakePHP(tm) v 1.3 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 19 */ 20include_once dirname(__FILE__) . DS . 'bake.php'; 21/**Font.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 21/** Zend_Pdf_FileParser */ 22require_once 'Zend/Pdf/FileParser.php'; 23 176 { 177 if (is_null($value)) { 178 unset($this->_fontProperties[$property]);Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 503 lines
1<?php 2/** 4 * 5 * Copyright (c) 2006 - 2007 PHPExcel, Maarten Balliauw 6 * 22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 33 * @package PHPExcel_Calculation 34 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 73 foreach ($aArgs as $arg) { 74 if (is_null($returnValue)) { 75 $returnValue = $arg; 483 } else if (is_array($value)) { 484 $arrayValues = array_merge($arrayValues, PHPExcel_Calculation_Functions::flattenArray($value)); 485 }main_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 380 lines
1<?php 2 113 114 if( is_null( $cat_id ) ) { 115 // get $cat_id from $forum_id 290{ 291 require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3NotificationHandler.class.php' ; 292 322{ 323 require_once dirname(dirname(__FILE__)).'/class/D3commentObj.class.php' ; 324ebpls.database.funcs.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 566 lines
3 4Module : ebpls.database.funcs.php 5Dependencies : None 268 269 if ( !is_null($value) ) { 270 $set_cols[] = "$key = '$value'";ImageEditor.php http://miacms.googlecode.com/svn/trunk/ | PHP | 445 lines
1<?php 2/** 8 9require_once('Transform.php'); 10 85 86 if(!is_null($action)) 87 { 144 case 'save': 145 if(!is_null($saveFile)) 146 { 215 /** 216 * Get the default save file name, used by editor.php. 217 * @return string a suggestive filename, this should be unique 308 * The filename is based on the tmp file prefix 309 * specified in config.inc.php plus 310 * the UID (basically a md5 of the remote IP)ValidFunctionNameSniff.php git://github.com/joomla/joomla-platform.git | PHP | 319 lines
17if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) { 18 throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found'); 19} 87 */ 88 protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 89 { 140 try { 141 $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile); 142 $this->commentParser->parse(); 208 * 209 * @param PHP_CodeSniffer_File $phpcsFile The file being processed. 210 * @param int $stackPtr The position where this token was 214 */ 215 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 216 {HTMLTabs.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 377 lines
1<?PHP 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: HTMLTabs.php 2553 2010-11-21 08:36:48Z mr_a_ton $ 15 */ 73 { 74 if(!is_null($form)) 75 { 269 { 270 $tab_script = '<script type = "text/javascript">'.PHP_EOL; 271 foreach ($tabs as $tab)HashTable.php https://PHPExcel.svn.codeplex.com/svn | PHP | 213 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 31 /** 37/** PHPExcel_IComparable */ 38require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php'; 39 45 * @package PHPExcel 46 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 47 */ 64 /** 65 * Create a new PHPExcel_HashTable 66 *ValidatesNumericalityOfTest.php git://github.com/kla/php-activerecord.git | PHP | 165 lines
1<?php 2 44 45 if (!is_null($msg)) 46 $this->assert_same($msg, $book->errors->on('numeric_test'));course_user_category_form.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 266 lines
1<?php 2namespace application\weblcms; 11/** 12 * $Id: course_user_category_form.class.php 216 2009-11-13 14:08:06Z kariboe $ 13 * @package application.lib.weblcms.course 14 */ 15require_once dirname(__FILE__) . '/course.class.php'; 16require_once dirname(__FILE__) . '/course_user_category.class.php'; 58 $attributes = array(); 59 $attributes['search_url'] = Path :: get(WEB_PATH) . 'application/weblcms/php/xml_feeds/xml_course_type_feed.php'; 60 $locale = array(); 221 222 if (! is_null($course_user_category->get_id())) 223 {OutputTestCase.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 219 lines
39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 * @link http://www.phpunit.de/ 43 * @since File available since Release 3.0.0 48 * 49 * @package PHPUnit 50 * @subpackage Extensions 50 * @subpackage Extensions 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 57 */ 58abstract class PHPUnit_Extensions_OutputTestCase extends PHPUnit_Framework_TestCase 59{DiscISAM.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 171 lines
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 32 * @package PHPExcel_CachedObjectStorage 33 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 34 */ 34 */ 35class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements 36 PHPExcel_CachedObjectStorage_ICache 120 $baseUnique = $this->_getUniqueID(); 121 $newFileName = PHPExcel_Shared_File :: sys_get_temp_dir() . '/PHPExcel.' . $baseUnique . '.cache'; 122 // Copy the existing cell cache file 152 $baseUnique = $this->_getUniqueID(); 153 $this->_fileName = PHPExcel_Shared_File :: sys_get_temp_dir() . '/PHPExcel.' . $baseUnique . '.cache'; 154 $this->_fileHandle = fopen($this->_fileName, 'a+');MssqlSchemaParser.php git://github.com/propelorm/Propel.git | PHP | 251 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../BaseSchemaParser.php'; 12 123 $size = $row['LENGTH']; 124 $is_nullable = $row['NULLABLE']; 125 $default = $row['COLUMN_DEF']; 149 $column->setAutoIncrement($autoincrement); 150 $column->setNotNull(!$is_nullable); 151TableEntity.php git://github.com/moodle/moodle.git | PHP | 324 lines
1<?php 2/** 25 */ 26require_once 'Zend/Service/WindowsAzure/Exception.php'; 27 265 $accessor = self::getAzureAccessor($property); 266 if (!is_null($accessor)) { 267 $azureAccessors[] = $accessor; 274 $accessor = self::getAzureAccessor($method); 275 if (!is_null($accessor)) { 276 $azureAccessors[] = $accessor;response.php git://github.com/joomla/joomla-platform.git | PHP | 335 lines
1<?php 2/** 54 { 55 if (!is_null($allow)) 56 {TagFilter.php http://jfxcms.googlecode.com/svn/ | PHP | 414 lines
1<?php 2############### COPYLEFT GPLv3 LICENSE ############### 14 15if(!class_exists('phpQuery')) die('Antz_TagFilter requires class phpQuery - see '.__FILE__.', line '.__LINE__); 16 49 } 50 }else if(is_string($propertyValue) || is_bool($propertyValue) || is_null($propertyValue)){ 51 $this->$propertyName = $propertyValue; 60 /** 61 * Set the mode which phpQuery runs (XHTML or HTML) 62 * @param string $mode 343 /** 344 * Creates a new phpQuery dom element 345 * @param string $content 350 case 'xhtml': 351 $dom = phpQuery::newDocumentXhtml($content); 352 break;ClassCommentSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 377 lines
42 * @version Release: 1.2.2 43 * @link http://pear.php.net/package/PHP_CodeSniffer 44 */ 91 $commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1); 92 $commentNext = $phpcsFile->findPrevious(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar); 93 105 // There is only 1 doc comment between open tag and class token. 106 $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar); 107 if ($newlineToken !== false) 108 { 109 $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($newlineToken + 1), $stackPtr, false, $phpcsFile->eolChar); 110 if ($newlineToken !== false) 149 { 150 $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($commentString, $phpcsFile); 151 $this->commentParser->parse();platform_group_entity.class.php https://bitbucket.org/chamilo/chamilo-rights-dev/ | PHP | 236 lines
1<?php 2 17 18require_once dirname(__FILE__) . '/platform_group/location_platform_group_cell_renderer.class.php'; 19require_once dirname(__FILE__) . '/platform_group/location_platform_group_column_model.class.php'; 19require_once dirname(__FILE__) . '/platform_group/location_platform_group_column_model.class.php'; 20require_once dirname(__FILE__) . '/nested_rights_entity.class.php'; 21 65 { 66 if (is_null($this->platform_group_cache[$user_id])) 67 { 198 { 199 return Path :: get(WEB_PATH) . 'group/php/xml_feeds/xml_group_menu_feed.php'; 200 }user.php git://github.com/moodle/moodle.git | PHP | 335 lines
1<?php 2 25 26require(__DIR__.'/../../config.php'); 27require_once($CFG->dirroot.'/mod/forum/lib.php'); 27require_once($CFG->dirroot.'/mod/forum/lib.php'); 28require_once($CFG->dirroot.'/rating/lib.php'); 29require_once($CFG->dirroot.'/user/lib.php'); 44$discussionsonly = ($mode !== 'posts'); 45$isspecificcourse = !is_null($courseid); 46$iscurrentuser = ($USER->id == $userid); 47 48$url = new moodle_url('/mod/forum/user.php', array('id' => $userid)); 49if ($isspecificcourse) { 170 if ($mode == 'posts') { 171 $navbar = $PAGE->navbar->add(get_string('posts', 'forum'), new moodle_url('/mod/forum/user.php', 172 array('id' => $user->id, 'course' => $courseid)));DB_result.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 411 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 * 218 219 if ($key != '' AND ! is_null($value)) 220 { 408 409/* End of file DB_result.php */ 410/* Location: ./system/database/DB_result.php */lessify.inc.php git://github.com/leafo/lessphp.git | PHP | 451 lines
1<?php 2/** 4 * Convert a css file into a less file 5 * http://leafo.net/lessphp 6 * Copyright 2010, leaf corcoran <leafot@gmail.com> 8 * WARNING: THIS DOES NOT WORK ANYMORE. NEEDS TO BE UPDATED FOR 9 * LATEST VERSION OF LESSPHP. 10 * 12 13require "lessc.inc.php"; 14 270 public function dump($stack = null) { 271 if (is_null($stack)) $stack = array(); 272 $stack[] = $this->getName(); 290 291 $isVisible = !is_null($this->the_block) || !is_null($this->child_blocks); 292HashTable.php https://PHPExcel.svn.codeplex.com/svn | PHP | 205 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2008 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 - 2008 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 Exceptiongoogle_docs_external_repository_manager_form.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-google-docs-dev/ | PHP | 147 lines
1<?php 2namespace common\extensions\external_repository_manager\implementation\google_docs; 11/** 12 * $Id: google_docs_external_repository_manager_form.class.php 224 2009-11-13 14:40:30Z kariboe $ 13 * @package 138 { 139 if (! is_null($_POST['foldername'])) 140 {settingslib.php git://github.com/moodle/moodle.git | PHP | 198 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 96 foreach ($times as $timemask => $name) { 97 if ($timemask == self::DURING && !is_null($this->duringstate)) { 98 if ($this->duringstate) { 132 } 133 if ($timemask == self::DURING && !is_null($this->duringstate)) { 134 $state = 'disabled="disabled" '; 167 168 require_once($CFG->dirroot . '/mod/quiz/locallib.php'); 169 $this->choices = quiz_get_grading_options(); 191 192 require_once($CFG->dirroot . '/mod/quiz/locallib.php'); 193 $this->choices = quiz_access_manager::get_browser_security_choices();XMLUtil.php git://github.com/gallery/gallery3-contrib.git | PHP | 208 lines
1<?php 2 19 * 20 * The body is quite complicated, so we're turning it into a PHP 21 * array. 75 76 if (!is_null($start) && !is_null($end) && $end <= $start) { 77 throw new Sabre_DAV_Exception_BadRequest('The end-date must be larger than the start-date in the time-range filter'); 136 137 if ($matches[7]==='Z' || is_null($tz)) { 138 $tz = new DateTimeZone('UTC'); 172 * 173 * NOTE: When we require PHP 5.3 this can be replaced by the DateTimeInterval object, which 174 * supports ISO 8601 Intervals, which is a superset of ICalendar durations.