PageRenderTime 895ms queryTime 105ms sortTime 257ms getByIdsTime 205ms findMatchingLines 114ms

100+ results results for 'php constant repo:pyneff/carsharing' (895 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;
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
1<?php
                    
2
                    
13	/**********************************************************************
                    
14	*  ezSQL Constants
                    
15	*/
                    
                
ImageMagick.php https://gitlab.com/crazybutterfly815/magento2 | 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        }
                    
                
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',
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
223	 *
                    
224	 * @uses BuddyPress::constants() Setup legacy constants
                    
225	 * @uses BuddyPress::setup_globals() Setup globals needed
                    
229	public function __construct() {
                    
230		$this->constants();
                    
231		$this->setup_globals();
                    
236	/**
                    
237	 * Legacy BuddyPress constants
                    
238	 *
                    
249	 */
                    
250	private function constants() {
                    
251
                    
415			require( $this->plugin_dir . 'bp-core/bp-core-actions.php'    );
                    
416			require( $this->plugin_dir . 'bp-core/bp-core-caps.php'       );
                    
417			require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
                    
                
ContributionPage.php https://github.com/szantog/panparks.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://github.com/psycha/symfony-sandbox.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        );
                    
                
Mime.php https://gitlab.com/staging06/myproject | 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   */
                    
                
PropertyPathTest.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 557 lines
                    
1<?php
                    
2
                    
17
                    
18class PropertyPathTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
200     */
                    
201    public function testGetValueReadsMagicGetThatReturnsConstant()
                    
202    {
                    
                
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 )" );
                    
                
Value.php https://github.com/hukumonline/zfurl.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
                    
                
Value.php https://github.com/doctoralex/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
                    
                
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     */

                    
                
language.oop5.interfaces.html https://bitbucket.org/thncr/manuals.git | HTML | 100 lines
                    
11 <div class="up"><a href="language.oop5.html">类与对象</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="language.oop5.interfaces" class="sect1">
                    
40  </div>
                    
41  <div class="sect2" id="language.oop5.interfaces.constants">
                    
42   <h3 class="title"><em>常量</em></h3>
                    
43   <p class="para"> 
                    
44    接口中也可以定义常量。接口常量和<a href="language.oop5.constants.html" class="link">类常量</a>的使用完全相同。
                    
45    它们都是定值,不能被子类或子接口修改。
                    
52     <div class="example-contents">
                    
53<div class="phpcode"><code><span style="color: #000000">
                    
54<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">//&nbsp;声明一个'iTemplate'接口<br /></span><span style="color: #007700">interface&nbsp;</span><span style="color: #0000BB">iTemplate<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">setVariable</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">getHtml</span><span style="color: #007700">(</span><span style="color: #0000BB">$template</span><span style="color: #007700">);<br />}<br /><br /><br /></span><span style="color: #FF8000">//&nbsp;实现接口<br />//&nbsp;下面的写法是正确的<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">Template&nbsp;</span><span style="color: #007700">implements&nbsp;</span><span style="color: #0000BB">iTemplate<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">$vars&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">setVariable</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">vars</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">getHtml</span><span style="color: #007700">(</span><span style="color: #0000BB">$template</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">vars&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$name&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$template&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'{'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$name&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'}'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$template</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$template</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;下面的写法是错误的,会报错:<br />//&nbsp;Fatal&nbsp;error:&nbsp;Class&nbsp;BadTemplate&nbsp;contains&nbsp;1&nbsp;abstract&nbsp;methods<br />//&nbsp;and&nbsp;must&nbsp;therefore&nbsp;be&nbsp;declared&nbsp;abstract&nbsp;(iTemplate::getHtml)<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">BadTemplate&nbsp;</span><span style="color: #007700">implements&nbsp;</span><span style="color: #0000BB">iTemplate<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">$vars&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">setVariable</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">vars</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">$var</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
                    
83<div class="phpcode"><code><span style="color: #000000">
                    
84<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">interface&nbsp;</span><span style="color: #0000BB">a<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;</span><span style="color: #0000BB">b&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'Interface&nbsp;constant'</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;输出接口常量<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">a</span><span style="color: #007700">::</span><span style="color: #0000BB">b</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;错误写法,因为常量的值不能被修改。接口常量的概念和类常量是一样的。<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">b&nbsp;</span><span style="color: #007700">implements&nbsp;</span><span style="color: #0000BB">a<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;</span><span style="color: #0000BB">b&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'Class&nbsp;constant'</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
                    
85</span>
                    
                
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		}
                    
                
CopyRenameTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 364 lines
                    
1<?php
                    
2/**
                    
94    {
                    
95        if (!constant('TESTS_ZEND_LDAP_ONLINE_ENABLED')) {
                    
96            return;
                    
                
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/advancedtomato2 | 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
                    
                
OLE.php https://bitbucket.org/blackriver/openx.git | PHP | 410 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.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          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
ListCommand.php https://gitlab.com/Sigpot/AirSpot | 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
                    
                
ext_imagick.cpp https://github.com/tstarling/hiphop-php.git | C++ | 359 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          |
                    
33HPHP::Class* ImagickDrawException::cls = nullptr;
                    
34HPHP::Class* ImagickPixelException::cls = nullptr;
                    
35HPHP::Class* ImagickPixelIteratorException::cls = nullptr;
                    
223void raiseDeprecated(const char* className, const char* methodName) {
                    
224  raise_message(ErrorConstants::ErrorModes::PHP_DEPRECATED,
                    
225                "%s::%s method is deprecated and it's use should be avoided",
                    
232                     const char* newMethod) {
                    
233  raise_message(ErrorConstants::ErrorModes::PHP_DEPRECATED,
                    
234                "%s::%s is deprecated. %s::%s should be used instead",
                    
334void ImagickExtension::threadInit() {
                    
335  IniSetting::Bind(this, IniSetting::PHP_INI_ALL,
                    
336                   "imagick.locale_fix", "0",
                    
                
bcm_umi_nand.c https://github.com/ab3416/linux-2.6.git | C | 579 lines
                    
6* under the terms of the GNU General Public License version 2, available at
                    
7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
                    
8*
                    
50/* ---- Public Variables ------------------------------------------------- */
                    
51/* ---- Private Constants and Types -------------------------------------- */
                    
52static const __devinitconst char gBanner[] = KERN_INFO \
                    
                
Module.php https://bitbucket.org/mrblackus/micro-muffin.git | PHP | 383 lines
                    
1<?php
                    
2
                    
31    /**
                    
32     * Compiles the node to PHP.
                    
33     *
                    
49        {
                    
50            $compiler->write('<?php');
                    
51        }
                    
54
                    
55        if (count($this->getNode('blocks')) || count($this->getNode('traits')) || null === $this->getNode('parent') || $this->getNode('parent') instanceof Twig_Node_Expression_Constant)
                    
56        {
                    
92
                    
93        if ($this->getNode('parent') instanceof Twig_Node_Expression_Constant)
                    
94        {
                    
116        {
                    
117            if ($this->getNode('parent') instanceof Twig_Node_Expression_Constant)
                    
118            {
                    
                
parameter_expression.cpp https://github.com/kevlund/hiphop-php.git | C++ | 309 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   +----------------------------------------------------------------------+
                    
24#include <compiler/option.h>
                    
25#include <compiler/expression/constant_expression.h>
                    
26
                    
                
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';
                    
                
otb.c https://bitbucket.org/ardalanaz/dava.framework.git | C | 387 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
243  entry->adjoin=MagickFalse;
                    
244  entry->description=ConstantString("On-the-air bitmap");
                    
245  entry->module=ConstantString("OTB");
                    
                
avs.c https://github.com/trevor/ImageMagick.git | C | 408 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
260  entry->encoder=(EncodeImageHandler *) WriteAVSImage;
                    
261  entry->description=ConstantString("AVS X image");
                    
262  entry->module=ConstantString("AVS");
                    
                
sysvmsg.c https://bitbucket.org/luobailiang/php-src.git | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2012 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
                    
                
DeletionHandler.java https://github.com/CyanogenMod/android_sdk.git | Java | 267 lines
                    
7 *
                    
8 *      http://www.eclipse.org/org/documents/epl-v10.php
                    
9 *
                    
17
                    
18import static com.android.SdkConstants.ANDROID_URI;
                    
19import static com.android.SdkConstants.ATTR_ID;
                    
19import static com.android.SdkConstants.ATTR_ID;
                    
20import static com.android.SdkConstants.ATTR_LAYOUT_MARGIN;
                    
21import static com.android.SdkConstants.ATTR_LAYOUT_RESOURCE_PREFIX;
                    
21import static com.android.SdkConstants.ATTR_LAYOUT_RESOURCE_PREFIX;
                    
22import static com.android.SdkConstants.ID_PREFIX;
                    
23import static com.android.SdkConstants.NEW_ID_PREFIX;
                    
27
                    
28import com.android.SdkConstants;
                    
29import com.android.annotations.NonNull;
                    
                
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,
                    
                
include_require_php.ml https://github.com/Tener/pfff.git | OCaml | 458 lines
                    
49   (* e.g. require BASEPATH .'/lib/init/ajax.php'; *)
                    
50   | ConcatConstant of Ast_php.name * Common.filename
                    
51   (* e.g. require $_SERVER['PHP_ROOT'].'/lib/init/ajax.php'; *)
                    
143
                    
144  (* ./ffi -dump_php_ml ../tests/require_realpath.php *)
                    
145  | (Binary(
                    
196
                    
197  (* ./ffi -dump_php_ml ../tests/require_realpath3.php *)
                    
198  | (Lv(
                    
224
                    
225  (* ./ffi -dump_php_ml ../tests/require_constant_concat.php *)
                    
226  | (Binary((Sc(C(CName(name))), t_3),
                    
232
                    
233  (* ./ffi -dump_php_ml ../tests/require_classic_bis2.php *)
                    
234  | (Sc(
                    
                
CloneCommand.java https://bitbucket.org/cofarrell/jgit.git | Java | 431 lines
                    
92
                    
93	private String branch = Constants.HEAD;
                    
94
                    
140		if (directory == null)
                    
141			directory = new File(u.getHumanishName(), Constants.DOT_GIT);
                    
142		if (directory.exists() && directory.listFiles().length != 0)
                    
156
                    
157		final String dst = (bare ? Constants.R_HEADS : Constants.R_REMOTES
                    
158				+ config.getName() + "/") + "*"; //$NON-NLS-1$//$NON-NLS-2$
                    
259	private Ref findBranchToCheckout(FetchResult result) {
                    
260		final Ref idHEAD = result.getAdvertisedRef(Constants.HEAD);
                    
261		if (idHEAD == null)
                    
263
                    
264		Ref master = result.getAdvertisedRef(Constants.R_HEADS
                    
265				+ Constants.MASTER);
                    
                
simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
                    
7     */
                    
12    if (version_compare(phpversion(), '5') >= 0) {
                    
13        require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
14    } else {
                    
14    } else {
                    
15        require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
16    }
                    
39         *    because the class is an abstract case that should
                    
40         *    not be run. Once PHP4 is dropped this will disappear
                    
41         *    as a public method and "abstract" will rule.
                    
186        /**
                    
187         *    Constant default values.
                    
188         *    @return hash       All registry defaults.
                    
                
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")
                    
                
wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | 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.
                    
                
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"
                    
                
EPhotoValidator.php https://github.com/LosYear/FluentCMS.git | PHP | 284 lines
                    
1<?php
                    
2Yii::import('application.modules.user.UserModule');
                    
178		 * image. 
                    
179		 * Index 2 is one of the IMAGETYPE_XXX constants indicating the type of 
                    
180		 * the image. 
                    
                
lang.no.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 255 lines
                    
1<?php
                    
2//include_once("constants.php");
                    
3
                    
                
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');
                    
                
Profiler.php https://github.com/kervin/kyzstudio.git | 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
                    
                
Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
                    
1<?php
                    
2class Storage_Filesystem implements Storage_Interface
                    
55        $this->_baseDir = rtrim($this->_baseDir, '/'). '/';
                    
56        $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false);
                    
57        $this->_fileStat = new Storage_Filesystem_FileStat();
                    
165            //initialize windows's FileSystemObject
                    
166            /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */
                    
167            $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8);
                    
176            //see Scripting.FileSystemObject on http://msdn.microsoft.com
                    
177            /** @noinspection PhpUndefinedMethodInspection */
                    
178            $folder = $fso->GetFolder($curDir);
                    
                
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 *
                    
                
SemanticTasks.classes.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 439 lines
                    
1<?php
                    
2
                    
12
                    
13// constants for message type
                    
14define( "NEWTASK", 0 );
                    
312		$nta = explode( "\n", $wgContLang->segmentForDiff( $ntext ) );
                    
313		// We use here the php diff engine included in MediaWiki
                    
314		$diffs = new Diff( $ota, $nta );
                    
336		global $smwgIP;
                    
337		include_once( $smwgIP . "/includes/SMW_QueryProcessor.php" );
                    
338
                    
                
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    }
                    
                
Token.php https://bitbucket.org/mrblackus/micro-muffin.git | PHP | 221 lines
                    
