PageRenderTime 1090ms queryTime 477ms sortTime 29ms getByIdsTime 260ms findMatchingLines 195ms

100+ results results for 'php is_object repo:facebook/hiphop-php' (1090 ms)

Not the results you expected?
8ced29d5e22e2149bdbf511680ace64bc66849e1.file.suppliers.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 229 lines
                    
79				<td><input type="checkbox" class="supplierCheckBox" name="check_supplier_<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?>
                    
80" <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_selected']==true) {?>checked="checked"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?>
                    
81" /></td>
                    
85" name="default_supplier" value="<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?>
                    
86" <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_selected']==false) {?>disabled="disabled"<?php }?> <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_default']==true) {?>checked="checked"<?php }?> /></td>
                    
87			</tr>
                    
97		<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);?>
                    
98<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
                    
99<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
                    
129				<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion-supplier" href="#supplier-<?php echo $_smarty_tpl->tpl_vars['supplier']->value->id;?>
                    
130"><?php if (isset($_smarty_tpl->tpl_vars['supplier']->value->name)) {?><?php echo $_smarty_tpl->tpl_vars['supplier']->value->name;?>
                    
131<?php }?></a>
                    
219<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
                    
220<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
                    
221</a>
                    
                
DebugClassLoader.php https://gitlab.com/guillaumev/alkarama | PHP | 349 lines
                    
1<?php
                    
2
                    
31    private static $deprecated = array();
                    
32    private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
                    
33    private static $darwinCache = array('/' => array('/', array()));
                    
