PageRenderTime 571ms queryTime 41ms sortTime 32ms getByIdsTime 309ms findMatchingLines 119ms

100+ results results for 'php is_int' (571 ms)

Not the results you expected?
ConfigForm.php https://github.com/joshuaswarren/weatherhub.git | PHP | 368 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                    }
                    
                
Exception.php https://github.com/axxtel/agilebill.git | 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,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
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_* constant
                    
                
wiki_document.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
17* Functions for iterating and retrieving the necessary records are now also included
                    
18* in this file, rather than mod/wiki/lib.php
                    
19*/
                    
23*/
                    
24require_once("$CFG->dirroot/search/documents/document.php");
                    
25require_once("$CFG->dirroot/mod/wiki/lib.php");
                    
76
                    
77    return $CFG->wwwroot.'/mod/wiki/view.php?wid='.$wikiId.'&amp;page='.wiki_name_convert($title).'&amp;version='.$version;
                    
78} //wiki_make_link
                    
80/**
                    
81* rescued and converted from ewikimoodlelib.php
                    
82* retrieves latest version of a page
                    
89    
                    
90    if ($version > 0 and is_int($version)) {
                    
91        $version = "AND (version=$version)";
                    
                
condition.php https://github.com/arborrow/moodle.git | PHP | 270 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
52            $this->groupid = 0;
                    
53        } else if (is_int($structure->id)) {
                    
54            $this->groupid = $structure->id;
                    
184
                    
185        require_once($CFG->libdir . '/grouplib.php');
                    
186        $course = $info->get_course();
                    
                
Product.php https://github.com/rgranadino/magento-mirror.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
160    {
                    
161        if (is_int($product)) {
                    
162            $product = Mage::getModel('catalog/product')->load($product);
                    
                
Exception.php https://github.com/cinnamong/mag3nt0.git | 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,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
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.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
187            foreach ($urls as $i => $url) {
                    
188                if (is_integer($i)) {
                    
189                    if (0 === strpos($url, 'https://') || 0 === strpos($url, '//')) {
                    
                
CakeRoute.php https://github.com/probert09/Tesis.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * PHP5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
214			}
                    
215			if (is_integer($key)) {
                    
216				$route['pass'][] = $value;
                    
                
Exception.php https://github.com/richardmansfield/richardms-mahara.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
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-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
55
                    
56		if (is_int($now))
                    
57		{
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
Exception.php https://github.com/sitengine/sitengine.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
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-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
array-data-defs.h https://github.com/tstarling/hiphop-php.git | C Header | 357 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_ARRAY_DEFS_H_
                    
18#define incl_HPHP_ARRAY_DEFS_H_
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
93            foreach ($visibilityFilter as $k => $v) {
                    
94                if (is_int($k)) {
                    
95                    $filterFieldId = $v;
                    
                
Product.php https://github.com/edbull/custard.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
160    {
                    
161        if (is_int($product)) {
                    
162            $product = Mage::getModel('catalog/product')->load($product);
                    
                
Abstract.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
93            foreach ($visibilityFilter as $k => $v) {
                    
94                if (is_int($k)) {
                    
95                    $filterFieldId = $v;
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
152        foreach ($headers as $name => $value) {
                    
153            if (is_int($name)) {
                    
154                if (is_string($value)) {
                    
                
Akismet.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 387 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27#require_once 'Zend/Version.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Service/Abstract.php';
                    
33
                    
109    {
                    
110        #require_once 'Zend/Uri.php';
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
112            #require_once 'Zend/Service/Exception.php';
                    
113            throw new Zend_Service_Exception('Invalid url provided for blog');
                    
182    {
                    
183        if (!is_int($port)) {
                    
184            #require_once 'Zend/Service/Exception.php';
                    
                
type-inl.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 509 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_JIT_TYPE_INL_H_
                    
18#error "type-inl.h should only be included by type.h"
                    
                
basebutton.php https://gitlab.com/alexprowars/bitrix | PHP | 564 lines
                    
1<?php
                    
2
                    
318		}
                    
319		else if ((is_int($counter) && $counter > 0) || (is_string($counter) && mb_strlen($counter)))
                    
320		{
                    
                
CssSelector.php https://gitlab.com/fbi/web | PHP | 313 lines
                    
1<?php
                    
2
                    
243                        $selector = $stream->next();
                    
244                    } elseif ($peek->isType('Symbol') && is_int($peek)) {
                    
245                        $selector = intval($stream->next());
                    
                
String.class.php https://github.com/treuter/xp-framework.git | PHP | 344 lines
                    
1<?php
                    
2/* This class is part of the XP framework
                    
107    public function offsetSet($offset, $value) {
                    
108      if (!is_int($offset)) {
                    
109        throw new IllegalArgumentException('Incorrect type '.gettype($offset).' for index');
                    
                
txplib_db.php https://github.com/nope/textpattern.git | PHP | 505 lines
                    
1<?php
                    
2
                    
13
                    
14if (version_compare(PHP_VERSION, '5.3.0') < 0)
                    
15{
                    
15{
                    
16	 // We are deliberately using a deprecated function for PHP 4 compatibility
                    
17	 if (get_magic_quotes_runtime())
                    
251		$key = doSlash($key);
                    
252		$val = (is_int($val)) ? $val : "'".doSlash($val)."'";
                    
253		$q = "select $col from ".safe_pfx($table)." where `$key` = $val limit 1";
                    
                
DbTable.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
185    {
                    
186        if (is_integer($flag)) {
                    
187            $this->ambiguityIdentity = (1 === $flag ? true : false);
                    
                
driver.php https://github.com/erikbrannstrom/core.git | PHP | 455 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright  2010 - 2011 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
202		// In case of string or int just return it as a string
                    
203		if (is_string($identifier) || is_int($identifier))
                    
204		{
                    
324	 *
                    
325	 * @param   string|array  Valid PHP callback
                    
326	 * @param   array         Arguements for the above function/method
                    
                
toolset.settings.class.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 468 lines
                    
1<?php
                    
2
                    
214	/**
                    
215	* PHP dynamic setter.
                    
216	*
                    
224	/**
                    
225	* PHP dynamic setter.
                    
226	*
                    
235	/**
                    
236	* PHP dynamic fields unset() method support
                    
237	* @param string $key
                    
245	/**
                    
246	* PHP dynamic support for isset($this->name)
                    
247	* @param string $key
                    
329			is_string( $param1 ) 
                    
330			|| is_integer( $param1 ) 
                    
331		) {
                    
                
Properties.php https://github.com/tmccormi/openemr.git | PHP | 629 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Document;
                    
4
                    
468                $propertyType = self::PROPERTY_TYPE_FLOAT;
                    
469            } elseif (is_int($propertyValue)) {
                    
470                $propertyType = self::PROPERTY_TYPE_INTEGER;
                    
486    /**
                    
487     * Implement PHP __clone to create a deep clone, not just a shallow copy.
                    
488     */
                    
                
PhpEngine.php https://github.com/lalol/symfony.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        }
                    
                
Xml.php https://bitbucket.org/code_noodle/cakephp.git | PHP | 370 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)
                    
