PageRenderTime 1650ms queryTime 529ms sortTime 191ms getByIdsTime 314ms findMatchingLines 167ms

100+ results results for 'php constant repo:davidajnered/simple-post-preview' (1650 ms)

Not the results you expected?
DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
                    
41 */
                    
42package org.netbeans.modules.php.project.connections.sync.diff;
                    
43
                    
57import javax.swing.JPanel;
                    
58import javax.swing.SwingConstants;
                    
59import javax.swing.SwingUtilities;
                    
61import org.netbeans.api.diff.StreamSource;
                    
62import org.netbeans.modules.php.api.util.StringUtils;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
64import org.netbeans.modules.php.project.connections.RemoteException;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
66import org.netbeans.modules.php.project.connections.sync.SyncItem;
                    
67import org.netbeans.modules.php.project.connections.transfer.TransferFile;
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
33    /**
                    
34     * Set/get background color. Check Imagick::COLOR_* constants
                    
35     *
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
224            //set defaults for pledgeBlock values.
                    
225            require_once 'CRM/Pledge/BAO/PledgeBlock.php';
                    
226            $pledgeBlockParams = array( 'entity_id'    => $this->_id,
                    
237            }
                    
238            require_once 'CRM/Core/BAO/CustomOption.php';
                    
239            if ( CRM_Utils_Array::value( 'pledge_frequency_unit', $pledgeBlockDefaults ) ) {
                    
245            // fix the display of the monetary value, CRM-4038
                    
246            require_once 'CRM/Utils/Money.php';
                    
247            if (isset($defaults['goal_amount'])) {
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
238     * @param string  $shortcut    The shortcut (can be null)
                    
239     * @param integer $mode        The option mode: One of the InputOption::VALUE_* constants
                    
240     * @param string  $description A description text
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
1<?php
                    
2
                    
318          ],
                    
319          'pseudoconstant' => [
                    
320            'optionGroupName' => 'batch_status',
                    
336          ],
                    
337          'pseudoconstant' => [
                    
338            'optionGroupName' => 'batch_type',
                    
354          ],
                    
355          'pseudoconstant' => [
                    
356            'optionGroupName' => 'batch_mode',
                    
404          ],
                    
405          'pseudoconstant' => [
                    
406            'optionGroupName' => 'payment_instrument',
                    
                
Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
94    {
                    
95        require_once 'CRM/Contribute/BAO/Contribution.php';
                    
96
                    
230        // check if we can process credit card contribs
                    
231        $processors = CRM_Core_PseudoConstant::paymentProcessor( false, false,
                    
232                                                                 "billing_mode IN ( 1, 3 )" );
                    
                
Tokens.php https://gitlab.com/yousafsyed/easternglamor | PHP | 869 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 */
                    
45/**
                    
46 * This interface holds the different tokenizer, builder and parser constants.
                    
47 *
                    
48 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
49 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
50 */
                    
288    /**
                    
289     * Marks a constant string like 'foo' or "foo".
                    
290     */
                    
                
Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 467 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 */

                    
45    /**

                    
46     * Minimum advertise price constants

                    
47     */

                    
                
Value.php https://github.com/mprashad/ch3-dev-preview.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
33/** Zend_XmlRpc_Value_Boolean */
                    
34require_once 'Zend/XmlRpc/Value/Boolean.php';
                    
35
                    
                
display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
13	global $wpdb;
                    
14	$fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
52			<li>
                    
53				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
54			</li>
                    
55		</ul>
                    
56		<?php
                    
57		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
79			</ul>
                    
80			<?php
                    
81		}
                    
                
Value.php https://github.com/kotosha/sklepPHP.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
33/** Zend_XmlRpc_Value_Boolean */
                    
34require_once 'Zend/XmlRpc/Value/Boolean.php';
                    
35
                    
                
Mime.php https://github.com/nborwankar/Ushahidi_Web.git | PHP | 500 lines
                    
1<?php
                    
2
                    
11
                    
12require_once dirname(__FILE__) . "/../ClassLoader.php";
                    
13Swift_ClassLoader::load("Swift_File");
                    
25  /**
                    
26   * Constant for plain-text emails
                    
27   */
                    
29  /**
                    
30   * Constant for HTML emails
                    
31   */
                    
33  /**
                    
34   * Constant for miscellaneous mime type
                    
35   */
                    
37  /**
                    
38   * Constant for MIME sections which must appear in the multipart/alternative section.
                    
39   */
                    
                
ListCommand.php https://gitlab.com/ealexis.t/trends | PHP | 278 lines
                    
13
                    
14use Psy\Command\ListCommand\ClassConstantEnumerator;
                    
15use Psy\Command\ListCommand\ClassEnumerator;
                    
63                new InputOption('vars',        '',  InputOption::VALUE_NONE,     'Display variables.'),
                    
64                new InputOption('constants',   'c', InputOption::VALUE_NONE,     'Display defined constants.'),
                    
65                new InputOption('functions',   'f', InputOption::VALUE_NONE,     'Display defined functions.'),
                    
78                new InputOption('internal',    'n', InputOption::VALUE_NONE,     'Limit to internal functions and classes.'),
                    
79                new InputOption('user',        'u', InputOption::VALUE_NONE,     'Limit to user-defined constants, functions and classes.'),
                    
80                new InputOption('category',    'C', InputOption::VALUE_REQUIRED, 'Limit to constants in a specific category (e.g. "date").'),
                    
87                <<<'HELP'
                    
88List variables, constants, classes, interfaces, traits, functions, methods,
                    
89and properties.
                    
92
                    
93If a target object is provided, list properties, constants and methods of that
                    
94target. If a class, interface or trait name is passed instead, list constants
                    
                
Save.php https://gitlab.com/yousafsyed/easternglamor | PHP | 298 lines
                    
1<?php
                    
2/**
                    
8use Magento\Customer\Api\Data\CustomerInterface;
                    
9use Magento\Customer\Controller\RegistryConstants;
                    
10use Magento\Framework\Exception\LocalizedException;
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
174     * @return \Magento\Backend\Model\View\Result\Redirect
                    
175     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
177     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
178     */
                    
258                // Done Saving customer, finish save action
                    
259                $this->_coreRegistry->register(RegistryConstants::CURRENT_CUSTOMER_ID, $customerId);
                    
260                $this->messageManager->addSuccess(__('You saved the customer.'));
                    
                
sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2014 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
132	le_sysvmsg = zend_register_list_destructors_ex(sysvmsg_release, NULL, "sysvmsg queue", module_number);
                    
133	REGISTER_LONG_CONSTANT("MSG_IPC_NOWAIT", PHP_MSG_IPC_NOWAIT, CONST_PERSISTENT|CONST_CS);
                    
134	REGISTER_LONG_CONSTANT("MSG_EAGAIN",	 EAGAIN, 	     CONST_PERSISTENT|CONST_CS);
                    
135	REGISTER_LONG_CONSTANT("MSG_ENOMSG",	 ENOMSG, 	     CONST_PERSISTENT|CONST_CS);
                    
136	REGISTER_LONG_CONSTANT("MSG_NOERROR",    PHP_MSG_NOERROR,    CONST_PERSISTENT|CONST_CS);
                    