41    {
                    
42        $this->wasFinder = is_object($classLoader) && method_exists($classLoader, 'findFile');
                    
43
                    
66                self::$caseCheck = 1;
                    
67            } elseif (false !== stripos(PHP_OS, 'darwin')) {
                    
68                // on MacOSX, HFS+ is case insensitive but realpath() doesn't normalize the case of characters
                    
91    {
                    
92        // Ensures we don't hit https://bugs.php.net/42098
                    
93        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
200
                    
201            if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) {
                    
202                @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED);
                    
                
Engine.php https://gitlab.com/Laolballs/BcryptGenerator | PHP | 507 lines
                    
1<?php
                    
2/**
                    
5 * @copyright   Copyright (c) 2011, Mike Cao <mike@mikecao.com>
                    
6 * @license     MIT, http://flightphp.com/license
                    
7 */
                    
226    public function set($key, $value = null) {
                    
227        if (is_array($key) || is_object($key)) {
                    
228            foreach ($key as $k => $v) {
                    
                
Inline.php https://github.com/l3l0/BehatExamples.git | PHP | 404 lines
                    
1<?php
                    
2
                    
22    /**
                    
23     * Converts a YAML string to a PHP array.
                    
24     *
                    
26     *
                    
27     * @return array A PHP array representing the YAML string
                    
28     */
                    
60    /**
                    
61     * Dumps a given PHP variable to a YAML string.
                    
62     *
                    
62     *
                    
63     * @param mixed $value The PHP variable to convert
                    
64     *
                    
64     *
                    
65     * @return string The YAML string representing the PHP array
                    
66     *
                    
                
lib.php https://github.com/thepurpleblob/Moodle.git | PHP | 328 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26defined('MOODLE_INTERNAL') || die();
                    
27require_once($CFG->dirroot. '/course/format/lib.php');
                    
28
                    
78        $course = $this->get_course();
                    
79        $url = new moodle_url('/course/view.php', array('id' => $course->id));
                    
80
                    
84        }
                    
85        if (is_object($section)) {
                    
86            $sectionno = $section->section;
                    
134        global $PAGE;
                    
135        // if section is specified in course/view.php, make sure it is expanded in navigation
                    
136        if ($navigation->includesectionnum === false) {
                    
138            if ($selectedsection !== null && (!defined('AJAX_SCRIPT') || AJAX_SCRIPT == '0') &&
                    
139                    $PAGE->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) {
                    
140                $navigation->includesectionnum = $selectedsection;
                    
                
Email.php https://github.com/intraface/intraface.dk.git | PHP | 455 lines
                    
1<?php
                    
2/**
                    
12 */
                    
13require_once 'Intraface/functions.php';
                    
14require_once 'Intraface/modules/contact/Contact.php';
                    
191        // gemme userid hvis vi er inde i systemet
                    
192        if (is_object($this->kernel->user) and $this->kernel->user->get('id') > 0) {
                    
193            //$db->query("UPDATE email SET user_id = ".$this->kernel->user->get('id')." WHERE id = " . $this->id);
                    
300        $contact = $this->getContact();
                    
301        if ($this->get('contact_id') == 0 or !is_object($contact)) {
                    
302            $this->error->set('Der kunne ikke sendes e-mail til email #' . $this->get('id') . ' fordi der ikke var nogen kunde sat');
                    
                
Serializer.php https://github.com/stm555/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" 
                    
142                    break;
                    
143                case (is_object($data)):
                    
144                    if (($data instanceof \DateTime) || ($data instanceof Date\Date)) {
                    
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     *
                    
                
Exception.php https://github.com/Br3nda/statusnet-debian.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
                    
                
update.php https://bitbucket.org/jcsarda/wordpress-dotcloud-deployable.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
217	if ( !function_exists( 'get_themes' ) )
                    
218		require_once( ABSPATH . 'wp-includes/theme.php' );
                    
219
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
HTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
                    
1<?php
                    
2
                    
182        $this->registerModule($module);
                    
183        if (is_object($module)) $module = $module->name;
                    
184        $this->userModules[] = $module;
                    
249            foreach ($module->info_injector as $i => $injector) {
                    
250                if (!is_object($injector)) {
                    
251                    $class = "HTMLPurifier_Injector_$injector";
                    
288    public function processModule($module) {
                    
289        if (!isset($this->registeredModules[$module]) || is_object($module)) {
                    
290            $this->registerModule($module);
                    
                
feed.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 546 lines
                    
1<?php
                    
2/**
                    
227
                    
228	if ( !is_object($comment) )
                    
229		return false;
                    
442 *
                    
443 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
                    
444 *
                    
530function fetch_feed($url) {
                    
531	require_once (ABSPATH . WPINC . '/class-feed.php');
                    
532
                    
                
canonical.php https://bitbucket.org/zenoalbisser/webkit.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
55
                    
56	// Some PHP setups turn requests for / into /index.php in REQUEST_URI
                    
57	// See: http://trac.wordpress.org/ticket/5017
                    
59	// Disabled, for now:
                    
60	// $original['path'] = preg_replace('|/index\.php$|', '/', $original['path']);
                    
61
                    
84		$redirect_url = redirect_guess_404_permalink();
                    
85	} elseif ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) {
                    
86		// rewriting of old ?p=X, ?m=2004, ?m=200401, ?m=20040101
                    
170
                    
171			$paged_redirect['path'] = user_trailingslashit( preg_replace('|/index.php/?$|', '/', $paged_redirect['path']) ); // strip off trailing /index.php/
                    
172			if ( !empty( $addl_path ) && $wp_rewrite->using_index_permalinks() && strpos($paged_redirect['path'], '/index.php/') === false )
                    
172			if ( !empty( $addl_path ) && $wp_rewrite->using_index_permalinks() && strpos($paged_redirect['path'], '/index.php/') === false )
                    
173				$paged_redirect['path'] = trailingslashit($paged_redirect['path']) . 'index.php/';
                    
174			if ( !empty( $addl_path ) )
                    
                
MDB2Store.php https://github.com/DartmouthHackerClub/Monologue_Community.git | PHP | 413 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
15
                    
16require_once 'MDB2.php';
                    
17
                    
20 */
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22
                    
25 */
                    
26require_once 'Auth/OpenID.php';
                    
27
                    
30 */
                    
31require_once 'Auth/OpenID/Nonce.php';
                    
32
                    
                
Exception.php https://github.com/Getty/historical-php-rapidev.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
                    
                
ipayment_elv.php https://github.com/chrish123/oscommerce2.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
35
                    
36      if (is_object($order)) $this->update_status();
                    
37
                    
122                               tep_draw_hidden_field('silent_error_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code, 'SSL', true)) .
                    
123                               tep_draw_hidden_field('hidden_trigger_url', tep_href_link('ext/modules/payment/ipayment/callback_elv.php', '', 'SSL', false)) .
                    
124                               tep_draw_hidden_field('client_name', 'oscommerce') .
                    
                
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
                    
                
utils.php https://gitlab.com/megathrone86/SoftwareProjects | PHP | 381 lines
                    
1<?php
                    
2class utilsBup {
                    
3    static public function jsonEncode($arr) {
                    
4        return (is_array($arr) || is_object($arr)) ? json_encode_utf_normal($arr) : json_encode_utf_normal(array());
                    
5    }
                    
8            return $str;
                    
9        if(is_object($str))
                    
10            return (array)$str;
                    
37		$all = 'DENY FROM ALL';
                    
38		$custom = '<Files ~ "\.(php|html)$">'.$eol.'DENY FROM ALL'.$eol.'</Files>';
                    
39        $content = $c ? $custom : $all;
                    
154    static public function is($var, $what = '') {
                    
155        if (!is_object($var)) {
                    
156            return false;
                    
251        foreach(frameBup::_()->getModules() as $m) {
                    
252            if(is_object($m) && $m->isExternal()) // Should be at least one external module
                    
253                return true;
                    
                
Rule.php https://bitbucket.org/moodle/moodle.git | PHP | 426 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
                    
6use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column;
                    
243        if (!in_array($ruleType, self::RULE_TYPES)) {
                    
244            throw new PhpSpreadsheetException('Invalid rule type for column AutoFilter Rule.');
                    
245        }
                    
284            if (count($value) == 0) {
                    
285                throw new PhpSpreadsheetException('Invalid rule value for column AutoFilter Rule.');
                    
286            }
                    
321        ) {
                    
322            throw new PhpSpreadsheetException('Invalid operator for column AutoFilter Rule.');
                    
323        }
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
563		{
                    
564			return is_object($item) ? $item->{$value} : array_get($item, $value);
                    
565		};
                    
                
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
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
147                'Expected array or Traversable; received "%s"',
                    
148                (is_object($headers) ? get_class($headers) : gettype($headers))
                    
149            ));
                    
                
Xmlrpcs.php https://github.com/elsewares/tinderbox.git | PHP | 546 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
17{	
                    
18	show_error('Your PHP installation does not support XML');
                    
19}
                    
79		
                    
80		if (isset($config['object']) && is_object($config['object']))
                    
81		{
                    
544
                    
545/* End of file Xmlrpcs.php */
                    
546/* Location: ./system/libraries/Xmlrpcs.php */
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
62        $xmldoc =@ new DOMDocument;
                    
63        if(!is_object($xmldoc) || !method_exists($xmldoc,'loadHTML')) return $this->html;
                    
64
                    
                
Post.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 467 lines
                    
1<?php
                    
2/**
                    
260    {
                    
261        if (is_array($value) || is_object($value)) {
                    
262            $value = Json::encode($value);
                    
289
                    
290        if (is_array($value) || is_object($value)) {
                    
291            $value = Json::encode($value);
                    
                
JsConnect.php https://github.com/vanilla/jsConnectPHP.git | PHP | 433 lines
                    
1<?php
                    
2/**
                    
19class JsConnect {
                    
20    const VERSION = 'php:3';
                    
21
                    
246        foreach ($o as $key => $value) {
                    
247            if (is_array($value) || is_object($value)) {
                    
248                $r[$key] = $this->stdClassToArray($value);
                    
                
Protection.php https://gitlab.com/devdoblea/factutextil.local | PHP | 581 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2015 PHPExcel
                    
6 *
                    
22 * @package    PHPExcel_Worksheet
                    
23 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
33 * @package    PHPExcel_Worksheet
                    
34 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
290     * @param boolean $pValue
                    
291     * @return PHPExcel_Worksheet_Protection
                    
292     */
                    
312     * @param boolean $pValue
                    
313     * @return PHPExcel_Worksheet_Protection
                    
314     */
                    
                
login-redirects.inc.php https://gitlab.com/Gashler/dp | PHP | 212 lines
                    
1<?php
                    
2/**
                    
72
                    
73						if (is_string($username) && $username && is_object ($user) && !empty ($user->ID) && ($user_id = $user->ID))
                    
74							{
                    
184
                    
185						$user = ((is_object ($user) || is_object ($user = (is_user_logged_in ()) ? wp_get_current_user () : false)) && !empty ($user->ID)) ? $user : false;
                    
186
                    
                
ReflectionCaster.php https://github.com/FabienD/symfony.git | PHP | 440 lines
                    
1<?php
                    
2
                    
233            foreach ($v as $k => &$v) {
                    
234                if (\is_object($v)) {
                    
235                    $a[$prefix.'use']['$'.$k] = new CutStub($v);
                    
388                    $signature .= $v ? 'true' : 'false';
                    
389                } elseif (\is_object($v)) {
                    
390                    $signature .= 'new '.substr(strrchr('\\'.get_debug_type($v), '\\'), 1);
                    
                
update.php https://github.com/Remo/concrete5.git | PHP | 300 lines
                    
1<?php
                    
2defined('C5_EXECUTE') or die("Access Denied.");
                    
15
                    
16   <? if (is_object($update)) { ?>
                    
17
                    
40                    <ul class="list-group">
                    
41                        <li class="list-group-item"><span data-href="#notes" class="text-muted"><?php echo t('Release Notes')?></span></li>
                    
42                        <li class="list-group-item"><span data-href="#addons" class="text-muted"><?php echo t('Add-On Compatibility')?></span></li>
                    
42                        <li class="list-group-item"><span data-href="#addons" class="text-muted"><?php echo t('Add-On Compatibility')?></span></li>
                    
43                        <li class="list-group-item"><span data-href="#notices" class="text-muted"><?php echo t('Important Notices')?></span></li>
                    
44                    </ul>
                    
260            </div>
                    
261            <?php
                    
262            $ih = Loader::helper('concrete/ui');
                    
267            <form method="post" class="form" action="<?= $view->action('start') ?>" id="ccm-update-form">
                    
268                <?php
                    
269                $checked = true;
                    
                
ReCaptcha.php https://github.com/shevron/zf2.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
210                __METHOD__,
                    
211                (is_object($params) ? get_class($params) : gettype($params))
                    
212            ));
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 320 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 */
                    
106            if (!isset($params[0]) || !isset($params[1])
                    
107                || !is_object($params[0]) || !($params[0] instanceof Mage_ImportExport_Model_Import_Entity_Product)) {
                    
108                Mage::throwException(Mage::helper('importexport')->__('Invalid parameters'));
                    
                
author-template.php https://github.com/MikeLockz/lockwitz.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
28
                    
29	return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
                    
30}
                    
205	global $authordata;
                    
206	if ( !is_object( $authordata ) )
                    
207		return false;
                    
                
category.php https://bitbucket.org/perchten/open-platform.git | PHP | 359 lines
                    
1<?php
                    
2/**
                    
329 * object inline to the parameter. The reason for this is that parameter is
                    
330 * passed by reference and PHP will fail unless it has the variable.
                    
331 *
                    
332 * There is no return value, because everything is updated on the variable you
                    
333 * pass to it. This is one of the features with using pass by reference in PHP.
                    
334 *
                    
340function _make_cat_compat( &$category ) {
                    
341	if ( is_object( $category ) ) {
                    
342		$category->cat_ID = &$category->term_id;
                    
                
Properties.php https://github.com/tmccormi/openemr.git | PHP | 629 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Document;
                    
4
                    
486    /**
                    
487     * Implement PHP __clone to create a deep clone, not just a shallow copy.
                    
488     */
                    
492        foreach ($vars as $key => $value) {
                    
493            if (is_object($value)) {
                    
494                $this->$key = clone $value;
                    
                
ipayment.php https://github.com/kipster/_csm.git | PHP | 244 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: ipayment.php,v 1.32 2003/01/29 19:57:14 hpdl Exp $
                    
4
                    
29
                    
30      if (is_object($order)) $this->update_status();
                    
31
                    
31
                    
32      $this->form_action_url = 'https://ipayment.de/merchant/' . MODULE_PAYMENT_IPAYMENT_ID . '/processor.php';
                    
33    }
                    
103
                    
104      include(DIR_WS_CLASSES . 'cc_validation.php');
                    
105
                    
                
Serializer.php https://bitbucket.org/acidel/buykoala.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_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" 
                    
                
Serializer.php https://github.com/Riges/KawaiViewModel.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $
                    
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"
                    
                
%%18^180^180E8F63%%edit.tpl.php https://github.com/roycocup/Tests.git | PHP | 192 lines
                    
9			<span style="color:red;">
                    
10				<?php $_from = $this->_tpl_vars['errorMessages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
                    
11    foreach ($_from as $this->_tpl_vars['error']):
                    
28						<?php endif; ?>
                    
29						<option <?php if ($this->_tpl_vars['posted']['client']['id'] == $this->_tpl_vars['client']->id): ?> selected <?php endif; ?>value="<?php echo $this->_tpl_vars['client']->id; ?>
                    
30"><?php echo $this->_tpl_vars['client']->name; ?>
                    
52						<?php endif; ?>
                    
53						<option <?php if ($this->_tpl_vars['posted']['jobId'] == $this->_tpl_vars['job']->job_id): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['job']->job_id; ?>
                    
54"><?php echo $this->_tpl_vars['job']->job_number; ?>
                    
107'); " /><?php endif; ?>
                    
108				Alter description (optional) <input type="text" name="editJob[thumbAlt]" class="medium" <?php if ($this->_tpl_vars['posted']['media']['thumbs']['0']['description'] != ''): ?> value="<?php echo $this->_tpl_vars['posted']['media']['thumbs']['0']['description']; ?>
                    
109" <?php endif; ?> />
                    
134?>
                    
135						<option <?php if ($this->_tpl_vars['posted']['status']->id == $this->_tpl_vars['state']['id']): ?> selected <?php endif; ?> value="<?php echo $this->_tpl_vars['state']['id']; ?>
                    
136"><?php echo $this->_tpl_vars['state']['name']; ?>
                    
                
Component.php https://gitlab.com/szlongshu/manaphp | PHP | 192 lines
                    
8
                    
9    use ManaPHP\Event\Manager;
                    
10
                    
13     *
                    
14     * @property \ManaPHP\Mvc\DispatcherInterface        $dispatcher;
                    
15     * @property \ManaPHP\Mvc\RouterInterface            $router
                    
26    //* @property \ManaPHP\Security $security
                    
27     * //* @property \ManaPHP\CryptInterface $crypt
                    
28     * // * @property \ManaPHP\EscaperInterface $escaper
                    
31    //     * @property \ManaPHP\Assets\Manager $assets
                    
32     * @property \ManaPHP\Di|\ManaPHP\DiInterface        $di
                    
33     * @property \ManaPHP\Http\Session\BagInterface      $persistent
                    
120         * @param string                                    $event
                    
121         * @param callable|\ManaPHP\Event\ListenerInterface $handler
                    
122         *
                    
                
Cache.php https://github.com/Ezku/xi-framework.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
73    {
                    
74        if (is_object($driver)) {
                    
75            if ( ! ($driver instanceof Doctrine_Cache_Interface)) {
                    
                
Profiler.php https://bitbucket.org/daholicofneki/ams.git | PHP | 497 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
156		{
                    
157			if (is_object($CI_object) && is_subclass_of(get_class($CI_object), 'CI_DB') )
                    
158			{
                    
448	public static function get_file_size($size, $retstring = null) {
                    
449        // adapted from code at http://aidanlister.com/repos/v/function.size_readable.php
                    
450	    $sizes = array('bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
                    
495
                    
496/* End of file Profiler.php */
                    
497/* Location: ./system/libraries/Profiler.php */
                    
                
MDB2.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 364 lines
                    
1<?php
                    
2
                    
15 * the PHP License and are unable to obtain it through the web, please
                    
16 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 *
                    
20 * @author    Alexander Radivanovich <info@wwwlab.net>
                    
21 * @author    David Costa <gurugeek@php.net>
                    
22 * @author    Michael Metz <pear.metz@speedpartner.de>
                    
25 * @copyright 1997-2005 The PHP Group
                    
26 * @license   http://www.php.net/license/3_0.txt  PHP License 3.0
                    
27 * @version   CVS: $Id: MDB2.php,v 1.5 2007/07/14 12:11:55 troehr Exp $
                    
31
                    
32require_once 'HTTP/Session/Container.php';
                    
33require_once 'MDB2.php';
                    
54 * @copyright 1997-2005 The PHP Group
                    
55 * @license   http://www.php.net/license/3_0.txt  PHP License 3.0
                    
56 * @version   Release: @package_version@
                    
                
bookmark.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 408 lines
                    
1<?php
                    
2/**
                    
27			$_bookmark = null;
                    
28	} elseif ( is_object($bookmark) ) {
                    
29		wp_cache_add($bookmark->link_id, $bookmark, 'bookmark');
                    
77
                    
78	if ( !is_object($bookmark) )
                    
79		return '';
                    
200			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
                    
201			/** This filter is documented in wp-includes/bookmark.php */
                    
202			return apply_filters( 'get_bookmarks', array(), $r );
                    
283
                    
284	/** This filter is documented in wp-includes/bookmark.php */
                    
285	return apply_filters( 'get_bookmarks', $results, $r );
                    
302
                    
303	if ( is_object($bookmark) ) {
                    
304		$do_object = true;
                    
                
theme.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 296 lines
                    
1<?php
                    
2/**
                    
25	if ( empty( $redirect ) )
                    
26		$redirect = wp_nonce_url('themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet);
                    
27	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
30		if ( ! empty($data) ){
                    
31			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
32			echo $data;
                    
32			echo $data;
                    
33			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
34			exit;
                    
43		if ( ! empty($data) ) {
                    
44			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
45			echo $data;
                    
45			echo $data;
                    
46			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
47			exit;
                    
                
Serializer.php https://gitlab.com/devtoannh/cafe | PHP | 362 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"
                    
                
submit.php https://github.com/severnaya99/Sg-2010.git | PHP | 376 lines
                    
1<?php
                    
2// $Id: submit.php,v 1.4 2006/03/20 03:23:03 ohwada Exp $
                    
27// easy to rename module and table
                    
28//   add conf.php
                    
29// bug fix
                    
32//  ------------------------------------------------------------------------ //
                    
33//                XOOPS - PHP Content Management System                      //
                    
34//                    Copyright (c) 2000 XOOPS.org                           //
                    
55//  ------------------------------------------------------------------------ //
                    
56include '../../mainfile.php';
                    
57
                    
57
                    
58include_once 'conf.php';	// add
                    
59
                    
59
                    
60include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/class/wfsarticle.php';
                    
61include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/class/common.php';
                    
                
ipayment.php https://github.com/severnaya99/Sg-2010.git | PHP | 244 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: ipayment.php 1 2005-10-24 10:38:39Z Michael $
                    
4
                    
29
                    
30      if (is_object($order)) $this->update_status();
                    
31
                    
31
                    
32      $this->form_action_url = 'https://ipayment.de/merchant/' . MODULE_PAYMENT_IPAYMENT_ID . '/processor.php';
                    
33    }
                    
103
                    
104      include(DIR_WS_CLASSES . 'cc_validation.php');
                    
105
                    
                
DebugUnitOfWorkListener.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 184 lines
                    
1<?php
                    
2/*
                    
47     *
                    
48     * The stream can be php://output to print to the screen.
                    
49     *
                    
52     */
                    
53    public function __construct($file = 'php://output', $context = '')
                    
54    {
                    
141    {
                    
142        if (is_object($var)) {
                    
143            $refl = new \ReflectionObject($var);
                    
                
translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
                    
1<?php
                    
2
                    
243		// generally the case if the query is coming from Polylang
                    
244		if ( is_object( $lang ) ) {
                    
245			return $wpdb->prepare( ' AND pll_tr.term_taxonomy_id = %d', $lang->$tt_id );
                    
                
Hooks.php https://gitlab.com/endomorphosis/falkenstein | PHP | 173 lines
                    
1<?php
                    
2/*
                    
61            //object
                    
62            else if (is_object($hook)) {
                    
63                $object = $hooks[$event][$i];
                    
70                    //...object
                    
71                    if (is_object($hook[0])) {
                    
72                        $object = $hooks[$event][$i][0];
                    
160        if (is_array($callback)) {
                    
161            if (is_object($callback[0])) {
                    
162                $className = get_class($callback[0]);
                    
                
panels_layouts_ui.class.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 245 lines
                    
1<?php
                    
2
                    
65    // Load the display being edited from cache, if possible.
                    
66    if (!empty($_POST) && is_object($cache = panels_edit_cache_get($cache_key))) {
                    
67      $display = &$cache->display;
                    
                
Headers.php https://github.com/Thinkscape/zf2.git | PHP | 485 lines
                    
1<?php
                    
2/**
                    
162                'Expected array or Traversable; received "%s"',
                    
163                (is_object($headers) ? get_class($headers) : gettype($headers))
                    
164            ));
                    
202                '%s expects its first argument to be a string; received "%s"',
                    
203                (is_object($headerFieldNameOrLine) ? get_class($headerFieldNameOrLine) : gettype($headerFieldNameOrLine))
                    
204            ));
                    
                
Abstract.php https://gitlab.com/rsilveira1987/Expresso | PHP | 483 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
225
                    
226        if (is_object($value)) {
                    
227            if (!in_array('__toString', get_class_methods($value))) {
                    
357        } else {
                    
358            require_once 'Zend/Validate/Exception.php';
                    
359            throw new Zend_Validate_Exception('Invalid translator specified');
                    
                
cache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 503 lines
                    
1<?php
                    
2/**
                    
353			$this->cache_hits += 1;
                    
354			if ( is_object($this->cache[$group][$id]) )
                    
355				return wp_clone($this->cache[$group][$id]);
                    
411	 * The $expire parameter is not used, because the cache will automatically
                    
412	 * expire for each time a page is accessed and PHP finishes. The method is
                    
413	 * more for cache plugins which use files.
                    
429
                    
430		if ( is_object($data) )
                    
431			$data = wp_clone($data);
                    
465	/**
                    
466	 * PHP4 constructor; Calls PHP 5 style constructor
                    
467	 *
                    
483		/**
                    
484		 * @todo This should be moved to the PHP4 style constructor, PHP5
                    
485		 * already calls __destruct()
                    
                
Database.php https://github.com/wokkie/sitellite.git | PHP | 665 lines
                    
1<?php
                    
2//
                    
33	 * <code>
                    
34	 * <?php
                    
35	 * 
                    
54	 * @license	http://www.sitellite.org/index/license	Simian Open Software License
                    
55	 * @version	1.2, 2003-04-23, $Id: Database.php,v 1.4 2007/10/06 00:06:30 lux Exp $
                    
56	 * @access	public
                    
160	 * value that can be passed as a first parameter to the
                    
161	 * call_user_func() PHP function.  The specified function
                    
162	 * must accept the challenging password as a first parameter,
                    
202			}
                    
203			if (! is_object ($res)) {
                    
204				$this->error = db_error ();
                    
265
                    
266			if (! is_object ($res)) {
                    
267				$this->error = db_error ();
                    
                
class-wp-admin-bar.php https://gitlab.com/Gashler/dp | PHP | 492 lines
                    
357			<?php if ( is_user_logged_in() ) : ?>
                    
358			<a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
                    
359			<?php endif; ?>
                    
387
                    
388		?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php
                    
389			foreach ( $node->children as $item ) {
                    
419
                    
420		<li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $menuclass; ?>><?php
                    
421			if ( $has_link ):
                    
421			if ( $has_link ):
                    
422				?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php
                    
423					if ( ! empty( $node->meta['onclick'] ) ) :
                    
423					if ( ! empty( $node->meta['onclick'] ) ) :
                    
424						?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php
                    
425					endif;
                    
                
adodb-oracle.inc.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 342 lines
                    
1<?php
                    
2/*
                    
37		if (is_string($d)) $d = ADORecordSet::UnixDate($d);
                    
38		if (is_object($d)) $ds = $d->format($this->fmtDate);
                    
39		else $ds = adodb_date($this->fmtDate,$d);
                    
47		if (is_string($ts)) $ts = ADORecordSet::UnixTimeStamp($ts);
                    
48		if (is_object($ts)) $ds = $ts->format($this->fmtDate);
                    
49		else $ds = adodb_date($this->fmtTimeStamp,$ts);
                    
307	{
                    
308		if (is_object($t)) {
                    
309			$fieldobj = $t;
                    
                
Recur.php https://gitlab.com/rsilveira1987/Expresso | PHP | 455 lines
                    
1<?php
                    
2/**
                    
125				// first we need to determine what was passed in so we can complain properly
                    
126				if (is_object($rule)) {
                    
127					$ruletype = get_class($rule);
                    
                
Template.php https://github.com/reddragon010/RG-ServerPanel.git | PHP | 450 lines
                    
1<?php
                    
2
                    
288     * implementation detail that has been introduced to optimize variable
                    
289     * access for versions of PHP before 5.4. This is not a way to override
                    
290     * the way to get a variable value.
                    
351
                    
352                if (is_object($object)) {
                    
353                    throw new Twig_Error_Runtime(sprintf('Key "%s" in object (with ArrayAccess) of type "%s" does not exist', $item, get_class($object)));
                    
361
                    
362        if (!is_object($object)) {
                    
363            if ($isDefinedTest) {
                    
                
import.php https://gitlab.com/pongpanich/niyomprathai | PHP | 298 lines
                    
1<?php
                    
2/**
                    
109	// If no data or could not decode
                    
110	if ( empty( $data ) || ! is_object( $data ) ) {
                    
111		wp_die(
                    
                
Response.php https://gitlab.com/luisrepo/ClienteWS | PHP | 205 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Response.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
22/** @see Zend_Amf_Constants */
                    
23require_once 'Zend/Amf/Constants.php';
                    
24
                    
25/** @see Zend_Amf_Parse_OutputStream */
                    
26require_once 'Zend/Amf/Parse/OutputStream.php';
                    
27
                    
28/** @see Zend_Amf_Parse_Amf0_Serializer */
                    
29require_once 'Zend/Amf/Parse/Amf0/Serializer.php';
                    
30
                    
31/**
                    
32 * Handles converting the PHP object ready for response back into AMF
                    
33 *
                    
                
sfYamlInline.php https://github.com/miros/mvc_framework.git | PHP | 427 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__).'/sfYaml.php';
                    
12
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfYamlInline.class.php 16177 2009-03-11 08:32:48Z fabien $
                    
20 */
                    
25  /**
                    
26   * Convert a YAML string to a PHP array.
                    
27   *
                    
29   *
                    
30   * @return array A PHP array representing the YAML string
                    
31   */
                    
52  /**
                    
53   * Dumps a given PHP variable to a YAML string.
                    
54   *
                    
                
Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
73    {
                    
74        if (is_object($driver)) {
                    
75            if ( ! ($driver instanceof Doctrine_Cache_Interface)) {
                    
                
overview.tpl https://github.com/Biggerskimo/WOT-Game.git | Smarty Template | 390 lines
                    
25			
                    
26			<span class="overviewOptionsLink"><a class="thickbox" href="index.php?form=OverviewOptions&amp;keepThis=true&amp;TB_iframe=true&amp;height=300&amp;width=600">{lang}wot.overview.options{/lang}</a></span>
                    
27		{/capture}
                    
36				{foreach from=$news key='newsID' item='newsItem'}
                    
37					{if $newsItem|is_object && !$newsItem->isViewed() && !$newsItem->disabled}
                    
38						<div class="newsItem" id="news{@$newsID}">
                    
75				{if $this->user->new_message == 1}
                    
76					<a href="index.php?page=Messages">{lang}wot.overview.newMessage{/lang}</a>
                    
77				{else}
                    
77				{else}
                    
78					<a href="index.php?page=Messages">{lang}wot.overview.newMessages{/lang}</a>
                    
79				{/if}
                    
87			<p class="hiddenOventsLink" id="hiddenOventsLink"{if !$hovents|count} style="display: none;"{/if}>
                    
88				<a href="index.php?page=OverviewHiddenOvents&amp;keepThis=true&amp;TB_iframe=true&amp;height=400&amp;width=500" class="thickbox">
                    
89					{lang}wot.overview.ovent.showHidden{/lang}
                    
                
interfaces.php https://github.com/Seldaiendil/meyeOS.git | PHP | 529 lines
                    
1<?php
                    
2/*
                    
207		foreach($props as $name => $value) {
                    
208			if (!is_object($value) && $value !== null) {
                    
209				// Adaptation for dates, for a more readable format
                    
385		foreach($props as $name => $value) {
                    
386			if (!is_object($value) && $value !== null) {
                    
387				$string .= $name . '=' . $value . ',';
                    
458		foreach($props as $name => $value) {
                    
459			if (!is_object($value) && $value !== null) {
                    
460				$string .= $name . '=' . $value . ',';
                    
                
HashMap.class.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
6*
                    
7* PHP version 5
                    
8*
                    
9* @package    class.base
                    
10* @author     CharcoalPHP Development Team
                    
11* @copyright  2008 stk2k, sazysoft
                    
119    {
                    
120        if ( is_object($offset) ){
                    
121            $offset = $offset->__toString();
                    
133    {
                    
134        if ( is_object($offset) ){
                    
135            $offset = $offset->__toString();
                    
                
ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.6
                    
49 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
51 * @since 0.9.6
                    
463        $parentNode = $this->parent;
                    
464        while (is_object($parentNode)) {
                    
465            if ($parentNode instanceof $parentType) {
                    
508    /**
                    
509     * The magic sleep method will be called by PHP's runtime environment right
                    
510     * before an instance of this class gets serialized. It should return an
                    
                
jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2005-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
203
                    
204		if (is_object($xml))
                    
205		{
                    
242		}
                    
243		elseif (is_object($data))
                    
244		{
                    
301
                    
302		return implode(PHP_EOL, $html);
                    
303	}
                    
                
exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11 * @copyright 	2005-2009, TestLink community 
                    
12 * @version    	CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $
                    
13 * @link 		http://www.teamst.org/index.php
                    
17 * 20100522 - franciscom - BUGID 3479 - Bulk Execution - Custom Fields Bulk Assignment (write_execution())
                    
18 * 20100522 - franciscom - BUGID 3440 - get_bugs_for_exec() - added is_object() check 
                    
19 * 20090815 - franciscom - write_execution() - interface changes 
                    
34/** 
                    
35 * @uses  common.php required basic environment (configuration and core libraries) 
                    
36 **/
                    
36 **/
                    
37require_once('common.php');
                    
38
                    
212	
                    
213	// BUGID 3440 - added is_object() check
                    
214	if( !is_null($map) && is_object($bug_interface))
                    
                
LoggerDataCollector.php https://gitlab.com/ealexis.t/trends | PHP | 216 lines
                    
1<?php
                    
2
                    
176
                    
177        if (is_object($context)) {
                    
178            return sprintf('Object(%s)', get_class($context));
                    
                
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 *
                    
99		if ($return === FALSE && $query_builder === NULL &&
                    
100			isset(CI::$APP->db) && is_object(CI::$APP->db) && ! empty(CI::$APP->db->conn_id))
                    
101		{
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
dumper.php https://github.com/dagda/ThinkUp.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
67            return "Resource";
                    
68        } elseif (is_object($value)) {
                    
69            return "Object";
                    
182    function _describeStringDifference($first, $second, $identical) {
                    
183        if (is_object($second) || is_array($second)) {
                    
184            return $this->_describeGenericDifference($first, $second);
                    
203    function _describeIntegerDifference($first, $second, $identical) {
                    
204        if (is_object($second) || is_array($second)) {
                    
205            return $this->_describeGenericDifference($first, $second);
                    
222    function _describeFloatDifference($first, $second, $identical) {
                    
223        if (is_object($second) || is_array($second)) {
                    
224            return $this->_describeGenericDifference($first, $second);
                    
                
UnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
                    
1<?php
                    
2
                    
11use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
                    
12use Drupal\Tests\Traits\PhpUnitWarnings;
                    
13use Drupal\TestTools\TestVarDumper;
                    
13use Drupal\TestTools\TestVarDumper;
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
16use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
                    
17
                    
27
                    
28  use PhpUnitWarnings;
                    
29  use PhpUnitCompatibilityTrait;
                    
93  protected function getRandomGenerator() {
                    
94    if (!is_object($this->randomGenerator)) {
                    
95      $this->randomGenerator = new Random();
                    
                
RTLCSS.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 428 lines
                    
1<?php
                    
2/**
                    
128
                    
129                if (!is_object($part)) {
                    
130                    $flipped = $this->swapLeftRight($part);
                    
312            foreach ($parts as $key => $part) {
                    
313                if (!is_object($part)) {
                    
314                    $parts[$key] = preg_replace_callback('/\b(ne|nw|se|sw|nesw|nwse)-resize/', function($matches) {
                    
340        foreach ($parts as $key => $part) {
                    
341            if (!is_object($part) && preg_match('/left|right/i', $part)) {
                    
342                $foundLeftOrRight = true;
                    
356            // The first value may be referencing top or bottom (y instead of x).
                    
357            if (!is_object($value) && preg_match('/top|bottom/i', $value)) {
                    
358                $value = $parts[1];
                    
                
page_controls_menu_js.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 281 lines
                    
106	
                    
107	menuHTML += '<li <?php  if ($c->isEditMode()) { ?>class="ccm-nav-edit-mode-active"<?php  } ?>><a class="ccm-icon-edit ccm-menu-icon" id="ccm-nav-edit" href="<?php  if (!$c->isEditMode()) { ?><?php echo DIR_REL?>/<?php echo DISPATCHER_FILENAME?>?cID=<?php echo $c->getCollectionID()?>&ctask=check-out<?php echo $token?><?php  } else { ?>javascript:void(0);<?php  } ?>"><?php  if ($c->isEditMode()) { ?><?php echo t('Editing')?><?php  } else { ?><?php echo t('Edit')?><?php  } ?></a></li>';
                    
108	<?php 
                    
192<?php  if ($cp->canWrite()) { ?>
                    
193	menuHTML += '<a id="ccm-nav-check-out" href="<?php  if (!$cantCheckOut) { ?><?php echo DIR_REL?>/<?php echo DISPATCHER_FILENAME?>?cID=<?php echo $c->getCollectionID()?>&ctask=check-out<?php echo $token?><?php  } else { ?>javascript:void(0);<?php  } ?>" class="btn primary <?php  if ($cantCheckOut) { ?> disabled <?php  } ?> tooltip" <?php  if ($cantCheckOut) { ?>title="<?php echo t('Someone has already checked this page out for editing.')?>"<?php  } ?>><?php echo t('Edit this Page')?></a>';
                    
194<?php  } ?>
                    
212<?php  if ($cp->canWrite()) { ?>
                    
213	menuHTML += '<li><a class="ccm-menu-icon ccm-icon-properties" id="ccm-toolbar-nav-properties" dialog-width="640" dialog-height="<?php  if ($cp->canApproveCollection() && (!$c->isEditMode())) { ?>450<?php  } else { ?>390<?php  } ?>" dialog-append-buttons="true" dialog-modal="false" dialog-title="<?php echo t('Page Properties')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/edit_collection_popup.php?<?php  if ($cp->canApproveCollection() && (!$c->isEditMode())) { ?>approveImmediately=1<?php  } ?>&cID=<?php echo $c->getCollectionID()?>&ctask=edit_metadata"><?php echo t('Properties')?></a></li>';
                    
214<?php  } ?>
                    
215<?php  if ($cp->canAdminPage()) { ?>
                    
216	menuHTML += '<li><a class="ccm-menu-icon ccm-icon-design" id="ccm-toolbar-nav-design" dialog-append-buttons="true" dialog-width="610" dialog-height="405" dialog-modal="false" dialog-title="<?php echo t('Design')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/edit_collection_popup.php?cID=<?php echo $cID?>&ctask=set_theme"><?php echo t('Design')?></a></li>';
                    
217	menuHTML += '<li><a class="ccm-menu-icon ccm-icon-permissions" dialog-append-buttons="true" id="ccm-toolbar-nav-permissions" dialog-width="640" dialog-height="330" dialog-modal="false" dialog-title="<?php echo t('Permissions')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/edit_collection_popup.php?&cID=<?php echo $cID?>&ctask=edit_permissions"><?php echo t('Permissions')?></a></li>';
                    
222<?php  if ($cp->canAdminPage()) { ?>
                    
223	menuHTML += '<li><a class="ccm-menu-icon ccm-icon-speed-settings" id="ccm-toolbar-nav-speed-settings" dialog-append-buttons="true" dialog-width="550" dialog-height="280" dialog-modal="false" dialog-title="<?php echo t('Speed Settings')?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/edit_collection_popup.php?&cID=<?php echo $cID?>&ctask=edit_speed_settings"><?php echo t('Speed Settings')?></a></li>';
                    
224<?php  } ?>
                    
                
ClassRegistry.php https://github.com/bmcclure/cakephp.git | PHP | 341 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, 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(tm) v 0.9.2
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
284			$model = $this->getObject($alias);
                    
285			if (is_object($model) && (is_a($model, $class) || $model->alias === $class)) {
                    
286				$duplicate = $model;
                    
                
Product.php https://github.com/gryzz/crystal_magento.git | PHP | 421 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 */
                    
129                $this->setData('value_option', $options);
                    
130            } elseif (is_object($this->getAttributeObject()) && $this->getAttributeObject()->usesSource()) {
                    
131                if ($this->getAttributeObject()->getFrontendInput() == 'multiselect') {
                    
166                $this->setData('value_select_options', $options);
                    
167            } elseif (is_object($this->getAttributeObject()) && $this->getAttributeObject()->usesSource()) {
                    
168                if ($this->getAttributeObject()->getFrontendInput() == 'multiselect') {
                    
245        }
                    
246        if (!is_object($this->getAttributeObject())) {
                    
247            return 'string';
                    
                
activity.php https://github.com/xillibit/Kunena-forum.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
86
                    
87		if (is_object($table))
                    
88		{
                    
188			$params->set('actor', $actor->getDisplayName()); // Actor in the stream
                    
189			$params->set('actor_url', 'index.php?option=com_community&view=profile&userid=' . $actor->id); // Actor Link
                    
190
                    
221
                    
222		if (is_object($table))
                    
223		{
                    
247		$params->set('recipientName', $target->getDisplayName());
                    
248		$params->set('recipientUrl', 'index.php?option=com_community&view=profile&userid=' . $target->id); // Actor Link
                    
249		$params->set('url', Uri::getInstance()->toString(array('scheme', 'host', 'port')) . $message->getPermaUrl(null)); // {url} tag for activity. Used when hovering over avatar in notification window, as well as in email notification
                    
253		$params->set('actor', $actor->getDisplayName()); // Actor in the stream
                    
254		$params->set('actor_url', 'index.php?option=com_community&view=profile&userid=' . $actor->id); // Actor Link
                    
255
                    
                
Application.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 383 lines
                    
1<?php
                    
2
                    
57    /**
                    
58     * Include PHP files containing resources in the given filename globs
                    
59     * @paramstr[] $filenames Array of filename globs
                    
121    {
                    
122        if (is_object($className)) {
                    
123            $className = get_class($className);
                    
206    {
                    
207        if (is_object($resource)) {
                    
208            $className = get_class($resource);
                    
                
media.php https://gitlab.com/RikaPM/vrindi | PHP | 639 lines
                    
1<?php
                    
2
                    
9 * @copyright Bastian Allgeier
                    
10 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
                    
11 */
                    
158        }
                    
159      } else if(is_object($content)) {
                    
160        $content = serialize($content);
                    
413  /**
                    
414   * Returns the PHP imagesize array
                    
415   *
                    
530
                    
531    if(is_string($attr) || (is_object($attr) && method_exists($attr, '__toString'))) {
                    
532      $img->attr('alt', (string)$attr);
                    
584   * Converts the media object to a 
                    
585   * plain PHP array
                    
586   * 
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
208cd338324b113be4926ab03214a9f49905065e.file.features.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 283 lines
                    
84						<option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id_feature_value'];?>
                    
85"<?php if ($_smarty_tpl->tpl_vars['available_feature']->value['current_item']==$_smarty_tpl->tpl_vars['value']->value['id_feature_value']) {?>selected="selected"<?php }?> >
                    
86							<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['value']->value['value'],40);?>
                    
91				<?php } else { ?>
                    
92					<input type="hidden" name="feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?>
                    
93_value" value="0" />
                    
118_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
                    
119').val($(this).val());<?php } ?>" ><?php echo (($tmp = @htmlspecialchars($_smarty_tpl->tpl_vars['available_feature']->value['val'][1]['value'], ENT_QUOTES, 'UTF-8', true))===null||$tmp==='' ? '' : $tmp);?>
                    
120</textarea>
                    
153?>
                    
154					<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
                    
155					<div class="row translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
                    
220<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
                    
221<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
                    
222</a>
                    
                
IndexedSearch.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 204 lines
                    
1<?php
                    
2namespace Concrete\Core\Page\Search;
                    
85        $db = Loader::db();
                    
86        if (is_object($page) && ($page instanceof Collection) && ($page->getAttribute('exclude_search_index') != 1)) {
                    
87            $datetime = Loader::helper('date')->getOverridableNow();
                    
133                $b = Block::getByID($row['bID'], $c, $row['arHandle']);
                    
134                if (!is_object($b)) {
                    
135                    continue;
                    
                
Valid.php https://bitbucket.org/alexpozdnyakov/kohana.git | PHP | 551 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2/**
                    
19	{
                    
20		if (is_object($value) AND $value instanceof ArrayObject)
                    
21		{
                    
102	 *
                    
103	 * @link  http://www.iamcal.com/publish/articles/php/parsing_email/
                    
104	 * @link  http://www.w3.org/Protocols/rfc822/
                    
144	 *
                    
145	 * @link  http://php.net/checkdnsrr  not added to Windows until PHP 5.3.0
                    
146	 *
                    
305		// Force the value to be a string as this method uses string functions.
                    
306		// Converting to an integer may pass PHP_INT_MAX and result in an error!
                    
307		$number = (string) $number;
                    
454	 *
                    
455	 * Uses {@link http://www.php.net/manual/en/function.localeconv.php locale conversion}
                    
456	 * to allow decimal point to be locale specific.
                    
                
editor.php https://gitlab.com/ppapadatis/Videolearn | PHP | 321 lines
                    
1<?php
                    
2
                    
83
                    
84            if (is_object($query)) {
                    
85                $query->select('*')->from('#__wf_profiles')->where('published = 1')->order('ordering ASC');
                    
107                // load mobile detect class
                    
108                require_once(dirname(__FILE__) . '/mobile.php');
                    
109            }
                    
                
TraceableEventDispatcher.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 320 lines
                    
1<?php
                    
2
                    
294            );
                    
295        } elseif (is_array($listener) || (is_object($listener) && is_callable($listener))) {
                    
296            if (!is_array($listener)) {
                    
298            }
                    
299            $class = is_object($listener[0]) ? get_class($listener[0]) : $listener[0];
                    
300            try {
                    
                
freecharger.php https://github.com/yama/zencart13x-ja.git | PHP | 133 lines
                    
1<?php
                    
2//
                    
7// |                                                                      |
                    
8// | http://www.zen-cart.com/index.php                                    |
                    
9// |                                                                      |
                    
19// +----------------------------------------------------------------------+
                    
20// $Id: freecharger.php 1105 2005-04-04 22:05:35Z birdbrain $
                    
21//
                    
43
                    
44      if (is_object($order)) $this->update_status();
                    
45
                    
                
class.database.php https://github.com/abhishekmica/Garden.git | PHP | 357 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
16 * @copyright 2003 Mark O'Sullivan
                    
17 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
                    
18 * @version @@GARDEN-VERSION@@
                    
54      $this->_IsPersistent = GetValue(PDO::ATTR_PERSISTENT, $this->ConnectionOptions, FALSE);
                    
55      if(!is_object($this->_Connection)) {
                    
56         try {
                    
129			return '\''.str_replace('\'', '\\\'', $Expr).'\'';
                    
130		} elseif(is_object($Expr)) {
                    
131			return '?OBJECT?';
                    
269         // Make sure other unbufferred queries are not open
                    
270         if (is_object($this->_CurrentResultSet)) {
                    
271            $this->_CurrentResultSet->Result();
                    
276
                    
277         if (!is_object($PDOStatement)) {
                    
278            trigger_error(ErrorMessage('PDO Statement failed to prepare', $this->ClassName, 'Query', $this->GetPDOErrorMessage($this->Connection()->errorInfo())), E_USER_ERROR);
                    
                
Abstract.php https://github.com/njaeger/magento_github.git | PHP | 405 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 */
                    
394        $buyRequest = $item->getBuyRequest();
                    
395        if (is_object($buyRequest)) {
                    
396            $config = $buyRequest->getSuperProductConfig();
                    
                
Service.php https://bitbucket.org/theshipswakecreative/psw.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * @package phpOpenCloud
                    
9 * @version 1.0
                    
112
                    
113        if (is_object($ext) && isset($ext->extensions)) {
                    
114            return $ext->extensions;
                    
129
                    
130        if (is_object($lim)) {
                    
131            return $lim->limits;
                    
                
Html.php https://github.com/wrobel/horde.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
123            foreach ($variables as $var) {
                    
124                if (is_object($var)) {
                    
125                    if (!$var->isReadonly()) {
                    
                
StreamResponse.php https://github.com/obias/zf2.git | PHP | 208 lines
                    
1<?php
                    
2/**
                    
31/**
                    
32 * Handles converting the PHP object ready for response back into AMF
                    
33 *
                    
77    /**
                    
78     * Serialize the PHP data types back into Actionscript and
                    
79     * create and AMF stream.
                    
99            $stream->writeLong(Amf\Constants::UNKNOWN_CONTENT_LENGTH);
                    
100            if (is_object($header->data)) {
                    
101                // Workaround for PHP5 with E_STRICT enabled complaining about 
                    
119            $markerType = ($this->_objectEncoding == Amf\Constants::AMF0_OBJECT_ENCODING) ? null : Amf\Constants::AMF0_AMF3;
                    
120            if (is_object($bodyData)) {
                    
121                // Workaround for PHP5 with E_STRICT enabled complaining about 
                    
                
menu.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
96
                    
97			$path = $info->path . '/includes/menu.php';
                    
98			if (file_exists($path))
                    
243		{
                    
244			if (!is_object($item))
                    
245			{
                    
                
FilterExecutor.php https://gitlab.com/adam.kvita/MI-VMM-SIFT | PHP | 190 lines
                    
1<?php
                    
2
                    
177				$callback = explode('::', $callback);
                    
178			} elseif (is_object($callback)) {
                    
179				$callback = [$callback, '__invoke'];
                    
                
HttpKernel.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 299 lines
                    
1<?php
                    
2
                    
64    {
                    
65        $request->headers->set('X-Php-Ob-Level', ob_get_level());
                    
66
                    
267    {
                    
268        if (is_object($var)) {
                    
269            return sprintf('Object(%s)', get_class($var));
                    
                
couchAdmin.php https://github.com/rwaldron/PHP-on-Couch.git | PHP | 534 lines
                    
1<?PHP
                    
2
                    
288	public function setSecurity ( $security ) {
                    
289		if ( !is_object($security) ) {
                    
290			throw new InvalidArgumentException("Security should be an object");
                    
321		$back = $this->setSecurity ( $sec );
                    
322		if ( is_object($back) && property_exists($back,"ok") && $back->ok == true ) {
                    
323			return true;
                    
343		$back = $this->setSecurity ( $sec );
                    
344		if ( is_object($back) && property_exists($back,"ok") && $back->ok == true ) {
                    
345			return true;
                    
385		$back = $this->setSecurity ( $sec );
                    
386		if ( is_object($back) && property_exists($back,"ok") && $back->ok == true ) {
                    
387			return true;
                    
407		$back = $this->setSecurity ( $sec );
                    
408		if ( is_object($back) && property_exists($back,"ok") && $back->ok == true ) {
                    
409			return true;
                    
                
Data.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 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 */
                    
166                 */
                    
167                if (is_object($fieldConfig)) {
                    
168                    $configPath = (string)$fieldConfig->config_path;
                    
                
class-wc-api-orders.php https://gitlab.com/campus-academy/krowkaramel | PHP | 396 lines
                    
1<?php
                    
2/**
                    
188				'product_id' => $item->get_variation_id() ? $item->get_variation_id() : $item->get_product_id(),
                    
189				'sku'        => is_object( $product ) ? $product->get_sku() : null,
                    
190			);
                    
                
bookmark.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 382 lines
                    
1<?php
                    
2/**
                    
27			$_bookmark = null;
                    
28	} elseif ( is_object($bookmark) ) {
                    
29		wp_cache_add($bookmark->link_id, $bookmark, 'bookmark');
                    
72
                    
73	if ( !is_object($bookmark) )
                    
74		return '';
                    
278
                    
279	if ( is_object($bookmark) ) {
                    
280		$do_object = true;
                    
                
Entry.php git://github.com/concrete5/concrete5.git | PHP | 527 lines
                    
1<?php
                    
2
                    
61                $collection = $association->getSelectedEntries();
                    
62                if (is_object($collection)) {
                    
63                    return $collection->toArray();
                    
149    {
                    
150        if (!is_object($ak)) {
                    
151            $ak = $this->getEntity()->getAttributeKeyCategory()->getAttributeKeyByHandle($ak);
                    
153        $value = false;
                    
154        if (is_object($ak)) {
                    
155            foreach ($this->getAttributes() as $attribute) {
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
64			// Possibly a Traversable object, functionally the same as an array
                    
65			return (is_object($value) AND $value instanceof Traversable);
                    
66		}
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
DocumentSet.php https://github.com/brtriver/sukonv.git | PHP | 211 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
13	/**
                    
14	 * PHP magic method used when setting properties on the `Document` instance, i.e.
                    
15	 * `$document->title = 'Lorem Ipsum'`. If `$value` is a complex data type (i.e. associative
                    
38
                    
39				if (!is_object($next) && ($model = $this->_model)) {
                    
40					$next = $model::connection()->cast($this, $next);
                    
54	/**
                    
55	 * PHP magic method used to check the presence of a field as document properties, i.e.
                    
56	 * `$document->_id`.
                    
                
custom_style.php https://github.com/build1024/concrete5.git | PHP | 376 lines
                    
15	$csp = CustomStylePreset::getByID($_REQUEST['cspID']);
                    
16	if (is_object($csp)) {
                    
17		$style = $csp->getCustomStylePresetRuleObject();
                    
18	}
                    
19} else if (is_object($style)) {
                    
20	$selectedCsrID = $style->getCustomStyleRuleID();
                    
75		<div>
                    
76		<h2><?php echo t('Fonts')?></h2> 
                    
77			<table class="ccm-style-property-table" border="0" cellspacing="0" cellpadding="0">
                    
135		<div>
                    
136		<h2><?php echo t('Background')?></h2> 
                    
137		  <table border="0" cellspacing="0" cellpadding="0" class="ccm-style-property-table">
                    
164		<div>
                    
165		  <h2><?php echo t('Border')?></h2>  
                    
166			<table class="ccm-style-property-table" border="0" cellspacing="0" cellpadding="0">
                    
                
yaf_config.c https://gitlab.com/oytunistrator/yaf | C | 405 lines
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
23#include "php_ini.h"
                    
24#include "standard/php_filestat.h" /* for php_stat */
                    
25
                    
25
                    
26#include "php_yaf.h"
                    
27#include "yaf_namespace.h"
                    
48	zval  n_ctime;
                    
49	php_stat(Z_STRVAL_P(file), Z_STRLEN_P(file), 7 /* FS_CTIME */ , &n_ctime TSRMLS_CC);
                    
50	if (Z_TYPE(n_ctime) != IS_BOOL && ctime != Z_LVAL(n_ctime)) {
                    
                
qtranslate_wphacks.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 351 lines
                    
1<?php // encoding: utf-8
                    
2
                    
26	// ' workaround
                    
27	if(is_object($term)&&isset($term->name)) {
                    
28		$termname = $term->name;
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
140	{
                    
141		if (is_object($p_obj))
                    
142		{
                    
163	{
                    
164		if (is_object($item))
                    
165		{
                    
229				}
                    
230				elseif (is_object($item) && isset($item->$index))
                    
231				{
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
                
list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
                    
1<?php
                    
2/**
                    
162			}
                    
163			elseif (is_object($element))
                    
164			{
                    
                
Yadis.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 382 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * The core PHP Yadis implementation.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
19 */
                    
20require_once "Auth/Yadis/PlainHTTPFetcher.php";
                    
21require_once "Auth/Yadis/ParanoidHTTPFetcher.php";
                    
25 */
                    
26require_once "Auth/Yadis/ParseHTML.php";
                    
27
                    
30 */
                    
31require_once "Auth/Yadis/XRDS.php";
                    
32
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?php
                    
2use Bitrix\Main,
                    
51			global $USER, $DB;
                    
52			if(is_object($USER) && $USER->isAuthorized())
                    
53				$this->userId = $USER->getId();
                    
59					array('=DATE_TO' => false),
                    
60					array('>DATE_TO' => date($DB->dateFormatToPHP(\CLang::getDateFormat('FULL')), time()))
                    
61				)
                    
                
 

Source

Language