233							// http://www.w3.org/TR/REC-xml/#syntax
                    
234							// https://bugs.php.net/bug.php?id=36795
                    
235							$child = $dom->createElement($key, '');
                    
                
CDFDataColumn.php https://bitbucket.org/cleardemon/cdf.git | PHP | 439 lines
                    
1<?php
                    
2
                    
7
                    
8require_once 'CDFIDataConnection.php';
                    
9require_once dirname(__FILE__) . '/../core/CDFDataHelper.php';
                    
9require_once dirname(__FILE__) . '/../core/CDFDataHelper.php';
                    
10require_once dirname(__FILE__) . '/../core/CDFExceptions.php';
                    
11
                    
68	{
                    
69		if(!is_int($dataType) || !is_string($name))
                    
70			throw new CDFInvalidArgumentException();
                    
                
Pdf.php https://gitlab.com/code26/selah | PHP | 315 lines
                    
1<?php
                    
2namespace mikehaertl\wkhtmlto;
                    
206        foreach ($options as $key=>$val) {
                    
207            if (is_int($key)) {
                    
208                $this->_options[] = $val;
                    
305            if (is_string($val) && preg_match('/^(header|footer)-html$/', $key)) {
                    
306                defined('PHP_MAXPATHLEN') || define('PHP_MAXPATHLEN', 255);
                    
307                $isFile = (strlen($val) <= PHP_MAXPATHLEN) ? is_file($val) : false;
                    
                
driver.php https://github.com/enygma/fuel.git | PHP | 475 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
6 *
                    
11 * @copyright	2010 Dan Horrigan
                    
12 * @link		http://fuelphp.com
                    
13 */
                    
213		// In case of string or int just return it as a string
                    
214		if (is_string($identifier) || is_int($identifier))
                    
215		{
                    
340	 * @access	public
                    
341	 * @param	string|array	Valid PHP callback
                    
342	 * @param	array 			Arguements for the above function/method
                    
474
                    
475/* End of file driver.php */
                    
476
                    
                
%%24^248^248C46CA%%DetailView.tpl.php https://github.com/joshbhamilton/sugar.git | PHP | 236 lines
                    
2         compiled from include/DetailView/DetailView.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'include/DetailView/DetailView.tpl', 47, false),array('function', 'sugar_evalcolumn', 'include/DetailView/DetailView.tpl', 127, false),array('function', 'sugar_field', 'include/DetailView/DetailView.tpl', 132, false),array('modifier', 'count', 'include/DetailView/DetailView.tpl', 83, false),)), $this); ?>
                    
73    <?php endif; ?>
                    
74    <div <?php if ($this->_tpl_vars['useTabs']): ?>class="yui-content"<?php endif; ?>>
                    
75<?php echo smarty_function_counter(array('name' => 'panelCount','print' => false,'start' => 0,'assign' => 'panelCount'), $this);?>
                    
86<?php if (! is_array ( $this->_tpl_vars['panel'] )): ?>
                    
87    {sugar_include type='php' file='<?php echo $this->_tpl_vars['panel']; ?>
                    
88'}
                    
90
                    
91	<?php if (! empty ( $this->_tpl_vars['label'] ) && ! is_int ( $this->_tpl_vars['label'] ) && $this->_tpl_vars['label'] != 'DEFAULT' && ! $this->_tpl_vars['useTabs']): ?>
                    
92	<h4>{sugar_translate label='<?php echo $this->_tpl_vars['label']; ?>
                    
166%' <?php if ($this->_tpl_vars['colData']['colspan']): ?>colspan='<?php echo $this->_tpl_vars['colData']['colspan']; ?>
                    
167'<?php endif; ?> <?php if (isset ( $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['type'] ) && $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['type'] == 'phone'): ?>class="phone"<?php endif; ?>>
                    
168			    <?php if (! empty ( $this->_tpl_vars['colData']['field']['name'] )): ?>
                    
                
ConfigForm.php https://gitlab.com/virtualrealms/d7civicrm | 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                    }
                    
                
Worker.php https://github.com/rrehbeindoi/net_gearman.git | PHP | 499 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5.1.0+
                    
6 *
                    
8 * available through the world-wide-web at the following URI:
                    
9 * http://www.opensource.org/licenses/bsd-license.php. If you did not receive
                    
10 * a copy of the New BSD License and are unable to obtain it through the web,
                    
10 * a copy of the New BSD License and are unable to obtain it through the web,
                    
11 * please send a note to license@php.net so we can mail you a copy immediately.
                    
12 *
                    
16 * @copyright 2007-2008 Digg.com, Inc.
                    
17 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
18 * @version   CVS: $Id$
                    
18 * @version   CVS: $Id$
                    
19 * @link      http://pear.php.net/package/Net_Gearman
                    
20 * @link      http://www.danga.com/gearman/
                    
                
HtmlBuilder.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 568 lines
                    
1<?php
                    
2
                    
80
                    
81        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
                    
82    }
                    
100
                    
101        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
102    }
                    
138
                    
139        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
140    }
                    
