PageRenderTime 674ms queryTime 38ms sortTime 28ms getByIdsTime 306ms findMatchingLines 207ms

100+ results results for 'php is_object repo:intuititve/lostandfound' (674 ms)

Not the results you expected?
Session.php https://github.com/premiumcombination/nts.git | PHP | 565 lines
                    
1<?php
                    
2
                    
36		// security
                    
37		'referer_check' => '',    // must be disabled because PHP implementation is invalid
                    
38		'use_cookies' => 1,       // must be enabled to prevent Session Hijacking and Fixation
                    
136						if ((!empty($value['B']) && $browserClosed) || (!empty($value['T']) && $now > $value['T']) // whenBrowserIsClosed || Time
                    
137							|| ($variable !== '' && is_object($nf['DATA'][$section][$variable]) && (isset($value['V']) ? $value['V'] : NULL) // Version
                    
138								!== Nette\Reflection\ClassType::from($nf['DATA'][$section][$variable])->getAnnotation('serializationVersion'))
                    
                
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);
                    
                
element.selectdate.php https://github.com/dodyrw/framework.git | PHP | 433 lines
                    
1<?php
                    
2
                    
4 * Clonefish form generator class 
                    
5 * (c) phpformclass.com, Dots Amazing
                    
6 * All rights reserved.
                    
8 * @copyright  2010 Dots Amazing
                    
9 * @link       http://phpformclass.com
                    
10 * @package    clonefish
                    
67  );
                    
68  // you'll find the months defined in messages_XX.php 
                    
69  // You can still override the month array by
                    
122
                    
123      // above PHP 5.2, we have the DateTime object
                    
124      // also supporting historical dates, and better
                    
129        // database values instead of NULLs, which are
                    
130        // converted to Nov 30, -0001 by PHP, so we
                    
131        // need to have a workaround here instead.
                    
                
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/itamart/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;
                    
                
Serializer.php https://github.com/davidcoallier/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     *
                    
                
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');
                    
                
update.php https://bitbucket.org/sephora99/kmirock.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 );
                    
                
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
                    
                
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);
                    
                
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
                    
                
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 ) )
                    
                
Exception.php https://github.com/cinnamong/mag3nt0.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
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
                    
                
Cache.php https://github.com/cawago/ci_campusync_auth.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)) {
                    
                
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            ));
                    
                
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
                    
                
Protection.php https://gitlab.com/ilyales/vigma | 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     */
                    
                
registry.php https://github.com/dg482/joomla-platform.git | PHP | 629 lines
                    
1<?php
                    
2/**
                    
11
                    
12JLoader::register('JRegistryFormat', dirname(__FILE__) . '/format.php');
                    
13
                    
45		// Optionally load supplied data.
                    
46		if (is_array($data) || is_object($data))
                    
47		{
                    
404		// Ensure the input data is an array.
                    
405		if (is_object($data))
                    
406		{
                    
415		{
                    
416			if ((is_array($v) && JArrayHelper::isAssociative($v)) || is_object($v))
                    
417			{
                    
442		{
                    
443			if (is_object($v))
                    
444			{
                    
                
Xmlrpcs.php https://github.com/bryantAXS/two-night-stand.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 */
                    
                
Zoo.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 321 lines
                    
1<?php
                    
2/**
                    
86
                    
87        require_once(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php');
                    
88
                    
138
                    
139            if (in_array($ident, $text_ids) && is_object($el)) {
                    
140                foreach ($el as $val){
                    
143            }
                    
144            else if (in_array($ident, $text_ids) && !is_object($el)){
                    
145                    $texts['text_field_' . $ident] = $el->value;
                    
161        $primary_link = new RokSprocket_Item_Link();
                    
162        $primary_link->setUrl(JRoute::_('index.php?option=com_zoo&task=item&item_id=' . $raw_item->id, true));
                    
163        $primary_link->getIdentifier('article_link');
                    
214    {
                    
215        return JURI::root(true) . '/administrator/index.php?option=com_zoo&controller=item&changeapp=1&task=edit&cid[]=' . $id;
                    
216    }
                    
                
category.php https://github.com/muskmelon/Greemo.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;
                    
                
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);
                    
                
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;
                    
                
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
                    
                
Abstract.php https://github.com/rgranadino/magento-mirror.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();
                    
                
Category.php https://bitbucket.org/blackriver/openx.git | PHP | 437 lines
                    
1<?php
                    
2
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
26 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
                    
27 * @version    CVS: $Id: Category.php 47481 2009-12-15 20:29:37Z chris.nutting $
                    
28 * @link       http://pear.php.net/package/Image_Graph
                    
31/**
                    
32 * Include file Image/Graph/Axis.php
                    
33 */
                    