1<?php
                    
2
                    
120    /**
                    
121     * Returns the constant representation (internal) of a given type.
                    
122     *
                    
                
FCDAnimationCurve.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 323 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
40	There are multiple interpolation mechanisms supported by COLLADA.
                    
41	FCollada supports the CONSTANT, LINEAR and BEZIER interpolations.
                    
42
                    
                
Pgsql.php https://github.com/kervin/kyzstudio.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");
                    
                
PaymentProcessor.php https://github.com/michaelmcandrew/th.git | PHP | 349 lines
                    
1<?php
                    
2
                    
32 * @copyright CiviCRM LLC (c) 2004-2011
                    
33 * $Id: PaymentProcessor.php 9702 2007-05-29 23:57:16Z lobo $
                    
34 *
                    
36
                    
37require_once 'CRM/Admin/Form.php';
                    
38
                    
72        $this->assign( 'ppType', $this->_ppType );
                    
73        require_once 'CRM/Core/DAO/PaymentProcessorType.php';
                    
74        $this->_ppDAO = new CRM_Core_DAO_PaymentProcessorType( );
                    
162
                    
163        $types = CRM_Core_PseudoConstant::paymentProcessorType( );
                    
164        $this->add( 'select', 'payment_processor_type', ts( 'Payment Processor Type' ), $types, true,
                    
                
topic.php https://github.com/mkfmn/cake-forum.git | PHP | 467 lines
                    
1<?php
                    
2/** 
                    
6 * @copyright	Copyright 2006-2010, Miles Johnson, Inc.
                    
7 * @license		http://opensource.org/licenses/mit-license.php - Licensed under The MIT License
                    
8 * @link		http://milesj.me/resources/script/forum-plugin
                    
13	/**
                    
14	 * Type constants.
                    
15	 */
                    
                
dba.requirements.html https://bitbucket.org/thncr/manuals.git | HTML | 167 lines
                    