137	REGISTER_LONG_CONSTANT("MSG_EXCEPT",     PHP_MSG_EXCEPT,     CONST_PERSISTENT|CONST_CS);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
CurrentEmployer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 394 lines
                    
1<?php
                    
2/*
                    
181            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
                    
182            'options' => CRM_Core_PseudoConstant::country(NULL, FALSE),
                    
183          ],
                    
187            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
                    
188            'options' => CRM_Core_PseudoConstant::stateProvince(),
                    
189          ],
                    
                
ms-default-filters.php https://gitlab.com/VTTE/sitios-vtte | PHP | 128 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * Not all of the Multisite default hooks are found in ms-default-filters.php
                    
9 *
                    
11 * @subpackage Multisite
                    
12 * @see default-filters.php
                    
13 * @since 3.0.0
                    
15
                    
16add_action( 'init', 'ms_subdomain_constants' );
                    
17
                    
101// Mail.
                    
102add_action( 'phpmailer_init', 'fix_phpmailer_messageid' );
                    
103
                    
105add_filter( 'enable_update_services_configuration', '__return_false' );
                    
106if ( ! defined( 'POST_BY_EMAIL' ) || ! POST_BY_EMAIL ) { // Back compat constant.
                    
107	add_filter( 'enable_post_by_email_configuration', '__return_false' );
                    
                
wrapper.php https://gitlab.com/webkod3r/tripolis | PHP | 213 lines
                    
1<?php
                    
2
                    
4
                    
5$wpcom_api_key    = defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : '';
                    
6$akismet_api_host = Akismet::get_api_key() . '.rest.akismet.com';
                    
                
session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
                    
1<?php
                    
2/**
                    
26
                    
27require_once $gfcommon.'include/account.php';
                    
28require_once $gfcommon.'include/escapingUtils.php';
                    
32 *
                    
33 * @var	constant		$G_SESSION
                    
34 */
                    
214
                    
215		// if allowpending (for verify.php) then allow
                    
216		$userstatus=$usr['status'];
                    
490
                    
491//TODO - this should be generalized and used for pre.php, squal_pre.php, 
                    
492//SOAP, forum_gateway.php, tracker_gateway.php, etc to 
                    
547// Local Variables:
                    
548// mode: php
                    
549// c-file-style: "bsd"
                    
                
Attributes.php https://bitbucket.org/kdms/sh-magento.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
38    /**
                    
39     * Value type values constants
                    
40     *
                    
41     */
                    
42    const VALUE_TYPE_CONSTANT       = 'constant';
                    
43    const VALUE_TYPE_SAME_AS        = 'same_as';
                    
