100+ results for 'php is_numeric'

Not the results you expected?

Definition.php (https://gitlab.com/ElvisAns/tiki) PHP · 396 lines

1 <?php

2

3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project

118 public function getField($id)

119 {

120 if (is_numeric($id)) {

121 foreach ($this->getFields() as $f) {

122 if ($f['fieldId'] == $id) {

KAsyncStorageDelete.class.php (https://github.com/richhl/kalturaCE.git) PHP · 149 lines

1 <?php

2 /**

3 * @package Scheduler

4 * @subpackage Storage

5 */

6 require_once("bootstrap.php");

7

8 /**

32 $filter->jobSubTypeIn = $this->getSupportedProtocols();

33

34 if($this->taskConfig->params->minFileSize && is_numeric($this->taskConfig->params->minFileSize))

35 $filter->fileSizeGreaterThan = $this->taskConfig->params->minFileSize;

36

37 if($this->taskConfig->params->maxFileSize && is_numeric($this->taskConfig->params->maxFileSize))

38 $filter->fileSizeLessThan = $this->taskConfig->params->maxFileSize;

39

Result.php (https://bitbucket.org/acidel/buykoala.git) PHP · 160 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Shipping

23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

125 $minPrice = 100000;

126 foreach ($this->getAllRates() as $rate) {

127 if (is_numeric($rate->getPrice()) && $rate->getPrice()<$minPrice) {

128 $cheapest = $rate;

129 $minPrice = $rate->getPrice();

tcCompareVersions.php (https://github.com/viglesiasce/testlink.git) PHP · 138 lines

1 <?php

2 /**

3 * TestLink Open Source Project - http://testlink.sourceforge.net/

7 * @author asimon

8 * @copyright 2005-2009, TestLink community

9 * @version CVS: $Id: tcCompareVersions.php,v 1.4 2010/04/23 14:02:42 asimon83 Exp $

10 * @link http://www.teamst.org/index.php

15 */

16

17 require_once("../../config.inc.php");

18 require_once("common.php");

19 require('../../third_party/diff/diff.php');

20

21 $templateCfg = templateConfiguration();

groupaccess.php (https://github.com/projectfork/Projectfork.git) PHP · 140 lines

1 <?php

2 /**

3 * @package pkg_projectfork

93 foreach ((array) $value as $name => $rules)

94 {

95 if (is_numeric($name)) continue;

96

97 $actions[] = $name;

oci8_forge.php (https://github.com/andigehle/CodeIgniter.git) PHP · 153 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.2.4 or newer

6 *

7 * NOTICE OF LICENSE

64 {

65 // Numeric field names aren't allowed in databases, so if the key is

66 // numeric, we know it was assigned by PHP and the developer manually

67 // entered the field information, so we'll simply add it to the list

68 if (is_numeric($field))

150 }

151

152 /* End of file oci8_forge.php */

153 /* Location: ./system/database/drivers/oci8/oci8_forge.php */

AutocompleteDoctrineType.php (https://github.com/cordoval/CULabsjQueryBundle.git) PHP · 145 lines

1 <?php

2

3 namespace CULabs\jQueryBundle\Widget;

131 }

132

133 if (!is_numeric($key)) {

134 throw new UnexpectedTypeException($key, 'numeric');

135 }

class-thelib-core.php (https://gitlab.com/najomie/fit-hippie) PHP · 221 lines

1 <?php

2 /**

3 * Main access to the Code-Library.

130 } elseif ( true === $value ) {

131 return true;

132 } elseif ( is_numeric( $value ) ) {

133 $value = intval( $value );

134 return $value != 0;

Panel.php (https://bitbucket.org/tomas_vahalik/framework.git) PHP · 184 lines

1 <?php

2

3 namespace NetteTranslator;

11 * @author Jan Smitka <jan@smitka.org>

12 * @author Patrik Votoček <patrik@votocek.cz>

13 * @author Vaclav Vrbka <gmvasek@php-info.cz>

14 */

15 class Panel extends Nette\Object implements Nette\Diagnostics\IBarPanel

41

42 if ($height !== NULL) {

43 if (!is_numeric($height))

44 throw new \InvalidArgumentException('Panel height has to be a numeric value.');

45 $this->height = $height;

126 $request = $this->container->httpRequest;

127 if ($request->isPost() && $request->isAjax() && $request->getHeader(self::XHR_HEADER)) {

128 $data = json_decode(file_get_contents('php://input'));

129 $translator = $this->translator;

130

Numeric.php (https://gitlab.com/oytunistrator/92five) PHP · 112 lines

35 * POSSIBILITY OF SUCH DAMAGE.

36 *

37 * @package PHPUnit

38 * @subpackage Framework

39 * @author Bernhard Schussek <bschussek@2bepublished.at>

56 * @since Class available since Release 3.6.0

57 */

58 class PHPUnit_Framework_Comparator_Numeric extends PHPUnit_Framework_Comparator_Scalar

59 {

60 /**

68 {

69 // all numerical values, but not if one of them is a double

70 return is_numeric($expected) && is_numeric($actual) && !(is_double($expected) || is_double($actual));

71 }

72

category.php (https://github.com/gpongelli/joomla-cms.git) PHP · 168 lines

1 <?php

2 /**

3 * @package Joomla.Libraries

58 if (isset($config['filter.published']))

59 {

60 if (is_numeric($config['filter.published']))

61 {

62 $query->where('a.published = ' . (int) $config['filter.published']);

135 if (isset($config['filter.published']))

136 {

137 if (is_numeric($config['filter.published']))

138 {

139 $query->where('a.published = ' . (int) $config['filter.published']);

Migration.php (https://github.com/reoring/sabel.git) PHP · 144 lines

1 <?php

2

3 /**

8 * @author Ebine Yutaka <ebine.yutaka@sabel.jp>

9 * @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp>

10 * @license http://www.opensource.org/licenses/bsd-license.php BSD License

11 */

12 class Sabel_Db_Ibase_Migration extends Sabel_Db_Abstract_Migration

130

131 if (($column->isBool() && !is_bool($default)) ||

132 ($column->isNumeric() && !is_numeric($default))) {

133 throw new Sabel_Db_Exception("invalid default value.");

134 } else {

ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines

1 <?php

2 /**

3 * File containing the eZISBN10To13Converter class.

84 {

85 $status = false;

86 if ( is_numeric( $classID ) )

87 {

88 $class = eZContentClass::fetch( $classID );

142 {

143 $status = false;

144 if ( is_numeric( $attributeID ) )

145 {

146 $classAttribute = eZContentClassAttribute::fetch( $attributeID );

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

40 {

41 $lightboxID = eZPreferences::value( eZLightbox::PREFERENCE_CURRENT_LIGHTBOX );

42 if ( !$lightboxID || !is_numeric( $lightboxID ) || $lightboxID <= 0 )

43 {

44 $lightboxID = false;

325 {

326 $targetLightboxID = $http->postVariable( 'MoveToLightboxID' );

327 if ( !$targetLightboxID || !is_numeric( $targetLightboxID ) || $targetLightboxID <= 0 )

328 {

329 $targetLightboxID = false;

Element.php (https://github.com/Zefiryn/graduationprojects.git) PHP · 176 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: Element.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

72 *

73 * @todo It's nevessry to check if SplObjectStorage class works faster

74 * (Needs PHP 5.3.x to attach object _with_ additional data to storage)

75 *

76 * @param Zend_Pdf_ElementFactory $factory The factory to attach

128

129 /**

130 * Convert PDF element to PHP type.

131 *

132 * @return mixed

Tag.php (https://github.com/michaelmcandrew/ieb.git) PHP · 215 lines

1 <?php

2

3 /*

106 if ( $entityId ) {

107 $tagset[$tagsetItem]['entityId'] = $entityId;

108 require_once 'CRM/Core/BAO/EntityTag.php';

109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );

110 } else {

117 $tagIds = explode( ',', $form->_submitValues['activity_taglist'][$parentId] );

118 foreach( $tagIds as $tagId ) {

119 if ( is_numeric( $tagId ) ) {

120 $tagName = $allTags[$tagId];

121 } else {

134 $tagIds = explode( ',', $form->_submitValues['case_taglist'][$parentId] );

135 foreach( $tagIds as $tagId ) {

136 if ( is_numeric( $tagId ) ) {

137 $tagName = $allTags[$tagId];

138 } else {

main.php (https://github.com/jgen/shimmie2.git) PHP · 135 lines

1 <?php

2 /*

3 * Name: Database Upgrader

14 if($config->get_bool("in_upgrade")) return;

15

16 if(!is_numeric($config->get_string("db_version"))) {

17 $config->set_int("db_version", 2);

18 }

odbc_forge.php (https://bitbucket.org/code_noodle/codeigniter.git) PHP · 160 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.2.4 or newer

6 *

7 * NOTICE OF LICENSE

62 {

63 // Numeric field names aren't allowed in databases, so if the key is

64 // numeric, we know it was assigned by PHP and the developer manually

65 // entered the field information, so we'll simply add it to the list

66 if (is_numeric($field))

157 }

158

159 /* End of file odbc_forge.php */

160 /* Location: ./system/database/drivers/odbc/odbc_forge.php */

recipe_list.php (https://github.com/laposa/onxshop.git) PHP · 142 lines

1 <?php

2 /**

3 * Copyright (c) 2013-2017 Laposa Limited (https://laposa.ie)

6 */

7

8 require_once('controllers/list.php');

9 require_once('models/ecommerce/ecommerce_recipe.php');

28 if (!is_array($taxonomy_ids)) return false;

29 foreach ($taxonomy_ids as $taxonomy_id)

30 if (!is_numeric($taxonomy_id)) return false;

31 }

32

33 // is there a limit?

34 if (is_numeric($this->GET['limit_from'])) $limit_from = $this->GET['limit_from'];

35 else $limit_from = 0;

36 if (is_numeric($this->GET['limit_per_page'])) $limit_per_page = $this->GET['limit_per_page'];

gen_pack.php (https://github.com/wmorganjr/epictome.git) PHP · 131 lines

1 <?php

2

3 include_once('util.php');

31 $slow_seed = rand(0, 99);

32

33 if (is_numeric($pack_set)) {

34 $pack_num = (int) $pack_set;

35 $rare_seed = ($pack_num / 10000) % 100;

calendar.php (https://github.com/devbeans/VisionPOS.git) PHP · 124 lines

1 <?php

2

3 /**

4 * File: calendar.php | (c) dynarch.com 2004

5 * Distributed as part of "The Coolest DHTML Calendar"

6 * under the same terms.

7 * -----------------------------------------------------------------

8 * This file implements a simple PHP wrapper for the calendar. It

9 * allows you to easily include all the calendar files and setup the

10 * calendar by instantiating and calling a PHP object.

104 if (is_bool($val))

105 $val = $val ? 'true' : 'false';

106 else if (!is_numeric($val))

107 $val = '"'.$val.'"';

108 if ($jstr) $jstr .= ',';

categories.php (https://github.com/tomtom127/oscommerce.git) PHP · 247 lines

1 <?php

2 /*

3 $Id: $

46 $osC_Database->startTransaction();

47

48 if ( is_numeric($id) ) {

49 $Qcat = $osC_Database->query('update :table_categories set sort_order = :sort_order, last_modified = now() where categories_id = :categories_id');

50 $Qcat->bindInt(':categories_id', $id);

60

61 if ( !$osC_Database->isError() ) {

62 $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();

63

64 foreach ($osC_Language->getAll() as $l) {

65 if ( is_numeric($id) ) {

66 $Qcd = $osC_Database->query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');

67 } else {

Orderby.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 179 lines

1 <?php

2 /*

3 * $Id: Orderby.php 48519 2012-02-03 23:18:52Z btowles $

25 * @package Doctrine

26 * @subpackage Query

27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

28 * @link www.doctrine-project.org

29 * @since 1.0

57

58 if (strpos($term[0], '.') !== false) {

59 if ( ! is_numeric($term[0])) {

60 $e = explode('.', $term[0]);

61

111 } else {

112 if ( ! empty($term[0]) &&

113 ! is_numeric($term[0]) &&

114 $term[0] !== '?' && substr($term[0], 0, 1) !== ':') {

115

Orderby.php (https://github.com/makerlabs/Symfohub.git) PHP · 179 lines

1 <?php

2 /*

3 * $Id: Orderby.php 7490 2010-03-29 19:53:27Z jwage $

25 * @package Doctrine

26 * @subpackage Query

27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

28 * @link www.doctrine-project.org

29 * @since 1.0

57

58 if (strpos($term[0], '.') !== false) {

59 if ( ! is_numeric($term[0])) {

60 $e = explode('.', $term[0]);

61

111 } else {

112 if ( ! empty($term[0]) &&

113 ! is_numeric($term[0]) &&

114 $term[0] !== '?' && substr($term[0], 0, 1) !== ':') {

115

BasicPermission.php (git://github.com/thorsten/phpMyFAQ.git) PHP · 469 lines

1 <?php

2

3 /**

8 * obtain one at http://mozilla.org/MPL/2.0/.

9 *

10 * @package phpMyFAQ

11 * @author Lars Tiedemann <php@larstiedemann.de>

12 * @copyright 2005-2021 phpMyFAQ Team

13 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0

14 * @link https://www.phpmyfaq.de

16 */

17

18 namespace phpMyFAQ\Permission;

19

20 use phpMyFAQ\Configuration;

Checkbox.php (https://github.com/pimcore/pimcore.git) PHP · 333 lines

1 <?php

2

3 /**

77 public function setDefaultValue($defaultValue)

78 {

79 if (!is_numeric($defaultValue)) {

80 $defaultValue = null;

81 }

319 * {@inheritdoc}

320 */

321 public function getPhpdocInputType(): ?string

322 {

323 return 'bool|null';

327 * {@inheritdoc}

328 */

329 public function getPhpdocReturnType(): ?string

330 {

331 return 'bool|null';

Orderby.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 179 lines

1 <?php

2 /*

3 * $Id: Orderby.php 5975 2009-07-01 03:50:26Z guilhermeblanco $

17 * This software consists of voluntary contributions made by many individuals

18 * and is licensed under the LGPL. For more information, see

19 * <http://www.phpdoctrine.org>.

20 */

21

25 * @package Doctrine

26 * @subpackage Query

27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

28 * @link www.phpdoctrine.org

57

58 if (strpos($term[0], '.') !== false) {

59 if ( ! is_numeric($term[0])) {

60 $e = explode('.', $term[0]);

61

IdentifierQuoter.php (https://github.com/fiblan/cakephp.git) 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

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;

137 }

ldap.php (https://bitbucket.org/kbandlow/piler.git) PHP · 119 lines

1 <?php

2

3 class ModelSaasLdap extends Model

6 public function get($id = -1) {

7

8 if(is_numeric($id) && $id >= 0) {

9 $query = $this->db->query("SELECT * FROM " . TABLE_LDAP . " WHERE id=?", array($id));

10 if($query->num_rows > 0) { return $query->row; }

Set.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 236 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

228 );

229 $bind = [];

230 if (is_numeric($setId)) {

231 $bind[':attribute_set_id'] = $setId;

232 $select->where('entity.attribute_set_id = :attribute_set_id');

Trivial.php (https://bitbucket.org/blackriver/openx.git) PHP · 260 lines

1 <?php

2

3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

4

5 /**

6 * Image_Graph - PEAR PHP OO Graph Rendering Utility.

7 *

8 * PHP versions 4 and 5

25 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen

26 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

27 * @version CVS: $Id: Trivial.php 47481 2009-12-15 20:29:37Z chris.nutting $

28 * @link http://pear.php.net/package/Image_Graph

30

31 /**

32 * Include file Image/Graph/Dataset.php

33 */

34 require_once 'Image/Graph/Dataset.php';

GroupAssignment.php (https://github.com/seosamba/ecommerce.git) PHP · 271 lines

1 <?php

2

3 /**

4 * Tool GroupAssignment.php

5 */

6 class Tools_GroupAssignment

166 }

167 if ($operator === Leads_Model_LeadsFormRulesConfigModel::RULE_COMPARISON_GREATER_THAN) {

168 if (is_numeric($dataValue)) {

169 if ($fieldValue > $dataValue) {

170 $skipStatus = true;

172 } elseif (is_array($dataValue)) {

173 foreach ($dataValue as $value) {

174 if (is_numeric($value)) {

175 if ($fieldValue > $dataValue) {

176 $skipStatus = true;

Logical.php (https://github.com/allinside/Yii-CMS.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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = true;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = false;

122 } else {

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

127 $_POST['_per_page'] = 100;

128 $_POST['_page'] = 1;

129 $_POST['_url'] = admin_url( 'edit-comments.php' );

130

131 // Make the request

Logical.php (https://gitlab.com/team_fsn/fsn-php) 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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

Reports.php (https://gitlab.com/dmsapiens/physicians) PHP · 327 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Reports extends CI_Controller {

22 } else {

23 if (!$id) return;

24 if (!is_numeric($id)) return;

25 }

26

308 header( 'Content-Type: text/csv;charset=utf-8' );

309 header( 'Content-Disposition: attachment;filename=report'.$filename);

310 $fp = fopen('php://output', 'w');

311

312 foreach($result as $row)

payment_address.php (https://gitlab.com/reclamare/mao) PHP · 192 lines

1 <?php

2 class ControllerCheckoutPaymentAddress extends Controller {

3 public function index() {

149 }

150

151 if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '' || !is_numeric($this->request->post['zone_id'])) {

152 $json['error']['zone'] = $this->language->get('error_zone');

153 }

PlayNoteBlockSong.php (https://gitlab.com/Skull3x/PlayNoteBlockSong) PHP · 194 lines

1 <?php

2

3 namespace PlayNoteBlockSong;

113 }else{

114 $lists = array_chunk($this->songs, 5);

115 $r = Color::YELLOW . "[PlayNBS] " . ($ik ? "음악 목록 (페이지: " : "Song list (Page: ") . ($page = min(isset($sub[1]) && is_numeric($sub[1]) && isset($lists[$sub[1] - 1]) ? $sub[1] : 1, count($lists))). "/" . count($lists) . ") (" . count($this->songs) . ")";

116 if(isset($lists[--$page])){

117 foreach($lists[$page] as $key => $songData){

expenses_model.php (https://github.com/KdeL/BambooInvoice.git) PHP · 249 lines

1 <?php

2 class expenses_model extends Model {

3

149 }

150

151 if (is_numeric($expense_id))

152 {

153 $this->db->where('expenses.id', $expense_id);

154 }

155

156 if (is_numeric($vendor_id))

157 {

158 $this->db->where('vendor_id', $vendor_id);

163 }

164

165 if (is_numeric($client_id))

166 {

167 $this->db->where('client_id', $client_id);

Properties.php (https://github.com/tmccormi/openemr.git) PHP · 629 lines

1 <?php

2

3 namespace PhpOffice\PhpSpreadsheet\Document;

4

5 class Properties

178 $time = time();

179 } elseif (is_string($time)) {

180 if (is_numeric($time)) {

181 $time = (int) $time;

182 } else {

212 $time = time();

213 } elseif (is_string($time)) {

214 if (is_numeric($time)) {

215 $time = (int) $time;

216 } else {

ShashinDataObjectDisplayer.php (https://bitbucket.org/zachisit/zachis.it-m.git) PHP · 330 lines

1 <?php

2

3 abstract class Public_ShashinDataObjectDisplayer {

137 }

138

139 if (!is_numeric($this->displayThumbnailSize)) {

140 throw New Exception(__('invalid size requested', 'shashin'));

141 }

311

312 if ($this->caption) {

313 $this->combinedTags .= $this->caption . PHP_EOL;

314 }

315

router.php (https://github.com/bolis97/joomla-cms.git) PHP · 202 lines

1 <?php

2 /**

3 * @version $Id$

170 $userId = array_pop($segments);

171

172 if (!is_numeric($userId)) {

173 $vars['view'] = 'profile';

174 return $vars;

175 }

176

177 if (is_numeric($userId)) {

178 // Get the package id from the packages table by alias.

179 $db = JFactory::getDbo();

clients.php (https://gitlab.com/mlnkv/fusioninvoice) PHP · 163 lines

1 <?php

2

3 if (!defined('BASEPATH'))

34 public function status($status = 'active', $page = 0)

35 {

36 if (is_numeric(array_search($status, array('active', 'inactive'))))

37 {

38 $function = 'is_' . $status;

KalturaGenericDistributionProfile.php (https://github.com/richhl/kalturaCE.git) PHP · 173 lines

1 <?php

2 /**

3 * @package plugins.contentDistribution

80 foreach ( $this->$actionAttribute->getMapBetweenObjects() as $this_prop => $object_prop )

81 {

82 if ( is_numeric( $this_prop) ) $this_prop = $object_prop;

83 if (in_array($this_prop, $skip)) continue;

84

132 foreach ( $this->$actionAttribute->getMapBetweenObjects() as $this_prop => $object_prop )

133 {

134 if ( is_numeric( $this_prop) )

135 $this_prop = $object_prop;

136

162 }

163

164 /* (non-PHPdoc)

165 * @see KalturaObject::validateForInsert()

166 */

Logical.php (https://gitlab.com/devtoannh/cafe) 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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

mssql_forge.php (https://github.com/bwghughes/houghandco.git) PHP · 219 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 4.3.2 or newer

6 *

7 * @package CodeIgniter

92 {

93 // Numeric field names aren't allowed in databases, so if the key is

94 // numeric, we know it was assigned by PHP and the developer manually

95 // entered the field information, so we'll simply add it to the list

96 if (is_numeric($field))

StopwatchEvent.php (https://bitbucket.org/rkovcs/bigfish_test.git) PHP · 228 lines

1 <?php

2

3 /*

220 private function formatTime($time)

221 {

222 if (!is_numeric($time)) {

223 throw new \InvalidArgumentException('The time must be a numerical value');

224 }

configuration.php (https://github.com/dkullmann/vielerets.git) PHP · 507 lines

1 <?php

2 // Copyright (C) 2003-2010 National Association of REALTORS(R)

3 //

272 else

273 {

274 if (is_numeric($val))

275 {

276 $binary = false;

323 else

324 {

325 if (!is_numeric($val))

326 {

327 //

439 $check = substr($key, $offset, 1);

440 }

441 if (is_numeric($check))

442 {

443 if ($offset == 1)

normal_dist_time_img.php (https://github.com/sebhtml/inicrond.git) PHP · 147 lines

1 <?php

2 /*

3 $Id$

24 define('__INICROND_INCLUDED__', TRUE);

25 define('__INICROND_INCLUDE_PATH__', '../../');

26 include __INICROND_INCLUDE_PATH__.'includes/kernel/pre_modulation.php';

27

28 include 'includes/languages/'.$_SESSION['language'].'/lang.php';

29

30 //conversions

31 include __INICROND_INCLUDE_PATH__."modules/tests-php-mysql/includes/functions/conversion.function.php";

32

33 include __INICROND_INCLUDE_PATH__.'modules/members/includes/functions/access.inc.php';

34 include __INICROND_INCLUDE_PATH__.'modules/groups/includes/functions/access.inc.php';

35

36 $_GET['image'] = $_LANG['test_lengths'];

CustomProduct.php (https://github.com/durand54/sitellite.git) PHP · 201 lines

1 <?php

2

3 loader_import ('saf.Database.Generic');

124 return false;

125 }

126 if (! is_numeric ($option_id)) {

127 return false;

128 }

Admin.php (https://github.com/intraweb-modules13/IWstats.git) PHP · 225 lines

1 <?php

2

3 class IWstats_Api_Admin extends Zikula_AbstractApi {

183 $keepDays = $this->getVar('keepDays');

184

185 if (!is_numeric($keepDays) || $keepDays <= 0)

186 $keepDays = 90;

187

Logical.php (https://bitbucket.org/kudutest1/moodlegit.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 ##VERSION##, ##DATE##

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

Abstract.php (https://github.com/expressdecor/Expressdecor.git) PHP · 355 lines

1 <?php

2

3 /*

288 }

289

290 if (is_numeric($settings)) {

291 $settings = ctype_digit($settings) ? (int)$settings : $settings;

292 }

RemoveFromTag.php (https://gitlab.com/virtualrealms/d7civicrm) PHP · 147 lines

1 <?php

2 /*

3 +--------------------------------------------------------------------+

103 foreach ($params['activity_taglist'] as $val) {

104 if ($val) {

105 if (is_numeric($val)) {

106 $tagList[$val] = 1;

107 }

base.php (https://github.com/mjphaynes/core.git) PHP · 230 lines

1 <?php

2 /**

3 * Fuel is a fast, lightweight, community driven PHP5 framework.

8 * @license MIT License

9 * @copyright 2010 - 2011 Fuel Development Team

10 * @link http://fuelphp.com

11 */

12

23 {

24 $path = str_replace('/', DIRECTORY_SEPARATOR, $path);

25 require_once COREPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';

26

27 if (is_file(APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php'))

28 {

29 require_once APPPATH.$folder.DIRECTORY_SEPARATOR.$path.'.php';

30 }

31 }

MY_Image_lib.php (https://gitlab.com/fcupen/PHP) PHP · 177 lines

1 <?php

2 /**

3 * @name CodeIgniter Advanced Images

138

139 // axis settings

140 if (!is_numeric($this->user_x_axis)) {

141 $this->x_axis = floor(($this->width - $this->user_width) / 2);

142 } else {

144 }

145

146 if (!is_numeric($this->user_y_axis)) {

147 $this->y_axis = floor(($this->height - $this->user_height) / 2);

148 } else {

router.php (https://bitbucket.org/eternaware/joomus.git) PHP · 200 lines

1 <?php

2 /**

3 * @package Joomla.Site

168 $userId = array_pop($segments);

169

170 if (!is_numeric($userId)) {

171 $vars['view'] = 'profile';

172 return $vars;

173 }

174

175 if (is_numeric($userId)) {

176 // Get the package id from the packages table by alias.

177 $db = JFactory::getDbo();

email.sendmail.php (https://github.com/builders/sym-bootstrap.git) PHP · 154 lines

1 <?php

2 /**

3 * @package email-gateways

4 */

5

6 require_once(TOOLKIT . '/class.emailgateway.php');

7 require_once(TOOLKIT . '/class.emailhelper.php');

8

9 /**

10 * The basic gateway sending emails using Sendmail, php's mail function.

11 *

12 * @author Michael Eichelsdoerfer, Huib Keemink

37

38 /**

39 * Send an email using the PHP mail() function

40 *

41 * Please note that 'encoded-words' should be used according to

Thumbnail_04.php (https://github.com/lisawilliams/phpsols.git) PHP · 159 lines

1 <?php

2 class Ps2_Thumbnail {

3 protected $_original;

49

50 public function setMaxSize($size) {

51 if (is_numeric($size)) {

52 $this->_maxSize = abs($size);

53 }

Stopwatch.php (https://gitlab.com/andecode/theme-spark) PHP · 609 lines

1 <?php

2

3 namespace Drupal\webprofiler {

186 */

187 public function __construct($origin = NULL) {

188 $this->origin = is_numeric($origin) ? $origin : NULL;

189 }

190

534 */

535 private function formatTime($time) {

536 if (!is_numeric($time)) {

537 throw new \InvalidArgumentException('The time must be a numerical value');

538 }

class-wc-connect-service-schemas-store.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 266 lines

1 <?php

2

3 if ( ! class_exists( 'WC_Connect_Service_Schemas_Store' ) ) {

221 public function get_service_schema_by_id_or_instance_id( $id_or_instance_id ) {

222

223 if ( is_numeric( $id_or_instance_id ) ) {

224 return $this->get_service_schema_by_instance_id( $id_or_instance_id );

225 }

Properties.php (https://bitbucket.org/moodle/moodle.git) PHP · 537 lines

1 <?php

2

3 namespace PhpOffice\PhpSpreadsheet\Document;

4

5 use DateTime;

6 use PhpOffice\PhpSpreadsheet\Shared\IntOrFloat;

7

8 class Properties

169 $timestamp = (float) (new DateTime())->format('U');

170 } elseif (is_string($timestamp)) {

171 if (is_numeric($timestamp)) {

172 $timestamp = (float) $timestamp;

173 } else {

ComplexFunctions.php (https://github.com/sbourget/moodle.git) PHP · 513 lines

1 <?php

2

3 namespace PhpOffice\PhpSpreadsheet\Calculation\Engineering;

4

5 use Complex\Complex as ComplexObject;

6 use Complex\Exception as ComplexException;

7 use PhpOffice\PhpSpreadsheet\Calculation\Functions;

8

9 class ComplexFunctions

505 }

506

507 if (!is_numeric($realNumber)) {

508 return Functions::VALUE();

509 }

ViewLookupWizardField.php (https://gitlab.com/Lidbary/PHPRunner) PHP · 363 lines

1 <?php

2 class ViewLookupWizardField extends ViewControl

3 {

112 foreach($values as $val)

113 {

114 if( strlen($val) && !is_numeric($val) )

115 {

116 $numeric = false;

Analysis.php (http://phpmemcacheadmin.googlecode.com/svn/trunk/) PHP · 355 lines

1 <?php

2 /**

3 * Copyright 2010 Cyrille Mahieux

237 {

238 # Check if it's a Slab

239 if(is_numeric($id))

240 {

241 # Check if Slab is used

Column.php (https://gitlab.com/techniconline/kmc) PHP · 494 lines

1 <?php

2 /*

3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

162 public function setPrecision($precision)

163 {

164 if (!is_numeric($precision)) {

165 $precision = 10; // defaults to 10 when no valid precision is given.

166 }

178 public function setScale($scale)

179 {

180 if (!is_numeric($scale)) {

181 $scale = 0;

182 }

Statement.php (https://github.com/gplanchat/wootook.git) PHP · 215 lines

1 <?php

2

3 abstract class Wootook_Core_Database_Statement_Statement

176 public function getParamType($value)

177 {

178 if (is_numeric($value)) {

179 return Wootook_Core_Database_ConnectionManager::PARAM_INT;

180 } else if (is_bool($value)) {

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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

paymethods.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 347 lines

1 <?php

2

3 defined('SYSPATH') OR die('No direct access allowed.');

78 $query = DB::delete('shop_payment_methods');

79

80 if (is_numeric($id))

81 {

82 $query->where('id', '=', $id); // ->limit(1)

326 ));

327

328 if (is_numeric($id))

329 {

330 $query->where('id', '=', $id); // ->limit(1)

cache.class.php (https://bitbucket.org/nlabyt/bcf-ball-4eb2.git) PHP · 253 lines

1 <?php

2 /**

3 * @version $Id: cache.class.php 2325 2012-08-13 17:46:48Z btowles $

15 */

16

17 require_once 'cacheDriver.interface.php';

18

19 /**

60 public function __construct($defaultLifeTime = 0)

61 {

62 if (is_numeric($defaultLifeTime) && $defaultLifeTime > 0) $this->defaultLifeTime = $defaultLifeTime;

63 }

64

SoftDeleteBehavior.php (https://bitbucket.org/rikdc/utils.git) PHP · 336 lines

1 <?php

2 /**

3 * Copyright 2007-2010, Cake Development Corporation (http://cakedc.com)

7 *

8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com)

9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

10 */

11

268 $result = array();

269 foreach ($settings as $flag => $date) {

270 if (is_numeric($flag)) {

271 $flag = $date;

272 $date = false;

ckfinder_php5.php (https://gitlab.com/manuvelasco/agostoliquida) PHP · 231 lines

180

181 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;

182 $editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;

183 $editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;

184 $editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;

185 }

186

225

226 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;

227 $editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;

228 $editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;

229 $editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;

230 }

231 }

Condition.php (https://github.com/bigcalm/urlcatcher.git) PHP · 138 lines

1 <?php

2 /*

3 * $Id: Condition.php 6366 2009-09-15 19:44:05Z jwage $

17 * This software consists of voluntary contributions made by many individuals

18 * and is licensed under the LGPL. For more information, see

19 * <http://www.phpdoctrine.org>.

20 */

21

25 * @package Doctrine

26 * @subpackage Query

27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

28 * @link www.phpdoctrine.org

121 // either a float or a component..

122

123 if ( ! is_numeric($a[0])) {

124 // a component found

125 $field = array_pop($a);

Container.php (https://github.com/jaws-project/jaws.git) PHP · 245 lines

1 <?php

2 /*

3 * Container.php - Main Class for all container widgets

12 define ('PIWI_INVALID_FILTER_MESSAGE', 'Invalid filter passed');

13

14 require_once PIWI_PATH . '/Widget/Widget.php';

15

16

182 parent::buildBasicPiwiXML();

183

184 if (is_numeric($this->_border)) {

185 $this->_PiwiXML->addAttribute('border', $this->_border);

186 }

196 {

197 $xhtml = '';

198 if (is_numeric($this->_border)) {

199 $xhtml .= " border=\"".$this->_border."px\"";

200 }

Sparkline_Line.php (https://github.com/quarkness/piwik.git) PHP · 286 lines

1 <?php

2 /*

3 * Sparkline PHP Graphing Library

8 * licenses.

9 *

10 * $Id: Sparkline_Line.php,v 1.10 2008/03/11 19:12:49 jbyers Exp $

11 *

12 */

13

14 require_once dirname(__FILE__).'/Sparkline.php';

15

16 class Sparkline_Line extends Sparkline {

40 //

41 function SetData($x, $y, $series = 1) {

42 if(!is_numeric($x)) {

43 $x = trim($x);

44 }

upgrade.php (https://github.com/raymanuk/moodle.git) PHP · 140 lines

1 <?php

2

3 // This file keeps track of upgrades to

58 $userid = $userfolder->getFilename();

59 // Skip if it is not numeric.

60 if (!is_numeric($userid)) {

61 continue;

62 }

DateTime.php (https://gitlab.com/madwanz64/laravel) PHP · 381 lines

51 * @return \DateTime

52 *

53 * @see http://php.net/manual/en/timezones.php

54 * @see http://php.net/manual/en/function.date-default-timezone-get.php

72 * @return \DateTime

73 *

74 * @see http://php.net/manual/en/timezones.php

75 * @see http://php.net/manual/en/function.date-default-timezone-get.php

77 public static function dateTimeAD($max = 'now', $timezone = null)

78 {

79 $min = (PHP_INT_SIZE > 4 ? -62135597361 : -PHP_INT_MAX);

80

81 return static::setTimezone(

141 * @return \DateTime

142 *

143 * @see http://php.net/manual/en/timezones.php

144 * @see http://php.net/manual/en/function.date-default-timezone-get.php

Logical.php (https://gitlab.com/ehfahad/Library_Management_System) 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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

reader.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 279 lines

1 <?php

2 /**

3 * File containing the ezcDbSchemaMysqlReader class.

10

11 /**

12 * Handler for files containing PHP arrays that represent DB schema.

13 *

14 * @package DatabaseSchema

171 {

172 $typeLength = $matches[3];

173 if ( is_numeric( $typeLength ) )

174 {

175 $typeLength = (int) $typeLength;

cache.class.php (https://gitlab.com/ricardosanchez/prueba) PHP · 251 lines

1 <?php

2 /**

3 * @version $Id: cache.class.php 15520 2013-11-13 21:19:56Z btowles $

15 */

16

17 require_once 'cacheDriver.interface.php';

18

19 /**

60 public function __construct($defaultLifeTime = 0)

61 {

62 if (is_numeric($defaultLifeTime) && $defaultLifeTime > 0) $this->defaultLifeTime = $defaultLifeTime;

63 }

64

Tokenize.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 413 lines

1 <?php

2 /**

3 * Copyright 2012-2017 Horde LLC (http://www.horde.org/)

206 $literal_len = substr($literal_data, 2, -1);

207

208 if (is_numeric($literal_len)) {

209 return array(

210 'binary' => ($literal_data[0] === '~'),

291

292 case '~':

293 // Ignore binary string identifier. PHP strings are

294 // binary-safe. But keep it if it is not used as string

295 // identifier.

misc.functions.php (https://github.com/evadne/wp-e-commerce.git) PHP · 217 lines

1 <?php

2 /**

3 * WP eCommerce misc functions

21 */

22 function wpsc_add_new_user($user_login,$user_pass, $user_email) {

23 require_once(ABSPATH . WPINC . '/registration.php');

24 $errors = new WP_Error();

25 $user_login = sanitize_user( $user_login );

146 if ( empty($value) ) {

147 $meta_id = $wpdb->get_var("SELECT id FROM `".WPSC_TABLE_PRODUCTMETA."` WHERE product_id = '$product_id' AND meta_key = '$key'");

148 if(is_numeric($meta_id) && ($meta_id > 0)) {

149 $wpdb->query("DELETE FROM `".WPSC_TABLE_PRODUCTMETA."` WHERE product_id = '$product_id' AND meta_key = '$key'");

150 }

151 } else {

152 $meta_id = $wpdb->get_var("SELECT id FROM `".WPSC_TABLE_PRODUCTMETA."` WHERE product_id = '$product_id' AND meta_key = '$key' AND meta_value = '$value'");

153 if(is_numeric($meta_id) && ($meta_id > 0)) {

154 $wpdb->query("DELETE FROM `".WPSC_TABLE_PRODUCTMETA."` WHERE product_id = '$product_id' AND meta_key = '$key' AND meta_value = '$value'");

155 }

TableEntityQuery.php (https://github.com/kervin/kyzstudio.git) PHP · 350 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: TableEntityQuery.php 23167 2010-10-19 17:53:31Z mabe $

21 */

22

283 $i = 0;

284 while(strpos($text, '?') !== false) {

285 if (is_numeric($value[$i])) {

286 $text = substr_replace($text, $value[$i++], strpos($text, '?'), 1);

287 } else {

categories.php (https://github.com/azouts/oscommerce.git) PHP · 270 lines

1 <?php

2 /*

3 $Id: $

45 global $osC_Database, $osC_Language, $current_category_id;

46

47 if ( !is_numeric($id) ) {

48 if ( isset($current_category_id) && is_numeric($current_category_id) ) {

84 global $osC_Database, $osC_Language, $current_category_id;

85

86 if ( !is_numeric($id) ) {

87 if ( isset($current_category_id) && is_numeric($current_category_id) ) {

143 $osC_Database->startTransaction();

144

145 if ( is_numeric($id) ) {

146 $Qcat = $osC_Database->query('update :table_categories set sort_order = :sort_order, last_modified = now() where categories_id = :categories_id');

147 $Qcat->bindInt(':categories_id', $id);

myStatisticsMgr.class.php (https://github.com/richhl/kalturaCE.git) PHP · 417 lines

1 <?php

2 class myStatisticsMgr

3 {

400 private static function inc ( &$num , $delta = 1 )

401 {

402 if ( ! is_numeric ( $num )) $num = 0;

403 $num += $delta;

404 }

406 private static function dec ( &$num , $delta = 1 )

407 {

408 if ( ! is_numeric ( $num )) $num = 0;

409 $num -= $delta;

410 }

sfValidatorDate.class.php (https://github.com/bheneka/gitta.git) PHP · 261 lines

1 <?php

2

3 /*

85

86 // convert timestamp to date number format

87 if (is_numeric($value))

88 {

89 $cleanTime = (integer) $value;

109 {

110 // convert timestamp to date number format

111 if (is_numeric($max))

112 {

113 $maxError = date($this->getOption('date_format_range_error'), $max);

132 {

133 // convert timestamp to date number

134 if (is_numeric($min))

135 {

136 $minError = date($this->getOption('date_format_range_error'), $min);

SplDoublyLinkedList.php (https://gitlab.com/iranjith4/hhvm) PHP · 522 lines

17 // This doc comment block generated by idl/sysdoc.php

18 /**

19 * ( excerpt from http://php.net/manual/en/class.spldoublylinkedlist.php )

20 *

21 * The SplDoublyLinkedList class provides the main functionalities of a

262 // This doc comment block generated by idl/sysdoc.php

263 /**

264 * ( excerpt from http://php.net/manual/en/spldoublylinkedlist.prev.php )

265 *

266 * Move the iterator to the previous node.

435 /**

436 * ( excerpt from

437 * http://php.net/manual/en/spldoublylinkedlist.offsetunset.php )

438 *

439 * Unsets the value at the specified index.

class-cp-interactions-cluster.php (https://gitlab.com/dev73/clusterpress) PHP · 345 lines

1 <?php

2 /**

3 * Interactions Cluster.

254 'id' => array(

255 'validate_callback' => function( $param, $request, $key ) {

256 return is_numeric( $param );

257 }

258 ),

Config.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 356 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

119 public function getAttributeSetName($entityTypeId, $id)

120 {

121 if (!is_numeric($id)) {

122 return $id;

123 }

date.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 319 lines

24 * @param string $date String representing the datetime, assumed to be UTC (relevant if timezone conversion is used)

25 * @param bool $display_time If true shows date and time, if false only shows date

26 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)

27 *

28 * @return string

67 * @category Events

68 * @param string $date The date to find the beginning of the day, defaults to today

69 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)

70 *

71 * @return string

101 * @category Events

102 * @param string $date The date to find the end of the day, defaults to today

103 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)

104 *

105 * @return string

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 */

21

MailFake.php (https://gitlab.com/jjpa2018/dashboard) PHP · 433 lines

1 <?php

2

3 namespace Illuminate\Support\Testing\Fakes;

10 use Illuminate\Contracts\Queue\ShouldQueue;

11 use Illuminate\Support\Traits\ReflectsClosures;

12 use PHPUnit\Framework\Assert as PHPUnit;

13

14 class MailFake implements Factory, Mailer, MailQueue

48 [$mailable, $callback] = $this->prepareMailableAndCallback($mailable, $callback);

49

50 if (is_numeric($callback)) {

51 return $this->assertSentTimes($mailable, $callback);

52 }

58 }

59

60 PHPUnit::assertTrue(

61 $this->sent($mailable, $callback)->count() > 0,

62 $message

UndefinedConstraint.php (https://gitlab.com/imamul68e/137619_PHP31) PHP · 286 lines

1 <?php

2

3 /*

75

76 // check numeric

77 if (is_numeric($value)) {

78 $this->checkNumber($value, $schema, $path, $i);

79 }

Validate.php (https://bitbucket.org/sauron07/friend_social.git) PHP · 290 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Validate.php 24594 2012-01-05 21:27:01Z matthew $

20 */

21

23 * @see Zend_Validate_Interface

24 */

25 //require_once 'Zend/Validate/Interface.php';

26

27 /**

199 try {

200 if (!class_exists($className, false)) {

201 //require_once 'Zend/Loader.php';

202 foreach($namespaces as $namespace) {

203 $class = $namespace . '_' . $className;

Size.php (https://github.com/uester/escolaonline.git) PHP · 372 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Validate_Abstract

24 */

25 require_once 'Zend/Validate/Abstract.php';

26

27 /**

194 $min = (integer) $this->_fromByteString($min);

195 if (($this->_max !== null) && ($min > $this->_max)) {

196 require_once 'Zend/Validate/Exception.php';

197 throw new Zend_Validate_Exception("The minimum must be less than or equal to the maximum filesize, but $min >"

198 . " {$this->_max}");

230 $max = (integer) $this->_fromByteString($max);

231 if (($this->_min !== null) && ($max < $this->_min)) {

232 require_once 'Zend/Validate/Exception.php';

233 throw new Zend_Validate_Exception("The maximum must be greater than or equal to the minimum filesize, but "

234 . "$max < {$this->_min}");

Validate.php (https://github.com/timglabisch/pimcore.git) PHP · 290 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Validate.php 24593 2012-01-05 20:35:02Z matthew $

20 */

21

23 * @see Zend_Validate_Interface

24 */

25 // require_once 'Zend/Validate/Interface.php';

26

27 /**

199 try {

200 if (!class_exists($className, false)) {

201 // require_once 'Zend/Loader.php';

202 foreach($namespaces as $namespace) {

203 $class = $namespace . '_' . $className;

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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

expression.php (https://github.com/dburkart/scurvy.git) PHP · 383 lines

1 <?php

2 /*

3 * expression.php

99 switch($next->type) {

100 case EXPR_VAR:

101 if (is_numeric($next->val)) {

102 $this->eval = $next->val;

103

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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = true;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = false;

122 } else {

Pdo.php (https://gitlab.com/jalon/doadoronline) PHP · 309 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

293 public function formatParameterName($name, $type = null)

294 {

295 if ($type == null && !is_numeric($name) || $type == self::PARAMETERIZATION_NAMED) {

296 return ':' . $name;

297 }

Query.php (https://github.com/mpous/mandango.git) PHP · 606 lines

1 <?php

2

3 /*

51 $hash = $this->repository->getDocumentClass();

52

53 if (version_compare(PHP_VERSION, '5.3.6', '=>')) {

54 $debugBacktrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);

55 } else {

288 {

289 if (null !== $limit) {

290 if (!is_numeric($limit) || $limit != (int) $limit) {

291 throw new \InvalidArgumentException(sprintf('The limit "%s" is not valid.', $limit));

292 }

325 {

326 if (null !== $skip) {

327 if (!is_numeric($skip) || $skip != (int) $skip) {

328 throw new \InvalidArgumentException(sprintf('The skip "%s" is not valid.', $skip));

329 }

Set.php (https://github.com/gryzz/crystal_magento.git) PHP · 236 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Eav

23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

107 foreach( $data['groups'] as $group ) {

108 $modelGroup = Mage::getModel('eav/entity_attribute_group');

109 $modelGroup->setId(is_numeric($group[0]) && $group[0] > 0 ? $group[0] : null)

110 ->setAttributeGroupName($group[1])

111 ->setAttributeSetId($this->getId())

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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = true;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = false;

122 } else {

blog.php (https://github.com/exponentcms/exponent-cms.git) PHP · 138 lines

1 <?php

2

3 ##################################################

75 // global $db, $user;

76 //

77 // if (is_numeric($range)) {

78 // $where = $this->identifier.'='.(int)($range); // If we hit this then we are expecting just a simple id

79 // $range = 'first';

117

118 public function update($params = array()) {

119 if (isset($params['expFile']['fbimage'][0]) && is_numeric($params['expFile']['fbimage'][0]))

120 $params['fb']['fbimage'][0] = $params['expFile']['fbimage'][0];

121 unset ($params['expFile']['fbimage']);

124 unset ($params['fb']);

125 }

126 if (isset($params['expFile']['twimage'][0]) && is_numeric($params['expFile']['twimage'][0]))

127 $params['tw']['twimage'][0] = $params['expFile']['twimage'][0];

128 unset ($params['expFile']['twimage']);

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 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines

1 <?php

2 /**

3 * Control the include, exclude condition for meta boxes

273 * This is required for MB User Meta extension.

274 */

275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {

276 // If edit other's profile, check edited user.

277 $user_id = intval( $_REQUEST['user_id'] );

282

283 return ! empty( $roles );

284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {

285 // If edit profile, check current user.

286 return self::check_user_role( $roles );

297 */

298 protected static function check_edited_user_id( $user_ids ) {

299 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {

300 // If edit other's profile, check edited user.

301 $user_id = intval( $_REQUEST['user_id'] );

filestore_dojoxdata.php (http://enginey.googlecode.com/svn/trunk/) PHP · 180 lines ✨ Summary

This PHP script is a file service that handles HTTP requests for retrieving files and directories. It accepts query parameters to filter results, sort files, and paginate output. If a specific file path is provided, it returns the file’s metadata in JSON format. Otherwise, it returns a list of matching files with optional filtering and sorting.

1 <?php

2 //Define the root directory to use for this service.

3 //All file lookups are relative to this path.

4 $rootDir = "../..";

5

6 require_once("filestore_funcs.php");

7

8 //Extract the query, if any.

101 if (array_key_exists("start", $_GET)) {

102 $start = $_GET['start'];

103 if (!is_numeric($start)) {

104 $start = 0;

105 }

108 if (array_key_exists("count", $_GET)) {

109 $count = $_GET['count'];

110 if (!is_numeric($count)) {

111 $count = $total;

112 }