97       Cdb is &quot;a fast, reliable, lightweight package for creating and
                    
98       reading constant databases.&quot; It is from the author of qmail and
                    
99       can be found at <a href="http://cr.yp.to/cdb.html" class="link external">&raquo;&nbsp;http://cr.yp.to/cdb.html</a>. Since it is
                    
99       can be found at <a href="http://cr.yp.to/cdb.html" class="link external">&raquo;&nbsp;http://cr.yp.to/cdb.html</a>. Since it is
                    
100       constant, we support only reading operations. And since PHP 4.3.0
                    
101       we support writing (not updating) through the internal cdb library.
                    
117      <td>
                    
118       This is available since PHP 4.3.0 for compatibility with the deprecated
                    
119       <em>dbm</em> extension only and should be avoided. 
                    
128      <td>
                    
129       This is available since PHP 4.3.3 to be able to modify php.ini files 
                    
130       from within PHP scripts. When working with ini files you can pass arrays 
                    
159   available list of handlers is displayed by invoking
                    
160    <span class="function"><a href="function.phpinfo.html" class="function">phpinfo()</a></span> or  <span class="function"><a href="function.dba-handlers.html" class="function">dba_handlers()</a></span>.
                    
161  </p>
                    
                
gd.php https://bitbucket.org/seyar/kinda.local.git | PHP | 582 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
2/**
                    
3 * Support for image manipulation using [GD](http://php.net/GD).
                    
4 *
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license.html
                    
10 */
                    
