100+ results for 'php pi'

Not the results you expected?

Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines

1 <?php

2

3 /*

34

35 // Required classes

36 require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';

37

38 /**

InstallSchema.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

18 /**

19 * {@inheritdoc}

20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

21 */

22 public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)

AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines

1 <?php

2 /* This class is part of the XP framework

3 *

faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines

99 This draft incorporates material from the Interactive FAQ section

100 of the <ulink url=

101 "http://community.jedit.org/modules.php?op=modload&amp;name=faq&amp;file=index"

102 >jEdit Community web site</ulink>.

103 </releaseinfo>

Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines

1 <?php

2 /**

3 * Zend Framework

Location.js (https://github.com/fastner/qooxdoo.git) JavaScript · 406 lines

10 License:

11 LGPL: http://www.gnu.org/licenses/lgpl.html

12 EPL: http://www.eclipse.org/org/documents/epl-v10.php

13 See the LICENSE file in the project's top-level directory for details.

14

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines

1 <?php

2 class SiteMailer

3 {

51

52 $this->headers .= "MIME-Version: 1.0\r\n";

53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";

54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

55 }

89 /*if ($this->attachment != '')

90 {

91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

92 $this->msgBody .= $this->attachment;

93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

155

156 private function sendActivationToCustomer($property) {

157 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";

158 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";

159 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/

AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines

1 <?php

2

3 /*

21 use Symfony\Component\Security\Acl\Voter\AclVoter;

22

23 class AclVoterTest extends \PHPUnit_Framework_TestCase

24 {

25 /**

class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines

1 <?php

2 /**

3 * ClusterPress User Relationships.

zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines

1 <?php

2 class ControllerLocalisationZone extends Controller {

3 private $error = array();

orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines

1 <?php

2 namespace Bitrix\Sale\Exchange\OneC;

3

IPL 3 Origins.md (https://github.com/forkwikiman/enha.git) Markdown · 2034 lines

65 5.2.5 결승

66

67 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit&secti

68 on=1)]

69

82 더블 엘리미네이션이 아닌 싱글 엘리미네이션이라 3~4위, 5~8위 상금 통합

83

84 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit&secti

85 on=2)]

86

95 선수들은 어디까지나 메인 토너먼트 참가자들만 기재한다.

96

97 [[edit](http://rigvedawiki.net/r1/wiki.php/IPL%203%20Origins?action=edit&secti

98 on=3)]

99

Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines

1 <?php

2

3 /**

13 * limitations under the License.

14 *

15 * PHP version 5

16 *

17 * @category Microsoft

18 * @package WindowsAzure\Common\Internal\Atom

19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>

20 * @copyright 2012 Microsoft Corporation

21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0

33 * @category Microsoft

34 * @package WindowsAzure\Common\Internal\Atom

35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>

36 * @copyright 2012 Microsoft Corporation

37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0

sfValidatorBaseTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 246 lines

1 <?php

2

3 /*

9 */

10

11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');

12

13 $t = new lime_test(47);

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

127 $_POST['_per_page'] = 100;

128 $_POST['_page'] = 1;

129 $_POST['_url'] = admin_url( 'edit-comments.php' );

130

131 // Make the request

