100+ results for 'php is_string'
Not the results you expected?
array-data-defs.h (https://github.com/tstarling/hiphop-php.git) C Header · 357 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
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 +----------------------------------------------------------------------+
15 */
File.php (https://github.com/lanmediaservice/lms-tplib.git) PHP · 460 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $
22 */
25 * @see Zend_OpenId_Consumer_Storage
26 */
27 //*** require_once "Zend/OpenId/Consumer/Storage.php";
29 /**
63 }
64 $user = get_current_user();
65 if (is_string($user) && !empty($user)) {
66 $tmp .= '/' . $user;
67 }
dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 2460 2008-04-08 21:03:22Z mz $
7 */
8 /**
56 } elseif (is_bool($value)) {
57 return "Boolean";
58 } elseif (is_string($value)) {
59 return "String";
60 } elseif (is_integer($value)) {
dumper.php (https://github.com/williamswebworks/transparencydata-php.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $
7 */
8 /**
56 } elseif (is_bool($value)) {
57 return "Boolean";
58 } elseif (is_string($value)) {
59 return "String";
60 } elseif (is_integer($value)) {
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
309 $withWeights = false;
310 foreach($sets as $nameOrIndex => $weightOrName) {
311 if (is_string($nameOrIndex)) {
312 $withWeights = true;
313 break;
Template.php (https://bitbucket.org/wl-framework-dev/weblab-framework.git) PHP · 350 lines
1 <?php
2 /**
3 * Represents a PHP Template file
90 $config = self::_getConfig();
92 if( !empty( $directory ) && is_string( $directory ) ) {
93 $this->setTemplateDir( $directory );
94 } elseif( is_string( $config->directory ) ) {
96 }
98 if( $theme === null && !empty( $config->theme ) && is_string( $config->theme ) ) {
99 $this->setTheme( $config->theme );
100 }
102 if( is_string( $theme ) ) {
103 $this->setTheme( $theme );
104 }
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
dumper.php (https://github.com/kugu/limb.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $
7 */
8 /**
56 } elseif (is_bool($value)) {
57 return "Boolean";
58 } elseif (is_string($value)) {
59 return "String";
60 } elseif (is_integer($value)) {
toolset.settings.class.php (https://gitlab.com/Fraternal-Group/fraternal) PHP · 468 lines
PropertyPathBuilder.php (https://github.com/deviantintegral/symfony.git) PHP · 299 lines
1 <?php
3 /*
46 public function append($path, $offset = 0, $length = 0)
47 {
48 if (is_string($path)) {
49 $path = new PropertyPath($path);
50 }
116 public function replace($offset, $length, $path, $pathOffset = 0, $pathLength = 0)
117 {
118 if (is_string($path)) {
119 $path = new PropertyPath($path);
120 }
Dispatcher.php (https://gitlab.com/kimting254/wbms) PHP · 486 lines
1 <?php namespace Illuminate\Events;
3 use Exception;
146 protected function resolveSubscriber($subscriber)
147 {
148 if (is_string($subscriber))
149 {
150 return $this->container->make($subscriber);
308 public function makeListener($listener)
309 {
310 return is_string($listener) ? $this->createClassListener($listener) : $listener;
311 }
Logical.php (https://gitlab.com/adamlwalker/generatedata) PHP · 288 lines
22 * @package PHPExcel_Calculation
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
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
Clover.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 284 lines
1 <?php
2 /*
3 * This file is part of the PHP_CodeCoverage package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
11 /**
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
13 *
14 * @since Class available since Release 1.0.0
15 */
16 class PHP_CodeCoverage_Report_Clover
17 {
18 /**
Logical.php (https://gitlab.com/ptisky/API_prestashop) PHP · 288 lines
22 * @package PHPExcel_Calculation
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
Logical.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 288 lines
22 * @package PHPExcel_Calculation
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
25 * @version 1.7.8, 2012-10-12
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
Logical.php (https://gitlab.com/kimting254/wbms) PHP · 288 lines
22 * @package PHPExcel_Calculation
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
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
Outline.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 373 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Outline.php 23775 2011-03-01 17:25:24Z ralph $
21 */
200 default:
201 // // // // // // // // // // require_once 'Zend/Pdf/Exception.php';
202 throw new Zend_Pdf_Exception("Unknown option name - '$key'.");
203 break;
230 public static function create($param1, $param2 = null)
231 {
232 // // // // // // // // // // require_once 'Zend/Pdf/Outline/Created.php';
233 if (is_string($param1)) {
Cloud.php (https://github.com/grandison/budo16.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 16209 2009-06-21 19:20:34Z thomas $
21 */
24 * @see Zend_Tag_Item
25 */
26 // require_once 'Zend/Tag/Item.php';
28 /**
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 // require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
TraitUsageGenerator.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 353 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
162 );
163 }
164 if (! is_string($alias)) {
165 throw new Exception\InvalidArgumentException('Invalid Alias: $alias must be a string or array.');
166 }
240 foreach ($traitsToReplace as $traitToReplace) {
241 if (! is_string($traitToReplace)) {
242 throw new Exception\InvalidArgumentException(
243 'Invalid Argument: $traitToReplace must be a string or array of strings'
Boolean.php (https://github.com/leerbag/zf2.git) PHP · 373 lines
1 <?php
2 /**
3 * Zend Framework
43 const EMPTY_ARRAY = 32;
44 const NULL = 64;
45 const PHP = 127;
46 const FALSE_STRING = 128;
47 const YES = 256;
56 self::EMPTY_ARRAY => 'array',
57 self::NULL => 'null',
58 self::PHP => 'php',
59 self::FALSE_STRING => 'false',
60 self::YES => 'yes',
67 * @var integer
68 */
69 protected $_type = self::PHP;
71 /**
Logical.php (https://github.com/davealaras/ERB-STSN.git) PHP · 290 lines
22 * @package PHPExcel_Calculation
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
25 * @version 1.7.6, 2011-02-27
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = false;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
ClassRegistry.php (https://github.com/masihnewbie/cakephp.git) PHP · 341 lines
1 <?php
2 /**
3 * Class collections.
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package Cake.Utility
18 * @since CakePHP(tm) v 0.9.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
class-wp-customize-setting.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 439 lines
HookApi.php (https://gitlab.com/iamgraeme/royalmile) PHP · 337 lines
1 <?php
2 namespace WebSharks\HtmlCompressor;
103 public function hookId($function)
104 {
105 if (is_string($function)) {
106 return $function;
107 }
114 if (is_object($function[0])) {
115 return spl_object_hash($function[0]).$function[1];
116 } elseif (is_string($function[0])) {
117 return $function[0].'::'.$function[1];
118 }
Logical.php (https://gitlab.com/marchelo8622/pluslawip) PHP · 288 lines
22 * @package PHPExcel_Calculation
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
25 * @version 1.8.0, 2014-03-02
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
PropertyPathBuilder.php (https://github.com/gimler/symfony.git) PHP · 299 lines
1 <?php
3 /*
46 public function append($path, $offset = 0, $length = 0)
47 {
48 if (\is_string($path)) {
49 $path = new PropertyPath($path);
50 }
116 public function replace($offset, $length, $path, $pathOffset = 0, $pathLength = 0)
117 {
118 if (\is_string($path)) {
119 $path = new PropertyPath($path);
120 }
Logical.php (https://gitlab.com/alexandresgv/siteentec) PHP · 288 lines
22 * @package PHPExcel_Calculation
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
listings.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 423 lines
119 if ( $archive ) {
120 ?>
121 <a href="<?php echo esc_attr( get_post_type_archive_link( $post_type ) ); ?>"><?php esc_html_e( 'View frontend archive', 'custom-post-type-ui' ); ?></a>
122 <?php } ?>
168 <p><strong><?php esc_html_e( 'Archives file name examples.', 'custom-post-type-ui' ); ?></strong><br/>
169 archive-<?php echo esc_html( $post_type ); ?>.php<br/>
170 archive.php<br/>
174 <p><strong><?php esc_html_e( 'Single Posts file name examples.', 'custom-post-type-ui' ); ?></strong><br/>
175 single-<?php echo esc_html( $post_type ); ?>-post_slug.php (WP 4.4+) *<br/>
176 single-<?php echo esc_html( $post_type ); ?>.php<br/>
178 singular.php (WP 4.3+)<br/>
179 index.php
180 </p>
334 <p><strong><?php esc_html_e( 'Archives', 'custom-post-type-ui' ); ?></strong><br />
335 taxonomy-<?php echo esc_html( $taxonomy ); ?>-term_slug.php *<br />
336 taxonomy-<?php echo esc_html( $taxonomy ); ?>.php<br />
Cloud.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 427 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
154 $itemList[] = new Zend_Tag_Item( $tag );
155 } else {
156 require_once 'Zend/Tag/Cloud/Exception.php';
157 throw new Zend_Tag_Cloud_Exception( 'Tag must be an instance of Zend_Tag_Taggable or an array' );
158 }
Logical.php (https://github.com/andrerezende/SIE.git) PHP · 290 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
25 * @version 1.7.5, 2010-12-10
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = false;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
Services_BuzzurlTest.php (https://github.com/GunioRobot/php-services_buzzurl.git) PHP · 300 lines
14 $t = new lime_test(68, new lime_output_color());
16 require_once 'Services/Buzzurl.php';
18 $t->diag('getInstance');
77 $t->ok(is_array($api->getArticles($id, 'php')), 'get articles by keywords is ok');
78 $api->setFormat('json');
79 $t->ok(is_string($api->getArticles($id, 'php')), 'get articles by keywords(json) is ok');
81 $t->diag('getRecentAirticles');
92 $api->setFormat('json');
93 $t->ok(is_string($api->getRecentArticles()), 'get recent articles(json) is ok');
94 $t->ok(is_string($api->getRecentArticles(null, null, null)), 'get recent articles(json) is ok');
95 $t->ok(is_string($api->getRecentArticles(1)), 'get recent articles(json) is ok');
96 $t->ok(is_string($api->getRecentArticles(1, 1)), 'get recent articles(json) is ok');
lib.php (https://gitlab.com/MotoSport/morgue) PHP · 307 lines
TaggableBehavior.php (https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git) PHP · 304 lines
10 protected $parameters = array(
11 'tagging_table' => '%TABLE%_tagging',
12 'tagging_table_phpname' => '%PHPNAME%Tagging',
13 'tag_table' => 'taggable_tag',
14 'tag_table_phpname' => 'Tag',
91 $this->taggingTable = $database->addTable(array(
92 'name' => $taggingTableName,
93 'phpName' => $this->replaceTokens($this->parameters['tagging_table_phpname']),
94 'package' => $table->getPackage(),
95 'schema' => $table->getSchema(),
297 return strtr($string, array(
298 '%TABLE%' => $table->getName(),
299 '%PHPNAME%' => $table->getPhpName(),
300 ));
301 }
YamlFileLoader.php (https://github.com/flubbers/cloudFutbol.git) PHP · 325 lines
1 <?php
3 /*
76 public function supports($resource, $type = null)
77 {
78 return is_string($resource) && 'yml' === pathinfo($resource, PATHINFO_EXTENSION);
79 }
126 private function parseDefinition($id, $service, $file)
127 {
128 if (is_string($service) && 0 === strpos($service, '@')) {
129 $this->container->setAlias($id, substr($service, 1));
189 if (isset($service['configurator'])) {
190 if (is_string($service['configurator'])) {
191 $definition->setConfigurator($service['configurator']);
192 } else {
Logical.php (https://github.com/real-chocopanda/PHPExcel.git) PHP · 290 lines
22 * @package PHPExcel_Calculation
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
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = false;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
Logical.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 288 lines
22 * @package PHPExcel_Calculation
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
25 * @version 1.7.7, 2012-05-19
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
121 $arg = FALSE;
122 } else {
123 return PHPExcel_Calculation_Functions::VALUE();
124 }
125 $returnValue = $returnValue && ($arg != 0);
VCardTest.php (https://gitlab.com/deichbrise/vcard-viewhelper) PHP · 355 lines
1 <?php
3 namespace JeroenDesloovere\VCard\tests;
5 // required to load
6 require_once __DIR__ . '/../vendor/autoload.php';
8 /*
9 * This file is part of the VCard PHP Class from Jeroen Desloovere.
10 *
11 * For the full copyright and license information, please view the license
17 /**
18 * This class will test our VCard PHP Class which can generate VCards.
19 *
20 * @author Jeroen Desloovere <info@jeroendesloovere.be>
AtomBase.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 326 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
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
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
unit_tester.php (https://github.com/viggof/moodle.git) PHP · 420 lines
1 <?php
2 /**
3 * base include file for SimpleTest
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/dumper.php');
16 /**
17 * Standard unit test class for day to day testing
18 * of PHP code XP style. Adds some useful standard
19 * assertions.
20 * @package SimpleTest
52 /**
53 * Will be true on false and vice versa. False
54 * is the PHP definition of false, so that null,
55 * empty strings, zero and an empty array all count
56 * as false.
Decorator.php (https://github.com/apurvgupta12/Ushahidi_Web.git) PHP · 259 lines
1 <?php
3 /**
10 */
12 require_once dirname(__FILE__) . "/../ClassLoader.php";
13 Swift_ClassLoader::load("Swift_Events_BeforeSendListener");
14 Swift_ClassLoader::load("Swift_Plugin_Decorator_Replacements");
139 foreach ($mime->headers->getList() as $name => $value)
140 {
141 if (is_string($value) && ($replaced = $this->replace($replacements, $value)) != $value)
142 {
143 $mime->headers->set($name, $replaced);
148 foreach ($mime->headers->listAttributes($name) as $att_name => $att_value)
149 {
150 if (is_string($att_value)
151 && ($att_replaced = $this->replace($replacements, $att_value)) != $att_value)
152 {
YamlFileLoader.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 236 lines
Variables.php (https://github.com/leerbag/zf2.git) PHP · 337 lines
Collection.php (https://gitlab.com/ealexis.t/trends) PHP · 334 lines
Properties.php (https://github.com/tmccormi/openemr.git) PHP · 629 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Document;
5 class Properties
177 if ($time === null) {
178 $time = time();
179 } elseif (is_string($time)) {
180 if (is_numeric($time)) {
181 $time = (int) $time;
211 if ($time === null) {
212 $time = time();
213 } elseif (is_string($time)) {
214 if (is_numeric($time)) {
215 $time = (int) $time;
PhpClass.php (https://github.com/agelang/zf2.git) PHP · 562 lines
30 * @uses \Zend\CodeGenerator\Php\Exception
31 * @uses \Zend\CodeGenerator\Php\PhpMember\MemberContainer
32 * @uses \Zend\CodeGenerator\Php\PhpMethod
147 * setPhpFile()
148 *
149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile
150 */
151 public function setPhpFile(PhpFile $phpFile)
331 * setProperty()
332 *
333 * @param array|\Zend\CodeGenerator\Php\PhpProperty $property
334 * @return \Zend\CodeGenerator\Php\PhpClass
558 $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);
559 $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);
560 }
Isbn.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 284 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Isbn.php 22668 2010-07-25 14:50:46Z thomas $
20 */
28 * @see Zend_Validate_Abstract
29 */
30 require_once 'Zend/Validate/Abstract.php';
32 /**
85 * @see Zend_Validate_Exception
86 */
87 require_once 'Zend/Validate/Exception.php';
88 throw new Exception('Invalid options provided.');
89 }
UndefinedConstraint.php (https://gitlab.com/imamul68e/137619_PHP31) PHP · 286 lines
1 <?php
3 /*
71 // check string
72 if (is_string($value)) {
73 $this->checkString($value, $schema, $path, $i);
74 }
97 // if it extends another schema, it must pass that schema as well
98 if (isset($schema->extends)) {
99 if (is_string($schema->extends)) {
100 $schema->extends = $this->validateUri($schema, $schema->extends);
101 }
251 foreach ($dependencies as $key => $dependency) {
252 if (property_exists($value, $key)) {
253 if (is_string($dependency)) {
254 // Draft 3 string is allowed - e.g. "dependencies": {"bar": "foo"}
255 if (!property_exists($value, $dependency)) {
TemplatePathStack.php (https://github.com/bruisedlee/zf2.git) PHP · 291 lines
Constraint.php (https://github.com/welaika/wordless.git) PHP · 315 lines
GifCreator.php (https://gitlab.com/billyprice1/mc-skintools) PHP · 349 lines
1 <?php
3 namespace GifCreator;
8 * @link https://github.com/Sybio/GifCreator
9 * @author Sybio (Clément Guillemain / @Sybio01)
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @copyright Clément Guillemain
12 * @modified by Max Korlaar
102 ob_end_clean();
104 } elseif (is_string($frames[$i])) { // File path or URL or Binary source code
106 if (file_exists($frames[$i]) || filter_var($frames[$i], FILTER_VALIDATE_URL)) { // File path
Route.php (https://bitbucket.org/mikebosire/framework.git) PHP · 451 lines
1 <?php namespace Illuminate\Routing;
3 use Illuminate\Http\Response;
397 public function setBeforeFilters($value)
398 {
399 $filters = is_string($value) ? explode('|', $value) : (array) $value;
401 $this->setOption('_before', $filters);
420 public function setAfterFilters($value)
421 {
422 $filters = is_string($value) ? explode('|', $value) : (array) $value;
424 $this->setOption('_after', $filters);
Action.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 242 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tool_Project_Provider_Abstract
25 */
26 require_once 'Zend/Tool/Project/Provider/Abstract.php';
28 /**
29 * @see Zend_Tool_Framework_Provider_Pretendable
30 */
31 require_once 'Zend/Tool/Framework/Provider/Pretendable.php';
33 /**
Decorator.php (https://bitbucket.org/lihorne/tedxuw.git) PHP · 258 lines
1 <?php
3 /**
10 */
12 require_once dirname(__FILE__) . "/../ClassLoader.php";
13 Swift_ClassLoader::load("Swift_Plugin_Decorator_Replacements");
138 foreach ($mime->headers->getList() as $name => $value)
139 {
140 if (is_string($value) && ($replaced = $this->replace($replacements, $value)) != $value)
141 {
142 $mime->headers->set($name, $replaced);
147 foreach ($mime->headers->listAttributes($name) as $att_name => $att_value)
148 {
149 if (is_string($att_value)
150 && ($att_replaced = $this->replace($replacements, $att_value)) != $att_value)
151 {
DelegatingValidator.php (https://github.com/xbojer/gfw.git) PHP · 259 lines
Barcode.php (https://github.com/leerbag/zf2.git) PHP · 323 lines
1 <?php
2 /**
3 * Zend Framework
208 * Verify that an barcode name has been specified.
209 */
210 if (!is_string($barcode) || empty($barcode)) {
211 throw new Exception\InvalidArgumentException(
212 'Barcode name must be specified in a string'
259 * Verify that an barcode name has been specified.
260 */
261 if (!is_string($renderer) || empty($renderer)) {
262 throw new Exception\RendererCreationException(
263 'Renderer name must be specified in a string'
Test.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 198 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Test.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tool_Project_Provider_Abstract
25 */
26 require_once 'Zend/Tool/Project/Provider/Abstract.php';
28 /**
62 }
64 $included = @include 'PHPUnit/Runner/Version.php';
66 if ($included === false) {
CDFDataColumn.php (https://bitbucket.org/cleardemon/cdf.git) PHP · 439 lines
1 <?php
3 /**
6 */
8 require_once 'CDFIDataConnection.php';
9 require_once dirname(__FILE__) . '/../core/CDFDataHelper.php';
10 require_once dirname(__FILE__) . '/../core/CDFExceptions.php';
12 // Please use the constants and not the values directly!
67 protected function __construct($dataType, $name, $value = null, $opts = null)
68 {
69 if(!is_int($dataType) || !is_string($name))
70 throw new CDFInvalidArgumentException();
Cloud.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
173 $tags[] = new Zend_Tag_Item($tag);
174 } else {
175 #require_once 'Zend/Tag/Cloud/Exception.php';
176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
177 }
ElggMenuItem.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 568 lines
Barcode.php (https://gitlab.com/devtoannh/cafe) PHP · 352 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Barcode.php 23775 2011-03-01 17:25:24Z ralph $
20 */
140 * @see Zend_Barcode_Exception
141 */
142 require_once 'Zend/Barcode/Exception.php';
143 throw new Zend_Barcode_Exception(
144 'Barcode parameters must be in an array or a Zend_Config object'
149 * Verify that an barcode name has been specified.
150 */
151 if (!is_string($barcode) || empty($barcode)) {
152 /**
153 * @see Zend_Barcode_Exception
orm.php (https://bitbucket.org/mslepko/default-kohana.git) PHP · 291 lines
base.php (https://gitlab.com/alexprowars/bitrix) PHP · 539 lines
Date.php (https://github.com/taste/zf2.git) PHP · 261 lines
person.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 302 lines
BootstrapPaginatorHelper.php (https://bitbucket.org/reyx/p0001festivalcachorroquente.git) PHP · 254 lines
1 <?php
2 /**
3 * Bootstrap Paginator Helper
4 *
5 * PHP 5
6 *
7 * Licensed under The MIT License
10 * @author Yusuf Abdulla Shunan <shunan@maldicore.com>
11 * @copyright Copyright 2012, Maldicore Group Pvt Ltd. (http://maldicore.com)
12 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
13 * @since CakePHP(tm) v 2.1.1
100 }
101 $out .= $after;
102 } elseif ($params['page'] > 1 && is_string($first)) {
103 $out = $this->Html->tag($tag, $this->link($first, array('page' => 1), $options), compact('class')) . $after;
104 }
Stack.php (https://github.com/ggunlugu/ornekler.git) PHP · 353 lines
1 <?php
2 /**
3 *
11 * @package Solar
12 *
13 * @author Paul M. Jones <pmjones@solarphp.com>
14 *
15 * @license http://opensource.org/licenses/bsd-license.php BSD
16 *
17 * @version $Id: Stack.php 4533 2010-04-23 16:35:15Z pmjones $
18 *
19 */
45 * Adds one or more classes to the stack.
46 *
47 * {{code: php
48 *
49 * // add by array
Pdo.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 439 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Db_Statement
25 */
26 require_once 'Zend/Db/Statement.php';
28 /**
58 $this->_stmt = $this->_adapter->getConnection()->prepare($sql);
59 } catch (PDOException $e) {
60 require_once 'Zend/Db/Statement/Exception.php';
61 throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
62 }
65 /**
66 * Bind a column of the statement result set to a PHP variable.
67 *
68 * @param string $column Name the column in the result set, either by
Action.php (https://bitbucket.org/ksekar/campus.git) PHP · 242 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Action.php 24594 2012-01-05 21:27:01Z matthew $
21 */
24 * @see Zend_Tool_Project_Provider_Abstract
25 */
26 require_once 'Zend/Tool/Project/Provider/Abstract.php';
28 /**
29 * @see Zend_Tool_Framework_Provider_Pretendable
30 */
31 require_once 'Zend/Tool/Framework/Provider/Pretendable.php';
33 /**
File.php (https://github.com/gryzz/crystal_magento.git) PHP · 460 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $
22 */
25 * @see Zend_OpenId_Consumer_Storage
26 */
27 #require_once "Zend/OpenId/Consumer/Storage.php";
29 /**
63 }
64 $user = get_current_user();
65 if (is_string($user) && !empty($user)) {
66 $tmp .= '/' . $user;
67 }
AclComponent.php (https://github.com/kunit/cakephp.git) PHP · 180 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @package Cake.Controller.Component
13 * @since CakePHP(tm) v 0.10.0.1076
14 * @license http://www.opensource.org/licenses/mit-license.php MIT License
15 */
22 *
23 * Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
24 * You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
25 * implementations should extend `AclBase` and implement the methods it defines.
26 *
Action.php (https://bitbucket.org/haichau59/manga.git) PHP · 242 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Action.php 24594 2012-01-05 21:27:01Z matthew $
21 */
24 * @see Zend_Tool_Project_Provider_Abstract
25 */
26 //require_once 'Zend/Tool/Project/Provider/Abstract.php';
28 /**
29 * @see Zend_Tool_Framework_Provider_Pretendable
30 */
31 //require_once 'Zend/Tool/Framework/Provider/Pretendable.php';
33 /**
AbuseReports.php (https://bitbucket.org/VirtualReality/libaurora.php.git) PHP · 342 lines
1 <?php
2 //! @file Aurora/Addon/WebAPI/AbuseReports.php
33 if(is_integer($number) === false){
34 throw new InvalidArgumentException('AR Number must be an integer.');
35 }else if(is_string($details) === false){
36 throw new InvalidArgumentException('AR Details must be a string.');
37 }else if(is_string($location) === false){
38 throw new InvalidArgumentException('AR Location must be a string.');
39 }else if(is_string($userName) === false){
40 throw new InvalidArgumentException('AR accused name must be a string.');
41 }else if(is_string($summary) === false){
43 }else if(is_bool($active) === false){
44 throw new InvalidArgumentException('AR activity flag must be a boolean.');
45 }else if(is_string($assignedTo) === false){
46 throw new InvalidArgumentException('AR admin assignee name must be a string.');
47 }else if(is_string($category) === false){
AclComponent.php (https://bitbucket.org/LeThanhDat/firstdummyapp.git) PHP · 179 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @package Cake.Controller.Component
13 * @since CakePHP(tm) v 0.10.0.1076
14 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
15 */
16 App::uses('Component', 'Controller');
21 *
22 * Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
23 * You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
24 * implementations should extend `AclBase` and implement the methods it defines.
25 *
market.proto.php (https://github.com/nidhinj/android-market-api-php.git) PHP · 1377 lines
1 <?php
2 // Please include the below file before market.proto.php
3 //require('protocolbuffers.inc.php');
4 // enum AppsRequest.OrderType
5 class AppsRequest_OrderType {
48 private $_unknown;
50 function __construct($in = NULL, &$limit = PHP_INT_MAX) {
51 if($in !== NULL) {
52 if (is_string($in)) {
53 $fp = fopen('php://memory', 'r+b');
54 fwrite($fp, $in);
55 rewind($fp);
web_tester.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 1412 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: web_tester.php 1723 2008-04-08 00:34:10Z lastcraft $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/browser.php');
14 require_once(dirname(__FILE__) . '/page.php');
15 require_once(dirname(__FILE__) . '/expectation.php');
unit_tester.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 420 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: unit_tester.php 1723 2008-04-08 00:34:10Z lastcraft $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/dumper.php');
16 /**
17 * Standard unit test class for day to day testing
18 * of PHP code XP style. Adds some useful standard
19 * assertions.
20 * @package SimpleTest
web_tester.php (https://github.com/billfox3/ThinkUp.git) PHP · 1410 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: web_tester.php 1967 2009-10-14 13:09:41Z maetl_ $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/browser.php');
14 require_once(dirname(__FILE__) . '/page.php');
15 require_once(dirname(__FILE__) . '/expectation.php');
encoding.php (https://github.com/billfox3/ThinkUp.git) PHP · 649 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: encoding.php 1964 2009-10-13 15:27:31Z maetl_ $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
13 /**#@-*/
445 function __construct($query = false, $content_type = false) {
446 $this->content_type = $content_type;
447 if (is_string($query)) {
448 $this->body = $query;
449 parent::__construct();
TestRedis.php (https://github.com/esimionato/phpredis.git) PHP · 1456 lines
1 <?php
2 require_once 'PHPUnit.php';
4 echo "Note: these tests might take up to a minute. Don't worry :-)\n";
6 class Redis_Test extends PHPUnit_TestCase
7 {
8 const HOST = '127.0.0.1';
617 // );
618 // if(function_exists('proc_open')) {
619 // $env = array('PHPREDIS_key' =>'list', 'PHPREDIS_value' => 'value');
620 // $process = proc_open('php', $params, $pipes, '/tmp', $env);
628 // $r->auth("'.addslashes(self::AUTH).'");
629 // }
630 // $r->lPush($_ENV["PHPREDIS_key"], $_ENV["PHPREDIS_value"]);
631 // ?' . '>');
632 //
web_tester.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 1270 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/browser.php');
14 require_once(dirname(__FILE__) . '/page.php');
15 require_once(dirname(__FILE__) . '/expectation.php');
68 */
69 function _isSingle($value) {
70 return is_string($value) || is_integer($value) || is_float($value);
71 }
msgpack_convert.c (https://github.com/mostlygeek/msgpack.git) C · 794 lines
2 #include "php.h"
4 #include "php_msgpack.h"
5 #include "msgpack_convert.h"
6 #include "msgpack_errors.h"
8 #if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 3)
9 # define Z_REFCOUNT_P(pz) ((pz)->refcount)
10 # define Z_SET_ISREF_P(pz) (pz)->is_ref = 1
328 break;
329 case IS_OBJECT:
330 case IS_STRING:
331 convert_function = msgpack_convert_object;
332 break;
IdentifierQuoter.php (https://gitlab.com/vannh/portal_training) PHP · 258 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
132 $result = [];
133 foreach ((array)$part as $alias => $value) {
134 $value = !is_string($value) ? $value : $this->_driver->quoteIdentifier($value);
135 $alias = is_numeric($alias) ? $alias : $this->_driver->quoteIdentifier($alias);
136 $result[$alias] = $value;
web_tester.php (https://github.com/lightyoruichi/DIY.git) PHP · 1410 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: web_tester.php 2013 2011-04-29 09:29:45Z pp11 $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/browser.php');
14 require_once(dirname(__FILE__) . '/page.php');
15 require_once(dirname(__FILE__) . '/expectation.php');
encoding.php (https://github.com/lightyoruichi/DIY.git) PHP · 649 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: encoding.php 2011 2011-04-29 08:22:48Z pp11 $
7 */
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
13 /**#@-*/
445 function __construct($query = false, $content_type = false) {
446 $this->content_type = $content_type;
447 if (is_string($query)) {
448 $this->body = $query;
449 parent::__construct();
FormElementManager.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 193 lines
Pdo.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 309 lines
ShellOutput.php (https://gitlab.com/techniconline/kmc) PHP · 201 lines
1 <?php
3 /*
41 if ($pager === null) {
42 $this->pager = new PassthruPager($this);
43 } elseif (is_string($pager)) {
44 $this->pager = new ProcOutputPager($this, $pager);
45 } elseif ($pager instanceof OutputPager) {
65 public function page($messages, $type = 0)
66 {
67 if (is_string($messages)) {
68 $messages = (array)$messages;
69 }
meta.php (https://gitlab.com/Gashler/dp) PHP · 914 lines
FormBuilder.php (https://github.com/Faianca/symfony.git) PHP · 699 lines
1 <?php
3 /*
534 }
536 if (!is_string($child)) {
537 throw new UnexpectedTypeException($child, 'string or Symfony\Component\Form\FormBuilder');
538 }
540 if (null !== $type && !is_string($type) && !$type instanceof FormTypeInterface) {
541 throw new UnexpectedTypeException($type, 'string or Symfony\Component\Form\FormTypeInterface');
542 }
544 if ($this->currentLoadingType && ($type instanceof FormTypeInterface ? $type->getName() : $type) == $this->currentLoadingType) {
545 throw new CircularReferenceException(is_string($type) ? $this->getFormFactory()->getType($type) : $type);
546 }
HelperAbstract.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 855 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: HelperAbstract.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_View_Helper_Navigation_Helper
25 */
26 require_once 'Zend/View/Helper/Navigation/Helper.php';
28 /**
29 * @see Zend_View_Helper_HtmlElement
30 */
31 require_once 'Zend/View/Helper/HtmlElement.php';
33 /**
File.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 511 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: File.php 23775 2011-03-01 17:25:24Z ralph $
22 */
25 * @see Zend_OpenId_Consumer_Storage
26 */
27 require_once "Zend/OpenId/Consumer/Storage.php";
29 /**
63 }
64 $user = get_current_user();
65 if (is_string($user) && !empty($user)) {
66 $tmp .= '/' . $user;
67 }
web_tester.php (https://github.com/viggof/moodle.git) PHP · 1413 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/test_case.php');
13 require_once(dirname(__FILE__) . '/browser.php');
14 require_once(dirname(__FILE__) . '/page.php');
15 require_once(dirname(__FILE__) . '/expectation.php');
68 */
69 function _isSingle($value) {
70 return is_string($value) || is_integer($value) || is_float($value);
71 }
Collection.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 705 lines
Route.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 594 lines
DataCenter.ui.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 1145 lines
1 <?php
2 /**
3 * UI Class for DataCenter extension
52 /**
53 * Converts a PHP value to a javascript object
54 * @param value Associative Array to convert
55 */
72 /**
73 * Converts a PHP value to a javascript array
74 * @param value Array or Scalar to convert
75 */
92 /**
93 * Converts a PHP value to a javascript value
94 * @param value Array or Scalar to convert, if value is string
95 * it will be escaped and surrounded by quotes
DbTable.php (https://github.com/Exercise/zf2.git) PHP · 231 lines
1 <?php
2 /**
3 * Zend Framework
54 $profileSearchParams = array();
56 if ($moduleName != null && is_string($moduleName)) {
57 $profileSearchParams = array('modulesDirectory', 'moduleDirectory' => array('moduleName' => $moduleName));
58 }
82 $profileSearchParams = array();
84 if ($moduleName != null && is_string($moduleName)) {
85 $profileSearchParams = array('modulesDirectory', 'moduleDirectory' => array('moduleName' => $moduleName));
86 }
HelperAbstract.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 855 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_View_Helper_Navigation_Helper
25 */
26 // require_once 'Zend/View/Helper/Navigation/Helper.php';
28 /**
29 * @see Zend_View_Helper_HtmlElement
30 */
31 // require_once 'Zend/View/Helper/HtmlElement.php';
33 /**
170 if (null === $this->_container) {
171 // try to fetch from registry first
172 // require_once 'Zend/Registry.php';
173 if (Zend_Registry::isRegistered('Zend_Navigation')) {
174 $nav = Zend_Registry::get('Zend_Navigation');
File.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 511 lines
1 <?php
3 /**
25 * @see Zend_OpenId_Consumer_Storage
26 */
27 // require_once "Zend/OpenId/Consumer/Storage.php";
29 /**
63 }
64 $user = get_current_user();
65 if (is_string($user) && !empty($user)) {
66 $tmp .= '/' . $user;
67 }
74 * @see Zend_OpenId_Exception
75 */
76 // require_once 'Zend/OpenId/Exception.php';
77 throw new Zend_OpenId_Exception(
78 'Cannot access storage directory ' . $dir,
filestore_funcs.php
(http://enginey.googlecode.com/svn/trunk/)
PHP · 363 lines
✨ Summary
This PHP code is a file search engine that matches files against a query based on various attributes such as name, directory, and content. It uses regular expressions to filter results and can recurse into subdirectories. The code returns an array of matching files, which can be used for further processing or display.
This PHP code is a file search engine that matches files against a query based on various attributes such as name, directory, and content. It uses regular expressions to filter results and can recurse into subdirectories. The code returns an array of matching files, which can be used for further processing or display.
1 <?php
2 /**
3 * Helper function to convert a simple pattern to a regular expression for matching.
208 $ret = 0;
209 if (is_string($a) && is_string($b)) {
210 $ret = strcmp($a,$b);
211 } else if($a > $b || $a === null){
345 $matched = true;
346 } else {
347 if ($rExp != null && is_string(possibleValue)) {
348 if ($ignoreCase) {
349 $matched = eregi($rExp, $possibleValue);
360 return $matched;
361 }
362 // No closing PHP tag on purpose. Do not want it to print whitepace and thus not allow setting headers later.
ScriptingCore.cpp (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ · 882 lines
php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines
11 </PROPS>
12 <RULES IGNORE_CASE="TRUE">
13 <SPAN TYPE="MARKUP" DELEGATE="PHP">
14 <BEGIN><?php</BEGIN>
16 </SPAN>
18 <SPAN TYPE="MARKUP" DELEGATE="PHP">
19 <BEGIN><?</BEGIN>
20 <END>?></END>
21 </SPAN>
23 <SPAN TYPE="MARKUP" DELEGATE="PHP">
24 <BEGIN><%=</BEGIN>
25 <END>%></END>
65 <RULES SET="TAGS" DEFAULT="MARKUP">
66 <SPAN TYPE="MARKUP" DELEGATE="PHP">
67 <BEGIN><?php</BEGIN>