404    {
                    
405        if (is_int($key)) {
                    
406            return $this->listing($type, $value);
                    
526        $content = is_array($content) ? implode(PHP_EOL, $content) : $content;
                    
527        return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL);
                    
528    }
                    
                
Container.php https://github.com/razvanp/zfs.git | PHP | 503 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Container.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
109        if ($page === $this) {
                    
110            require_once 'Zend/Navigation/Exception.php';
                    
111            throw new Zend_Navigation_Exception(
                    
115        if (is_array($page) || $page instanceof Zend_Config) {
                    
116            require_once 'Zend/Navigation/Page.php';
                    
117            $page = Zend_Navigation_Page::factory($page);
                    
118        } elseif (!$page instanceof Zend_Navigation_Page) {
                    
119            require_once 'Zend/Navigation/Exception.php';
                    
120            throw new Zend_Navigation_Exception(
                    
156        if (!is_array($pages)) {
                    
157            require_once 'Zend/Navigation/Exception.php';
                    
158            throw new Zend_Navigation_Exception(
                    
                
Serializer.php https://github.com/stefanklug/Zend-Framework-1.x-Mirror.git | PHP | 341 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
do_edit.php https://github.com/strogo/Newscoop.git | PHP | 247 lines
                    
1<?php
                    
2camp_load_translation_strings("system_pref");
                    
2camp_load_translation_strings("system_pref");
                    
3require_once($GLOBALS['g_campsiteDir']."/classes/SystemPref.php");
                    
4require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
                    
4require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
                    
5require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
                    
6
                    
119        $msg_ok = 0;
                    
120        camp_html_add_msg(getGS('Invalid: You need PHP $1 enabled in order to use the caching system.', $f_cache_engine));
                    
121    }
                    
131        $msg_ok = 0;
                    
132        camp_html_add_msg(getGS('Invalid: You need PHP $1 enabled in order to use the template caching system.'
                    
133            , $f_template_cache_handler));
                    
200    // Database Replication Port
                    
201    if (empty($f_db_repl_port) || !is_int($f_db_repl_port)) {
                    
202        $f_db_repl_port = 3306;
                    
                
FigletTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 24593 2012-01-05 20:35:02Z 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{
                    
                
layout.php https://bitbucket.org/rusbal/club4causes.git | PHP | 432 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------------
                    
54		// for nested categories
                    
55		if($key_param=='path' && $key_value && is_int(strpos($key_value,'_'))){
                    
56			$key_value = (int)substr($key_value,strrpos($key_value,'_')+1);
                    
                
FigletTest.php https://bitbucket.org/ksekar/campus.git | PHP | 363 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{
                    
                
BaseHisconc.php https://github.com/cidesa/roraima-comunal.git | PHP | 526 lines
                    
1<?php
                    
2
                    
56      return null;
                    
57    } elseif (!is_int($this->feccom)) {
                    
58            $ts = adodb_strtotime($this->feccom);
                    
122
                    
123    if ($v !== null && !is_int($v)) {
                    
124      $ts = adodb_strtotime($v);
                    
347	
                    
348	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
349	{
                    
384	
                    
385	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
386	{
                    
400	
                    
401	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
402	{
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 385 lines
                    
1<?php
                    
2/**
                    
244    {
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
262        if ($this->_captureLock) {
                    
263            #require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
264            $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
336     *
                    
337     * as defined by the PHP manual
                    
338     * @return int
                    
                
ArrayNodeDefinition.php https://bitbucket.org/prauscher/att.git | PHP | 420 lines
                    
1<?php
                    
2
                    
406
                    
407            if (null !== $this->key && (null === $this->addDefaultChildren || is_integer($this->addDefaultChildren) && $this->addDefaultChildren > 0)) {
                    
408                throw new InvalidDefinitionException(
                    
                
date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2007-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
55
                    
56		if (is_int($now))
                    
57		{
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
162        $strlen = $this->strlen($str);
                    
163        if ((!$strlen) || (!is_int($length)) || ($length <= 0)) {
                    
164            return $result;
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
191		{
                    
192			(is_int($library)) ? $this->library($alias) : $this->library($library, NULL, $alias);
                    
193		}
                    
239		{
                    
240			(is_int($model)) ? $this->model($alias) : $this->model($model, $alias);
                    
241		}
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
435		    {
                    
436		        (is_int($item)) ? $this->driver($alias) : $this->driver($item, $alias);
                    
437		    }
                    
                
RegressionTest1.php https://bitbucket.org/javierbuilder/mongo-php-driver.git | PHP | 452 lines
                    
1<?php
                    
2require_once 'PHPUnit/Framework.php';
                    
3
                    
77        $exit_code = 0;
                    
78        exec("php tests/fatal1.php", $output, $exit_code);
                    
79        $unclonable = "Fatal error: Trying to clone an uncloneable object";
                    
85
                    
86        exec("php tests/fatal2.php", $output, $exit_code);
                    
87        if (count($output) > 0) {
                    
234	$v = $cursor->current();
                    
235	$this->assertTrue(is_int($v['_id']));
                    
236    }
                    
383        $exit_code = 0;
                    
384        exec("php tests/fatal4.php", $output, $exit_code);
                    
385        $msg = "Fatal error: Nesting level too deep";
                    
                
Exception.php http://syracava.googlecode.com/svn/trunk/ | 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 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_* constant
                    
                
DumpDataCollector.php https://gitlab.com/madwanz64/laravel | PHP | 296 lines
                    
1<?php
                    
2
                    
53        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
54        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
55        $this->requestStack = $requestStack;
                    
127            if ($response->headers->has('Content-Type') && str_contains($response->headers->get('Content-Type'), 'html')) {
                    
128                $dumper = new HtmlDumper('php://output', $this->charset);
                    
129                $dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
                    
130            } else {
                    
131                $dumper = new CliDumper('php://output', $this->charset);
                    
132                if (method_exists($dumper, 'setDisplayOptions')) {
                    
186        foreach ($this->data as $dump) {
                    
187            if (!\is_string($dump['name']) || !\is_string($dump['file']) || !\is_int($dump['line'])) {
                    
188                throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
                    
244
                    
245            if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) {
                    
246                $dumper = new HtmlDumper('php://output', $this->charset);
                    
                
DB_result.php https://gitlab.com/estratega.pe/quote | PHP | 666 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
131	{
                    
132		if (is_int($this->num_rows))
                    
133		{
                    
                
passwordLibClass.php https://gitlab.com/Raymon/QualityCaps_PHP | PHP | 354 lines
                    
6 * 
                    
7 * See: http://php.net/password_hash and http://php.net/password_verify
                    
8 * 
                    
150     * @param type $setting
                    
151     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
152     */
                    
178     * @param STRING $chars
                    
179     * @return \Antnee\PhpPasswordLib\PhpPasswordLib|boolean
                    
180     */
                    
194     * @param INT $algo
                    
195     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
196     */
                    
238     * 
                    
239     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
240     */
                    
                
menu.php https://gitlab.com/websumon/tosnib | PHP | 279 lines
                    
27if ( is_multisite() ) {
                    
28	$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
                    
29}
                    
40		$cap = 'update_themes';
                    
41	$submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php');
                    
42	unset( $cap );
                    
216if ( current_user_can('list_users') ) {
                    
217	$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
                    
218	$submenu['users.php'][5] = array(__('All Users'), 'list_users', 'users.php');
                    
238	$submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
                    
239	$submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' );
                    
240	if ( is_multisite() && !is_main_site() )
                    
262$_wp_real_parent_file['wpmu-admin.php'] = 'tools.php';
                    
263$_wp_real_parent_file['ms-admin.php'] = 'tools.php';
                    
264
                    
                
FigletTest.php https://github.com/MontmereLimited/zf2.git | PHP | 288 lines
                    
1<?php
                    
2/**
                    
25namespace ZendTest\Captcha;
                    
26use Zend\View\Renderer\PhpRenderer as View;
                    
27
                    
107        $this->assertFalse(empty($ttl));
                    
108        $this->assertTrue(is_int($ttl));
                    
109    }
                    
                
CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
                    
1<?php
                    
2
                    
123            }
                    
124            print $failedMessage . PHP_EOL;
                    
125        } finally {
                    
163
                    
164        if (!is_int($lines)) {
                    
165            $lines = $this->config()->get("lines");
                    
                
Container.php https://github.com/taste/zf2.git | PHP | 507 lines
                    
1<?php
                    
2/**
                    
209            $hash = $page->hashCode();
                    
210        } elseif (is_int($page)) {
                    
211            $this->_sort();
                    
                
Akismet.php https://github.com/kervin/kyzstudio.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Akismet.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Version.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Service/Abstract.php';
                    
33
                    
109    {
                    
110        #require_once 'Zend/Uri.php';
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
112            #require_once 'Zend/Service/Exception.php';
                    
113            throw new Zend_Service_Exception('Invalid url provided for blog');
                    
                
ext_std_variable.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 516 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
24#include "hphp/runtime/base/builtin-functions.h"
                    
25#include "hphp/runtime/base/zend-functions.h"
                    
26#ifdef ENABLE_EXTENSION_XDEBUG
                    
26#ifdef ENABLE_EXTENSION_XDEBUG
                    
27#include "hphp/runtime/ext/xdebug/ext_xdebug.h"
                    
28#endif
                    
479  HHVM_FE(is_int);
                    
480  HHVM_FALIAS(is_integer, is_int);
                    
481  HHVM_FALIAS(is_long, is_int);
                    
515///////////////////////////////////////////////////////////////////////////////
                    
516} // namespace HPHP
                    
517
                    
                
SelectableAssociationTrait.php https://gitlab.com/alexandresgv/siteentec | PHP | 341 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
138        foreach ($subquery->clause('select') as $aliasedField => $field) {
                    
139            if (is_int($aliasedField)) {
                    
140                $filter[] = new IdentifierExpression($field);
                    
                
xpdoquery.class.php https://github.com/rostislav/revolution.git | PHP | 294 lines
                    
1<?php
                    
2/*
                    
28/** Include the base {@see xPDOQuery} class */
                    
29include_once (dirname(dirname(__FILE__)) . '/xpdoquery.class.php');
                    
30
                    
58                    }
                    
59                    $isString= in_array($fieldMeta[$k]['phptype'], $this->_quotable);
                    
60                    $field= array();
                    
74                while (list ($key, $val)= each($conditions)) {
                    
75                    if (is_int($key)) {
                    
76                        if (is_array($val)) {
                    
110                        }
                    
111                        elseif (isset($fieldMeta[$key]) && !in_array($fieldMeta[$key]['phptype'], $this->_quotable)) {
                    
112                            $type= PDO::PARAM_INT;
                    
199            foreach ($this->query['columns'] as $alias => $column) {
                    
200                $ignorealias = is_int($alias);
                    
201                $escape = !preg_match('/\bAS\b/i', $column) && !preg_match('/\./', $column) && !preg_match('/\(/', $column);
                    
                
session.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 439 lines
                    
1<?php
                    
2/**
                    
342	protected function prepare_session( $session ) {
                    
343		if ( is_int( $session ) ) {
                    
344			return array( 'expiration' => $session );
                    
                
base_module_model.php https://github.com/be3/FUEL-CMS.git | PHP | 565 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
27
                    
28require_once(APPPATH.'core/MY_Model.php');
                    
29
                    
194			{
                    
195				if (is_int($key))
                    
196				{
                    
                
Json.php https://gitlab.com/rsilveira1987/Expresso | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
26 */
                    
27require_once 'Zend/Json/Expr.php';
                    
28
                    
77
                    
78        require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
115             */
                    
116            require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
123        } else {
                    
124            require_once 'Zend/Json/Encoder.php';
                    
125            $encodedResult = Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
                
StripTags.php https://github.com/sidealice/zf2.git | PHP | 306 lines
                    
1<?php
                    
2/**
                    
120            // If the tag was provided without attributes
                    
121            if (is_int($index) && is_string($element)) {
                    
122                // Canonicalize the tag name
                    
                
person.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 302 lines
                    
1<?php
                    
2
                    
79		// It should to be an integer higher than 0.
                    
80		if ( \is_int( $user_id ) && $user_id > 0 ) {
                    
81			return $user_id;
                    
                
Serializer.php https://github.com/Exercise/zf2.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
33/**
                    
34 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
35 *
                    
73    {
                    
74        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
75        // variables should be passed by reference" 
                    
130            switch (true) {
                    
131                case (is_int($data) || is_float($data)):
                    
132                    $markerType = Amf\Constants::AMF0_NUMBER;
                    
202    {
                    
203        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
204        // variables should be passed by reference"
                    
227    /**
                    
228     * Write a PHP array with string or mixed keys.
                    
229     *
                    
                
Cart.php https://github.com/gryzz/crystal_magento.git | PHP | 435 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
172            $product = $productInfo;
                    
173        } elseif (is_int($productInfo)) {
                    
174            $product = Mage::getModel('catalog/product')
                    
                
auth.php https://github.com/mackensen/moodle.git | PHP | 391 lines
                    
32require_once($CFG->dirroot.'/auth/cas/CAS/vendor/autoload.php');
                    
33require_once($CFG->dirroot.'/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php');
                    
34
                    
74        $this->connectCAS();
                    
75        return phpCAS::isAuthenticated() && (trim(core_text::strtolower(phpCAS::getUser())) == $username);
                    
76    }
                    
98     * Authentication choice (CAS or other)
                    
99     * Redirection to the CAS form or to login/index.php
                    
100     * for other authentication
                    
181        if (!$connected) {
                    
182            // Make sure phpCAS doesn't try to start a new PHP session when connecting to the CAS server.
                    
183            if ($this->config->proxycas) {
                    
185            } else {
                    
186                phpCAS::client($this->config->casversion, $this->config->hostname, (int) $this->config->port, $this->config->baseuri, false);
                    
187            }
                    
                
Abstract.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
93            foreach ($visibilityFilter as $k => $v) {
                    
94                if (is_int($k)) {
                    
95                    $filterFieldId = $v;
                    
                
FigletTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 23775 2011-03-01 17:25:24Z 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{
                    
                
Validator.php https://gitlab.com/paveltizek/shop | PHP | 338 lines
                    
1<?php
                    
2
                    
59		if ($translator = $rule->control->getForm()->getTranslator()) {
                    
60			$message = $translator->translate($message, is_int($rule->arg) ? $rule->arg : NULL);
                    
61		}
                    
                
Exception.php https://github.com/poppen/p2.git | 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,v 1.3 2008/09/28 16:11:28 akid Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.3 2008/09/28 16:11:28 akid Exp $
                    
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_* constant
                    
                
base.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 . "' ";
                    
                
Cookie.php https://github.com/quarkness/piwik.git | PHP | 424 lines
                    
1<?php
                    
2
                    
19 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
20 * @version    $Id: Cookie.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
26 */
                    
27// require_once 'Zend/Uri/Http.php';
                    
28
                    
112        if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {
                    
113            // require_once 'Zend/Http/Exception.php';
                    
114            throw new Zend_Http_Exception("Cookie name cannot contain these characters: =,; \\t\\r\\n\\013\\014 ({$name})");
                    
117        if (! $this->name = (string) $name) {
                    
118            // require_once 'Zend/Http/Exception.php';
                    
119            throw new Zend_Http_Exception('Cookies must have a name');
                    
122        if (! $this->domain = (string) $domain) {
                    
123            // require_once 'Zend/Http/Exception.php';
                    
124            throw new Zend_Http_Exception('Cookies must have a domain');
                    
                
Stream.php https://gitlab.com/reasonat/test8 | PHP | 328 lines
                    
1<?php
                    
2/**
                    
117        $result = ftell($this->resource);
                    
118        if (! is_int($result)) {
                    
119            throw new RuntimeException('Error occurred during tell operation');
                    
                
subscription.php https://gitlab.com/billyprice1/bdApi | PHP | 357 lines
                    
1<?php
                    
2
                    
179
                    
180                if (is_int($postUpdated) AND $postUpdated > 0) {
                    
181                    return 'updated post';
                    
340        // request to something else, not our callback, bye bye
                    
341        // we don't check $_REQUEST because PHP parser got confused when
                    
342        // the POST data is JSON and may work unreliably here
                    
345
                    
346    $raw = file_get_contents('php://input');
                    
347    $json = @json_decode($raw, true);
                    
                
daemon.php https://bitbucket.org/blackriver/openx.git | PHP | 230 lines
                    
1<?php
                    
2// $Id: daemon.php 6783 2007-05-22 13:18:48Z andrew.hill@openads.org $
                    
28     * The ip address or servername
                    
29     * @see http://www.php.net/manual/en/transports.php
                    
30     * @var string
                    
35     * Protocol to use (tcp, udp, etc.)
                    
36     * @see http://www.php.net/manual/en/transports.php
                    
37     * @var string
                    
72        /* Ensure we have a valid integer value for $name. */
                    
73        if (empty($name) || !is_int($name)) {
                    
74            $name = LOG_SYSLOG;
                    
222        /* If we're passed an unknown priority, default to LOG_INFO. */
                    
223        if (!is_int($priority) || !in_array($priority, $priorities)) {
                    
224            return LOG_INFO;
                    
                
Json.php https://github.com/grandison/budo16.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 */
                    
26 */
                    
27// require_once 'Zend/Json/Expr.php';
                    
28
                    
77
                    
78        // require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
115             */
                    
116            // require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
123        } else {
                    
124            // require_once 'Zend/Json/Encoder.php';
                    
125            $encodedResult = Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
                
PHPArray.php https://github.com/rogerwu99/punch_bantana.git | PHP | 258 lines
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP Version 4                                                        |
                    
4// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
17//
                    
18// $Id: PHPArray.php 306488 2010-12-20 08:45:09Z cweiske $
                    
19
                    
20/**
                    
21* Config parser for common PHP configuration array
                    
22* such as found in the horde project.
                    
                
ErrorCollector.php https://github.com/mihalyf/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])) {
                    
                
Date.php https://github.com/ayamyau/concrete5.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Date.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
95        if (!array_key_exists('locale', $options)) {
                    
96            require_once 'Zend/Registry.php';
                    
97            if (Zend_Registry::isRegistered('Zend_Locale')) {
                    
124    {
                    
125        require_once 'Zend/Locale.php';
                    
126        $this->_locale = Zend_Locale::findLocale($locale);
                    
163    {
                    
164        if (!is_string($value) && !is_int($value) && !is_float($value) &&
                    
165            !is_array($value) && !($value instanceof Zend_Date)) {
                    
                
backup_block_task.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 219 lines
                    
1<?php
                    
2
                    
31 *
                    
32 * TODO: Finish phpdocs
                    
33 */
                    
142        // Add some extra settings that related processors are going to need
                    
143        $this->add_setting(new backup_activity_generic_setting(backup::VAR_BLOCKID, base_setting::IS_INTEGER, $this->blockid));
                    
144        $this->add_setting(new backup_activity_generic_setting(backup::VAR_BLOCKNAME, base_setting::IS_FILENAME, $this->blockname));
                    
144        $this->add_setting(new backup_activity_generic_setting(backup::VAR_BLOCKNAME, base_setting::IS_FILENAME, $this->blockname));
                    
145        $this->add_setting(new backup_activity_generic_setting(backup::VAR_MODID, base_setting::IS_INTEGER, $this->moduleid));
                    
146        $this->add_setting(new backup_activity_generic_setting(backup::VAR_MODNAME, base_setting::IS_FILENAME, $this->modulename));
                    
146        $this->add_setting(new backup_activity_generic_setting(backup::VAR_MODNAME, base_setting::IS_FILENAME, $this->modulename));
                    
147        $this->add_setting(new backup_activity_generic_setting(backup::VAR_COURSEID, base_setting::IS_INTEGER, $this->get_courseid()));
                    
148        $this->add_setting(new backup_activity_generic_setting(backup::VAR_CONTEXTID, base_setting::IS_INTEGER, $this->contextid));
                    
                
daemon.php https://github.com/ckdimka/core.git | PHP | 235 lines
                    
1<?php
                    
2/**
                    
33     * The ip address or servername
                    
34     * @see http://www.php.net/manual/en/transports.php
                    
35     * @var string
                    
40     * Protocol to use (tcp, udp, etc.)
                    
41     * @see http://www.php.net/manual/en/transports.php
                    
42     * @var string
                    
77        /* Ensure we have a valid integer value for $name. */
                    
78        if (empty($name) || !is_int($name)) {
                    
79            $name = LOG_SYSLOG;
                    
227        /* If we're passed an unknown priority, default to LOG_INFO. */
                    
228        if (!is_int($priority) || !in_array($priority, $priorities)) {
                    
229            return LOG_INFO;
                    
                
restore_course_task.class.php https://gitlab.com/unofficial-mirrors/moodle | 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'),
                    
                
cookies.php https://github.com/kennethjiang/Wolke.git | PHP | 380 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	WebTester
                    
6     *	@version	$Id: cookies.php,v 1.4 2005/12/05 04:47:03 lastcraft Exp $
                    
7     */
                    
11     */
                    
12    require_once(dirname(__FILE__) . '/url.php');
                    
13    /**#@-*/
                    
46                $this->_expiry = strtotime($expiry);
                    
47            } elseif (is_integer($expiry)) {
                    
48                $this->_expiry = $expiry;
                    
                
Serializer.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
67        // variables should be passed by reference" 
                    
114                    default:
                    
115                        require_once 'Zend/Amf/Exception.php';
                    
116                        throw new Zend_Amf_Exception("Unknown Type Marker: " . $markerType);
                    
                
DateType.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 370 lines
                    
1<?php
                    
2
                    
48    {
                    
49        $dateFormat = is_int($options['format']) ? $options['format'] : self::DEFAULT_FORMAT;
                    
50        $timeFormat = \IntlDateFormatter::NONE;
                    
83                $timeFormat,
                    
84                // see https://bugs.php.net/bug.php?id=66323
                    
85                class_exists('IntlTimeZone', false) ? \IntlTimeZone::createDefault() : null,
                    
89
                    
90            // new \IntlDateFormatter may return null instead of false in case of failure, see https://bugs.php.net/bug.php?id=66323
                    
91            if (!$formatter) {
                    
308
                    
309        if ($setTimeZone = \PHP_VERSION_ID >= 50500 || method_exists($formatter, 'setTimeZone')) {
                    
310            $formatter->setTimeZone('UTC');
                    
                
_comments.html https://gitlab.com/orvi2014/phpjs | HTML | 212 lines
                    
49on 2009-12-14 15:54:34 <br />
                    
50@ WebDevHobo: Thanks I fixed the link to the php docs throughout the site. As for is_int: yeah that's a real bummer. We can get close to PHP but sometimes it just isn't possible to nail it.
                    
51Did fix the jslint warning though, will disappear soon ; )
                    
66on 2009-12-13 01:12:01 <br />
                    
67Also, the link to the PHP is_int function(to the official PHP docs) is broken. Apparently, not an underscore, but a minus sign is used in the link.
                    
68
                    
95on 2009-11-07 13:25:46 <br />
                    
96@WebDevHobo: Thanks for pointing out those useful functions. We needed the extra checks in our is_numeric(), though I realized later (see http://github.com/kvz/phpjs/commit/eb83b48c940e4f8c5548d63c178c2fae2c0ba729 ) that we also needed to prevent arrays being treated as numeric. As far as integer checking, while we still needed our check for type (e.g., your isInteger() will return true for true), the use of modulus is I believe a sound replacement for the more complex comparison we had earlier. Fixed at http://github.com/kvz/phpjs/commit/06388a893c7a5bcb1876ada68997c04241fc6d52 . Thanks for the functions!
                    
97<hr />
                    
132<pre><code>
                    
133is_int('23,5') return true...
                    
134</code></pre>
                    
141on 2009-01-25 14:13:05 <br />
                    
142@ Matt Bradley: Thanks for you function. The current implementation did as well. But in fact, I checked the PHP manual: and that's not supposed to happen. So I've actually changed your implementation that also the type is looked at. And now all the examples in the php manual workout with our function as well.
                    
143<hr />
                    
                
Akismet.php https://github.com/gryzz/crystal_magento.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Akismet.php 18951 2009-11-12 16:26:19Z alexander $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Version.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Service/Abstract.php';
                    
33
                    
109    {
                    
110        #require_once 'Zend/Uri.php';
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
112            #require_once 'Zend/Service/Exception.php';
                    
113            throw new Zend_Service_Exception('Invalid url provided for blog');
                    
                
wincher-route.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 277 lines
                    
1<?php
                    
2
                    
265	public function has_valid_website_id( $website_id ) {
                    
266		return ! empty( $website_id ) && is_int( $website_id );
                    
267	}
                    
                
OfflineTest.php https://github.com/necrogami/zf2.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
40 */
                    
41class OfflineTest extends \PHPUnit_Framework_TestCase
                    
42{
                    
199        $this->assertTrue($size!==false);
                    
200        $this->assertTrue(is_int($size));
                    
201    }
                    
206        $this->assertTrue($count!==false);
                    
207        $this->assertTrue(is_int($count));
                    
208    }
                    
                
Date.php https://github.com/Doap/iCms---intelligent-Content-management-system.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Date.php 22668 2010-07-25 14:50:46Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
95        if (!array_key_exists('locale', $options)) {
                    
96            require_once 'Zend/Registry.php';
                    
97            if (Zend_Registry::isRegistered('Zend_Locale')) {
                    
124    {
                    
125        require_once 'Zend/Locale.php';
                    
126        $this->_locale = Zend_Locale::findLocale($locale);
                    
163    {
                    
164        if (!is_string($value) && !is_int($value) && !is_float($value) &&
                    
165            !is_array($value) && !($value instanceof Zend_Date)) {
                    
                
PrototypedArrayNode.php https://bitbucket.org/prauscher/att.git | PHP | 342 lines
                    
1<?php
                    
2
                    
133        } else {
                    
134            $this->defaultChildren = is_integer($children) && $children > 0 ? range(1, $children) : (array) $children;
                    
135        }
                    
248            if (null !== $this->keyAttribute && is_array($v)) {
                    
249                if (!isset($v[$this->keyAttribute]) && is_int($k) && !$isAssoc) {
                    
250                    $msg = sprintf('The attribute "%s" must be set for path "%s".', $this->keyAttribute, $this->getPath());
                    
                
Date.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Date.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
95        if (!array_key_exists('locale', $options)) {
                    
96            require_once 'Zend/Registry.php';
                    
97            if (Zend_Registry::isRegistered('Zend_Locale')) {
                    
124    {
                    
125        require_once 'Zend/Locale.php';
                    
126        $this->_locale = Zend_Locale::findLocale($locale);
                    
163    {
                    
164        if (!is_string($value) && !is_int($value) && !is_float($value) &&
                    
165            !is_array($value) && !($value instanceof Zend_Date)) {
                    
                
excel.php https://github.com/toxik/SportsNews.git | PHP | 235 lines
                    
1<?php
                    
2/**
                    
7 * This is used to export associative array data directly to MS-Excel
                    
8 * @requires    PHP 4 >= 4.3.2
                    
9 * @author      Ignatius Teo            <ignatius@act28.com>
                    
12 * @date        20 Jan 2005
                    
13 * $Id: excel.php,v 1.3 2005/01/20 09:58:58 Owner Exp $
                    
14 */
                    
35	 * @returns	void
                    
36	 * @see		http://www.phpdig.net/ref/rn45re877.html
                    
37	 */
                    
180    {
                    
181        if (is_float($val) || is_int($val))
                    
182        {
                    
                
Blur.cpp https://github.com/afrancois/Cinder.git | C++ | 408 lines
                    
55// Core implementation of stackBlur algorithm due to Mario Klingemann.
                    
56// http://incubator.quasimondo.com/processing/fast_blur_deluxe.php
                    
57template<typename T, typename SUMT, typename IMAGET, uint8_t CHANNELS>
                    
111			for( int c = 0; c < CHANNELS; ++c ) {
                    
112				if( std::is_integral<SUMT>::value )
                    
113					channelData[c+yi*CHANNELS] = sum[c] / divisor;
                    
175			for( int c = 0; c < CHANNELS; ++c ) {
                    
176				if( std::is_integral<SUMT>::value )
                    
177					dstPixelData[offset + c] = (T)(sum[c] / divisor);
                    
                
daemon.php https://github.com/orchestra-io/sample-openx.git | PHP | 230 lines
                    
1<?php
                    
2// $Id: daemon.php 18922 2008-04-16 08:56:47Z monique.szpak@openx.org $
                    
28     * The ip address or servername
                    
29     * @see http://www.php.net/manual/en/transports.php
                    
30     * @var string
                    
35     * Protocol to use (tcp, udp, etc.)
                    
36     * @see http://www.php.net/manual/en/transports.php
                    
37     * @var string
                    
72        /* Ensure we have a valid integer value for $name. */
                    
73        if (empty($name) || !is_int($name)) {
                    
74            $name = LOG_SYSLOG;
                    
222        /* If we're passed an unknown priority, default to LOG_INFO. */
                    
223        if (!is_int($priority) || !in_array($priority, $priorities)) {
                    
224            return LOG_INFO;
                    
                
daemon.php https://github.com/orchestra-io/sample-openx.git | PHP | 230 lines
                    
1<?php
                    
2// $Id: daemon.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $
                    
28     * The ip address or servername
                    
29     * @see http://www.php.net/manual/en/transports.php
                    
30     * @var string
                    
35     * Protocol to use (tcp, udp, etc.)
                    
36     * @see http://www.php.net/manual/en/transports.php
                    
37     * @var string
                    
72        /* Ensure we have a valid integer value for $name. */
                    
73        if (empty($name) || !is_int($name)) {
                    
74            $name = LOG_SYSLOG;
                    
222        /* If we're passed an unknown priority, default to LOG_INFO. */
                    
223        if (!is_int($priority) || !in_array($priority, $priorities)) {
                    
224            return LOG_INFO;
                    
                
AbstractContainer.php https://github.com/Thinkscape/zf2.git | PHP | 511 lines
                    
1<?php
                    
2/**
                    
203            $hash = $page->hashCode();
                    
204        } elseif (is_int($page)) {
                    
205            $this->sort();
                    
                
admin.php https://github.com/coderm/pyrocms.git | PHP | 286 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
71		//capture active
                    
72		$base_where['is_active'] = is_int($this->session->flashdata('is_active')) ? $this->session->flashdata('is_active') : $base_where['is_active'];
                    
73		$base_where['is_active'] = $this->input->post('f_active') ? (int) $this->input->post('f_active') : $base_where['is_active'];
                    
                
 

Source

Language