33 */
                    
34require_once 'Image/Graph/Axis.php';
                    
35
                    
48 * @version    Release: 0.7.2
                    
49 * @link       http://pear.php.net/package/Image_Graph
                    
50 */
                    
                
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" 
                    
                
weever.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2011 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
50	{
                    
51		require_once( EBLOG_CLASSES . DIRECTORY_SEPARATOR . 'json.php' );
                    
52		$json	= new Services_JSON();
                    
78	{
                    
79		if( is_object( $obj ) )
                    
80		{
                    
136				$data[ 'name' ]	= $tag->title;
                    
137				$data[ 'link' ]	= EasyBlogRouter::getRoutedUrl( 'index.php?option=com_easyblog&view=tag&layout=listings&format=weever&id=' . $tag->id , false , true );
                    
138
                    
                
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']; ?>
                    
                
adodb-oracle.inc.php https://bitbucket.org/kudutest1/moodlegit.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;
                    
                
editor.php https://bitbucket.org/pastor399/newcastleunifc.git | 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            }
                    
                
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         *
                    
                
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 */
                    
                
sqlite.php https://github.com/yourhty/hypervm.git | PHP | 635 lines
                    
1<?php
                    
2
                    
195
                    
196	if (!(is_resource($query) || is_object($query))) {
                    
197		return 0;
                    
                
theme.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | 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;
                    
                
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;
                    
                
dumper.php https://github.com/cgajardo/repositorium.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);
                    
                
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"
                    
                
XmlDumper.php https://github.com/Exercise/symfony.git | PHP | 301 lines
                    
1<?php
                    
2
                    
160            if (is_array($callable)) {
                    
161                $configurator->setAttribute((is_object($callable[0]) && $callable[0] instanceof Reference ? 'service' : 'class'), $callable[0]);
                    
162                $configurator->setAttribute('method', $callable[1]);
                    
232                $this->convertParameters($value, $type, $element, 'key');
                    
233            } elseif (is_object($value) && $value instanceof Reference) {
                    
234                $element->setAttribute('type', 'service');
                    
241                }
                    
242            } elseif (is_object($value) && $value instanceof Definition) {
                    
243                $element->setAttribute('type', 'service');
                    
248                }
                    
249                $text = $this->document->createTextNode(self::phpToXml($value));
                    
250                $element->appendChild($text);
                    
279    /**
                    
280     * Converts php types to xml types.
                    
281     *
                    
                
grade_object.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 441 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
87    public function __construct($params=NULL, $fetch=true) {
                    
88        if (!empty($params) and (is_array($params) or is_object($params))) {
                    
89            if ($fetch) {
                    
301            if (in_array($var, $this->required_fields) or array_key_exists($var, $this->optional_fields)) {
                    
302                if (is_object($value) or is_array($value)) {
                    
303                    debugging("Incorrect property '$var' found when inserting grade object");
                    
                
class-wp-admin-bar.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | 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;
                    
                
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
                    
                
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 );
                    
                
DebugUnitOfWorkListener.php https://gitlab.com/martinstti/silex-microframework-rest | 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);
                    
                
StreamResponse.php https://github.com/sidealice/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 
                    
                
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()
                    
                
CaseTrackerObject.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 164 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CaseTrackerObject.php
                    
4 *
                    
7
                    
8require_once 'classes/model/om/BaseCaseTrackerObject.php';
                    
9
                    
102            $oCaseTobj = CaseTrackerObjectPeer::retrieveByPK( $sCTOUID );
                    
103            if (is_object( $oCaseTobj ) && get_class( $oCaseTobj ) == 'CaseTrackerObject') {
                    
104                $oConnection->begin();
                    
141            $oObj = CaseTrackerObjectPeer::retrieveByPk( $Uid );
                    
142            if (is_object( $oObj ) && get_class( $oObj ) == 'CaseTrackerObject') {
                    
143                return true;
                    
                
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 ();
                    
                
Response.php https://github.com/StefanRHRO/SCRM.git | 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 *
                    
                
ClassRegistry.php https://github.com/gustavor/lore.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;
                    
                
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);
                    
                
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(
                    
                
Cache.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 245 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
94        } else {
                    
95            if ((is_object($backend)) && (in_array('Zend_Cache_Backend_Interface', class_implements($backend)))) {
                    
96                $backendObject = $backend;
                    
103        } else {
                    
104            if (is_object($frontend)) {
                    
105                $frontendObject = $frontend;
                    
131            // security controls are explicit
                    
132            // require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
133        } else {
                    
227     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
228     * This function uses the PHP include_path, where PHP's is_readable()
                    
229     * does not.
                    
                
Key.php https://github.com/drobbins/s3db.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
15 *
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
89 * @copyright  2005, 2006 Alexander Valyalkin
                    
90 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
91 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
custom_style.php https://github.com/ayamyau/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">
                    
                
bookmark.php https://github.com/sharpmachine/wakeupmedia.com.git | 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;
                    
                
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();
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
218     * @return string
                    
219     * @see    PHPUnit_Util_Type::export
                    
220     */
                    
                
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
                    
                
menu.php https://github.com/dg482/joomla-platform.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			{
                    
                
Font.php https://bitbucket.org/kudutest1/moodlegit.git | 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		}
                    
                
RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * RbacUsers.php
                    
5 * @package  rbac-classes-model
                    
29 */
                    
30require_once 'classes/model/om/BaseRbacUsers.php';
                    
31
                    
78            $rs = RbacUsersPeer::doSelect($c);
                    
79            if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') {
                    
80                $aFields = $rs[0]->toArray(BasePeer::TYPE_FIELDNAME);
                    
118            $rs = RbacUsersPeer::doSelect($c);
                    
119            if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') {
                    
120                //return the row for futher check of which Autentificacion method belongs this user
                    
143
                    
144            if (is_array($rs) && isset($rs[0]) && is_object($rs[0]) && get_class($rs[0]) == 'RbacUsers') {
                    
145                $aFields = $rs[0]->toArray(BasePeer::TYPE_FIELDNAME);
                    
                
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));
                    
                
Function.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 183 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Function.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Cache/Core.php';
                    
28
                    
147        // generate a unique id for object callbacks
                    
148        if (is_object($callback)) { // Closures & __invoke
                    
149            $object = $callback;
                    
                
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';
                    
                
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  } ?>
                    
                
update.php https://github.com/chopsuei3/oscc.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
76
                    
77	include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
                    
78
                    
168	$cur = get_preferred_from_update_core();
                    
169	if ( ! is_object( $cur ) )
                    
170		$cur = new stdClass;
                    
182	case 'development' :
                    
183		return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
                    
184	break;
                    
186	case 'upgrade' :
                    
187		return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
                    
188	break;
                    
203
                    
204	if ( 'update-core.php' == $pagenow )
                    
205		return;
                    
                
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';
                    
                
functions.php https://bitbucket.org/vaneves/repono.git | PHP | 277 lines
                    
1<?php 
                    
2/*
                    
87{
                    
88	if (!is_array($data) && !is_object($data)) 
                    
89		return $data;
                    
115	}
                    
116	if (is_object($data))
                    
117	{
                    
141	}
                    
142	if(is_object($data))
                    
143	{
                    
221	/**
                    
222	 * http://djomla.blog.com/2011/02/16/php-versions-5-2-and-5-3-get_called_class/
                    
223	 */
                    
261					// edge case -> get class of calling object
                    
262					if (!is_object($bt[$l]['object']))
                    
263						return $bt[$l]['class'];
                    
                
AbuseFilterVariableHolder.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 426 lines
                    
1<?php
                    
2class AbuseFilterVariableHolder {
                    
8		if ( !( $datum instanceof AFPData || $datum instanceof AFComputedVariable ) ) {
                    
9			$datum = AFPData::newFromPHPVar( $datum );
                    
10		}
                    
45	function addHolder( $addHolder ) {
                    
46		if ( !is_object( $addHolder ) ) {
                    
47			throw new MWException( 'Invalid argument to AbuseFilterVariableHolder::addHolder' );
                    
423		return $result instanceof AFPData
                    
424			? $result : AFPData::newFromPHPVar( $result );
                    
425	}
                    
                
Object.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 461 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @copyright   2001-2009 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Object.php,v 1.6 2009/04/04 21:34:04 avb Exp $
                    
                
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
                    
                
Valid.php https://bitbucket.org/Kichrum/kohana-auth.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.
                    
                
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/gricelya/rental | 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   * 
                    
                
Yadis.php https://github.com/Emaratilicious/Garden.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
                    
                
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>
                    
                
 

Source

Language