sfValidatorDateTest.php (https://github.com/bheneka/gitta.git) PHP · 246 lines

1 <?php

2

3 /*

9 */

10

11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');

12

13 $t = new lime_test(52);

modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines

1 <?php

2 // Prevent file from being loaded directly

3 if ( ! defined( 'ABSPATH' ) ) {

migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

length_class.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 412 lines

1 <?php

2 class ControllerLocalisationLengthClass extends Controller {

3 private $error = array();

ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines

1 <?hh

2 // @generated by docskel.php

3

4 /**

61 * library.

62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the

63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE

64 * results in a standard zlib deflated string (inclusive zlib headers)

65 * after a gzip file header but without the trailing crc32 checksum. In

66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant

67 * output, consisting of a zlib header, the deflated data, and an Adler

68 * checksum.

NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines

1 <?php

2

3 namespace Gedmo\Tree;

14 * @package Gedmo.Tree

15 * @link http://www.gediminasm.org

16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

17 */

18 class NestedTreeRootTest extends BaseTestCaseORM

37 $took = microtime(true) - $start;

38 $minutes = intval($took / 60); $seconds = $took % 60;

39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;

40 };

41 $repo = $this->em->getRepository(self::CATEGORY);

Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.9, 2013-06-02

34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines

38

39 ?>

40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>

41

42

96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">

97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>

98 </div>

99 <!-- <div class="finance_input float_left" style="width: 170px;">-->

116 <?php foreach($invoice->invoices as $file) { ?>

117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>

118 <?php } ?>

177 </div>

178 <div class="finance_input float_left">

179 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $estimate_summ ?>" type="text"/>

180 </div>

181 <div class="clear"></div>

SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines

1 <?php

2

3 // Require Rediska

4 require_once dirname(__FILE__) . '/../../Rediska.php';

5

6 /**

12 * @version @package_version@

13 * @link http://rediska.geometria-lab.net

14 * @license http://www.opensource.org/licenses/bsd-license.php

15 */

16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable

edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines

1 <?php

2 class ControllerAffiliateEdit extends Controller {

3 private $error = array();

Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines

1 <?php

2 // +----------------------------------------------------------------------

3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]

4 // +----------------------------------------------------------------------

5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.

6 // +----------------------------------------------------------------------

7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

13 /**

14 +------------------------------------------------------------------------------

15 * ThinkPHP 简洁模式Model模型类

16 * 只支持原生SQL操作 支持多数据库连接和切换

17 +------------------------------------------------------------------------------

style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines

47 float: right;

48 position: relative;

49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>

50 }

51

83 <?php endif; ?>

84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>

85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>

89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>

90 background-color: <?php echo $text_overlay_bgcolor;?>;

97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>

98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>

100 position: absolute;

101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>

102 }

103

SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines

1 <?php

2

3 /**

5 */

6

7 w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');

8

9 /**

181

182 /**

183 * Reloads/compiles a PHP file.

184 * @param string $filename

185 * @return mixed

190

191 /**

192 * Reloads/compiles a PHP file.

193 * @param string[] $filenames

194 * @return mixed

ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines

10 * License, Version 2 (the "License"); you may not use this file

11 * except in compliance with the License. A copy of the License is

12 * available at http://www.opensource.org/licenses/gpl-license.php.

13 *

14 * Sun designates this particular file as subject to the "Classpath"

Installerold.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 232 lines

1 <?php

2

3 /**

4 * Test class for Core_Model_User_Service.

5 * Generated by PHPUnit on 2011-06-22 at 18:34:04.

6 */

7

8 require_once '../Installer.php';

9

10 class Core_Model_Installer {

DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines

1 <?php

2 /**

3 * Zend Framework

59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&

60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {

61 require_once 'Zend/Search/Lucene/Exception.php';

62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');

63 }

64

65 // $indexTermCount = $tiiFile->readLong();

66 if (PHP_INT_SIZE > 4) {

67 $indexTermCount = ord($data[$pos]) << 56 |

68 ord($data[$pos+1]) << 48 |

79 (ord($data[$pos+3]) != 0) ||

80 ((ord($data[$pos+4]) & 0x80) != 0)) {

81 require_once 'Zend/Search/Lucene/Exception.php';

82 throw new Zend_Search_Lucene_Exception('Largest supported segment size (for 32-bit mode) is 2Gb');

83 }

TargetCpaSimulationPoint.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 488 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/ads/googleads/v9/common/simulation.proto

FilesystemTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 240 lines

1 <?php

2

3 /*

119 * @group GH-1339

120 */

121 public function testRemoveDirectoryPhp()

122 {

123 $tmp = sys_get_temp_dir();

126

127 $fs = new Filesystem;

128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));

129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));

130 }