149            array(
                    
150                'value' => self::VALUE_TYPE_CONSTANT,
                    
151                'label' => Mage::helper('enterprise_targetrule')->__('Constant Value')
                    
302                $select->where('category_id IN(?)', $subSelect);
                    
303            } else { //self::VALUE_TYPE_CONSTANT
                    
304                $operator = ($operator == '==') ? '' : 'NOT';
                    
312
                    
313        if ($valueType == self::VALUE_TYPE_CONSTANT) {
                    
314            $useBind = false;
                    
                
ModuleNode.php https://gitlab.com/dcnf/dcbase.org | PHP | 464 lines
                    
1<?php
                    
2
                    
16use Twig\Node\Expression\AbstractExpression;
                    
17use Twig\Node\Expression\ConstantExpression;
                    
18use Twig\Source;
                    
74        if (!$this->getAttribute('index')) {
                    
75            $compiler->write('<?php');
                    
76        }
                    
114
                    
115        if ($parent instanceof ConstantExpression) {
                    
116            $compiler->subcompile($parent);
                    
156        $compiler
                    
157            // if the template name contains */, add a blank to avoid a PHP parse error
                    
158            ->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n")
                    
316            $compiler->addDebugInfo($parent);
                    
317            if ($parent instanceof ConstantExpression) {
                    
318                $compiler
                    
                
TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * TableProcessor.php
                    
4 *
                    
32
                    
33require_once(dirname(__FILE__) . '/AbstractProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
36
                    
49
                    
50    protected function getConstantType($token) {
                    
51        return array('expr_type' => ExpressionType::CONSTANT, 'base_expr' => $token);
                    
255                # the charset name
                    
256                    $expr[] = $this->getConstantType($trim);
                    
257                    $result['options'][] = array('expr_type' => ExpressionType::CHARSET,
                    
                
FilterTest.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 151 lines
                    
15    {
                    
16        $expr = new Twig_Node_Expression_Constant('foo', 1);
                    
17        $name = new Twig_Node_Expression_Constant('upper', 1);
                    
35        $node = $this->createFilter($expr, 'upper');
                    
36        $node = $this->createFilter($node, 'number_format', array(new Twig_Node_Expression_Constant(2, 1), new Twig_Node_Expression_Constant('.', 1), new Twig_Node_Expression_Constant(',', 1)));
                    
37
                    
40        // named arguments
                    
41        $date = new Twig_Node_Expression_Constant(0, 1);
                    
42        $node = $this->createFilter($date, 'date', array(
                    
61        $node = $this->createFilter($string, 'reverse', array(
                    
62            'preserveKeys' => new Twig_Node_Expression_Constant(true, 1),
                    
63        ));
                    
66        // filter as an anonymous function
                    
67        $node = $this->createFilter(new Twig_Node_Expression_Constant('foo', 1), 'anonymous');
                    
68        $tests[] = array($node, 'call_user_func_array($this->env->getFilter(\'anonymous\')->getCallable(), array("foo"))');
                    
                
ApiGenOptionsPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 336 lines
                    
41 */
                    
42package org.netbeans.modules.php.apigen.ui.options;
                    
43
                    
60import javax.swing.LayoutStyle.ComponentPlacement;
                    
61import javax.swing.SwingConstants;
                    
62import javax.swing.UIManager;
                    
65import javax.swing.event.DocumentListener;
                    
66import org.netbeans.modules.php.api.util.FileUtils;
                    
67import org.netbeans.modules.php.api.util.UiUtils;
                    
67import org.netbeans.modules.php.api.util.UiUtils;
                    
68import org.netbeans.modules.php.apigen.commands.ApiGenScript;
                    
69import org.netbeans.spi.options.OptionsPanelController;
                    
78@NbBundle.Messages("ApiGenOptionsPanel.keywords.documentation=documentation")
                    
79@OptionsPanelController.Keywords(keywords={"php", "apigen", "phpdoc", "phpdocumentor", "#ApiGenOptionsPanel.keywords.documentation"},
                    
80        location=UiUtils.OPTIONS_PATH, tabTitle= "#LBL_PHPGenOptionsName")
                    
                
statement_list.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 436 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/compiler/statement/statement_list.h"
                    
18#include "hphp/compiler/analysis/analysis_result.h"
                    
20#include "hphp/compiler/analysis/file_scope.h"
                    
21#include "hphp/compiler/analysis/class_scope.h"
                    
22#include "hphp/compiler/analysis/code_error.h"
                    
28#include "hphp/compiler/statement/block_statement.h"
                    
29#include "hphp/parser/hphp.tab.hpp"
                    
30#include "hphp/compiler/expression/binary_op_expression.h"
                    
32#include "hphp/compiler/expression/simple_variable.h"
                    
33#include "hphp/compiler/expression/constant_expression.h"
                    
34#include "hphp/compiler/expression/unary_op_expression.h"
                    
                
benchmark.rb https://gitlab.com/orvi2014/rcs-db-ext | Ruby | 380 lines
                    
112    # Runs the given +work+ and asserts that the times gathered fit to
                    
113    # match a constant rate (eg, linear slope == 0) within a given
                    
114    # +threshold+. Note: because we're testing for a slope of 0, R^2
                    
118    #
                    
119    # See http://www.graphpad.com/curvefit/goodness_of_fit.htm for
                    
120    # more details.
                    
128    #   def bench_algorithm
                    
129    #     assert_performance_constant 0.9999 do |n|
                    
130    #       @obj.algorithm(n)
                    
133
                    
134    def assert_performance_constant threshold = 0.99, &work
                    
135      validation = proc do |range, times|
                    
351  ##
                    
352  # Create a benchmark that verifies that the performance is constant.
                    
353  #
                    
                
Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
                    
1<?php
                    
2
                    
13
                    
14	//constant data
                    
15	const LT_FILE = 'file';
                    
38		parent::init();
                    
39		$this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]);
                    
40
                    
                
klarnapclass.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 546 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access');
                    
101     *
                    
102     * @ignore Do not show in PHPDoc.
                    
103     * @var string
                    
109     *
                    
110     * @ignore Do not show in PHPDoc.
                    
111     * @var int
                    
117     *
                    
118     * @ignore Do not show in PHPDoc.
                    
119     * @var float
                    
125     *
                    
126     * @ignore Do not show in PHPDoc.
                    
127     * @var float
                    
133     *
                    
134     * @ignore Do not show in PHPDoc.
                    
135     * @var float
                    
                
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 *
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
380		{
                    
381			list($path, $file) = Modules::find('constants', $this->_module, 'config/');
                    
382
                    
382
                    
383			/* module constants file */
                    
384			if ($path != FALSE)
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
Abstract.php https://bitbucket.org/acidel/buykoala.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Form_Decorator_Interface */
                    
22#require_once 'Zend/Form/Decorator/Interface.php';
                    
23
                    
31 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
32 * @version    $Id: Abstract.php 21146 2010-02-23 14:35:57Z yoshida@zend.co.jp $
                    
33 */
                    
36    /**
                    
37     * Placement constants
                    
38     */
                    
62     */
                    
63    protected $_separator = PHP_EOL;
                    
64
                    
181        {
                    
182            #require_once 'Zend/Form/Decorator/Exception.php';
                    
183            throw new Zend_Form_Decorator_Exception('Invalid element type passed to decorator');
                    
                
DateType.php https://gitlab.com/matijabelec/bigpandadev | PHP | 326 lines
                    
1<?php
                    
2
                    
50        if (!in_array($dateFormat, self::$acceptedFormats, true)) {
                    
51            throw new InvalidOptionsException('The "format" option must be one of the IntlDateFormatter constants (FULL, LONG, MEDIUM, SHORT) or a string representing a custom format.');
                    
52        }
                    
80
                    
81            // new \intlDateFormatter may return null instead of false in case of failure, see https://bugs.php.net/bug.php?id=66323
                    
82            if (!$formatter) {
                    
264
                    
265        if ($setTimeZone = PHP_VERSION_ID >= 50500 || method_exists($formatter, 'setTimeZone')) {
                    
266            $formatter->setTimeZone('UTC');
                    
                
competency_framework.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 157 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
53        $mform->setType('contextid', PARAM_INT);
                    
54        $mform->setConstant('contextid', $context->id);
                    
55
                    
80            // configuration requires this field so we only disable it. It is fine as setting the value
                    
81            // as a constant will ensure that nobody can change it. And it's validated in the persistent anyway.
                    
82            $scaleid->updateAttributes(array('readonly' => 'readonly'));
                    
82            $scaleid->updateAttributes(array('readonly' => 'readonly'));
                    
83            $mform->setConstant('scaleid', $framework->get('scaleid'));
                    
84        }
                    
                
p2p.h https://bitbucket.org/cyanogenmod/lge-kernel-iproj.git | C Header | 564 lines
                    
6 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
7 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
8 * following added to such license:
                    
21 *
                    
22 * Fundamental types and constants relating to WFA P2P (aka WiFi Direct)
                    
23 *
                    
                
ConstraintType.java https://gitlab.com/Codeaurora/platform_sdk | Java | 237 lines
                    
7 *
                    
8 *      http://www.eclipse.org/org/documents/epl-v10.php
                    
9 *
                    
25import static com.android.ide.common.api.SegmentType.UNKNOWN;
                    
26import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ABOVE;
                    
27import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BASELINE;
                    
27import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BASELINE;
                    
28import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BOTTOM;
                    
29import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_LEFT;
                    
29import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_LEFT;
                    
30import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_BOTTOM;
                    
31import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_LEFT;
                    
31import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_LEFT;
                    
32import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_RIGHT;
                    
33import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_TOP;
                    
                
Proximity.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 354 lines
                    
1<?php
                    
2/*
                    
129
                    
130    $country = ['' => ts('- select -')] + CRM_Core_PseudoConstant::country();
                    
131    $form->add('select', 'country_id', ts('Country'), $country, TRUE, ['class' => 'crm-select2']);
                    
135
                    
136    $group = ['' => ts('- any group -')] + CRM_Core_PseudoConstant::nestedGroup();
                    
137    $form->addElement('select', 'group', ts('Group'), $group, ['class' => 'crm-select2 huge']);
                    
138
                    
139    $tag = ['' => ts('- any tag -')] + CRM_Core_PseudoConstant::get('CRM_Core_DAO_EntityTag', 'tag_id', ['onlyActive' => FALSE]);
                    
140    $form->addElement('select', 'tag', ts('Tag'), $tag, ['class' => 'crm-select2 huge']);
                    
344    if (!empty($fields['country_id'])) {
                    
345      $fields['country'] = CRM_Core_PseudoConstant::country($fields['country_id']);
                    
346    }
                    
348    if (!empty($fields['state_province_id'])) {
                    
349      $fields['state_province'] = CRM_Core_PseudoConstant::stateProvince($fields['state_province_id']);
                    
350    }
                    
                
date.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
34	/**
                    
35	 * Time constants (and only those that are constant, thus not MONTH/YEAR)
                    
36	 */
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
date.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
34	/**
                    
35	 * Time constants (and only those that are constant, thus not MONTH/YEAR)
                    
36	 */
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
CHANGELOG.md https://gitlab.com/4gdevs/online-class-record-system | Markdown | 313 lines
                    
26* Update group use support to be in line with recent PHP 7.0 builds.
                    
27* Renamed `php-parse.php` to `php-parse` and registered it as a composer bin.
                    
28* Use composer PSR-4 autoloader instead of custom autoloader.
                    
42
                    
43* Removed support for running on PHP 5.4. It is however still possible to parse PHP 5.2 and PHP 5.3
                    
44  code while running on a newer version.
                    
64
                    
65* `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
67* Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`.
                    
68* The `Name->set()`, `Name->append()`, `Name->prepend()` and `Name->setFirst()` methods are
                    
257
                    
258* [BC] PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code,
                    
259  while running on a newer version.
                    
                
Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
39    /**
                    
40     * Any general database query that does not fit into the other constants.
                    
41     */
                    
106    /**
                    
107     * Logical OR of any of the filter constants.  NULL if filtering by query
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
109     * any of the query type constants.  When the query ends, if it is not
                    
110     * one of the types specified, it will be unset from the
                    
186     * Sets the types of query profiles to save.  Set $queryType to one of
                    
187     * the Zend_Db_Profiler::* constants to only save profiles for that type of
                    
188     * query.  To save more than one type, logical OR them together.  To
                    
                
QueryTrait.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 391 lines
                    
1<?php
                    
2/**
                    
40     * The array keys are the columns to be sorted by, and the array values are the corresponding sort directions which
                    
41     * can be either [SORT_ASC](http://php.net/manual/en/array.constants.php#constant.sort-asc)
                    
42     * or [SORT_DESC](http://php.net/manual/en/array.constants.php#constant.sort-desc).
                    
60     *
                    
61     * ```php
                    
62     * function ($row)
                    
138     *
                    
139     * ```php
                    
140     * // WHERE `age`=:age
                    
                
class-ms-rule-content-model.php https://gitlab.com/najomie/fit-hippie | PHP | 403 lines
                    
1<?php
                    
2/**
                    
40	/**
                    
41	 * Rule value constants.
                    
42	 *
                    
                
Xml.php https://github.com/Exercise/zf2.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
225
                    
226                        $constantName = $node->getAttributeNS(self::XML_NAMESPACE, 'name');
                    
227
                    
228                        if (!defined($constantName)) {
                    
229                            throw new Exception("Constant with name '$constantName' was not defined");
                    
230                        }
                    
231
                    
232                        $constantValue = constant($constantName);
                    
233
                    
233
                    
234                        $dom->replaceChild($dom->ownerDocument->createTextNode($constantValue), $node);
                    
235                        break;
                    
                
Parser.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 407 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('Scope.php');
                    
4require_once('Symbol.php');
                    
4require_once('Symbol.php');
                    
5require_once('Destructable.php');
                    
6
                    
385   */
                    
386  protected function constant($name, $value) {
                    
387    $symbol = $this->symbol($name);
                    
387    $symbol = $this->symbol($name);
                    
388    $symbol->nud = 'nud_constant';
                    
389    $symbol->value = $value;
                    
389    $symbol->value = $value;
                    
390    $symbol->arity = 'constant';
                    
391    return $symbol;
                    
                
ext_std_classobj.cpp https://gitlab.com/iranjith4/hhvm | C++ | 385 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
24#include "hphp/runtime/vm/jit/translator.h"
                    
25#include "hphp/runtime/vm/unit.h"
                    
26
                    
26
                    
27namespace HPHP {
                    
28
                    
123
                    
124  auto const numConstants = cls->numConstants();
                    
125  ArrayInit arrayInit(numConstants, ArrayInit::Map{});
                    
128  for (size_t i = 0; i < numConstants; i++) {
                    
129    // Note: hphpc doesn't include inherited constants in
                    
130    // get_class_constants(), so mimic that behavior
                    
                
password.c https://gitlab.com/envieidoc/advancedtomato2 | C | 460 lines
                    
39{
                    
40	REGISTER_LONG_CONSTANT("PASSWORD_DEFAULT", PHP_PASSWORD_DEFAULT, CONST_CS | CONST_PERSISTENT);
                    
41	REGISTER_LONG_CONSTANT("PASSWORD_BCRYPT", PHP_PASSWORD_BCRYPT, CONST_CS | CONST_PERSISTENT);
                    
42
                    
43	REGISTER_LONG_CONSTANT("PASSWORD_BCRYPT_DEFAULT_COST", PHP_PASSWORD_BCRYPT_COST, CONST_CS | CONST_PERSISTENT);
                    
44
                    
48
                    
49static char* php_password_get_algo_name(const php_password_algo algo)
                    
50{
                    
59
                    
60static php_password_algo php_password_determine_algo(const char *hash, const size_t len) 
                    
61{
                    
174
                    
175PHP_FUNCTION(password_get_info)
                    
176{
                    
                
Move.php https://gitlab.com/rsilveira1987/Expresso | PHP | 299 lines
                    
1<?php
                    
2/**
                    
62     * @param  mixed  $_messages
                    
63     * @param  mixed  $_targetFolder can be one of: folder_id, Expressomail_Model_Folder or Expressomail_Model_Folder::FOLDER_TRASH (constant)
                    
64     * @return Tinebase_Record_RecordSet of Expressomail_Model_Folder
                    
99     * @param Tinebase_Record_RecordSet $_messages
                    
100     * @param  mixed  $_targetFolder can be one of: Expressomail_Model_Folder or Expressomail_Model_Folder::FOLDER_TRASH (constant)
                    
101     * @return Tinebase_Record_RecordSet of Expressomail_Model_Folder
                    
                
ext_icu_date_pattern_gen.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 388 lines
                    
1#include "hphp/runtime/ext/icu/ext_icu_date_pattern_gen.h"
                    
2#include "hphp/runtime/ext/icu/ext_icu_iterator.h"
                    
3
                    
4namespace HPHP { namespace Intl {
                    
5//////////////////////////////////////////////////////////////////////////////
                    
323
                    
324#define UDATPG_CONST_FIELD(nm)Native::registerClassConstant<KindOfInt64>( \
                    
325                               s_IntlDatePatternGenerator.get(), \
                    
328
                    
329#define UDATPG_CONST(nm)Native::registerClassConstant<KindOfInt64>( \
                    
330                         s_IntlDatePatternGenerator.get(), \
                    
387//////////////////////////////////////////////////////////////////////////////
                    
388}} // namespace HPHP::Intl
                    
389
                    
                
config.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 322 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/base/config.h"
                    
18
                    
                
DateTimeType.php https://gitlab.com/Isaki/le331.fr | PHP | 290 lines
                    
1<?php
                    
2
                    
53     *
                    
54     * It was supposedly fixed, but is not available in all PHP installations
                    
55     * yet. To temporarily circumvent this issue, DateTimeToRfc3339Transformer
                    
55     * yet. To temporarily circumvent this issue, DateTimeToRfc3339Transformer
                    
56     * is used when the format matches this constant.
                    
57     */
                    
91        if (!in_array($dateFormat, self::$acceptedFormats, true)) {
                    
92            throw new InvalidOptionsException('The "date_format" option must be one of the IntlDateFormatter constants (FULL, LONG, MEDIUM, SHORT) or a string representing a custom format.');
                    
93        }
                    
                
Profiler.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 25127 2012-11-16 15:17:42Z rob $
                    
21 */
                    
39    /**
                    
40     * Any general database query that does not fit into the other constants.
                    
41     */
                    
106    /**
                    
107     * Logical OR of any of the filter constants.  NULL if filtering by query
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
109     * any of the query type constants.  When the query ends, if it is not
                    
110     * one of the types specified, it will be unset from the
                    
186     * Sets the types of query profiles to save.  Set $queryType to one of
                    
187     * the Zend_Db_Profiler::* constants to only save profiles for that type of
                    
188     * query.  To save more than one type, logical OR them together.  To
                    
                
LayoutDeviceManager.java https://gitlab.com/Codeaurora/platform_sdk | Java | 395 lines
                    
7 *
                    
8 *      http://www.eclipse.org/org/documents/epl-v10.php
                    
9 *
                    
23import com.android.prefs.AndroidLocation.AndroidLocationException;
                    
24import com.android.sdklib.SdkConstants;
                    
25
                    
250            String userFolder = AndroidLocation.getFolder();
                    
251            File deviceXml = new File(userFolder, SdkConstants.FN_DEVICES_XML);
                    
252            if (deviceXml.isDirectory() == false) {
                    
273            String userFolder = AndroidLocation.getFolder();
                    
274            File deviceXml = new File(userFolder, SdkConstants.FN_DEVICES_XML);
                    
275            if (deviceXml.isFile()) {
                    
334        ArrayList<LayoutDevice> list = new ArrayList<LayoutDevice>();
                    
335        File toolsFolder = new File(sdkOsLocation, SdkConstants.OS_SDK_TOOLS_LIB_FOLDER);
                    
336        if (toolsFolder.isDirectory()) {
                    
                
AuthorizeNetIPN.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 361 lines
                    
1<?php
                    
2/*
                    
130
                    
131    $contributionStatus = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
                    
132
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
36    /**
                    
37     * CONFIG path constant: ALLOW
                    
38    */
                    
40    /**
                    
41     * CONFIG path constant: DEFAULT
                    
42     */
                    
44    /**
                    
45     * CONFIG path constant: BASE
                    
46     */
                    
                
File.php https://bitbucket.org/acidel/buykoala.git | PHP | 412 lines
                    
29 */
                    
30#require_once 'Zend/Reflection/Function.php';
                    
31
                    
94        if (!$fileRealpath || !in_array($fileRealpath, get_included_files())) {
                    
95            #require_once 'Zend/Reflection/Exception.php';
                    
96            throw new Zend_Reflection_Exception('File ' . $file . ' must be required before it can be reflected');
                    
225            if (!$instance instanceof Zend_Reflection_Function) {
                    
226                #require_once 'Zend/Reflection/Exception.php';
                    
227                throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function');
                    
248            if (!$instance instanceof Zend_Reflection_Class) {
                    
249                #require_once 'Zend/Reflection/Exception.php';
                    
250                throw new Zend_Reflection_Exception('Invalid reflection class given; must extend Zend_Reflection_Class');
                    
319             * Token ID's are explained here:
                    
320             * http://www.php.net/manual/en/tokens.php.
                    
321             */
                    
                
Oci.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Oci.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
56    /**
                    
57     * Keys are UPPERCASE SQL datatypes or the constants
                    
58     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
349            /** @see Zend_Db_Adapter_Exception */
                    
350            require_once 'Zend/Db/Adapter/Exception.php';
                    
351            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
356            /** @see Zend_Db_Adapter_Exception */
                    
357            require_once 'Zend/Db/Adapter/Exception.php';
                    
358            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
Oci.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Oci.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
56    /**
                    
57     * Keys are UPPERCASE SQL datatypes or the constants
                    
58     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
349            /** @see Zend_Db_Adapter_Exception */
                    
350            require_once 'Zend/Db/Adapter/Exception.php';
                    
351            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
356            /** @see Zend_Db_Adapter_Exception */
                    
357            require_once 'Zend/Db/Adapter/Exception.php';
                    
358            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
AdminObjectAclData.php https://gitlab.com/cuza/Clinic_Recods | PHP | 319 lines
                    
1<?php
                    
2
                    
85        foreach ($permissions as $permission) {
                    
86            $this->masks[$permission] = $reflectionClass->getConstant('MASK_'.$permission);
                    
87        }
                    
                
Data.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 478 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
46    /**
                    
47     * Minimum advertise price constants
                    
48     */
                    
                
Imlib.php https://github.com/bermi/akelos.git | PHP | 379 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.02 of the PHP license,      |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
12// | obtain it through the world-wide-web, please send a note to          |
                    
13// | license@php.net so we can mail you a copy immediately.               |
                    
14// +----------------------------------------------------------------------+
                    
37 *
                    
38 * @see http://mmcc.cx/php_imlib/index.php
                    
39 * @version Revision: 1.0
                    
                
Oci.php https://gitlab.com/rsilveira1987/Expresso | PHP | 378 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Oci.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
56    /**
                    
57     * Keys are UPPERCASE SQL datatypes or the constants
                    
58     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
349            /** @see Zend_Db_Adapter_Exception */
                    
350            require_once 'Zend/Db/Adapter/Exception.php';
                    
351            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
356            /** @see Zend_Db_Adapter_Exception */
                    
357            require_once 'Zend/Db/Adapter/Exception.php';
                    
358            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
Tag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
                    
1<?php
                    
2
                    
107                    $tagset[$tagsetItem]['entityId'] = $entityId;
                    
108                    require_once 'CRM/Core/BAO/EntityTag.php';
                    
109                    $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );                    
                    
115                            CRM_Utils_Array::value( $parentId, $form->_submitValues['activity_taglist']) ) {
                    
116                            $allTags = CRM_Core_Pseudoconstant::tag( );
                    
117                            $tagIds  = explode( ',', $form->_submitValues['activity_taglist'][$parentId] );
                    
132                           CRM_Utils_Array::value( $parentId, $form->_submitValues['case_taglist']) ) {
                    
133                           $allTags = CRM_Core_Pseudoconstant::tag( );
                    
134                           $tagIds  = explode( ',', $form->_submitValues['case_taglist'][$parentId] );
                    
148                        if ( !empty($form->_formValues['contact_tags']) ) {
                    
149                            require_once 'CRM/Core/BAO/Tag.php';
                    
150                            $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
                    
                
README.md https://github.com/elrond79/pymel.git | Markdown | 289 lines
                    
9  - graphviz: using an OS package manager like `yum`, `apt-get`, or `brew`, or
                    
10    on windows, from an [installer](http://www.graphviz.org/Download_windows.php)
                    
11  - python dependencies:
                    
121
                    
122### Version Constants
                    
123
                    
                
banned_emails.php https://gitlab.com/kingcody/Mods-for-HESK | PHP | 343 lines
                    
72        <li role="presentation" class="active">
                    
73            <a href="#"><?php echo $hesklang['banemail']; ?> <i class="fa fa-question-circle settingsquestionmark"
                    
74                                                                onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['banemail_intro']); ?>')"></i></a>
                    
132                        <div class="col-sm-9">
                    
133                            <input type="text" class="form-control" name="email" size="30" maxlength="255" data-error="<?php echo htmlspecialchars($hesklang['enterbanemail']); ?>"
                    
134                                   placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>" required>
                    
134                                   placeholder="<?php echo htmlspecialchars($hesklang['email']); ?>" required>
                    
135                            <input type="hidden" name="token" value="<?php hesk_token_echo(); ?>"/>
                    
136                            <input type="hidden" name="a" value="ban"/>
                    
272    // Redirect either to banned emails or ticket page from now on
                    
273    $redirect_to = ($trackingID = hesk_cleanID()) ? 'admin_ticket.php?track=' . $trackingID . '&Refresh=' . mt_rand(10000, 99999) : 'banned_emails.php';
                    
274
                    
302    // Redirect either to banned emails or ticket page from now on
                    
303    $redirect_to = ($trackingID = hesk_cleanID()) ? 'admin_ticket.php?track=' . $trackingID . '&Refresh=' . mt_rand(10000, 99999) : 'banned_emails.php';
                    
304
                    
                
Profiler.php https://gitlab.com/luisrepo/ClienteWS | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
39    /**
                    
40     * Any general database query that does not fit into the other constants.
                    
41     */
                    
106    /**
                    
107     * Logical OR of any of the filter constants.  NULL if filtering by query
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
109     * any of the query type constants.  When the query ends, if it is not
                    
110     * one of the types specified, it will be unset from the
                    
186     * Sets the types of query profiles to save.  Set $queryType to one of
                    
187     * the Zend_Db_Profiler::* constants to only save profiles for that type of
                    
188     * query.  To save more than one type, logical OR them together.  To
                    
                
Pgsql.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
49    /**
                    
50     * Keys are UPPERCASE SQL datatypes or the constants
                    
51     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
Db.php https://gitlab.com/devtoannh/cafe | PHP | 286 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $
                    
21 */
                    
35    /**
                    
36     * Use the PROFILER constant in the config of a Zend_Db_Adapter.
                    
37     */
                    
40    /**
                    
41     * Use the CASE_FOLDING constant in the config of a Zend_Db_Adapter.
                    
42     */
                    
45    /**
                    
46     * Use the FETCH_MODE constant in the config of a Zend_Db_Adapter.
                    
47     */
                    
50    /**
                    
51     * Use the AUTO_QUOTE_IDENTIFIERS constant in the config of a Zend_Db_Adapter.
                    
52     */
                    
                
PCPBlock.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 397 lines
                    
1<?php
                    
2
                    
242          ],
                    
243          'pseudoconstant' => [
                    
244            'optionGroupName' => 'pcp_owner_notify',
                    
                
Action.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 408 lines
                    
1<?php
                    
2/*
                    
41   * Different possible actions are defined here. Keep in sync with the
                    
42   * constant from CRM_Core_Form for various modes.
                    
43   *
                    
72  /**
                    
73   * Map the action names to the relevant constant. We perform
                    
74   * bit manipulation operations so we can perform multiple
                    
                
InitializePasses.h https://gitlab.com/Birhetia/platform_external_llvm | C Header | 313 lines
                    
80void initializeBreakCriticalEdgesPass(PassRegistry&);
                    
81void initializeCallGraphPrinterPass(PassRegistry&);
                    
82void initializeCallGraphViewerPass(PassRegistry&);
                    
92void initializeCFGViewerPass(PassRegistry&);
                    
93void initializeConstantHoistingPass(PassRegistry&);
                    
94void initializeCodeGenPreparePass(PassRegistry&);
                    
94void initializeCodeGenPreparePass(PassRegistry&);
                    
95void initializeConstantMergePass(PassRegistry&);
                    
96void initializeConstantPropagationPass(PassRegistry&);
                    
                
Data.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 478 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 */
                    
46    /**
                    
47     * Minimum advertise price constants
                    
48     */
                    
                
ChartWrapper.html https://gitlab.com/kevinkhill/lavacharts-api | HTML | 342 lines
                    
83    <p>    class
                    
84    <strong>ChartWrapper</strong>        extends <a href="../../../Khill/Lavacharts/Dashboards/Wrapper.html"><abbr title="Khill\Lavacharts\Dashboards\Wrapper">Wrapper</abbr></a>        (<a href="https://github.com/khill/lavacharts/blob/master/src/Dashboards/ChartWrapper.php">View source</a>)
                    
85</p>
                    
90    
                    
91            <h2>Constants</h2>
                    
92
                    
                
Pgsql.php https://gitlab.com/luisrepo/ClienteWS | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
49    /**
                    
50     * Keys are UPPERCASE SQL datatypes or the constants
                    
51     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
GDToolkit.php https://gitlab.com/mohamed_hussein/prodt | PHP | 473 lines
                    
35  /**
                    
36   * Image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG).
                    
37   *
                    
52   * @see \Drupal\system\Plugin\ImageToolkit\GDToolkit::setResource()
                    
53   * @see http://php.net/manual/function.getimagesize.php
                    
54   */
                    
357   * @return int
                    
358   *   The image type represented by a PHP IMAGETYPE_* constant (e.g.
                    
359   *   IMAGETYPE_JPEG).
                    
368   * @param int $type
                    
369   *   The image type represented by a PHP IMAGETYPE_* constant (e.g.
                    
370   *   IMAGETYPE_JPEG).
                    
402      $requirements['version']['severity'] = REQUIREMENT_WARNING;
                    
403      $requirements['version']['description'] = t('The GD Library for PHP is enabled, but was compiled without support for functions used by the rotate and desaturate effects. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See <a href="http://php.net/manual/book.image.php">the PHP manual</a>.');
                    
404    }
                    
                
index.html https://github.com/horde/horde-web.git | HTML | 438 lines
                    
52  <p>You probably know that Horde does webmail. But Horde also provides a framework for building applications. Chuck Hagenbuch will demonstrate a mix of ORM, prototype + script.aculo.us, and mapping APIs that quickly assemble into an application using Horde (call it a mashup if you must). We'll also demonstrate building standalone pages that incorporate content from an existing Horde installation.</p>
                    
53  <p>Chuck Hagenbuch founded the Horde Project in 1998 and has been working with PHP and the world of web development ever since. He is currently an independent consultant, and has provided professional services to high-profile PHP users such as PayPal and Portugal Telecom.</p>
                    
54 </div>
                    
80  <li>Over 60 high quality PHP libraries in PEAR packages</li>
                    
81  <li>PHP4 and PHP5</li>
                    
82  <li>Authentication and Permissions to MIME handling to user preferences to XML transformations</li>
                    
136  <li>... of real-world production web applications</li>
                    
137  <li>Constantly updated, improved, innovated, and refactored</li>
                    
138 </ul>
                    
159 <h1>What if you want something like this?</h1>
                    
160 <p><a target="_blank" href="https://horde.org/papers/nyphpcon-2006-06/" title="Property Tracking Tutorial"><img src="graphics/tracker.png" alt="Property Tracking Tutorial" /></a></p>
                    
161</div>
                    
177 <h1>Why, Continued</h1>
                    
178 <p><em>PHP 5 and the future of Horde</em></p>
                    
179 <ul class="incremental">
                    
                
model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
                    
1<?php
                    
2/**
                    
15    ////////////////////////////////////////////////////////////////////////////////////////
                    
16    // Constants                                                                          //
                    
17    ////////////////////////////////////////////////////////////////////////////////////////
                    
                
Pgsql.php https://bitbucket.org/ksekar/campus.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
49    /**
                    
50     * Keys are UPPERCASE SQL datatypes or the constants
                    
51     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
DynamicRouter.php https://gitlab.com/guillaumev/alkarama | PHP | 387 lines
                    
1<?php
                    
2
                    
161     * @param mixed        $parameters    An array of parameters
                    
162     * @param bool|string  $referenceType The type of reference to be generated (one of the constants in UrlGeneratorInterface)
                    
163     *
                    
                
wp-settings.php https://gitlab.com/gregtyka/wordpress-heroku | PHP | 323 lines
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
21require( ABSPATH . WPINC . '/load.php' );
                    
22require( ABSPATH . WPINC . '/default-constants.php' );
                    
23require( ABSPATH . WPINC . '/version.php' );
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
178
                    
179// Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
                    
180wp_cookie_constants( );
                    
315 *
                    
316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
317 * users not logged in.
                    
                
Oci.php https://bitbucket.org/simukti/zf1.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Oci.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
56    /**
                    
57     * Keys are UPPERCASE SQL datatypes or the constants
                    
58     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
349            /** @see Zend_Db_Adapter_Exception */
                    
350            require_once 'Zend/Db/Adapter/Exception.php';
                    
351            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
356            /** @see Zend_Db_Adapter_Exception */
                    
357            require_once 'Zend/Db/Adapter/Exception.php';
                    
358            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
                    
318
                    
319.class .methods .name, .class .properties .name, .class .constants .name {
                    
320  width: auto;
                    
438
                    
439.php-keyword1 {
                    
440  color: #468847;
                    
443
                    
444.php-keyword2 {
                    
445  font-weight: bold;
                    
447
                    
448.php-var {
                    
449  color: #c09853;
                    
490
                    
491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus {
                    
492  color: #c09853 !important;
                    
                
Pgsql.php https://bitbucket.org/kdms/sh-magento.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 22788 2010-08-03 18:29:55Z ramon $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
49    /**
                    
50     * Keys are UPPERCASE SQL datatypes or the constants
                    
51     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
251             */
                    
252            #require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            #require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
AST.php https://bitbucket.org/jonarano/joneame.git | PHP | 542 lines
                    
1<?php
                    
2/*
                    
33  +---------------------------------------------------------------------------------+
                    
34  | Authors: César Rodas <crodas@php.net>                                           |
                    
35  +---------------------------------------------------------------------------------+
                    
124
                    
125    static function constant($str)
                    
126    {
                    
126    {
                    
127        return array('constant' => $str);
                    
128    }
                    
214        }
                    
215        foreach (array('op_expr', 'expr_cond', 'exec', 'var', 'string', 'number', 'constant') as $type) {
                    
216            if (isset($obj[$type])) {
                    
238        } else if (is_array($obj)) {
                    
239            foreach (array('exec', 'var', 'string', 'number', 'constant') as $type) {
                    
240                if (isset($obj[$type])) {
                    
                
Profiler.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
39    /**
                    
40     * Any general database query that does not fit into the other constants.
                    
41     */
                    
106    /**
                    
107     * Logical OR of any of the filter constants.  NULL if filtering by query
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
108     * type is disable.  If an integer is stored here, it is the logical OR of
                    
109     * any of the query type constants.  When the query ends, if it is not
                    
110     * one of the types specified, it will be unset from the
                    
186     * Sets the types of query profiles to save.  Set $queryType to one of
                    
187     * the Zend_Db_Profiler::* constants to only save profiles for that type of
                    
188     * query.  To save more than one type, logical OR them together.  To
                    
                
readiness-check.js https://gitlab.com/yousafsyed/easternglamor | JavaScript | 362 lines
                    
42            default:
                    
43                $scope.dependencyUrl = 'index.php/dependency-check/component-dependency';
                    
44                if ($localStorage.packages) {
                    
112            'php-version': {
                    
113                url:'index.php/environment/php-version',
                    
114                params: $scope.actionFrom,
                    
130            'php-settings': {
                    
131                url:'index.php/environment/php-settings',
                    
132                params: $scope.actionFrom,
                    
148            'php-extensions': {
                    
149                url:'index.php/environment/php-extensions',
                    
150                params: $scope.actionFrom,
                    
299                    // request type is being changed from POST to GET for select queries. Those queries are:
                    
300                    // (1) PHP Version Check (2) PHP Settings Check and (3) PHP Extensions Check.
                    
301
                    
                
Pgsql.php https://github.com/arturolinares/asandbox.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 22789 2010-08-03 19:01:10Z ramon $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
49    /**
                    
50     * Keys are UPPERCASE SQL datatypes or the constants
                    
51     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
OfflineTest.php https://github.com/Exercise/zf2.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
62 */
                    
63class OfflineTest extends \PHPUnit_Framework_TestCase
                    
64{
                    
85    {
                    
86        $this->_amazon = new Amazon\Amazon(constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID'));
                    
87
                    
98        try {
                    
99            $amazon = new Amazon\Amazon(constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID'), 'oops');
                    
100            $this->fail('Expected Zend_Service_Exception not thrown');
                    
                
GroupRepository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 348 lines
                    
1<?php
                    
2/**
                    
23 *
                    
24 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
25 */
                    
197        } else {
                    
198            // set a default sorting order since this method is used constantly in many
                    
199            // different blocks
                    
312     *
                    
313     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
314     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
                
Yaml.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 381 lines
                    
137
                    
138        $ignoreConstants    = $staticIgnoreConstants = self::ignoreConstants();
                    
139        $allowModifications = false;
                    
184        // Reset original static state of ignore_constants
                    
185        self::setIgnoreConstants($staticIgnoreConstants);
                    
186
                    
361    {
                    
362        foreach (self::_getConstants() as $constant) {
                    
363            if (strstr($value, $constant)) {
                    
363            if (strstr($value, $constant)) {
                    
364                $value = str_replace($constant, constant($constant), $value);
                    
365            }
                    
376    {
                    
377        $constants = array_keys(get_defined_constants());
                    
378        rsort($constants, SORT_STRING);
                    
                
ScopeIndentSniff.php https://gitlab.com/michield/dokuwiki | PHP | 319 lines
                    
15 * @version   CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $
                    
16 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
17 */
                    
24 *
                    
25 * @category  PHP
                    
26 * @package   PHP_CodeSniffer
                    
31 * @version   Release: 1.2.0
                    
32 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
33 */
                    
76     *
                    
77     * @param PHP_CodeSniffer_File $phpcsFile All the tokens found in the document.
                    
78     * @param int                  $stackPtr  The position of the current token
                    
82     */
                    
83    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
84    {
                    
                
mma.vim https://gitlab.com/shinvdu/vim_win_config | Vim Script | 325 lines
                    
5" Source:       http://members.wri.com/layland/vim/syntax/mma.vim
                    
6"               http://vim.sourceforge.net/scripts/script.php?script_id=1273
                    
7" Id:           $Id: mma.vim,v 1.4 2006/04/14 20:40:38 vimboss Exp $
                    
50
                    
51" Predefined Constants:
                    
52"   to list all predefined Symbols would be too insane...
                    
59
                    
60" mathematical constants:
                    
61syntax keyword mmaVariable Pi I E Infinity ComplexInfinity Indeterminate GoldenRatio EulerGamma Degree Catalan Khinchin Glaisher 
                    
82" function attributes
                    
83syntax keyword mmaVariable Protected Listable OneIdentity Orderless Flat Constant NumericFunction Locked ReadProtected HoldFirst HoldRest HoldAll HoldAllComplete SequenceHold NHoldFirst NHoldRest NHoldAll Temporary Stub 
                    
84
                    
                
assignment_expression.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 314 lines
                    
20#include "hphp/compiler/analysis/code_error.h"
                    
21#include "hphp/compiler/expression/constant_expression.h"
                    
22#include "hphp/compiler/expression/simple_variable.h"
                    
24#include "hphp/compiler/analysis/variable_table.h"
                    
25#include "hphp/compiler/analysis/constant_table.h"
                    
26#include "hphp/compiler/analysis/file_scope.h"
                    
27#include "hphp/compiler/expression/unary_op_expression.h"
                    
28#include "hphp/parser/hphp.tab.hpp"
                    
29#include "hphp/compiler/code_model_enums.h"
                    
31#include "hphp/compiler/analysis/class_scope.h"
                    
32#include "hphp/compiler/analysis/function_scope.h"
                    
33#include "hphp/compiler/expression/scalar_expression.h"
                    
130      ConstantExpressionPtr exp =
                    
131        dynamic_pointer_cast<ConstantExpression>(m_variable);
                    
132      if (!m_value->isScalar()) {
                    
                
font_metrics.cls.php https://gitlab.com/Ofcadavidm/RentCarApp | PHP | 363 lines
                    
1<?php
                    
2/**
                    
10
                    
11require_once DOMPDF_LIB_DIR . "/class.pdf.php";
                    
12
                    
18 * with Font_Metrics::save_font_families().
                    
19 * This is typically done only from command line with load_font.php on converting
                    
20 * ttf fonts to ufm with php-font-lib.
                    
21 *
                    
22 * Declared here because PHP5 prevents constants from being declared with expressions
                    
23 */
                    
23 */
                    
24define('__DOMPDF_FONT_CACHE_FILE', DOMPDF_FONT_DIR . "dompdf_font_family_cache.php");
                    
25
                    
52   *
                    
53   * Usually cached by the {@link load_font.php} script
                    
54   *
                    
                
preclass-emitter.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 304 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
25#include "hphp/runtime/vm/func-emitter.h"
                    
26#include "hphp/runtime/vm/repo-helpers.h"
                    
27
                    
29
                    
30namespace HPHP {
                    
31///////////////////////////////////////////////////////////////////////////////
                    
112          const bool typeconst)
                    
113      : m_name(n), m_typeConstraint(typeConstraint), m_phpCode(phpCode),
                    
114        m_typeconst(typeconst) {
                    
126    const folly::Optional<TypedValue>& valOption() const { return m_val; }
                    
127    const StringData* phpCode() const { return m_phpCode; }
                    
128    bool isAbstract()       const { return !m_val.hasValue(); }
                    
                
RelativeLayoutRuleTest.java https://gitlab.com/Codeaurora/platform_sdk | Java | 166 lines
                    
7 *
                    
8 *      http://www.eclipse.org/org/documents/epl-v10.php
                    
9 *
                    
18
                    
19import static com.android.ide.common.layout.LayoutConstants.ANDROID_URI;
                    
20
                    
                
functions.php https://gitlab.com/alexandresgv/siteentec | PHP | 226 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
23     * @return mixed Translated string.
                    
24     * @link http://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__
                    
25     */
                    
47     * @return mixed Plural form of translated string.
                    
48     * @link http://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__n
                    
49     */
                    
72     * @return string|null Translated string.
                    
73     * @link http://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__d
                    
74     */
                    
                
l10n.php https://github.com/holsinger/openfloor.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
14 *
                    
15 * If the locale is not set already, then the WPLANG constant is used if it is
                    
16 * defined. Then it is filtered through the 'locale' filter hook and the value
                    
280 *
                    
281 * Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The
                    
282 * translated (.mo) file is named based off of the locale.
                    
                
OnlineTest.php https://github.com/tanduy/zf.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Service/Amazon.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Service/Amazon/Query.php';
                    
37
                    
40 */
                    
41require_once 'Zend/Http/Client/Adapter/Socket.php';
                    
42
                    
51 */
                    
52class Zend_Service_Amazon_OnlineTest extends PHPUnit_Framework_TestCase
                    
53{
                    
                
README.md https://gitlab.com/jjpa2018/dashboard | Markdown | 410 lines
                    
16    <a href="https://scrutinizer-ci.com/g/antonioribeiro/google2fa/?branch=master"><img alt="Coverage" src="https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/google2fa.svg?style=flat-square"></a>
                    
17    <a href="https://travis-ci.org/antonioribeiro/google2fa"><img alt="PHP" src="https://img.shields.io/badge/PHP-7.1%20--%208.0-brightgreen.svg?style=flat-square"></a>
                    
18</p>
                    
24  - [Version Compatibility](#version-compatibility)
                    
25  - [Google Two-Factor Authentication for PHP Package](#google-two-factor-authentication-for-php-package)
                    
26  - [Laravel bridge](#laravel-bridge)
                    
137
                    
138```php
                    
139$secret = $request->input('secret');
                    
212```php
                    
213<?php
                    
214
                    
383
                    
384The package tests were written with [PHPUnit](https://phpunit.de/). There are some Composer scripts to help you run tests and analysis:
                    
385
                    
                
class.pop3.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 397 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPMailer POP-Before-SMTP Authentication Class.
                    
4 * PHP Version 5
                    
5 * @package PHPMailer
                    
6 * @link https://github.com/PHPMailer/PHPMailer/
                    
7 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
                    
20/**
                    
21 * PHPMailer POP-Before-SMTP Authentication Class.
                    
22 * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication.
                    
23 * Does not support APOP.
                    
24 * @package PHPMailer
                    
25 * @author Richard Davey (original author) <rich@corephp.co.uk>
                    
25 * @author Richard Davey (original author) <rich@corephp.co.uk>
                    
26 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
                    
27 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
                    
                
sysvmsg.c https://gitlab.com/0072016/appengine-php | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2013 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
132	le_sysvmsg = zend_register_list_destructors_ex(sysvmsg_release, NULL, "sysvmsg queue", module_number);
                    
133	REGISTER_LONG_CONSTANT("MSG_IPC_NOWAIT", PHP_MSG_IPC_NOWAIT, CONST_PERSISTENT|CONST_CS);
                    
134	REGISTER_LONG_CONSTANT("MSG_EAGAIN",	 EAGAIN, 	     CONST_PERSISTENT|CONST_CS);
                    
135	REGISTER_LONG_CONSTANT("MSG_ENOMSG",	 ENOMSG, 	     CONST_PERSISTENT|CONST_CS);
                    
136	REGISTER_LONG_CONSTANT("MSG_NOERROR",    PHP_MSG_NOERROR,    CONST_PERSISTENT|CONST_CS);
                    
137	REGISTER_LONG_CONSTANT("MSG_EXCEPT",     PHP_MSG_EXCEPT,     CONST_PERSISTENT|CONST_CS);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Oci.php https://bitbucket.org/ksekar/campus.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Oci.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
56    /**
                    
57     * Keys are UPPERCASE SQL datatypes or the constants
                    
58     * Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
                    
349            /** @see Zend_Db_Adapter_Exception */
                    
350            require_once 'Zend/Db/Adapter/Exception.php';
                    
351            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
356            /** @see Zend_Db_Adapter_Exception */
                    
357            require_once 'Zend/Db/Adapter/Exception.php';
                    
358            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
 

Source

Language