31		{
                    
32			// Get the version via a constant, available in PHP 5.
                    
33			Image_GD::$_bundled = GD_BUNDLED;
                    
45		{
                    
46			// Get the version via a constant, available in PHP 5.2.4+
                    
47			$version = GD_VERSION;
                    
522	 * @param   integer  image quality
                    
523	 * @return  array    save function, IMAGETYPE_* constant
                    
524	 * @throws  Kohana_Exception
                    
                
RestServer.php https://github.com/mx504/Provisioner.git | PHP | 537 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////
                    
26/**
                    
27 * Constants used in RestServer Class.
                    
28 */
                    
382	{
                    
383		$data = file_get_contents('php://input');
                    
384		if ($this->format == RestFormat::AMF) {
                    
384		if ($this->format == RestFormat::AMF) {
                    
385			require_once 'Zend/Amf/Parse/InputStream.php';
                    
386			require_once 'Zend/Amf/Parse/Amf3/Deserializer.php';
                    
404		if ($this->format == RestFormat::AMF) {
                    
405			require_once 'Zend/Amf/Parse/OutputStream.php';
                    
406			require_once 'Zend/Amf/Parse/Amf3/Serializer.php';
                    
                
docs.html https://github.com/conzi/lessphp.git | HTML | 347 lines
                    
7	<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
                    
8	<link rel="alternate" type="application/rss+xml" title="lessphp changelog feed" href="http://leafo.net/lessphp/feed/" /> 
                    
9	<title>Documentation - lessphp</title>
                    
39	<h2>Getting Started</h2>
                    
40	<p>Download the latest version of <strong>lessphp</strong> <a href="http://leafo.net/lessphp/">here</a>.</p>
                    
41	<p>You can also find the latest development version in the <a href="http://github.com/leafo/lessphp">git repository</a>.</p>
                    
53
                    
54		<p>It is important to realize that a block's state does not change over time. When a block is defined, all of its properties are constant. The best way to demonstrate this is to look at the following LESS snippet:</p>
                    
55
                    
239	<h2>Miscellaneous</h2>
                    
240	<p>As mentioned before, all properties hold constant data. This includes abstract values. While it may be convenient to 
                    
241	think of them as variables, they don't have the ability to vary. For convenience, some tricks were implemented to
                    
340	<p class="foot">
                    
341		<a href="http://leafo.net/lessphp/">http://leafo.net/lessphp</a> - Last updated March 9th 2010</p>
                    
342
                    
                
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
                    
                
date.php https://bitbucket.org/kawadatetsuya/twilio.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
                    
                
class_statement.h https://github.com/F4m3uS/hiphop-php.git | C Header | 172 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   +----------------------------------------------------------------------+
                    
23
                    
24namespace HPHP {
                    
25namespace Eval {
                    
                
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://bitbucket.org/Dal-Papa/is-340-publish-base.git | 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
                    
                
SoftwareRenderer.js https://bitbucket.org/krris/3d-bin-packing.git | JavaScript | 590 lines
                    
275		// https://gist.github.com/2486101
                    
276		// explanation: http://pouet.net/topic.php?which=8760&page=1
                    
277
                    
320
                    
321		// Constant part of half-edge functions
                    
322
                    
                
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	 *
                    
                
Data.php https://bitbucket.org/sevenly/magento-ce.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     */
                    
                
AdWordsUser.php https://github.com/markvince/CakePHP-GAStats-Plugin.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
29 */
                    
30require_once dirname(__FILE__) . '/../../Common/Lib/AdsUser.php';
                    
31require_once dirname(__FILE__) . '/../../Common/Util/ApiPropertiesUtils.php';
                    
32require_once 'AdWordsSoapClientFactory.php';
                    
33require_once 'AdWordsConstants.php';
                    
34
                    
                
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;
                    
                
Pgsql.php https://github.com/grjones/qframe.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");
                    
                
scalar_expression.cpp https://bitbucket.org/gnanakeethan/hiphop-php.git | C++ | 526 lines
                    
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   |
                    
17#include "hphp/compiler/expression/scalar_expression.h"
                    
18#include "hphp/util/parser/hphp.tab.hpp"
                    
19#include "hphp/util/util.h"
                    
22#include "hphp/compiler/analysis/variable_table.h"
                    
23#include "hphp/compiler/analysis/constant_table.h"
                    
24#include "hphp/compiler/statement/statement_list.h"
                    
25#include "hphp/compiler/analysis/function_scope.h"
                    
26#include "hphp/compiler/analysis/class_scope.h"
                    
27#include "hphp/compiler/parser/parser.h"
                    
27#include "hphp/compiler/parser/parser.h"
                    
28#include "hphp/util/hash.h"
                    
29#include "hphp/runtime/base/string_data.h"
                    
                
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
                    
                
PathCheckoutCommandTest.java https://bitbucket.org/cofarrell/jgit.git | Java | 309 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
55import org.eclipse.jgit.junit.RepositoryTestCase;
                    
56import org.eclipse.jgit.lib.ConfigConstants;
                    
57import org.eclipse.jgit.lib.ObjectReader;
                    
211		StoredConfig config = git.getRepository().getConfig();
                    
212		config.setBoolean(ConfigConstants.CONFIG_CORE_SECTION, null,
                    
213				ConfigConstants.CONFIG_KEY_AUTOCRLF, true);
                    
                
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        }
                    
                
ResetCommand.java https://bitbucket.org/albfan/jgit.git | Java | 357 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
57import org.eclipse.jgit.dircache.DirCacheIterator;
                    
58import org.eclipse.jgit.lib.Constants;
                    
59import org.eclipse.jgit.lib.FileMode;
                    
114
                    
115	private String ref = Constants.HEAD;
                    
116
                    
180				setCallable(false);
                    
181				return repo.getRef(Constants.HEAD);
                    
182			}
                    
184			// write the ref
                    
185			final RefUpdate ru = repo.updateRef(Constants.HEAD);
                    
186			ru.setNewObjectId(commitId);
                    
                
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
                    
                
Profiler.php https://github.com/StefanRHRO/SCRM.git | 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
                    
                
BaselineGCMapIterator.java https://github.com/joekoolade/JEI.git | Java | 269 lines
                    
7 *
                    
8 *      http://www.opensource.org/licenses/eclipse-1.0.php
                    
9 *
                    
14
                    
15import static org.jikesrvm.ppc.BaselineConstants.FIRST_FIXED_LOCAL_REGISTER;
                    
16import static org.jikesrvm.ppc.BaselineConstants.FIRST_FLOAT_LOCAL_REGISTER;
                    
16import static org.jikesrvm.ppc.BaselineConstants.FIRST_FLOAT_LOCAL_REGISTER;
                    
17import static org.jikesrvm.ppc.RegisterConstants.FIRST_VOLATILE_FPR;
                    
18import static org.jikesrvm.ppc.RegisterConstants.FIRST_VOLATILE_GPR;
                    
18import static org.jikesrvm.ppc.RegisterConstants.FIRST_VOLATILE_GPR;
                    
19import static org.jikesrvm.ppc.RegisterConstants.LAST_NONVOLATILE_FPR;
                    
20import static org.jikesrvm.ppc.RegisterConstants.LAST_NONVOLATILE_GPR;
                    
20import static org.jikesrvm.ppc.RegisterConstants.LAST_NONVOLATILE_GPR;
                    
21import static org.jikesrvm.runtime.JavaSizeConstants.BYTES_IN_DOUBLE;
                    
22import static org.jikesrvm.runtime.JavaSizeConstants.LOG_BYTES_IN_DOUBLE;
                    
                
db_wp-includes_ms-deprecated.html https://github.com/benatkin/wp-docblox-docs.git | HTML | 517 lines
                    
44
                    
45        $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').css('cursor', 'pointer');
                    
46
                    
46
                    
47        $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').click(function() {
                    
48            $(this).parent().nextAll('div.code-tabs').slideToggle();
                    
71      
                    
72    </script><h1 class="file">wp-includes/ms-deprecated.php</h1>
                    
73<div class="file-nav">
                    
                
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     */
                    
                
Pgsql.php https://github.com/Doap/iCms---intelligent-Content-management-system.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 */
                    
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");
                    
                
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             */
                    
                
NullTest.php https://github.com/mfairchild365/zf2.git | PHP | 329 lines
                    
1<?php
                    
2/**
                    
33 */
                    
34class NullTest extends \PHPUnit_Framework_TestCase
                    
35{
                    
170     */
                    
171    public function testArrayConstantNotation()
                    
172    {
                    
222     */
                    
223    public function testMultiConstantNotation()
                    
224    {
                    
                
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");
                    
                
Yaml.php https://github.com/kervin/kyzstudio.git | PHP | 382 lines
                    
137
                    
138        $ignoreConstants    = $staticIgnoreConstants = self::ignoreConstants();
                    
139        $allowModifications = false;
                    
184        // Reset original static state of ignore_constants
                    
185        self::setIgnoreConstants($staticIgnoreConstants);
                    
186
                    
362    {
                    
363        foreach (self::_getConstants() as $constant) {
                    
364            if (strstr($value, $constant)) {
                    
364            if (strstr($value, $constant)) {
                    
365                $value = str_replace($constant, constant($constant), $value);
                    
366            }
                    
377    {
                    
378        $constants = array_keys(get_defined_constants());
                    
379        rsort($constants, SORT_STRING);
                    
                
Pgsql.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | 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");
                    
                
Pgsql.php https://github.com/StefanRHRO/SCRM.git | 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");
                    
                
 

Source

Language