sale.php (https://github.com/sansanwawa/e-commerse.git) PHP · 307 lines

1 <?php

2 class ModelReportSale extends Model {

3 public function getOrders($data = array()) {

Cloud.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Tag_Item

25 */

26 #require_once 'Zend/Tag/Item.php';

27

28 /**

151 $itemList[] = new Zend_Tag_Item($tag);

152 } else {

153 #require_once 'Zend/Tag/Cloud/Exception.php';

154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

155 }

173 $tags[] = new Zend_Tag_Item($tag);

174 } else {

175 #require_once 'Zend/Tag/Cloud/Exception.php';

176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

177 }

MappingInfo.php (https://gitlab.com/cserobiul/BITM-LabMs-New) PHP · 517 lines

1 <?php

2

3 namespace Apps\MappingInfo;

15

16 public function __construct() {

17 if (session_status() == PHP_SESSION_NONE) {

18 session_start();

19 }

Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines

1 <?php

2

3 namespace Guzzle\Tests\Plugin\Redirect;

mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines

1 <?php

2 class Mail {

3 protected $to;

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

95 $header .= 'Return-Path: ' . $this->from . $this->newline;

96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;

97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

157 exit();

158 } else {

159 if (substr(PHP_OS, 0, 3) != 'WIN') {

160 socket_set_timeout($handle, $this->timeout, 0);

161 }

357

358 foreach ($results as $result) {

359 if (substr(PHP_OS, 0, 3) != 'WIN') {

360 fputs($handle, $result . $this->crlf);

361 } else {

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

1 <?php

2 namespace Parser;

3 /*

17 */

18

19 use Meta\AbstractPHPStructure;

20 use Meta\DocBlock;

21

32

33 /**

34 * Responsible for parsing a php class

35 *

36 * @author Richard Downes <richard@sculpt.ie>

44 * Responsible for storing the information about the structure being parsed

45 *

46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure

47 */

48 protected $structure;

NullTest.php (https://github.com/bruisedlee/zf2.git) PHP · 329 lines

1 <?php

2 /**

3 * Zend Framework

32 * @group Zend_Filter

33 */

34 class NullTest extends \PHPUnit_Framework_TestCase

35 {

36 /**

schema.yml (https://github.com/eurotux/ETVA.git) YAML · 204 lines

4 package: lib.model

5 network:

6 _attributes: { phpName: EtvaNetwork }

7 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

8 vlan_id: { type: INTEGER, required: true, foreignTable: vlan, foreignReference: id, onDelete: cascade }

15 intf_model: { type: VARCHAR, size: '255' }

16 server:

17 _attributes: { phpName: EtvaServer }

18 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

19 name: { type: VARCHAR, size: '255', required: true }

58 hbnrestarts: { type: INTEGER, default: '0' }

59 node:

60 _attributes: { phpName: EtvaNode }

61 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

62 cluster_id: { type: INTEGER, required: true, foreignTable: cluster, foreignReference: id, onDelete: restrict }

SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines

1 <?php

2

3 /*

4 * $Id: SortableBehaviorTest.php 1356 2009-12-11 16:36:55Z francois $

5 * This file is part of the Propel package.

6 * For the full copyright and license information, please view the LICENSE

10 */

11

12 require_once 'tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php';

13

14 /**

BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines

1 <?php

2

3

47 *

48 * @param string $dbName The dabase name

49 * @param string $modelName The phpName of a model, e.g. 'Book'

50 * @param string $modelAlias The alias for the model in this query, e.g. 'b'

51 */

BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: BannerServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

33

34 // Base class BaseLogonService

35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';

36

37 // Banner Dll class

38 require_once MAX_PATH . '/lib/OA/Dll/Banner.php';

39

40 /**

CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines

1 <?php

2 /**

3 * CakeValidationSetTest file

4 *

5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

7 *

11 *

12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

14 * @package Cake.Test.Case.Model.Validator

15 * @since CakePHP(tm) v 2.2.0

16 * @license http://www.opensource.org/licenses/mit-license.php MIT License

17 */

18

voucher.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 263 lines

1 <?php

2 class ControllerAccountVoucher extends Controller {

3 private $error = array();

collator_test.php (https://github.com/vadimonus/moodle.git) PHP · 333 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

19 *

20 * @package core

21 * @category phpunit

22 * @copyright 2011 Sam Hemelryk

23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

30 *

31 * @package core

32 * @category phpunit

33 * @copyright 2011 Sam Hemelryk

34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

58 $this->error = 'Collation aware sorting not supported';

59 } else {

60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';

61 }

62 parent::setUp();

Base.php (https://github.com/ewandor/horde.git) PHP · 305 lines

1 <?php

2 /**

3 * Utilities for the various XML handlers.

4 *

5 * PHP version 5

6 *

7 * @category Kolab

Tag.php (https://github.com/sceccola/com_civicrm.git) PHP · 215 lines

1 <?php

2

3 /*

106 if ( $entityId ) {

107 $tagset[$tagsetItem]['entityId'] = $entityId;

108 require_once 'CRM/Core/BAO/EntityTag.php';

109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );

110 } else {

147 default:

148 if ( !empty($form->_formValues['contact_tags']) ) {

149 require_once 'CRM/Core/BAO/Tag.php';

150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );

151

PageRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 282 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

submissionsoap.class.php (https://github.com/danmarsden/moodle-plagiarism_turnitin.git) PHP · 236 lines

1 <?php

2 /* @ignore

3 * To change this template, choose Tools | Templates

5 */

6

7 require_once( 'soap.class.php' );

8 require_once( 'tiisubmission.class.php' );

9 require_once( 'response.class.php' );

10 require_once( 'sdkexception.class.php' );

MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: MassTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

24 * Zend_Measure_Flow_Mass

25 */

26 require_once 'Zend/Measure/Flow/Mass.php';

27

28 /**

34 * @group Zend_Measure

35 */

36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase

37 {

38 /**

FrequencyTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: FrequencyTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

25 * Zend_Measure_Frequency

26 */

27 require_once 'Zend/Measure/Frequency.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase

38 {

39 /**

Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines

1 <?php

2 /*

3 * CKFinder

21 * Include access control config class

22 */

23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";

24 /**

25 * Include resource type config class

26 */

27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";

28 /**

29 * Include thumbnails config class

30 */

31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";

32 /**

33 * Include thumbnails config class

categories.php (https://github.com/mcmurdok/oscommerce.git) PHP · 247 lines

1 <?php

2 /*

3 $Id: $

4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines

1 <?php

2 /**

3 * Changes major.minor revisions to single revision numbers.

20 {

21 parent::__construct($connection, $version);

22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';

23 $this->_vfs = $GLOBALS['injector']

24 ->getInstance('Horde_Core_Factory_Vfs')

date.html (https://bitbucket.org/ferOnti/processmaker.git) HTML · 149 lines

140 </tr>

141 </tbody></table>

142 <div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div> </div>

143 <div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>

144 </div>

show2.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 182 lines

13 <!-- /theme JS files -->

14

15 <?php include_once 'header.php'; ?>

16 <!-- Page container -->

17 <div class="page-container">

39

40 <!-- detached sidebar -->

41 <?php include_once 'sidebar.php'; ?>

42 <!-- /sidebar -->

43

57 <div class="heading-elements">

58 <div class="heading-btn-group">

59 <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>

60

61 <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>

180 </script>

181

182 <?php include_once 'footer.php'; ?>

183

WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines

1 <?php

2

3 require_once('WufooApiWrapperBase.php');

4 require_once('WufooValueObjects.php');

5

6 /**

PlatformJobQueueTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 329 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: PlatformJobQueueTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

23 /** Zend_Queue */

24 require_once 'Zend/Queue.php';

25

26 /** Zend_Queue */

27 require_once 'Zend/Queue/Message.php';

28

29 /** Zend_Queue_Message_Test */

class.swfshape.html (https://bitbucket.org/thncr/manuals.git) HTML · 251 lines

10 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>

11 <div class="up"><a href="book.ming.html">Ming</a></div>

12 <div class="home"><a href="index.html">PHP Manual</a></div>

13 </div><hr /><div id="class.swfshape" class="reference">

14 <h1 class="title">The SWFShape class</h1>

248 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>

249 <div class="up"><a href="book.ming.html">Ming</a></div>

250 <div class="home"><a href="index.html">PHP Manual</a></div>

251 </div></body></html>

252

EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines

1 <?php

2

3 namespace Drupal\Tests\Core\Entity;

Alignment.php (https://gitlab.com/dmsapiens/okralive) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

UpdateQueryBuilderTest.php (https://github.com/csanquer/QueryBuilder.git) PHP · 326 lines

1 <?php

2 namespace SQL\Test;

3

States.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 287 lines

1 <?php

2 /* vim: set expandtab tabstop=4 shiftwidth=4: */

3 //

4 // +----------------------------------------------------------------------+

5 // | PHP Version 4 |

6 // +----------------------------------------------------------------------+

7 // | Copyright (c) 1997-2002 The PHP Group |

8 // +----------------------------------------------------------------------+

9 // | This source file is subject to version 2.02 of the PHP license, |

10 // | that is bundled with this package in the file LICENSE, and is |

11 // | available at through the world-wide-web at |

12 // | http://www.php.net/license/3_0.txt. |

13 // | If you did not receive a copy of the PHP license and are unable to |

migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines

1 <?php return array(

2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',

3 'how to purchase' => 'Hvordan kjøpe',

46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',

49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>

50 I dette menyvalget kan du redigere din personlige informasjon.<br/>

provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines

1 <?php

2 /**

3 * @package Joomla.Platform

89 *

90 * @since 12.2

91 * @note The interface is only present in PHP 5.4 and up.

92 */

93 public function jsonSerialize()

mulyaxisex1.html (https://gitlab.com/GLORIA04/conception-site-web) HTML · 92 lines

1 <div style="font-weight: bold;margin-left:15px;">mulyaxisex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

45 45

46 46

47 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot;</span><span class="hl-comment"></span><span class="hl-code">

48 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

49 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

50

51 </span><span class="hl-var">$n</span><span class="hl-code"> = </span><span class="hl-number">8</span><span class="hl-code">;

MonitoredResourceDescriptor.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 262 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/api/monitored_resource.proto

Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

151 $itemList[] = new Zend_Tag_Item($tag);

152 } else {

153 require_once 'Zend/Tag/Cloud/Exception.php';

154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

155 }

173 $tags[] = new Zend_Tag_Item($tag);

174 } else {

175 require_once 'Zend/Tag/Cloud/Exception.php';

176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

177 }

theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines

1 <?php

2

3 //fire up some globals to use.

notification_test.php (https://github.com/marc1706/phpbb.git) PHP · 338 lines

1 <?php

2 /**

3 *

4 * This file is part of the phpBB Forum Software package.

5 *

6 * @copyright (c) phpBB Limited <https://www.phpbb.com>

7 * @license GNU General Public License, version 2 (GPL-2.0)

8 *

14 require_once __DIR__ . '/base.php';

15

16 class phpbb_notification_test extends phpbb_tests_notification_base

17 {

18 protected $notifications, $db, $container, $user, $config, $auth, $cache;

105 public function test_notifications()

106 {

107 $this->db->sql_query('DELETE FROM phpbb_notification_types');

108

109 $types = array('notification.type.quote', 'notification.type.bookmark', 'notification.type.post', 'test');

PropertyPathMapperTest.php (https://bitbucket.org/vvanuytven/php_auto.git) PHP · 319 lines

1 <?php

2

3 /*

16 use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper;

17

18 class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase

19 {

20 /**

24

25 /**

26 * @var \PHPUnit_Framework_MockObject_MockObject

27 */

28 private $dispatcher;

29

30 /**

31 * @var \PHPUnit_Framework_MockObject_MockObject

32 */

33 private $propertyAccessor;

PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines

1 <?php

2 /*

3 * This file is a part of Mibew Messenger.

el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines

5 <head>

6 <title>Dummy</title>

7 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet();?>"/>

8 </head>

9 <body>

question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines

6 <tr>

7 <td width='50' colspan='1' class='men-met'>

8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />

9 </td>

10 <td width='250' colspan='5' class='men-met'>

11 <span class='title'><?php echo $men . " " . $year; ?></span><br />

12 </td>

13 <td width='50' colspan='1' align='right' class='men-met'>

14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />

15 </td>

16 </tr>

README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines

1 Using Amazon S3 with Dojo has the following prerequisites:

2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.

3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.

4 * proxy.php requires the following modules:

8

9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming

10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key

11 into the proxy.php file on line 3 and 4:

20 var s3Buckets = new dojox.rpc.Service({

21 target:"http://s3.amazonaws.com/",

22 proxyUrl:"../s3/proxy.php", // the path to the proxy

23 transport:"REST",

24 envelope:"PROXIED-PATH",

_dynamic.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 19 lines ✨ Summary

This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.

13 dojo.require("dojox.highlight.languages.python");

14 // dojo.require("dojox.highlight.languages.perl");

15 // dojo.require("dojox.highlight.languages.php");

16 // dojo.require("dojox.highlight.languages.ruby");

17

MajoritySelector.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: MajoritySelector.php 123 2006-09-14 20:19:08Z mrook $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: AndCondition.php 43 2006-03-10 14:31:51Z mrook $

20 */

21

22 require_once 'phing/tasks/system/condition/ConditionBase.php';

23

24 /**

DefaultInputHandler.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: DefaultInputHandler.php 293 2007-11-04 16:51:45Z hans $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

21 */

22

23 require_once 'phing/input/InputHandler.php';

24 include_once 'phing/system/io/ConsoleReader.php';

yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines

28 <SEQ_REGEXP TYPE="KEYWORD1" DELEGATE="VALUES">[^:\[\]{},'"#]+:( |$)</SEQ_REGEXP>

29 <!-- Useful for Symfony configuration files -->

30 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

31 <BEGIN>&lt;?php</BEGIN>

frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines

105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS

106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog

107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd

108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9

109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE

262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn

263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR

264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF

265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW

266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy

556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa

557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+

558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj

559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr

560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx

SimpleListModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 106 lines ✨ Summary

This Java class, SimpleListModel, extends AbstractListModel and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.

37 this.list.clear();

38 for (int i = 0; i < list.size(); i++) {

39 PHPItem phpItem = (PHPItem) list.get(i);

40 if (accept(phpItem, searchString)) {

53 Iterator iterator = list.iterator();

54 while (iterator.hasNext()) {

55 PHPItem phpItem = (PHPItem) iterator.next();

56 if (!accept(phpItem, searchString)) {

74 private boolean accept(PHPItem phpItem, String searchText) {

75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;

76 }

77

88 private static class SimpleComparator implements Comparator {

89 public int compare(Object o1, Object o2) {

90 PHPItem item1 = (PHPItem) o1;

91 PHPItem item2 = (PHPItem) o2;

Token.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 84 lines ✨ Summary

This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.

1 /* Generated By:JavaCC: Do not edit this line. Token.java Version 3.0 */

2 package gatchan.phpparser.parser;

3

4 /**

ConditionalExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 70 lines ✨ Summary

This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import java.util.List;

PHPParserListener.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 15 lines ✨ Summary

This Java interface defines a listener for PHP parsing events, specifically parseError and parseMessage. It extends the built-in EventListener interface, allowing classes to implement this listener and receive notifications when errors or messages occur during PHP parsing.

1 package gatchan.phpparser.parser;

2

3 import java.util.EventListener;

4

5 /**

6 * The listener to listen to the PHPParserListener

7 *

8 * @author Matthieu Casanova

9 */

10 public interface PHPParserListener extends EventListener {

11

12 void parseError(PHPParseErrorEvent e);

13 void parseMessage(PHPParseMessageEvent e);

14 }

15

PHPDocument.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 231 lines ✨ Summary

This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset interface and has properties for its name, start and end positions, and nodes.

7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;

8 import gatchan.phpparser.project.itemfinder.PHPItem;

9 import gatchan.phpparser.parser.PHPParser;

14

15 /**

16 * It's a php document. This class is an outlineable object It will contains html and php

17 *

18 * @author Matthieu Casanova

109 * Analyze the code of a php document.

110 *

111 * @param phpParser the php parser

112 */

113 public void analyzeCode(PHPParser phpParser) {

155 for (int i = 0; i < children.size(); i++) {

156 Outlineable outlineable = (Outlineable) children.get(i);

157 if (outlineable.getItemType() == PHPItem.METHOD) {

158 MethodDeclaration methodDeclaration = (MethodDeclaration) outlineable;

159 if (line == methodDeclaration.getBodyLineStart() && column > methodDeclaration.getBodyColumnStart()) return methodDeclaration;

runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 50 lines ✨ Summary

This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.

1 <?php

2

3 # This file illustrates the low-level C++ interface

5 # get converted into function calls.

6

7 require("example.php");

8

9 # ----- Object creation -----

RestDataConnectionProvider.php (http://forceworkbench.googlecode.com/svn/trunk/workbench/) PHP · 24 lines ✨ Summary

This PHP code defines a class RestDataConnectionProvider that extends an abstract connection provider. It establishes a REST API connection using the RestApiClient class, setting various configuration options such as compression, user agent, logging, and proxy settings based on environment variables and configuration files. The endpoint type is set to “Soap/u”.

1 <?php

2 require_once "context/AbstractConnectionProvider.php";

3 require_once "restclient/RestClient.php";

4

5 class RestDataConnectionProvider extends AbstractConnectionProvider {

jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines

157

158 .SH BUGS

159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.

160

161 .SH WEB

catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines

327 <MODE NAME="php" FILE="php.xml"

328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"

329 FIRST_LINE_GLOB="{&lt;?php*,#!/*php*}" />

sidebar.php (https://bitbucket.org/jesseterry/myclientbase/) PHP · 14 lines ✨ Summary

This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor function and includes a translated label from a language file.

1 <div class="section_wrapper">

2

3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>

4

5 <ul class="quicklinks content toggle">

6 <li><?php echo anchor('settings', $this->lang->line('system_settings')); ?></li>

7 <li><?php echo anchor('users', $this->lang->line('user_accounts')); ?></li>

8 <li><?php echo anchor('tax_rates', $this->lang->line('tax_rates')); ?></li>

9 <li><?php echo anchor('invoice_statuses', $this->lang->line('invoice_statuses')); ?></li>

10 <li><?php echo anchor('invoices/invoice_groups', $this->lang->line('invoice_groups')); ?></li>

11 <li class="last"><?php echo anchor('mcb_modules', $this->lang->line('modules')); ?></li>

bannerclient.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 41 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

9 JFormHelper::loadFieldClass('list');

10

11 require_once dirname(__FILE__) . '/../../helpers/banners.php';

12

13 /**

categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

44

45 $extension = JRequest::getCmd('extension');

46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));

47

48 // Initialise variables.

79 } else {

80 // Nothing to reorder

81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));

82 return true;

83 }

default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines

1 msgid ""

2 msgstr ""

3 "Project-Id-Version: CakePHP Testsuite\n"

4 "POT-Creation-Date: 2008-05-15 02:51-0700\n"

5 "PO-Revision-Date: \n"

6 "Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

7 "Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

director_string_runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 35 lines ✨ Summary

This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.

1 <?php

2

3 require "tests.php";

4 require "director_string.php";

5

6 // No new functions

category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines

1 <?php

2 /**

3 * @package Joomla.Administrator

137

138 // Preset the redirect

139 $this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);

140

141 return parent::batch($model);

en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines

1 ; Joomla! Project

2 ; Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.

3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php

4 ; Note : All ini files need to be saved as UTF-8

5

_normal.user.js (http://game-golem.googlecode.com/svn/trunk/) JavaScript · 33 lines ✨ Summary

This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.

7 // @include http://apps.facebook.com/castle_age/*

8 // @include https://apps.facebook.com/castle_age/*

9 // @include http://web3.castleagegame.com/castle_ws/index.php

10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js

11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css

12 // ==/UserScript==

13 // @disabled-include http://apps.facebook.com/reqs.php

14 // @disabled-include https://apps.facebook.com/reqs.php

ZipEntryTest.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 193 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using System;

i2c-ali1535 (http://photon-android.googlecode.com/svn/) Unknown · 43 lines

4 * Acer Labs, Inc. ALI 1535 (south bridge)

5 Datasheet: Now under NDA

6 http://www.ali.com.tw/eng/support/datasheet_request.php

7

8 Authors:

cap_inline.h (http://photon-android.googlecode.com/svn/) C++ Header · 410 lines ✨ Summary

This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.

5 * agreement governing use of this software, this software is licensed to you

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 *

9 * Notwithstanding the above, under no circumstances may you combine this

TwitterAlikeExample.html (http://redis.googlecode.com/svn/trunk/) HTML · 253 lines ✨ Summary

This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.

17 <div class="index">

18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->

19 <b>TwitterAlikeExample: Contents</b><br>&nbsp;&nbsp;<a href="#A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a><br>&nbsp;&nbsp;<a href="#Key-value stores basics">Key-value stores basics</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Atomic operations">Atomic operations</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Beyond key-value stores">Beyond key-value stores</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#The set data type">The set data type</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Prerequisites">Prerequisites</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Data layout">Data layout</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Following, followers and updates">Following, followers and updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Authentication">Authentication</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Updates">Updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Paginating updates">Paginating updates</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Following users">Following users</a><br>&nbsp;&nbsp;<a href="#Making it horizontally scalable">Making it horizontally scalable</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Hashing the key">Hashing the key</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Special keys">Special keys</a>

20 </div>

21

27

28 <div class="narrow">

29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.

30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>

31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">

79 </pre>Ok I think we are ready to start coding!

80 <h2><a name="Prerequisites">Prerequisites</a></h2>

81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.

82 <h2><a name="Data layout">Data layout</a></h2>

83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled &quot;antirez&quot;:<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">

ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using CleanZip.Compression;