100+ results results for 'php is_int repo:vikjon0/newznab' (142 ms)
20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 22 * @version CVS: $Id: Exception.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 23 * @link http://pear.php.net/package/PEAR 24 * @since File available since Release 1.3.3 52 * 53 * 4) Inherited methods from PHP Exception Class: 54 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.2 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantbase.item.items.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 449 lines
1<?php 2/*************************************************************** 9// 10include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'base.item.class.php'); 11 336 $query_str .= " and " . $p . $k . " in ('" . implode("','", $v) . "') "; 337 } elseif( is_int($v) ) { 338 $query_str .= " and " . $p . $k . " = '" . $v . "' "; 424 $query_str .= " and " . $p . $k . " in ('" . implode("','", $v) . "') "; 425 } elseif( is_int($v) ) { 426 $query_str .= " and " . $p . $k . " = '" . $v . "' ";vars.php http://goodgirl.googlecode.com/svn/ | PHP | 302 lines
1<?php /* `, 2 ,\, # 134 135 if (is_int($name)){ 136 if (!isset($this->parallel[$name])){ 198 199 if (!$this->id or !is_int($name)) 200 return; 203 } 204 } elseif (is_int($value) or is_float($value)){ self::$cache[$key.'[+-]'][$name][] = ($value - $this[$name]); 205 self::$cache[$key][$name] = $value;Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 14 * 18 * @copyright 2001-2009 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $mysql_class_v1_1.php http://htdocstest.googlecode.com/svn/trunk/ | PHP | 411 lines
1<?php 2 18 19 if (!is_int($size + 0)){ 20 $size =" size='20'"; 24 25 if (!is_int($maxlength + 0) || trim($maxlength) == '' ){ 26 $maxlength = ''; 71 72 if (!is_int($maxlength + 0) || trim($maxlength) == ''){ 73 $maxlength = ''; 287 * $action is insert update based 288 * $form_action is this example (action='index.php') 289 * BETA TESTED WORKS GOOD ON SMALL CODEgraphpage.py https://bitbucket.org/pypy/pypy/ | Python | 214 lines
1 2from pypy.translator.tool.graphpage import GraphPage 3from pypy.translator.tool.make_dot import DotGen 19 for op in graph.get_operations(): 20 if is_interesting_guard(op): 21 graphs.append((SubGraph(op.getdescr()._debug_suboperations), 22 highlight)) 23 graphpage = ResOpGraphPage(graphs, errmsg, metainterp_sd) 24 graphpage.display() 25 26def is_interesting_guard(op): 27 return hasattr(op.getdescr(), '_debug_suboperations') 36 37class ResOpGraphPage(GraphPage): 38FigletTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{Array.php https://bitbucket.org/chamilo/chamilo/ | PHP | 340 lines
8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 14 * 16 * @package HTML_QuickForm 17 * @author Alexey Borzov <avb@php.net> 18 * @author Adam Daniel <adaniel1@eesus.jnj.com> 21 * @copyright 2001-2009 The PHP Group 22 * @license http://www.php.net/license/3_01.txt PHP License 3.01 23 * @version CVS: $Id: Array.php 137 2009-11-09 13:24:37Z vanpouckesven $FigletTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 364 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/** 4* @subpackage Media Manager 5* @author MiaCMS see README.php 6* @copyright see README.php 6* @copyright see README.php 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 19 | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) { 20 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 21} 37 38if (is_int(strpos ($listdir, "..")) && $listdir<>'') { 39 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") ); 50 if (ini_get('safe_mode')=="On") { 51 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") ); 52 }Type.class.php http://na-agent.googlecode.com/svn/trunk/ | PHP | 505 lines
1<?php 2 170 try { 171 php_Boot::$skip_constructor = true; 172 $rfl = $cl->__rfl__(); 186 } 187 php_Boot::$skip_constructor = false; 188 { 199 $GLOBALS['%s']->push($GLOBALS['%e'][0]); 200 php_Boot::$skip_constructor = false; 201 throw new HException("Unable to instantiate " . Std::string($cl)); 374 } 375 if(is_int($v)) { 376 $?tmp7 = ValueType::$TInt;tokenizer.c http://php52-backports.googlecode.com/svn/trunk/ | C | 260 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2010 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+Color.php git://github.com/jyxo/php.git | PHP | 347 lines
1<?php declare(strict_types = 1); 2 3/** 4 * Jyxo PHP Library 5 * 10 * It is also available through the world-wide-web at this URL: 11 * https://github.com/jyxo/php/blob/master/license.txt 12 */ 20use function is_array; 21use function is_int; 22use function is_string; 34 * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o. 35 * @license https://github.com/jyxo/php/blob/master/license.txt 36 * @author Roman Řáha 89 $this->initFromRgb($color); 90 } elseif (is_int($color)) { 91 $this->initFromInt($color);Portlet.php https://bitbucket.org/zurmo/zurmo/ | PHP | 233 lines
1<?php 2 /********************************************************************************* 45 $portletCollection = array(); 46 assert('is_integer($userId) && $userId >= 1'); 47 $quote = DatabaseCompatibilityUtil::getQuote(); 67 $portletCollection = array(); 68 assert('is_integer($userId) && $userId >= 1'); 69 $quote = DatabaseCompatibilityUtil::getQuote();PhpEngine.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 504 lines
1<?php 2 20/** 21 * PhpEngine is an engine able to render PHP templates. 22 * 24 */ 25class PhpEngine implements EngineInterface, \ArrayAccess 26{ 130 131 return 'php' === $template->get('engine'); 132 } 155 ob_start(); 156 eval('; ?>'.$__template__.'<?php ;'); 157 216 foreach ($helpers as $alias => $helper) { 217 $this->set($helper, is_int($alias) ? null : $alias); 218 }Headers.php git://github.com/zendframework/zf2.git | PHP | 473 lines
1<?php 2/** 152 foreach ($headers as $name => $value) { 153 if (is_int($name)) { 154 if (is_string($value)) {fake.php https://code.google.com/p/php-blackops-rcon/ | PHP | 546 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2 25 * @subpackage lib 26 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 27 */ 240 { 241 $this->console->command('setadmindvar '.$name.' '.(is_int($value) ? $value : '"'.$value.'"')); 242 } 244 { 245 $this->console->command($name.' '.(is_int($value) ? $value : '"'.$value.'"')); 246 }form_validator_html_editor_options.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 266 lines
1<?php 2namespace common\libraries; 223 } 224 elseif (is_int($value)) 225 { 251 { 252 $file = dirname(__FILE__) . '/html_editor_options/' . $type . '_html_editor_options.class.php'; 253 $class = __NAMESPACE__ . '\\' . 'FormValidator' . Utilities :: underscores_to_camelcase($type) . 'HtmlEditorOptions';Encoder.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Json/Exception.php'; 26 28/** 29 * Encode PHP constructs to JSON 30 * 236 237 if (is_int($value) || is_float($value)) { 238 $result = (string) $value; 391 /** 392 * Encodes the given $className into the class2 model of encoding PHP 393 * classes into JavaScript class2 classes.sfTesterResponse.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 316 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfTesterResponse.class.php 12517 2008-11-01 07:10:55Z fabien $ 18 */ 90 } 91 else if (is_int($value)) 92 {classe.cfonb.php http://cfonbdev.googlecode.com/svn/trunk/ | PHP | 145 lines
1<?php 2### 2### 3# Classe PHP pour le CFONB 4# Damien VIDAL "damien.vidal@gmail.com" 39 } 40 elseif (is_int($montant) == true) { 41 $calcul = $montant * 100; 135 '$fichier' est le chemin du fichier o? sera écrit les données 136 '$entete' + '$details' + '$pied' sont des tableaux PHP 137 */class.iCalJournal.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 325 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 23*/ 24include_once 'class.iCalBase.inc.php'; 25/** 34* @license GNU General Public License v3 35* @link http://code.google.com/p/flaimo-php/ 36* @package iCalendar 182 $this->rec_end = 0; 183 } elseif (is_int($freq) && strlen(trim($freq)) < 4) { 184 $this->rec_end = $freq; 198 private function setStartDateTS($timestamp = 0) { 199 if (is_int($timestamp) && $timestamp > 0) { 200 $this->startdate_ts = (int) $timestamp; 213 private function setCreatedTS($timestamp = 0) { 214 if (is_int($timestamp) && $timestamp > 0) { 215 $this->created_ts = (int) $timestamp;ConfigForm.php git://github.com/ezyang/htmlpurifier.git | PHP | 451 lines
1<?php 2 182 $def = $this->config->def->info["$ns.$directive"]; 183 if (is_int($def)) { 184 $allow_null = $def < 0; 309 $def = $config->def->info["$ns.$directive"]; 310 if (is_int($def)) { 311 $type = abs($def); 324 case HTMLPurifier_VarParser::ALIST: 325 $value = implode(PHP_EOL, $value); 326 break; 333 } 334 $nvalue .= "$i:$v" . PHP_EOL; 335 }ErrorCollector.php git://github.com/gallery/gallery3-contrib.git | PHP | 209 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 36 * Sends an error message to the collector for later use 37 * @param $severity int Error severity, PHP error style (don't use E_USER_) 38 * @param $msg string Error message text 92 if ($token) $new_struct->value = clone $token; 93 if (is_int($line) && is_int($col)) { 94 if (isset($this->lines[$line][$col])) {sfNumberFormat.class.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2 15 * @author Wei Zhuo <weizhuo[at]gmail[dot]com> 16 * @version $Id: sfNumberFormat.class.php 18607 2009-05-24 20:41:09Z fabien $ 17 * @package symfony 23 */ 24require_once(dirname(__FILE__).'/util.php'); 25 178 179 if (is_int($dp)) 180 { 191 $firstGroup = true; 192 $multiGroup = is_int($groupSize[1]); 193 $count = 0; 194 195 if (is_int($groupSize[0])) 196 {WebsiteBase.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 397 lines
1<?php 2 157 { 158 if(!is_null($value) && is_int($value)) 159 { 243 { 244 if(!is_null($value) && is_int($value)) 245 {Notification.php https://bitbucket.org/zurmo/zurmo/ | PHP | 247 lines
1<?php 2 /********************************************************************************* 114 { 115 assert('is_int($notificationMessageId)'); 116 $searchAttributeData = array();widgets.php http://ooxx.googlecode.com/svn/trunk/ | PHP | 228 lines
75 require_once( THEME_CLASSES . '/widget-authors.php' ); 76 require_once( THEME_CLASSES . '/widget-bookmarks.php' ); 77 require_once( THEME_CLASSES . '/widget-calendar.php' ); 77 require_once( THEME_CLASSES . '/widget-calendar.php' ); 78 require_once( THEME_CLASSES . '/widget-categories.php' ); 79 require_once( THEME_CLASSES . '/widget-pages.php' ); 119function hybrid_get_primary() { 120 locate_template( array( 'sidebar-primary.php' ), true ); 121} 129function hybrid_get_secondary() { 130 locate_template( array( 'sidebar-secondary.php' ), true ); 131} 221 $template = get_post_meta( $wp_query->post->ID, "_wp_{$wp_query->post->post_type}_template", true ); 222 if ( 'no-widgets.php' == $template || "{$wp_query->post->post_type}-no-widgets.php" == $template ) 223 $sidebars_widgets = array( false );RoleModel.class.php http://mycaptain.googlecode.com/svn/ | PHP | 439 lines
1<?php 2/** 418 419 if(is_int( $Value )) { 420SPF_Form.php http://spf-php.googlecode.com/svn/trunk/ | PHP | 279 lines
1<?php 2/** 6 * @copyright Copyright (c) 2007, Simon Downes 7 * @license http://www.opensource.org/licenses/mit-license.php 8 */ 15 * @copyright Copyright (c) 2007, Simon Downes 16 * @license http://www.opensource.org/licenses/mit-license.php 17 */ 253 254 else if( $field['datatype'] == 'integer' && !SPF_Validator::is_integer($field['value']) ) 255 $field['error_msg'] = 'Must be an integer value';Image.php http://hppg.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2/** 6 */ 7require_once 'modules/lhcaptcha/pear/Text/CAPTCHA.php'; 8require_once 'modules/lhcaptcha/pear/Image/Text.php'; 15 * 16 * @license PHP License, version 3.0 17 * @author Christian Wenz <wenz@php.net> 127 if (is_array($options)) { 128 if (isset($options['width']) && is_int($options['width'])) { 129 $this->_width = $options['width']; 132 } 133 if (isset($options['height']) && is_int($options['height'])) { 134 $this->_height = $options['height']; 354 /** 355 * __wakeup method (PHP 5 only) 356 */autoloadbuilder.php git://github.com/theseer/Autoload.git | PHP | 313 lines
1<?php 2/** 76 /** 77 * PHP Template code to render autoload list 78 * 104 /** 105 * Flag to toggle PHP 5.2 compat mode 106 * 125 $this->indent = $indent; 126 $this->setTemplateFile( __DIR__ . '/templates/' . ($caseSensitive ? 'cs' : 'ci') . '/default.php.tpl' ); 127 } 129 /** 130 * Toggle PHP 5.2 compat mode 131 * 210 public function setTimestamp($time) { 211 if (!is_int($time) && !is_null($time)) { 212 throw new AutoloadBuilderException("'$time' is not a unix timestamp", AutoloadBuilderException::InvalidTimestamp);StripTags.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: StripTags.php 14359 2009-03-18 13:24:04Z matthew $ 21 */ 26 */ 27require_once 'Zend/Filter/Interface.php'; 28 109 // If the tag was provided without attributes 110 if (is_int($index) && is_string($element)) { 111 // Canonicalize the tag nameComVariantUtil.h git://pkgs.fedoraproject.org/esteid-browser-plugin | C Header | 332 lines
7 New BSD License 8 http://www.opensource.org/licenses/bsd-license.php 9 - or - 25#include <boost/type_traits/is_arithmetic.hpp> 26#include <boost/type_traits/is_integral.hpp> 27#include <boost/type_traits/is_same.hpp>CssSelector.php git://github.com/symfony/symfony.git | PHP | 314 lines
1<?php 2 243 $selector = $stream->next(); 244 } elseif ($peek->isType('Symbol') && is_int($peek)) { 245 $selector = intval($stream->next());cookies.php http://prado3.googlecode.com/svn/trunk/ | PHP | 380 lines
1<?php 2 /** 5 * @subpackage WebTester 6 * @version $Id: cookies.php 1398 2006-09-08 19:31:03Z xue $ 7 */ 11 */ 12 require_once(dirname(__FILE__) . '/url.php'); 13 /**#@-*/ 46 $this->_expiry = strtotime($expiry); 47 } elseif (is_integer($expiry)) { 48 $this->_expiry = $expiry;Exception.php https://bitbucket.org/vmihailenco/vladimirwebdev | PHP | 397 lines
20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php 11 2008-09-16 18:31:09Z root $ 22 * @version CVS: $Id: Exception.php 11 2008-09-16 18:31:09Z root $ 23 * @link http://pear.php.net/package/PEAR 24 * @since File available since Release 1.3.3 52 * 53 * 4) Inherited methods from PHP Exception Class: 54 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.2 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantclass.page.php git://github.com/symphonycms/symphony-2.git | PHP | 367 lines
1<?php 2/** 157 * This method format the provided `$status_code` to used 158 * php's `header()` function. 159 * 190 unset(self::$HTTP_STATUSES[$status_code]); 191 } elseif (is_int($status_code) && $status_code >= 100 && $status_code < 600) { 192 self::$HTTP_STATUSES[$status_code] = $string_value; 206 * @param integer $response_code (optional) 207 * The HTTP response code that should be set by PHP with this header, eg. 200 208 */ 298 /** 299 * This method calls php's `header()` function 300 * in order to set the HTTP status code properly on all platforms. 311 /** 312 * Iterates over the `$_headers` for this page and outputs them using PHP's 313 * header() function. Since Symphony 3.0.0, this will add additional Pragmaerlang_term_parser.php http://erlang-term-php-parser.googlecode.com/svn/trunk/ | PHP | 255 lines
1<?php 2/* 3 @author Alexxz 4 @project_url http://code.google.com/p/erlang-term-php-parser/ 5 231 foreach($node['data'] as $subnode){ 232 if($is_string = $is_string && is_int($subnode) && $subnode > 0 && $subnode < 256){ 233 $possible_string .= chr($subnode);dashboard.php https://jolte.svn.codeplex.com/svn | PHP | 220 lines
84 85<?php if (is_int($core->get_config("remote.port"))) { 86 echo "fail"; 109 <td>Inactiveusers: </td> 110 <td><strong><?php echo $stat['inactive_users']; ?></strong></td> 111 <td>Website version: </td> 133 <td>Worlds: </td> 134 <td><strong><?php echo $stat['world_count']; ?></strong></td> 135 <td>Database size: </td> 162 <tr> 163 <td><a href='dashboard.php?delete_note=" . $note['id'] . "'><img src='./images/icon_delete.gif' /></a> <a href='viewuser.php?name=" . $note['user'] . "'><strong>" . $users->format_name($note['user']) . "</strong></a></td> 164 <td style='text-align: center;'>" . $note['note_date'] . "</td> 218 219<?php include_once("footer.php"); ?> 220jquery.ajax_forms.validation.js https://code.google.com/p/django-ajax-forms/ | JavaScript | 151 lines
1/*! Copyright 2009 Tim Savage <tim.savage@jooceylabs.com> 2 * Licensed under the BSD license (http://www.opensource.org/licenses/bsd-license.php) 3 * 23 var IS_FLOAT = /^-?\d*(\.?\d*)$/; 24 var IS_INTEGER = /^-?\d+$/; 25 var IS_DATE = '^(\\d{4}-((0?\\d)|(1[0-2]))-(([0-2]\\d)|(3[01])))$|' + 87 88 is_integer: function(field, arg, value, msgs) { 89 value = $.trim(value); 89 value = $.trim(value); 90 if (!IS_INTEGER.test(value) || isNaN(parseInt(value))) { 91 throw new ValidationError(msgs['invalid']);class.dbobject.php git://github.com/tylerhall/simple-php-framework.git | PHP | 232 lines
1<?PHP 2 class DBObject 110 $data[$k] = $v ? 'TRUE' : 'FALSE'; 111 } else if(is_int($v) || is_float($v)) { 112 $data[$k] = "$v"; 146 $data[$k] = $v ? 'TRUE' : 'FALSE'; 147 } else if(is_int($v) || is_float($v)) { 148 $data[$k] = "$v";pnuser.php git://pkgs.fedoraproject.org/zikula | PHP | 255 lines
1<?php 2/** 6 * @link http://www.zikula.org 7 * @version $Id: pnuser.php 27396 2009-11-04 01:38:04Z mateo $ 8 * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html 66 67 if (is_int((int)$docroot) && $docroot > 0) { 68 $rootCat = CategoryUtil::getCategoryByID($docroot); 181 182 require_once ('system/Categories/pninit.php'); // need this for Categories_makeDisplayName() && Categories_makeDisplayDesc() 183 $cat = array('id' => '',RecordSearch2.php http://geocontexter.googlecode.com/svn/trunk/ | PHP | 299 lines
1<?php 2/** 44 * @subpackage Module_Geocontexter 45 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 46 * @author Armand Turpel <geocontexter@gmail.com> 196 } 197 elseif(!is_int($params['status'][1])) 198 {modinstallclirequest.class.php git://github.com/modxcms/revolution.git | PHP | 370 lines
1<?php 2/* 9 */ 10require_once strtr(realpath(MODX_SETUP_PATH.'includes/request/modinstallrequest.class.php'),'\\','/'); 11/** 46 public function getInstallMode($mode) { 47 if (!is_int($mode)) { 48 switch ($mode) { 335 /** 336 * End the PHP session and output a message 337 *db.tools.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 140 lines
1<?php 2function db_get_update_sql(&$db,&$rs, $data, $InsertIfNoResult = false,$insertData=null,$ignore=false){ 99 case 'bool': 100 return (strtolower($value)!='false' && $value || (is_int($value) && $value>0))?'true':'false'; 101 break;url.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 472 lines
1<?php if (!defined('RAPYD_PATH')) exit('No direct script access allowed'); 2 54 * take an 'application' URI (ie. controller/method/param) 55 * and return a full URL (ie. http://host/rapydpath/[index.php]/controller/method/param) 56 */ 88 /** 89 *reverse or url(), return an application uri removing [http://host/path/index.php/]uri 90 * 117 118 //l'opposto di parse_str() in php non esiste come funziona nativa 119 public static function unparse_str($array) { 124 // Integer subkeys are numerically indexed arrays 125 $sub_key = is_int($sub_key) ? '[]' : '['.$sub_key.']'; 126 $query_string .= $key.rawurlencode($sub_key).'='.rawurlencode($sub_val).'&';ConfigForm.php git://github.com/eryx/php-framework-benchmark.git | PHP | 369 lines
1<?php 2 162 $def = $this->config->def->info["$ns.$directive"]; 163 if (is_int($def)) { 164 $allow_null = $def < 0; 251 $def = $config->def->info["$ns.$directive"]; 252 if (is_int($def)) { 253 $type = abs($def); 265 case HTMLPurifier_VarParser::ALIST: 266 $value = implode(PHP_EOL, $value); 267 break; 270 foreach ($value as $i => $v) { 271 $nvalue .= "$i:$v" . PHP_EOL; 272 }LatestActivitiesUtil.php https://bitbucket.org/ddonthula/zurmounl | PHP | 196 lines
1<?php 2 /********************************************************************************* 86 $ownedByFilter == LatestActivitiesConfigurationForm::OWNED_BY_FILTER_USER || 87 is_int($ownedByFilter)'); 88 $modelClassNamesAndSearchAttributeData = array(); 167 { 168 assert('is_int($portletId)'); 169 $keyName = static::resolveKeyNameByPortletId($portletId, $keyName); 182 { 183 assert('is_int($portletId)'); 184 $keyName = static::resolveKeyNameByPortletId($portletId, $keyName);smarty_internal_compile_private_registered_block.php http://kemiaeve.googlecode.com/svn/trunk/ | PHP | 79 lines
1<?php 2/** 34 foreach ($_attr as $_key => $_value) { 35 if (is_int($_key)) { 36 $_paramsArray[] = "$_key=>$_value"; 48 if (!is_array($function)) { 49 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function}({$_params}, null, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl);while (\$_block_repeat) { ob_start();?>"; 50 } else if (is_object($function[0])) { 50 } else if (is_object($function[0])) { 51 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; call_user_func_array(\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0],array({$_params}, null, \$_smarty_tpl->smarty, &\$_block_repeat, \$_smarty_tpl));while (\$_block_repeat) { ob_start();?>"; 52 } else { 52 } else { 53 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; call_user_func_array(array('{$function[0]}','{$function[1]}'),array({$_params}, null, \$_smarty_tpl->smarty, &\$_block_repeat, \$_smarty_tpl));while (\$_block_repeat) { ob_start();?>"; 54 } 67 if (!is_array($function)) { 68 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo {$function}({$_params}, \$_block_content, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>"; 69 } else if (is_object($function[0])) {Statement.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 485 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Statement.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Db.php'; 27 30 */ 31require_once 'Zend/Db/Statement/Interface.php'; 32 150 */ 151 require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'"); 158 */ 159 require_once 'Zend/Db/Statement/Exception.php'; 160 throw new Zend_Db_Statement_Exception("Invalid bind-variable name '$val'");logService.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 439 lines
1<?php 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: logService.php 4042 2011-05-01 06:36:18Z rockys $ 15 */ 16 17require_once 'Zend/Log.php'; 18require_once 'Zend/Log/Writer/Stream.php'; 87 //Check that logging is enabled 88 if (is_int($this->_level) == FALSE) 89 return;cookies.php git://github.com/silverstripe/sapphire.git | PHP | 380 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: cookies.php 1723 2008-04-08 00:34:10Z lastcraft $ 7 */ 11 */ 12require_once(dirname(__FILE__) . '/url.php'); 13/**#@-*/ 46 $this->_expiry = strtotime($expiry); 47 } elseif (is_integer($expiry)) { 48 $this->_expiry = $expiry;Xml.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 351 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 17 * @package Cake.Utility 18 * @since CakePHP v .0.10.3.1400 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 213 // http://www.w3.org/TR/REC-xml/#syntax 214 // https://bugs.php.net/bug.php?id=36795 215 $child = $dom->createElement($key, '');mysql_utility.php git://github.com/prashants/webzash.git | PHP | 245 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 144 $field_str = ''; 145 $is_int = array(); 146 while ($field = mysql_fetch_field($query->result_id)) 148 // Most versions of MySQL store timestamp as a string 149 $is_int[$i] = (in_array( 150 strtolower(mysql_field_type($query->result_id, $i)), 179 // Escape the data if it's not an integer 180 if ($is_int[$i] == FALSE) 181 { 243 244/* End of file mysql_utility.php */ 245/* Location: ./system/database/drivers/mysql/mysql_utility.php */io.class.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 281 lines
1<?php 2/** 100 $pos = array_search($badline, $lines); //return null or false if not found 101 while (is_int($pos)) { 102 unset($lines[$pos]); 191 * 192 * @link http://www.php.net/manual/en/function.mkdir.php 193 * @author <saint@corenova.com> 246 * 247 * This function behaves similar to PHP's realpath() but does not resolve 248 * symlinks or accesses upper directories 250 * @author <richpageau at yahoo dot co dot uk> 251 * @link http://de3.php.net/manual/en/function.realpath.php#75992 252 */ 253 function fullpath($path) { 254 $iswin = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'); 255 if ($iswin) $path = str_replace('\\', '/', $path); // windows compatibilityFX_Error.php git://github.com/yodarunamok/fxphp.git | PHP | 1 lines
1<?php // This portion of the FX.php distribution was modified from PEAR_Error in // the PEAR distribution and is released under the PHP license. A big // "Thank You" to the authors of PEAR.php. Used with permission. // // The header comment from the original PEAR.php file is included below. // Note that in the FX.php distribution, the PHP license is included in the // file PHP_LICENSE.txt not a file called 'LICENSE' as described below. // // Thanks also to Steve Lane for providing the the elegant integration of // FX.php and PEAR_Error object based error handling! // // +--------------------------------------------------------------------+ // | PEAR, the PHP Extension and Application Repository | // +--------------------------------------------------------------------+ // | Copyright (c) 1997-2004 The PHP Group | // +--------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.php.net/license/3_0.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +--------------------------------------------------------------------+ // | Authors: Sterling Hughes <sterling@php.net> | // | Stig Bakken <ssb@php.net> | // | Tomas V.V.Cox <cox@idecnet.com> | // +--------------------------------------------------------------------+ // // $Id: PEAR.php,v 1.80 2004/04/03 06:28:13 cellog Exp $ // define('FX_ERROR_RETURN', 1); define('FX_ERROR_PRINT', 2); define('FX_ERROR_TRIGGER', 4); define('FX_ERROR_DIE', 8); define('FX_ERROR_CALLBACK', 16); class FX_Error { // {{{ properties var $error_message_prefix = ''; var $mode = FX_ERROR_RETURN; var $level = E_USER_NOTICE; var $code = -1; var $message = ''; var $userinfo = ''; var $backtrace = null; // }}} // {{{ constructor /** * FX_Error constructor * * @param string $message message * * @param int $code (optional) error code * * @param int $mode (optional) error mode, one of: FX_ERROR_RETURN, * FX_ERROR_PRINT, FX_ERROR_DIE, FX_ERROR_TRIGGER, or FX_ERROR_CALLBACK * * @param mixed $options (optional) error level, _OR_ in the case of * FX_ERROR_CALLBACK, the callback function or object/method * tuple. * * @param string $userinfo (optional) additional user/debug info * * @access public * */ function FX_Error($message = 'unknown error', $code = 100, $mode = null, $options = null, $userinfo = null) { if ($mode === null) { $mode = FX_ERROR_RETURN; } $this->message = 'FX: ' . $message; $this->code = $code; $this->mode = $mode; $this->userinfo = $userinfo; if (function_exists("debug_backtrace")) { $this->backtrace = debug_backtrace(); } if ($mode & FX_ERROR_CALLBACK) { $this->level = E_USER_NOTICE; $this->callback = $options; } else { if ($options === null) { $options = E_USER_NOTICE; } $this->level = $options; $this->callback = null; } if ($this->mode & FX_ERROR_PRINT) { if (is_null($options) || is_int($options)) { $format = "%s"; } else { $format = $options; } printf($format, $this->getMessage()); } if ($this->mode & FX_ERROR_TRIGGER) { trigger_error($this->getMessage(), $this->level); } if ($this->mode & FX_ERROR_DIE) { $msg = $this->getMessage(); if (is_null($options) || is_int($options)) { $format = "%s"; if (substr($msg, -1) != "\n") { $msg .= "\n"; } } else { $format = $options; } die(sprintf($format, $msg)); } if ($this->mode & FX_ERROR_CALLBACK) { if (is_callable($this->callback)) { call_user_func($this->callback, $this); } } } // }}} // {{{ getMode() /** * Get the error mode from an error object. * * @return int error mode * @access public */ function getMode() { return $this->mode; } // }}} // {{{ getCallback() /** * Get the callback function/method from an error object. * * @return mixed callback function or object/method array * @access public */ function getCallback() { return $this->callback; } // }}} // {{{ getMessage() /** * Get the error message from an error object. * * @return string full error message * @access public */ function getMessage() { return ($this->error_message_prefix . $this->message); } // }}} // {{{ getCode() /** * Get error code from an error object * * @return int error code * @access public */ function getCode() { return $this->code; } // }}} // {{{ getType() /** * Get the name of this error/exception. * * @return string error/exception name (type) * @access public */ function getType() { return get_class($this); } // }}} // {{{ getUserInfo() /** * Get additional user-supplied information. * * @return string user-supplied information * @access public */ function getUserInfo() { return $this->userinfo; } // }}} // {{{ getDebugInfo() /** * Get additional debug information supplied by the application. * * @return string debug information * @access public */ function getDebugInfo() { return $this->getUserInfo(); } // }}} // {{{ getBacktrace() /** * Get the call backtrace from where the error was generated. * Supported with PHP 4.3.0 or newer. * * @param int $frame (optional) what frame to fetch * @return array Backtrace, or NULL if not available. * @access public */ function getBacktrace($frame = null) { if ($frame === null) { return $this->backtrace; } return $this->backtrace[$frame]; } // }}} // {{{ addUserInfo() function addUserInfo($info) { if (empty($this->userinfo)) { $this->userinfo = $info; } else { $this->userinfo .= " ** $info"; } } // }}} // {{{ toString() /** * Make a string representation of this object. * * @return string a string with an object summary * @access public */ function toString() { $modes = array(); $levels = array(E_USER_NOTICE => 'notice', E_USER_WARNING => 'warning', E_USER_ERROR => 'error'); if ($this->mode & FX_ERROR_CALLBACK) { if (is_array($this->callback)) { $callback = get_class($this->callback[0]) . '::' . $this->callback[1]; } else { $callback = $this->callback; } return sprintf('[%s: message="%s" code=%d mode=callback '. 'callback=%s prefix="%s" info="%s"]', get_class($this), $this->message, $this->code, $callback, $this->error_message_prefix, $this->userinfo); } if ($this->mode & FX_ERROR_PRINT) { $modes[] = 'print'; } if ($this->mode & FX_ERROR_TRIGGER) { $modes[] = 'trigger'; } if ($this->mode & FX_ERROR_DIE) { $modes[] = 'die'; } if ($this->mode & FX_ERROR_RETURN) { $modes[] = 'return'; } return sprintf('[%s: message="%s" code=%d mode=%s level=%s '. 'prefix="%s" info="%s"]', get_class($this), $this->message, $this->code, implode("|", $modes), $levels[$this->level], $this->error_message_prefix, $this->userinfo); } // }}} } ?>DynamicTableEntity.php https://PHPAzure.svn.codeplex.com/svn | PHP | 235 lines
1<?php 2/** 31 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 32 * @license http://phpazure.codeplex.com/license 33 * @version $Id: BlobInstance.php 14561 2009-05-07 08:05:12Z unknown $ 39 */ 40require_once dirname(__FILE__) . '/../../AutoLoader.php'; 41 47 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 48 * @license http://phpazure.codeplex.com/license 49 */ 98 $type = 'Edm.String'; 99 if (is_int($value)) { 100 $type = 'Edm.Int32';db_mysql.inc http://ebpls.googlecode.com/svn/trunk/ | PHP | 421 lines
1<?php 2/* 2/* 3 * Session Management for PHP3 4 * 100 function query($Query_String) { 101 /* No empty queries, please, since PHP4 chokes on them. */ 102 if ($Query_String == "") 177 // text keys are "read", "read local", "write", "low priority write" 178 if(is_int($key)) $key = $mode; 179 if(strpos($value, ",")) {PDO.php git://github.com/alrik11es/sPHPf.git | PHP | 474 lines
1<?php 2/** 3 * PDO Driver 4 * @file RedBean/PDO.php 5 * @description PDO Driver 6 * This Driver implements the RedBean Driver API 7 * @author Gabor de Mooij and the RedBeanPHP Community, Desfrenes 8 * @license BSD/GPLv2 10 * 11 * (c) copyright Desfrenes & Gabor de Mooij and the RedBeanPHP community 12 * This source file is subject to the BSD/GPLv2 License that is bundled 75 * don't need database connectivity but for some reason want to 76 * init RedbeanPHP. 77 * @var boolean 109 /** 110 * Establishes a connection to the database using PHP PDO 111 * functionality. If a connection has already been established thiscore.validate.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/*************************************************************** 124 } else { 125 if( (is_string($value) || is_int($value) || is_numeric($value)) && ($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0) ) { 126 return false; 172 } else { 173 if( (is_string($string) || is_int($string) || is_numeric($string)) && ($string != '') && ($string != 'NULL') && (strlen(trim($string)) > 0) ) { 174 return false;date.php git://github.com/eryx/php-framework-benchmark.git | PHP | 404 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 23 * @category Core 24 * @link http://docs.fuelphp.com/classes/date.html 25 * 28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers 29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php 30 */ 103 104 // This really is some fugly code, but someone at PHP HQ decided strptime should 105 // output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!! 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return Dateclass.iCalEvent.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 405 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 20*/ 21include_once 'class.iCalBase.inc.php'; 22 32* @license GNU General Public License v3 33* @link http://code.google.com/p/flaimo-php/ 34* @package iCalendar 203 $this->rec_end = 0; 204 } elseif (is_int($freq) && strlen(trim($freq)) < 4) { 205 $this->rec_end = $freq; 218 private function setStartDateTS($timestamp = 0) { 219 if (is_int($timestamp) && $timestamp > 0) { 220 $this->startdate_ts = (int) $timestamp; 233 private function setEndDateTS($timestamp = 0) { 234 if (is_int($timestamp) && $timestamp > 0) { 235 $this->enddate_ts = (int) $timestamp;xsComplexType.php git://github.com/sbarthelemy/collada-dom.git | PHP | 222 lines
1<?php 2/* 5* Licensed under the MIT Open Source License, for details please see license.txt or the website 6* http://www.opensource.org/licenses/mit-license.php 7* 88 $local_max = $e_list[$i]->getAttribute( 'maxOccurs' ); 89 if ( $maxOccurs == 'unbounded' || (is_int( $local_max ) && ($maxOccurs > $local_max)) ) 90 { 100 $local_max = $e_list[$i]->getAttribute( 'maxOccurs' ); 101 if ( $maxOccurs == 'unbounded' || (is_int( $local_max ) && ($maxOccurs > $local_max)) ) 102 { 112 $local_max = $e_list[$i]->getAttribute( 'maxOccurs' ); 113 if ( $maxOccurs == 'unbounded' || (is_int( $local_max ) && ($maxOccurs > $local_max)) ) 114 {StripTags.php git://github.com/eryx/php-framework-benchmark.git | PHP | 307 lines
1<?php 2/** 120 // If the tag was provided without attributes 121 if (is_int($index) && is_string($element)) { 122 // Canonicalize the tag nameExperiment.php git://github.com/jsylvanus/phpScenario.git | PHP | 517 lines
1<?php 2/** 2/** 3 * phpScenario 4 * 9 * It is also available through the world-wide-web at this URL: 10 * http://www.phpscenario.org/license.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 13 * to license@phpscenario.org so we can send you a copy immediately. 14 * 17 * @copyright Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com) 18 * @license http://www.phpscenario.org/license.php New BSD License 19 */ 28 * @copyright Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com) 29 * @license http://www.phpscenario.org/license.php New BSD License 30 */Response.php git://github.com/zyxist/Trinity.git | PHP | 309 lines
1<?php 2/* 164 { 165 if(!is_int($code) || $code < 100 || $code > 599) 166 {Ini.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 193 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Ini.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Config/Writer/FileAbstract.php'; 26 151 { 152 if (is_integer($value) || is_float($value)) { 153 return $value; 159 /** @see Zend_Config_Exception */ 160 require_once 'Zend/Config/Exception.php'; 161 throw new Zend_Config_Exception('Value can not contain double quotes "');PrincipalSearchPropertySetTest.php git://github.com/evert/SabreDAV.git | PHP | 132 lines
1<?php 2 2 3require_once 'Sabre/HTTP/ResponseMock.php'; 4require_once 'Sabre/DAVACL/MockPrincipalBackend.php'; 5 6class Sabre_DAVACL_PrincipalSearchPropertySetTest extends PHPUnit_Framework_TestCase { 7 117 118 $xpath = is_int($v1)?$v2:$v1; 119 122 $count = 1; 123 if (!is_int($v1)) $count = $v2; 124ArrayInput.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 190 lines
1<?php 2 74 foreach ($this->parameters as $k => $v) { 75 if (!is_int($k)) { 76 $v = $k; 102 foreach ($this->parameters as $k => $v) { 103 if (is_int($k) && in_array($v, $values)) { 104 return true;Oci.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 379 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Oci.php 19048 2009-11-19 18:15:05Z mikaelkael $ 21 */ 26 */ 27// require_once 'Zend/Db/Adapter/Pdo/Abstract.php'; 28 118 { 119 if (is_int($value) || is_float($value)) { 120 return $value; 349 /** @see Zend_Db_Adapter_Exception */ 350 // require_once 'Zend/Db/Adapter/Exception.php'; 351 throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid"); 356 /** @see Zend_Db_Adapter_Exception */ 357 // require_once 'Zend/Db/Adapter/Exception.php'; 358 throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");widget_helper.php git://github.com/imagecms/ImageCMS.git | PHP | 170 lines
1<?php 2 53 54 if ($cache != FALSE AND is_integer($cache)) { 55 $ci->cache->store('widget' . $name, $result, $cache * 60, 'widgets'); 169} 170/* End of widget_helper.php */DbSelect.php git://github.com/centurion-project/Centurion.git | PHP | 262 lines
1<?php 2/** 24 */ 25//$1 'Zend/Paginator/Adapter/Interface.php'; 26 29 */ 30//$1 'Zend/Db.php'; 31 34 */ 35//$1 'Zend/Db/Select.php'; 36 115 */ 116 //$1 'Zend/Paginator/Exception.php'; 117 123 $this->_rowCount = count($result) > 0 ? $result[$rowCountColumn] : 0; 124 } else if (is_integer($rowCount)) { 125 $this->_rowCount = $rowCount;SessionObjects.php git://pkgs.fedoraproject.org/horde | PHP | 278 lines
1<?php 2/** 6 * 7 * $Horde: framework/SessionObjects/SessionObjects.php,v 1.6.12.12 2009/01/06 15:23:35 jan Exp $ 8 * 90 91 if (isset($params['size']) && is_int($params['size'])) { 92 $this->_size = $params['size']; 133 if ($this->_overwrite || !isset($ptr[$oid])) { 134 require_once 'Horde/Serialize.php'; 135 $modes = array(); 192 } else { 193 require_once 'Horde/Serialize.php'; 194 $modes = array();number.php git://github.com/Datawalke/Coordino.git | PHP | 257 lines
6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs.view.helpers 19 * @since CakePHP(tm) v 0.10.0.1076 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 29 * @subpackage cake.cake.libs.view.helpers 30 * @link http://book.cakephp.org/view/1452/Number 31 */AMQPPeclChannel.class.php git://github.com/onPHP/onphp-framework.git | PHP | 585 lines
1<?php 2/*************************************************************************** 373 $this->checkCommandResult( 374 is_int($result), 375 "Could not declare queue"Literal.php git://github.com/njh/easyrdf.git | PHP | 307 lines
1<?php 2 34 * @copyright Copyright (c) 2009-2011 Nicholas J Humfrey 35 * @license http://www.opensource.org/licenses/bsd-license.php 36 * @version $Id$ 43 * @copyright Copyright (c) 2009-2011 Nicholas J Humfrey 44 * @license http://www.opensource.org/licenses/bsd-license.php 45 */ 65 * 66 * PHP values of type bool, int or float, will automatically be converted 67 * to the corresponding datatype and PHP sub-class. 112 113 /** Register an RDF datatype with a PHP class name 114 * 124 * @param string $datatype The RDF datatype (e.g. xsd:dateTime) 125 * @param string $class The PHP class name (e.g. My_DateTime_Class) 126 */Mysql.hx http://caffeine-hx.googlecode.com/svn/trunk/ | Haxe | 408 lines
218 219#elseif php 220 249 public function addValue( s : StringBuf, v : Dynamic ) { 250 if( untyped __call__("is_int", v) || __call__("is_null", v)) 251 s.add(v); 343 private function fetchRow() : Bool { 344 cRow = untyped __call__("mysql_fetch_array", __r, __php__("MYSQL_NUM")); 345 return ! untyped __physeq__(cRow, false);smarty_internal_compile_private_registered_block.php git://github.com/jasonhinkle/phreeze.git | PHP | 112 lines
1<?php 2/** 54 foreach ($_attr as $_key => $_value) { 55 if (is_int($_key)) { 56 $_paramsArray[] = "$_key=>$_value"; 71 if (!is_array($function)) { 72 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; echo {$function}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>"; 73 } elseif (is_object($function[0])) { 73 } elseif (is_object($function[0])) { 74 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; echo \$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0][0]->{$function[1]}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>"; 75 } else { 75 } else { 76 $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; echo {$function[0]}::{$function[1]}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>"; 77 } 100 if (!is_array($function)) { 101 $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false;".$mod_pre." echo {$function}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat);".$mod_post." } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>"; 102 } elseif (is_object($function[0])) {Query.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 681 lines
1<?php 2/** 17 * @copyright 2008-2009 (c) Maxime Bouroumeau-Fuseau 18 * @license http://www.opensource.org/licenses/mit-license.php 19 * @link http://www.atomikframework.com 22/** Atomik_Db_Query_Generator_Interface */ 23require_once 'Atomik/Db/Query/Generator/Interface.php'; 24 25/** Atomik_Db_Query_Generator */ 26require_once 'Atomik/Db/Query/Generator.php'; 27 28/** Atomik_Db_Query_Expr */ 29require_once 'Atomik/Db/Query/Expr.php'; 30 230 foreach ($table as $key => $value) { 231 if (is_int($key)) { 232 $this->from($value);Object.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 22/** Zend_Pdf_Element */ 23require_once 'Zend/Pdf/Element.php'; 24 25/** Zend_Pdf_ElementFactory */ 26require_once 'Zend/Pdf/ElementFactory.php'; 27 81 82 if ( !(is_integer($objNum) && $objNum > 0) ) { 83 throw new Zend_Pdf_Exception('Object number must be positive integer.'); 85 86 if ( !(is_integer($genNum) && $genNum >= 0) ) { 87 throw new Zend_Pdf_Exception('Generation number must be non-negative integer.'); 241 /** 242 * Convert PDF element to PHP type. 243 *webcore.google.visualization.php https://webcore.svn.codeplex.com/svn | PHP | 332 lines
1<?php 2/** 114 115 if (is_float($scalar) || is_int($scalar)) 116 $this->columns[] = array(config-scanner.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 193 lines
1#!/usr/bin/php 2<?php 4chdir(dirname(__FILE__)); 5require_once 'common.php'; 6require_once '../library/HTMLPurifier.auto.php'; 8 9if (version_compare(PHP_VERSION, '5.2.2', '<')) 10{ 10{ 11 echo "This script requires PHP 5.2.2 or later, for tokenizer line numbers."; 12 exit(1); 25chdir(dirname(__FILE__) . '/../library/'); 26$raw_files = $FS->globr('.', '*.php'); 27$files = array(); 60 { 61 if (is_int($value_or_token)) 62 return is_array($token) && $token[0] === $value_or_token;PoliciesFormUtil.php https://bitbucket.org/zurmo/zurmo/ | PHP | 229 lines
1<?php 2 /********************************************************************************* 47 * @code 48 <?php 49 $data = array( 164 assert('is_string($policy)'); 165 assert('is_int($value) || $value == null || $value == ""'); 166 if (!empty($value))NPVariantUtil.h git://pkgs.fedoraproject.org/esteid-browser-plugin | C Header | 333 lines
6 New BSD License 7 http://www.opensource.org/licenses/bsd-license.php 8 - or - 23#include <boost/type_traits/is_arithmetic.hpp> 24#include <boost/type_traits/is_integral.hpp> 25#include <boost/type_traits/is_same.hpp> 288 template<class T> 289 NPVariantBuilder isIntegral(const boost::true_type& /* is_integral */) 290 { 304 template<class T> 305 NPVariantBuilder isIntegral(const boost::false_type& /* is_integral */) 306 { 313 { 314 return isIntegral<T>(boost::is_integral<T>()); 315 }wars.php http://gesior-aac.googlecode.com/svn/trunk/ | PHP | 222 lines
1<?php 2 61 $count++; 62 if(is_int($count / 2)) 63 $bgcolor = $config['site']['darkborder']; 127 $count++; 128 if(is_int($count / 2)) 129 $bgcolor = $config['site']['darkborder']; 187 $count++; 188 if(is_int($count / 2)) 189 $bgcolor = $config['site']['darkborder'];tests.php git://github.com/fictivekin/Resty.php.git | PHP | 297 lines
1<?php 2 2 3require dirname(__FILE__) . "/../vendor/autoload.php"; 4 177 // respose assertions 178 fu::ok(is_int($resp['status']), 'response status should be an integer'); 179 fu::equal($resp['status'], 200, 'response status should be 200');Exception.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 397 lines
14 * @copyright 1997-2009 The Authors 15 * @license http://opensource.org/licenses/bsd-license.php New BSD License 16 * @version CVS: $Id: Exception.php 296939 2010-03-27 16:24:43Z dufuz $ 16 * @version CVS: $Id: Exception.php 296939 2010-03-27 16:24:43Z dufuz $ 17 * @link http://pear.php.net/package/PEAR 18 * @since File available since Release 1.3.3 37 * 38 * 3) Inherited properties from PHP Exception Class: 39 * 60 * <code> 61 * require_once 'PEAR/Exception.php'; 62 * 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantAdvindexHelper.php git://github.com/morrislaptop/advindex.git | PHP | 307 lines
1<?php 2 138 $limit = $paging['options']['limit']; 139 if ( $limit == PHP_INT_MAX ) { 140 $limit = 'All'; 199 200 }elseif(is_integer($k) || in_array($k,$scaffoldFields)){ // Normal field OR Field with options 201 if(!in_array($v,$scaffoldFields) && !in_array($k,$scaffoldFields) && $v != 'actions'){ // Doesn't exist 206 foreach($structure[$k] as $gk => $gv){ 207 if(is_integer($gk) || in_array($gk,$scaffoldFields)){ // Normal field OR Field with options 208 if(!in_array($gv,$scaffoldFields) && !in_array($gk,$scaffoldFields)){ // Doesn't existConduitClient.php git://github.com/facebook/libphutil.git | PHP | 364 lines
1<?php 2 340 $out[] = $data; 341 } else if (is_int($data)) { 342 $out[] = 'I';dumper.php git://github.com/campaignmonitor/createsend-php.git | PHP | 360 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $ 7 */ 59 return "String"; 60 } elseif (is_integer($value)) { 61 return "Integer";linb.php http://linb.googlecode.com/svn/trunk/ | PHP | 482 lines
1<?php 2 if(function_exists('date_default_timezone_set')){ 6 /* 7 * phpLinb 1.2 8 * Copyright(c) 2008 Yingbo Li(linb.net, linb.net[at]gmail.com). 16 try{ 17 $path = LINB::$DIR_LINB.LINB::$DIR_CLASS.str_replace('_', DIRECTORY_SEPARATOR, str_replace('.', DIRECTORY_SEPARATOR, $class)).'.php'; 18 if(!file_exists($path)){ 18 if(!file_exists($path)){ 19 $path = LINB::$DIR_APP.LINB::$DIR_CLASS.str_replace('_', DIRECTORY_SEPARATOR, str_replace('.', DIRECTORY_SEPARATOR, $class)).'.php'; 20 } 125 /** 126 * The path of LINB.PHP 127 */ 160 'string' => array('is_string',''), 161 'integer' => array('is_integer',0), 162 'double' => array('is_float',0.0),WHPlot.php http://phaux.googlecode.com/svn/trunk/ | PHP | 173 lines
1<?php 2/** 16 parent::__construct(); 17 if(!is_int($this->classVarNamed('id'))){ 18 $this->setClassVarNamed('id',0);sphinxapi.php http://sphinxsearch.googlecode.com/svn | PHP | 224 lines
1<?php 2 3// 4// $Id: sphinxapi.php 118 2005-06-03 08:18:42Z shodan $ 5// 16///////////////////////////////////////////////////////////////////////////// 17// Sphinx PHP API 18///////////////////////////////////////////////////////////////////////////// 69 assert ( is_string($host) ); 70 assert ( is_int($port) ); 71 $this->_host = $host; 77 { 78 assert ( is_int($offset) ); 79 assert ( is_int($limit) ); 105 foreach ( $weights as $weight ) 106 assert ( is_int($weight) ); 107shBrushPhp.js git://github.com/daylightstudio/FUEL-CMS.git | JavaScript | 92 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 56 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ 57 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ 58 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92sfValidatorErrorSchema.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 312 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfValidatorErrorSchema.class.php 9100 2008-05-20 08:34:25Z fabien $ 18 */ 54 { 55 if (is_null($name) || is_integer($name)) 56 {HashTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2// Call Zend_Form_Element_HashTest::main() if this source file is executed directly. 6 7require_once dirname(__FILE__) . '/../../../TestHelper.php'; 8 8 9require_once 'Zend/Form/Element/Hash.php'; 10 13 */ 14class Zend_Form_Element_HashTest extends PHPUnit_Framework_TestCase 15{ 22 { 23 require_once "PHPUnit/TextUI/TestRunner.php"; 24 180 { 181 if (strtolower(substr(PHP_OS, 0, 3)) == 'win' && version_compare(PHP_VERSION, '5.1.4', '=')) { 182 $this->markTestIncomplete('Error occurs for PHP 5.1.4 on Windows');restore_course_task.class.php git://github.com/moodle/moodle.git | PHP | 227 lines
1<?php 2 33 * 34 * TODO: Finish phpdocs 35 */ 154 // because they don't become transformed (section number) in backup/restore. 155 $rules[] = new restore_decode_rule('COURSEVIEWBYID', '/course/view.php?id=$1', 'course'); 156 157 // A few other key course links. 158 $rules[] = new restore_decode_rule('GRADEINDEXBYID', '/grade/index.php?id=$1', 'course'); 159 $rules[] = new restore_decode_rule('GRADEREPORTINDEXBYID', '/grade/report/index.php?id=$1', 'course'); 159 $rules[] = new restore_decode_rule('GRADEREPORTINDEXBYID', '/grade/report/index.php?id=$1', 'course'); 160 $rules[] = new restore_decode_rule('BADGESVIEWBYID', '/badges/view.php?type=2&id=$1', 'course'); 161 $rules[] = new restore_decode_rule('USERINDEXVIEWBYID', '/user/index.php?id=$1', 'course'); 200 $startdatedefaultvalue = $this->get_info()->original_course_startdate; 201 $startdate = new restore_course_defaultcustom_setting('course_startdate', base_setting::IS_INTEGER, $startdatedefaultvalue); 202 $startdate->set_ui(new backup_setting_ui_defaultcustom($startdate, get_string('setting_course_startdate', 'backup'),BatchHelper.php git://github.com/ProLoser/CakePHP-Batch.git | PHP | 267 lines
1<?php 2/** 89 foreach ($fields as $field => $options) { 90 if (is_int($field)) { 91 $field = $options; 145 foreach ($fields as $field => $attributes) { 146 if (is_int($field)) { 147 $field = $attributes;GridView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 147 lines
1<?php 2 /********************************************************************************* 42 { 43 assert('is_int($rows) && $rows > 0'); 44 assert('is_int($columns) && $columns > 0'); 70 { 71 assert('is_int($row) && $row >= 0 && $row < $this->rows'); 72 assert('is_int($column) && $column >= 0 && $column < $this->columns'); 80 { 81 assert('is_int($column) && $column >= 0 && $column < $this->columns'); 82 assert('is_int($width) && $width > 0');question.php http://wquiz.googlecode.com/svn/trunk/ | PHP | 288 lines
1<?php 2/** Copyright Information (GPL 3) 31 32require_once("includes/setup.php"); 33require_once("includes/QuestionNavigation.php"); // used later for navigation buttons 43$quiz_info = $quiz_session->getSessionInfo(); 44if (!isset($quiz_info['status'])||!is_int($quiz_info['status'])) 45{ 49 $quiz_session->destroySession(); 50 // most likely session timed out or gone direct to question.php? 51 // provide expired status 112// if we have to change the question number to default then we also change the action to default - for example should not be saving answer if answer was given to out-of-range question 113// note is_int does not work - so using is_numeric instead 114if (!isset($_POST['question']) || !is_numeric($_POST['question']) || $_POST['question'] < 1)dumper.php git://github.com/swiftmailer/swiftmailer.git | PHP | 359 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: dumper.php 1782 2008-04-25 17:09:06Z pp11 $ 7 */ 59 return "String"; 60 } elseif (is_integer($value)) { 61 return "Integer";file.php git://github.com/mfriesen/kaching-php.git | PHP | 544 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs 17 * @since CakePHP(tm) v 0.2.9 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 25if (!class_exists('Object')) { 26 require LIBS . 'object.php'; 27}