100+ results for 'php dir'
Not the results you expected?
InstallSchema.php (https://gitlab.com/yousafsyed/easternglamor) 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)
43 255,
44 [],
45 'Widget code for template directive'
46 )->addColumn(
47 'widget_type',
98 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
99 'length' => 255,
100 'comment' => 'Widget code for template directive'
101 ]
102 );
Location.js (https://github.com/stephaneerard/qooxdoo.git) JavaScript · 406 lines
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
1 <?php
2 /**
3 * File containing the eZISBN10To13Converter class.
322 /*!
323 Does the update of the class attribute directly to the database, which will only alter
324 the attribute for if the ISBN datatype is ISBN-13.
325 \param $classAttributeID is the Class attribute id for the ISBN datatype.
334 /*!
335 Does the update of the content object attribute directly to the database, which will only alter
336 the attribute for if the ISBN datatype is ISBN-13.
337 \param $contentObjectAttribute Is an object of eZContentObjectAttribute.
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
78 $http->removeSessionVariable( eZLightbox::PREFERENCE_SESSION_HASHKEY );
79 eZPreferences::setValue( 'currentLightboxID', $http->postVariable( 'newLightboxID' ) );
80 $redirectURI = $http->hasPostVariable( 'redirectAfterSelectionURI' ) ?
81 $http->postVariable( 'redirectAfterSelectionURI' ) :
82 $http->sessionVariable( 'LastAccessesURI' );
83 $module->redirectTo( $redirectURI );
84 return true;
85 }
181 if ( $operationResult['status'] == eZModuleOperationInfo::STATUS_CONTINUE )
182 {
183 $redirectURI = $http->hasPostVariable( 'redirectAfterSelectionURI' ) ?
184 $http->postVariable( 'redirectAfterSelectionURI' ) :
349 $http->postVariable( 'redirectAfterSelectionURI' ) :
350 $http->sessionVariable( 'LastAccessesURI' );
351 $module->redirectTo( $redirectURI );
352 return true;
353 }
class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
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 . "--";
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";*/
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
1 <?php
2 class ControllerLocalisationZone extends Controller {
3 private $error = array();
39 }
41 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL'));
42 }
71 }
73 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL'));
74 }
105 }
107 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL'));
108 }
FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines
1 <?php
3 /*
17 use Symfony\Component\HttpFoundation\File\UploadedFile;
19 abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
20 {
21 protected $context;
33 $this->validator = new FileValidator();
34 $this->validator->initialize($this->context);
35 $this->path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'FileValidatorTest';
36 $this->file = fopen($this->path, 'w');
37 }
309 array(UPLOAD_ERR_PARTIAL, 'uploadPartialErrorMessage'),
310 array(UPLOAD_ERR_NO_FILE, 'uploadNoFileErrorMessage'),
311 array(UPLOAD_ERR_NO_TMP_DIR, 'uploadNoTmpDirErrorMessage'),
312 array(UPLOAD_ERR_CANT_WRITE, 'uploadCantWriteErrorMessage'),
313 array(UPLOAD_ERR_EXTENSION, 'uploadExtensionErrorMessage'),
FinderTest.php (https://github.com/Exercise/symfony.git) PHP · 333 lines
223 $iterator = $finder->files()->name('*.php')->depth('< 1')->in(array(self::$tmpDir, __DIR__))->getIterator();
225 $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator);
226 }
239 $dirs = array();
240 foreach ($finder->directories()->in(self::$tmpDir) as $dir) {
241 $dirs[] = (string) $dir;
251 $finder = new Finder();
252 $this->assertEquals(2, iterator_count($finder->directories()->in(self::$tmpDir)), 'implements the \IteratorAggregate interface');
254 $finder = new Finder();
326 $f = array();
327 foreach ($files as $file) {
328 $f[] = self::$tmpDir . DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $file);
329 }
sfValidatorBaseTest.php (https://github.com/IDCI-Consulting/WebsiteEval.git) PHP · 246 lines
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
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
ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines
290 * @return ListenerOptions
291 */
292 public function setCacheDir($cacheDir)
293 {
294 if (null === $cacheDir) {
352 {
353 if ($this->getModuleMapCacheKey()) {
354 return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
355 }
357 return $this->getCacheDir() . '/module-classmap-cache.php';
358 }
JErrorTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 470 lines
voucher.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 263 lines
1 <?php
2 class ControllerAccountVoucher extends Controller {
3 private $error = array();
24 );
26 $this->redirect($this->url->link('account/voucher/success'));
27 }
162 }
164 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/voucher.tpl')) {
165 $this->template = $this->config->get('config_template') . '/template/account/voucher.tpl';
166 } else {
207 $this->data['continue'] = $this->url->link('checkout/cart');
209 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {
210 $this->template = $this->config->get('config_template') . '/template/common/success.tpl';
211 } else {
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 */
23 /** Zend_Queue */
24 require_once 'Zend/Queue.php';
26 /** Zend_Queue */
32 /** Base Adapter test class */
33 require_once dirname(__FILE__) . '/AdapterTest.php';
35 /**
edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines
1 <?php
2 class ControllerAffiliateEdit extends Controller {
3 private $error = array();
5 public function index() {
6 if (!$this->affiliate->isLogged()) {
7 $this->session->data['redirect'] = $this->url->link('affiliate/edit', '', 'SSL');
9 $this->redirect($this->url->link('affiliate/login', '', 'SSL'));
21 $this->session->data['success'] = $this->language->get('text_success');
23 $this->redirect($this->url->link('affiliate/account', '', 'SSL'));
24 }
242 $this->data['back'] = $this->url->link('affiliate/account', '', 'SSL');
244 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/affiliate/edit.tpl')) {
245 $this->template = $this->config->get('config_template') . '/template/affiliate/edit.tpl';
246 } else {
categories.php (https://github.com/tomtom127/oscommerce.git) PHP · 247 lines
1 <?php
2 /*
3 $Id: $
84 if ( $error === false ) {
85 $categories_image = new upload($data['image'], realpath('../' . DIR_WS_IMAGES . 'categories'));
87 if ( $categories_image->exists() && $categories_image->parse() && $categories_image->save() ) {
193 if ( $Qcheck->numberOfRows() === 0 ) {
194 if (file_exists(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')))) {
195 @unlink(realpath('../' . DIR_WS_IMAGES . 'categories/' . $Qimage->value('categories_image')));
PlatformJobQueueTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 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 23775 2011-03-01 17:25:24Z ralph $
21 */
23 /** Zend_Queue */
24 require_once 'Zend/Queue.php';
26 /** Zend_Queue */
32 /** Base Adapter test class */
33 require_once dirname(__FILE__) . '/AdapterTest.php';
35 /**
FormSelectTest.php (https://github.com/Exercise/zf2.git) PHP · 302 lines
1 <?php
2 /**
3 * Zend Framework
37 * @group Zend_View_Helper
38 */
39 class FormSelectTest extends \PHPUnit_Framework_TestCase
40 {
66 public function testFormSelectWithNameOnlyCreatesEmptySelect()
67 {
68 $html = $this->helper->direct('foo');
69 $this->assertRegExp('#<select[^>]+name="foo"#', $html);
70 $this->assertContains('</select>', $html);
74 public function testFormSelectWithOptionsCreatesPopulatedSelect()
75 {
76 $html = $this->helper->direct('foo', null, null, array('foo' => 'Foobar', 'baz' => 'Bazbat'));
77 $this->assertRegExp('#<select[^>]+name="foo"#', $html);
78 $this->assertContains('</select>', $html);
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
1 <?php
3 namespace Guzzle\Tests\Plugin\Redirect;
45 // Ensure that the redirect count was incremented
46 $this->assertEquals(2, $request->getParams()->get(RedirectPlugin::REDIRECT_COUNT));
47 $this->assertCount(3, $history);
48 $requestHistory = $history->getAll();
110 $client = new Client($this->getServer()->getUrl());
111 $request = $client->post('/foo', array('X-Baz' => 'bar'), 'testing');
112 $request->getParams()->set(RedirectPlugin::STRICT_REDIRECTS, true);
113 $request->send();
147 $client = new Client($this->getServer()->getUrl());
148 $request = $client->post('/foo');
149 $request->getParams()->set(RedirectPlugin::STRICT_REDIRECTS, true);
150 $request->send();
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
Collection.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 333 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Catalog
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 */
253 * Enable sorting products by its position
254 *
255 * @param string $dir sort type asc|desc
256 * @return Mage_Catalog_Model_Resource_Product_Link_Product_Collection
257 */
LICENSE.txt (git://github.com/clawpack/clawpack-4.x.git) Plain Text · 35 lines
2 Clawpack is distributed under the terms of the
3 Berkeley Software Distribution (BSD) license
4 http://www.opensource.org/licenses/bsd-license.php
6 Copyright (c) 1994--2010, Randall J. LeVeque and others
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
ManagerController.php (https://github.com/ccaballero/yachay.git) PHP · 248 lines
1 <?php
3 class Teams_ManagerController extends Yachay_Controller_Action
108 $this->_helper->flashMessenger->addMessage("El equipo {$team->label} se ha creado correctamente");
109 $session->url = $team->url;
110 $this->_redirect($request->getParam('return'));
111 } else {
112 foreach ($team->getMessages() as $message) {
173 }
175 $this->_redirect($this->view->currentPage());
176 }
209 }
211 $this->_redirect($this->view->currentPage());
212 }
Thrift.php
(git://github.com/apache/thrift.git)
PHP · 821 lines
✨ Summary
This PHP code defines a Thrift protocol implementation for a TApplicationException class, which is an exception type used to handle application-level errors. It provides methods for reading and writing the exception’s message and code fields to a Thrift output stream. The code also includes Thrift-related classes and constants, setting up the global THRIFT_ROOT environment variable.
This PHP code defines a Thrift protocol implementation for a TApplicationException class, which is an exception type used to handle application-level errors. It provides methods for reading and writing the exception’s message and code fields to a Thrift output stream. The code also includes Thrift-related classes and constants, setting up the global THRIFT_ROOT environment variable.
1 <?php
2 /*
3 * Licensed to the Apache Software Foundation (ASF) under one
40 const MAP = 13;
41 const SET = 14;
42 const LST = 15; // N.B. cannot use LIST keyword in PHP!
43 const UTF8 = 16;
44 const UTF16 = 17;
60 * because we need to save CPU cycles and this is not yet in an extension.
61 * Ideally we'd multiply-inherit TException from both Exception and Base, but
62 * that's not possible in PHP and there are no modules either, so for now we
63 * apologetically take a trip to HackTown.
64 *
417 * cut back on the size of the generated code which is turning out to have a
418 * nontrivial cost just to load thanks to the wondrously abysmal implementation
419 * of PHP. Note that code is intentionally duplicated in here to avoid making
420 * function calls for every field or member of a container..
421 */
PropelTableComparator.php (https://gitlab.com/Isaki/le331.fr) PHP · 312 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . '/../Table.php';
12 require_once dirname(__FILE__) . '/PropelTableDiff.php';
13 require_once dirname(__FILE__) . '/PropelColumnComparator.php';
14 require_once dirname(__FILE__) . '/PropelColumnDiff.php';
15 require_once dirname(__FILE__) . '/PropelIndexComparator.php';
16 require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
file_handling_over_ftp.php (https://github.com/ameximes/akelos.git) PHP · 291 lines
215 $this->assertTrue(AkFtp::make_dir('../new_dir_7/subdir_1'));
217 $this->assertTrue(AkFtp::make_dir('new_dir_1/subdir_2/subsubdir2'));
218 $this->assertTrue(AkFtp::make_dir('/new_dir_2/subdir_2/subsubdir2'));
219 $this->assertTrue(AkFtp::make_dir('new_dir_3/subdir_2/subsubdir2'));
220 $this->assertTrue(AkFtp::make_dir('./new_dir_4/subdir_2/subsubdir2'));
221 $this->assertTrue(AkFtp::make_dir('../new_dir_5/subdir_2/subsubdir2'));
222 $this->assertTrue(AkFtp::make_dir('./new_dir_6/subdir_2/subsubdir2'));
223 $this->assertTrue(AkFtp::make_dir('../new_dir_7/subdir_2/subsubdir2'));
225 $this->assertTrue(AkFtp::make_dir('new_dir_8/subdir_1/subsubdir1'));
227 }
Caching.html (https://github.com/rjimenezda/ucomparte.git) HTML · 229 lines
91 </tr>
92 <tr>
93 <td class="coverFile"><a href="Caching_Factory.php.html">Factory.php</a></td>
94 <td class="coverBar" align="center" width="100">
95 <table border="0" cellspacing="0" cellpadding="1">
123 <tr>
124 <td class="coverFile"><a href="Caching_File.php.html">File.php</a></td>
125 <td class="coverBar" align="center" width="100">
126 <table border="0" cellspacing="0" cellpadding="1">
154 <tr>
155 <td class="coverFile"><a href="Caching_Interface.php.html">Interface.php</a></td>
156 <td class="coverBar" align="center" width="100">
157 <table border="0" cellspacing="0" cellpadding="1">
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
length_class.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 412 lines
1 <?php
2 class ControllerLocalisationLengthClass extends Controller {
3 private $error = array();
39 }
41 $this->redirect($this->url->link('localisation/length_class', 'token=' . $this->session->data['token'] . $url, 'SSL'));
42 }
71 }
73 $this->redirect($this->url->link('localisation/length_class', 'token=' . $this->session->data['token'] . $url, 'SSL'));
74 }
105 }
107 $this->redirect($this->url->link('localisation/length_class', 'token=' . $this->session->data['token'] . $url, 'SSL'));
108 }
Contact.php (https://github.com/finger2000/horde.git) PHP · 256 lines
provider.php (https://github.com/F5/zetacomponents.git) PHP · 243 lines
1 <?php
2 /**
3 *
54 {
55 $ttc = ezcTemplateTranslationConfiguration::getInstance();
56 $ttc->manager = new ezcTranslationManager( new ezcTranslationTsBackend( dirname( __FILE__ ) . '/translations' ) );
58 self::assertEquals( 'Test Eén', ezcTemplateTranslationProvider::translate( "Test 1", "test", array() ) );
62 {
63 $ttc = ezcTemplateTranslationConfiguration::getInstance();
64 $ttc->manager = new ezcTranslationManager( new ezcTranslationTsBackend( dirname( __FILE__ ) . '/translations' ) );
66 self::assertEquals( 'Test Eén (a, c, b)', ezcTemplateTranslationProvider::translate( "Test 1 %1 %2 %3", "test", array( 1 => 'a', 'b', 'c' ) ) );
70 {
71 $ttc = ezcTemplateTranslationConfiguration::getInstance();
72 $ttc->manager = new ezcTranslationManager( new ezcTranslationTsBackend( dirname( __FILE__ ) . '/translations' ) );
74 try
sfValidatorDateTest.php (https://github.com/makerlabs/Symfohub.git) PHP · 246 lines
PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
41 * Used by partners to cancel a subscription service either immediately or by
42 * the end of the current billing cycle for their customers. It should be called
43 * directly by the partner using service accounts. (subscriptions.cancel)
44 *
45 * @param string $name Required. The name of the subscription resource to be
71 * resource on the Partner side. The value is restricted to 63 ASCII characters
72 * at the maximum. If a subscription was previously created with the same
73 * subscription_id, we will directly return that one.
74 * @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
75 */
102 * Used by partners to extend a subscription service for their customers on an
103 * ongoing basis for the subscription to remain active and renewable. It should
104 * be called directly by the partner using service accounts.
105 * (subscriptions.extend)
106 *
apbasic-widgets.php (https://gitlab.com/pornmongkon.p/wordpress) PHP · 273 lines
222 * @since Accesspress Widget Pack 1.0
223 */
224 require get_template_directory() . '/inc/widgets/widget-fields.php';
226 /**
229 * @since accesspress Widget Pack 1.0
230 */
231 require get_template_directory() . '/inc/widgets/widget-testimonials.php';
233 /**
236 * @since accesspress Widget Pack 1.0
237 */
238 require get_template_directory() . '/inc/widgets/wigets-features.php';
240 /**
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
1 <?php
3 return [
59 'vision_date' => 'Vision Date',
60 'cast' => 'Cast',
61 'directors' => 'Directors',
62 'role' => 'Role',
63 'trailer' => ':name Trailer',
109 'german' => 'German',
110 'actor' => 'Actor',
111 'director' => 'Director',
112 'subtitle_name' => 'Subtitle Name',
113 'users_waiting' => 'Users Waiting',
PhpClass.php (https://github.com/adaykin/zf2.git) PHP · 562 lines
31 * @uses \Zend\CodeGenerator\Php\PhpMember\MemberContainer
32 * @uses \Zend\CodeGenerator\Php\PhpMethod
33 * @uses \Zend\CodeGenerator\Php\PhpProperty
147 * setPhpFile()
148 *
149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile
150 */
151 public function setPhpFile(PhpFile $phpFile)
158 * getPhpFile()
159 *
160 * @return Zend\CodeGenerator\Php\PhpFile
161 */
162 public function getPhpFile()
439 *
440 * @param string $methodName
441 * @return \Zend\CodeGenerator\Php\PhpMethod
442 */
443 public function getMethod($methodName)
ExceptionHandlerAsm.asm (https://gitlab.com/envieidoc/Clover) Assembly · 445 lines
4 ; are licensed and made available under the terms and conditions of the BSD License
5 ; which accompanies this distribution. The full text of the license may be found at
6 ; http://opensource.org/licenses/bsd-license.php.
7 ;
8 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
283 db 0fh, 0aeh, 07h ;fxsave [edi]
285 ;; UEFI calling convention for IA32 requires that Direction flag in EFLAGs is clear
286 cld
ResetPasswordPostTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 307 lines
128 ->willReturnSelf();
130 /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
131 $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
194 ->willReturnSelf();
196 /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
197 $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
241 ->willReturnSelf();
243 /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
244 $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
288 ->willReturnSelf();
290 /** @var Redirect|\PHPUnit_Framework_MockObject_MockObject $redirectMock */
291 $redirectMock = $this->getMockBuilder('Magento\Framework\Controller\Result\Redirect')
cpqphp_core.c
(http://photon-android.googlecode.com/svn/)
C · 1489 lines
✨ Summary
This C code implements a PCI Hotplug controller driver for Compaq systems. It manages the hotplug functionality, including enabling and disabling devices, handling interrupts, and providing debug information. The code is part of the Linux kernel and is responsible for interacting with the system’s hardware to manage device connections and disconnections.
This C code implements a PCI Hotplug controller driver for Compaq systems. It manages the hotplug functionality, including enabling and disabling devices, handling interrupts, and providing debug information. The code is part of the Linux kernel and is responsible for interacting with the system’s hardware to manage device connections and disconnections.
43 #include <asm/uaccess.h>
45 #include "cpqphp.h"
46 #include "cpqphp_nvram.h"
608 }
610 static struct hotplug_slot_ops cpqphp_hotplug_slot_ops = {
611 .set_attention_status = set_attention_status,
612 .enable_slot = process_SI,
716 hotplug_slot->private = slot;
717 snprintf(name, SLOT_NAME_SIZE, "%u", slot->number);
718 hotplug_slot->ops = &cpqphp_hotplug_slot_ops;
720 hotplug_slot_info->power_status = get_slot_enabled(ctrl, slot);
874 /* Check for the proper subsytem ID's
875 * Intel uses a different SSID programming model than Compaq.
876 * For Intel, each SSID bit identifies a PHP capability.
877 * Also Intel HPC's may have RID=0.
878 */
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
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
ContentData.java (https://github.com/alfresco-mirror/alfresco-mirror.git) Java · 325 lines
21 import org.alfresco.model.ContentModel;
22 import org.alfresco.module.phpIntegration.PHPProcessorException;
23 import org.alfresco.service.cmr.repository.ContentReader;
24 import org.alfresco.service.cmr.repository.ContentService;
61 private ContentService contentService;
63 /** Indicates that the content data is dirty and there are unsaved changes */
64 private boolean isDirty;
82 this.mimetype = mimetype;
83 this.encoding = encoding;
84 this.isDirty = false;
86 this.contentService = this.node.getSession().getServiceRegistry().getContentService();
110 /**
111 * @see org.alfresco.module.phpIntegration.lib.ScriptObject#getScriptObjectName()
112 */
113 public String getScriptObjectName()
%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines
1 <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:12
2 compiled from author/submission/layout.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>
6 <?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?>
7 <a name="layout"></a>
8 <h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?>
9 </h3>
11 <?php if ($this->_tpl_vars['useLayoutEditors']): ?>
12 <p><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.role.layoutEditor"), $this);?>
13 :
14 <?php if ($this->_tpl_vars['layoutAssignment']->getEditorId()): echo ((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getEditorFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); else: echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.none"), $this); endif; ?></p>
15 <?php endif; ?>
weight_class.php (https://gitlab.com/dadangnh/sb1-bon) PHP · 401 lines
1 <?php
2 class ControllerLocalisationWeightClass extends Controller {
3 private $error = array();
39 }
41 $this->response->redirect($this->url->link('localisation/weight_class', 'token=' . $this->session->data['token'] . $url, true));
42 }
71 }
73 $this->response->redirect($this->url->link('localisation/weight_class', 'token=' . $this->session->data['token'] . $url, true));
74 }
105 }
107 $this->response->redirect($this->url->link('localisation/weight_class', 'token=' . $this->session->data['token'] . $url, true));
108 }
BaseTest.php (https://github.com/maintainable/framework.git) PHP · 325 lines
1 <?php
2 /**
3 * @category Mad
5 * @subpackage UnitTests
6 * @copyright (c) 2007-2009 Maintainable Software, LLC
7 * @license http://opensource.org/licenses/bsd-license.php BSD
8 */
13 if (!defined('MAD_ENV')) define('MAD_ENV', 'test');
14 if (!defined('MAD_ROOT')) {
15 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/config/environment.php';
16 }
24 * @subpackage UnitTests
25 * @copyright (c) 2007-2009 Maintainable Software, LLC
26 * @license http://opensource.org/licenses/bsd-license.php BSD
27 */
28 class Mad_Model_Serializer_BaseTest extends Mad_Test_Unit
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
rr-090923-header.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 102 lines
1 <?php
2 require_once("utils.php");
7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
9 <?php if(!processLanguageURL())
10 {
11 if ($_SESSION["CurrentLanguage"]==0){
17 <head>
19 <title><?php echo getMessage("website.title");?></title>
21 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
23 <?php
24 if (AUTO_REFRESH_DELAY>0 && !adminMode())
25 echo '<meta http-equiv="refresh" content="'.AUTO_REFRESH_DELAY.'"/>';
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”.
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”.
ZipTarget.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 24 lines
admin-ajax.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 264 lines
1 <?php
3 define( 'BB_IS_ADMIN', true );
4 define( 'DOING_AJAX', true );
6 require_once('../bb-load.php');
8 if ( !class_exists( 'WP_Ajax_Response' ) )
9 require_once( BACKPRESS_PATH . 'class.wp-ajax-response.php' );
11 require_once( BB_PATH . 'bb-admin/includes/functions.bb-admin.php' );
123 $topic = get_topic( $bb_post->topic_id );
124 if ( 0 == $topic->topic_posts ) {
125 // If we deleted the only post, send back a WP_Ajax_Response object with a URL to redirect to
126 if ( $ref = wp_get_referer() ) {
127 $ref_topic = bb_get_topic_from_uri( $ref );
posts.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 195 lines
30 }
32 bb_safe_redirect( add_query_arg( $query_vars ) );
33 exit;
34 }
79 <div class="wrap">
81 <h2><?php _e( 'Posts' ); ?>
82 <?php
143 <?php foreach ( $bulk_actions as $value => $label ) : ?>
145 <option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $label ); ?></option>
146 <?php endforeach; ?>
147 </select>
148 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" class="button submit-input" />
149 <?php bb_nonce_field( 'post-bulk' ); ?>
activity.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 78 lines
1 <?php
3 /**
13 <ul>
15 <?php bp_get_options_nav(); ?>
17 <li id="activity-filter-select" class="last">
18 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
19 <select id="activity-filter-by">
20 <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
21 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
23 <?php
BUILD.sh (https://swig.svn.sourceforge.net/svnroot/swig) Shell · 5 lines
qtextureglyphcache.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 468 lines
en-GB.com_admin.sys.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 8 lines
contacts.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 159 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
5 */
7 // no direct access
8 defined('_JEXEC') or die;
147 if ($rows) {
148 foreach($rows as $key => $row) {
149 $rows[$key]->href = 'index.php?option=com_contact&view=contact&id='.$row->slug.'&catid='.$row->catslug;
150 $rows[$key]->text = $row->title;
151 $rows[$key]->text .= ($row->con_position) ? ', '.$row->con_position : '';
LineChangeMarker.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 35 lines
3 # general plugin information
4 plugin.lcm.LCMPlugin.name=DirtyGutter
5 plugin.lcm.LCMPlugin.author=Shlomy Reinstein
6 plugin.lcm.LCMPlugin.version=0.2
12 # action labels
13 dirty-gutter-toggle.label=Enable
15 # menu items
16 plugin.lcm.LCMPlugin.menu=dirty-gutter-toggle
18 # option pane
19 plugin.lcm.LCMPlugin.option-pane=DirtyGutter
20 options.DirtyGutter.label=DirtyGutter
21 options.DirtyGutter.code=new lcm.LCMOptions();
devel.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 204 lines
✨ Summary
This is a documentation page for the jEdit project, written in HTML. It provides instructions on how to migrate plugins from CVS to Subversion, and explains the process of setting up a new plugin repository on SourceForge. The content includes step-by-step guides, technical details, and links to relevant resources.
This is a documentation page for the jEdit project, written in HTML. It provides instructions on how to migrate plugins from CVS to Subversion, and explains the process of setting up a new plugin repository on SourceForge. The content includes step-by-step guides, technical details, and links to relevant resources.
10 <ul>
12 <li><a href="index.php?page=feedback">Mailing list subscription</a>
13 </li>
14 <li> <a href="http://subversion.tigris.org">Subversion</a>: <a href="https://sourceforge.net/svn/?group_id=588">Help</a>, <a href="#migration">Migration</a>, <a href="http://jedit.svn.sourceforge.net/viewvc/jedit/">Browse SVN</a>, <a href="http://jedit.cvs.sourceforge.net/jedit/">Browse CVS</a> </li>
127 <h3>Creating and submitting Patches</h3>
128 </a>
129 <p> We prefer patches which are generated against the latest "trunk" in subversion. By checking out a copy of the source and making changes to your local copy, you can create a patch by simply typing <tt>svn diff</tt>, (or <tt>cvs diff</tt>, if it's in CVS) from the root directory of your project. This command will give you context, as well as version numbers for all differences between your versions and the versions you checked out from the repository. Redirect this command to a file and attach it with proper documentation to a <a href="https://sourceforge.net/tracker/?group_id=588&atid=300588">patches</a> tracker item.
130 </p>
175 </pre>
176 </li>
177 <li> Create a plugin directory in the jedit svn repository <a href="http://jedit.svn.sourceforge.net/viewvc/jedit/plugins/">plugins directory</a>.
178 <pre>
179 <b>svn mkdir $JEDITSVN/plugins/$PLUGIN</b>
tst_qglyphrun.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 661 lines
317 quint32 otherGlyphIndexArray[1] = { 2 };
318 QPointF otherGlyphPositionArray[1] = { QPointF(2, 3) };
320 glyphRun.setRawData(otherGlyphIndexArray, otherGlyphPositionArray, 1);
344 QVector<QPointF> glyphPositionArray;
345 glyphPositionArray << QPointF(1, 2) << QPointF(3, 4) << QPointF(5, 6) << QPointF(7, 8);
347 QGlyphRun glyphRun;
350 QVector<quint32> glyphIndexes = glyphRun.glyphIndexes();
351 QVector<QPointF> glyphPositions = glyphRun.positions();
353 QCOMPARE(glyphIndexes.size(), 4);
356 QCOMPARE(glyphIndexes, glyphIndexArray);
357 QCOMPARE(glyphPositions, glyphPositionArray);
359 QGlyphRun otherGlyphRun;
editor_plugin_src.js (https://bitbucket.org/exodusmedia/exoui.git) JavaScript · 34 lines
_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.
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.
8 if(!dojo._hasResource["dojox.highlight.languages._dynamic"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
9 dojo._hasResource["dojox.highlight.languages._dynamic"] = true;
10 dojo.provide("dojox.highlight.languages._dynamic");
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");
layout-devices.xsd (https://bitbucket.org/nbargnesi/idea.git) XML Schema · 345 lines
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2241 lines
87 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
89 - PHP mode now recognizes <script language="PHP">...</script>.
91 - Updated Omnimark syntax highlighting (Lionel Fiol).
485 {{{ Bug Fixes
487 - Fixed NullPointerException in FileCellRenderer if a VFS.DirectoryEntry
488 had a null symlinkPath (which should not be the case anyway).
530 Unix line separator.
532 - Fixed some minor inconsistencies in the behavior of the directory
533 chooser dialog box.
573 - The "Search in Directory" command now always selects the most recently
574 searched in directory. To search in the current directory with the
575 filter based on the current buffer's file name, click the
576 "Synchronize" button.
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines
17 - Macros in the user macros directory now override macros in the system
18 macro directory.
20 - Added 'Next Dirty Buffer' and 'Insert Selection' macros
31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
33 - PHP mode now recognizes <script language="PHP">...</script>.
35 - Updated Omnimark syntax highlighting (Lionel Fiol).
429 {{{ Bug Fixes
431 - Fixed NullPointerException in FileCellRenderer if a VFS.DirectoryEntry
432 had a null symlinkPath (which should not be the case anyway).
517 - The "Search in Directory" command now always selects the most recently
518 searched in directory. To search in the current directory with the
519 filter based on the current buffer's file name, click the
520 "Synchronize" button.
el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines
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>
news.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 240 lines
31 <title> Preface </title>
33 <para> jEdit is a very mature text editor, and has gone through a very interesting phase of development. Left in a "prerelease" stage for about two years, it's had a long time to solifidy. Many of the original developers, including Slava Pestov, have stopped working directly on jEdit. Fortunately, because of the wonderful nature of open source, there are more and more eyeballs on this code than ever! We have received contributions of plugins, bugfixes, refactoring, and enhancements from around the globe, and our host, sourceforge.net <ulink url = "http://sourceforge.net/project/stats/detail.php?group_id=588&ugn=jedit&type=prdownload&mode=year&package_id=0" >reports</ulink> that there are on average at least a half-million downloads per year, and this has been true for the entire millenium.
34 </para>
106 <para>
107 Added <guimenuitem>Skip Binary</guimenuitem> and <guimenuitem>Skip Hidden</guimenuitem> options for Directory Search.
108 </para>
190 <bridgehead>SideKicks and Language Plugins </bridgehead>
191 <para> SideKick has been debugged and the documentation has been improved. Further, there is a new combobox that lets you choose your parser, and a new SplitPane to show you the contents of the hovered element. The combobox is especially important since there are multiple parsers that can be used on a given file, especially when you are working with Python, PHP, HTML, XML, or JavaScript files. </para>
193 <para> Many language-specific plugins have been redesigned to use the new and improved SideKick. In particular, JPyDebug, JythonInterpreter, RubyPlugin, PHPParser, JavaSideKick, XML, and PerlSideKick. Be sure to try them out.
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
343 /* Javadoc needs the file to live in a directory structure */
344 /* named like its Package name */
345 // If need be copy the file to the temp dir into its package dir */
346 String currBufferdir = savedBufferdir;
394 // to choose an output dir at runtime.
395 /*
396 String outputDir = _chooseADir("Please Choose an Output Directory.", "/");
397 */
475 command.append(showOnlyStr[showOnlyLevel]);
477 /* if not found add your source dir to the 'extraClassesdir' var */
478 command.append("-classpath \"");
479 command.append(System.getProperty("java.class.path"));
487 {
488 /* Guess where the package source is located */
489 /* if not found... add your source dir to the 'extraSourcedir' var */
490 command.append("-sourcepath \"");
491 command.append(savedBufferdir);
ChunkCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 919 lines
✨ Summary
This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.
This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
89 \fB\-settings=dir\fR
90 Store user-specific settings in the directory named "dir", instead
91 of the default $HOME/.jedit. The directory will be created automatically
133 \fB\-server\fR
134 Store the server port info in the file named "server" inside the settings
135 directory. This is the default.
136 .TP
137 \fB\-server=name\fR
138 Store the server port info in the file named "name". File names for this
139 parameter are relative to the settings directory.
140 .TP
141 \fB\-noserver\fR
147 .TP
148 ~/.jedit
149 Each user who runs \fBjEdit\fP has a settings directory. Its content is documented
150 in the "Customizing jEdit" section of the online help.
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
17 </SPAN>
19 <SPAN_REGEXP HASH_CHAR="<" TYPE="MARKUP" DELEGATE="DIRECTIVE">
20 <BEGIN><![CDATA[<(\w+)[^>]*>]]></BEGIN>
21 <END><![CDATA[</$1>]]></END>
93 <KEYWORD1>DefaultType</KEYWORD1>
94 <KEYWORD1>Deny</KEYWORD1>
95 <KEYWORD1>DirectoryIndex</KEYWORD1>
96 <KEYWORD1>DirectorySlash</KEYWORD1>
121 <KEYWORD1>LimitRequestBody</KEYWORD1>
122 <KEYWORD1>LimitXMLRequestBody</KEYWORD1>
123 <KEYWORD1>MetaDir</KEYWORD1>
124 <KEYWORD1>MetaFiles</KEYWORD1>
125 <KEYWORD1>MetaSuffix</KEYWORD1>
129 <KEYWORD1>PassEnv</KEYWORD1>
130 <KEYWORD1>ReadmeName</KEYWORD1>
131 <KEYWORD1>Redirect</KEYWORD1>
132 <KEYWORD1>RedirectMatch</KEYWORD1>
Condition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
3 /*
4 * $Id: Condition.php 325 2007-12-20 15:44:58Z hans $
5 *
6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
8 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
9 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
10 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
12 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines
editor_plugin.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 1 lines
✨ Summary
This JavaScript code creates a TinyMCE plugin called “Save” that adds two buttons to the editor: “save” and “cancel”. When clicked, these buttons trigger saving the content of the editor. The plugin also allows for custom callbacks to be executed before and after saving. It integrates with TinyMCE’s existing features, such as undo/redo management and form submission handling.
This JavaScript code creates a TinyMCE plugin called “Save” that adds two buttons to the editor: “save” and “cancel”. When clicked, these buttons trigger saving the content of the editor. The plugin also allows for custom callbacks to be executed before and after saving. It integrates with TinyMCE’s existing features, such as undo/redo management and form submission handling.
1 (function(){tinymce.create('tinymce.plugins.Save',{init:function(ed,url){var t=this;t.editor=ed;ed.addCommand('mceSave',t._save,t);ed.addCommand('mceCancel',t._cancel,t);ed.addButton('save',{title:'save.save_desc',cmd:'mceSave'});ed.addButton('cancel',{title:'save.cancel_desc',cmd:'mceCancel'});ed.onNodeChange.add(t._nodeChange,t);ed.addShortcut('ctrl+s',ed.getLang('save.save_desc'),'mceSave');},getInfo:function(){return{longname:'Save',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save',version:tinymce.majorVersion+"."+tinymce.minorVersion};},_nodeChange:function(ed,cm,n){var ed=this.editor;if(ed.getParam('save_enablewhendirty')){cm.setDisabled('save',!ed.isDirty());cm.setDisabled('cancel',!ed.isDirty());}},_save:function(){var ed=this.editor,formObj,os,i,elementId;formObj=tinymce.DOM.get(ed.id).form||tinymce.DOM.getParent(ed.id,'form');if(ed.getParam("save_enablewhendirty")&&!ed.isDirty())return;tinyMCE.triggerSave();if(os=ed.getParam("save_onsavecallback")){if(ed.execCallback('save_onsavecallback',ed)){ed.startContent=tinymce.trim(ed.getContent({format:'raw'}));ed.nodeChanged();}return;}if(formObj){ed.isNotDirty=true;if(formObj.onsubmit==null||formObj.onsubmit()!=false)formObj.submit();ed.nodeChanged();}else ed.windowManager.alert("Error: No form element found.");},_cancel:function(){var ed=this.editor,os,h=tinymce.trim(ed.startContent);if(os=ed.getParam("save_oncancelcallback")){ed.execCallback('save_oncancelcallback',ed);return;}ed.setContent(h);ed.undoManager.clear();ed.nodeChanged();}});tinymce.PluginManager.add('save',tinymce.plugins.Save);})();
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.
45 $extension = JRequest::getCmd('extension');
46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));
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 }
UnaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 73 lines
✨ Summary
This Java class represents a unary expression in an abstract syntax tree (AST) for PHP programming language. It extends another class OperatorExpression
and contains an instance of Expression
. The class provides methods to get variables used, modified, and outside the expression, as well as analyze code with a given parser.
This Java class represents a unary expression in an abstract syntax tree (AST) for PHP programming language. It extends another class OperatorExpression
and contains an instance of Expression
. The class provides methods to get variables used, modified, and outside the expression, as well as analyze code with a given parser.
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.
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 }
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;
IfStatement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 184 lines
✨ Summary
This Java class represents an if statement in a PHP program, including its condition, statements to execute, and optional elseifs and else clauses. It provides methods for converting the if statement to a string, getting variables used by the statement, analyzing code, and retrieving expressions at specific locations. The class extends another Statement
class and uses other classes like Expression
, ElseIf
, and VariableUsage
.
This Java class represents an if statement in a PHP program, including its condition, statements to execute, and optional elseifs and else clauses. It provides methods for converting the if statement to a string, getting variables used by the statement, analyzing code, and retrieving expressions at specific locations. The class extends another Statement
class and uses other classes like Expression
, ElseIf
, and VariableUsage
.
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.
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.
PostfixedUnaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 21 lines
✨ Summary
This Java class represents a postfix unary expression in an abstract syntax tree (AST). It extends the UnaryExpression
class and adds a specific implementation for postfix unary expressions. The class has a constructor that initializes its fields, including the operator, source end position, line number, and column number. The toStringExpression()
method returns a string representation of the expression by concatenating the original expression’s string with the operator’s string.
This Java class represents a postfix unary expression in an abstract syntax tree (AST). It extends the UnaryExpression
class and adds a specific implementation for postfix unary expressions. The class has a constructor that initializes its fields, including the operator, source end position, line number, and column number. The toStringExpression()
method returns a string representation of the expression by concatenating the original expression’s string with the operator’s string.
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.
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.
PHPSideKickCompletion.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 173 lines
✨ Summary
This Java class, PHPSideKickCompletion, extends SideKickCompletion and provides completion functionality for PHP syntax highlighting. It analyzes the current word in a text area and suggests possible completions based on PHP classes, methods, and keywords. The class handles keystrokes, inserting suggested completions, and updating the text area’s caret position accordingly.
This Java class, PHPSideKickCompletion, extends SideKickCompletion and provides completion functionality for PHP syntax highlighting. It analyzes the current word in a text area and suggests possible completions based on PHP classes, methods, and keywords. The class handles keystrokes, inserting suggested completions, and updating the text area’s caret position accordingly.
1 /*
2 * PHPSideKickCompletion.java - The PHP Parser
3 * :tabSize=8:indentSize=8:noTabs=false:
4 * :folding=explicit:collapseFolds=1:
21 package gatchan.phpparser.sidekick;
23 import gatchan.phpparser.project.itemfinder.PHPItemCellRenderer;
24 import net.sourceforge.phpdt.internal.compiler.ast.ClassDeclaration;
25 import net.sourceforge.phpdt.internal.compiler.ast.ClassHeader;
26 import net.sourceforge.phpdt.internal.compiler.ast.MethodDeclaration;
27 import net.sourceforge.phpdt.internal.compiler.ast.MethodHeader;
28 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
37 * @author Matthieu Casanova
38 */
39 public class PHPSideKickCompletion extends SideKickCompletion
40 {
41 private final String lastWord;
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
htmlsidekick.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 138 lines
✨ Summary
This HTML code generates a help page for an HTML editor plugin, providing information on its features, settings, and future plans. It includes sections on completion, validation, tag attributes, and history, with detailed explanations of each feature. The page also mentions compatibility requirements and previous versions.
This HTML code generates a help page for an HTML editor plugin, providing information on its features, settings, and future plans. It includes sections on completion, validation, tag attributes, and history, with detailed explanations of each feature. The page also mentions compatibility requirements and previous versions.
42 <p>
43 While designed specifically for HTML and JSP files, this plugin does a pretty good job of displaying ASP, ColdFusion, VRML, PHP, SGML, and Velocity files. Needless to say, it works with XML files too. You can elect to use this plugin for those edit modes by going to Plugins -> Plugin Options... -> SideKick -> Parsers, then selecting "<tt>html</tt>" for those edit modes. </p>
45 <h3>Completion</h3>
76 The core attributes are: "id", "class", "style", and "title". </li>
77 <li><b>Show Language Attributes</b> When checked, the standard attributes (if any) for internationalization will be displayed.
78 The language attributes are: "lang" and "dir". </li>
79 <li><b>Show Script Attributes</b> When checked, the standard attributes (if any) for scripting will be displayed.
80 The scripting attributes are: "onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover",
WinZipAesException.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 22 lines
jsonRpc10.php
(http://enginey.googlecode.com/svn/trunk/)
PHP · 48 lines
✨ Summary
This PHP script processes a JSON-RPC request from a client, determines the requested method and its parameters, and returns a response in JSON format. If the requested method is found, it returns the parameter as the result; otherwise, it returns an error message indicating that the method was not found. The response includes an ID matching the original request’s ID.
This PHP script processes a JSON-RPC request from a client, determines the requested method and its parameters, and returns a response in JSON format. If the requested method is found, it returns the parameter as the result; otherwise, it returns an error message indicating that the method was not found. The response includes an ID matching the original request’s ID.
1 <?php
2 require_once("./JSON.php");
8 // NOTE: File.php is installed via Pear using:
9 // %> sudo pear install File
10 // Your server will also need the Pear library directory included in PHP's
11 // include_path configuration directive
12 // require_once('File.php');
14 // ensure that we don't try to send "html" down to the client
21 $results['error'] = null;
23 $jsonRequest = file_get_contents('php://input');
24 //$jsonRequest = '{"params":["Blah"],"method":"myecho","id":86}';
DataSource.php (https://bitbucket.org/floresj/notetime.git) PHP · 444 lines
1 <?php
2 /**
3 * DataSource base class
5 * PHP 5
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
12 *
13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://cakephp.org CakePHP(tm) Project
15 * @package Cake.Model.Datasource
16 * @since CakePHP(tm) v 0.10.5.1790
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
routes.php (https://bitbucket.org/floresj/notetime.git) PHP · 23 lines
1 <?php
2 /**
3 * Routes file
7 * PHP versions 4 and 5
8 *
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2012, Cake Software Foundation, Inc.
11 *
14 *
15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
16 * @link http://cakephp.org CakePHP Project
17 * @package Cake.Test.test_app.Config
18 * @since CakePHP v 2.0
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 24 lines
1 msgid ""
2 msgstr ""
3 "Project-Id-Version: CakePHP Testsuite\n"
4 "POT-Creation-Date: 2008-10-09 19:20-0300\n"
5 "PO-Revision-Date: \n"
6 "Last-Translator: Renan Gonรงalves <renan.saddam@gmail.com>\n"
7 "Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
8 "MIME-Version: 1.0\n"
9 "Content-Type: text/plain; charset=UTF-8\n"
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
XmlReader.java
(http://btalk.googlecode.com/svn/)
Java · 240 lines
✨ Summary
This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.
This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.
_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.
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
SimpleKeyCacheInputStream.php (http://2moons.googlecode.com/svn/trunk/) PHP · 130 lines
category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines
1 <?php
2 /**
3 * @package Joomla.Administrator
138 // Preset the redirect
139 $this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);
141 return parent::batch($model);
144 /**
145 * Gets the URL arguments to append to an item redirect.
146 *
147 * @param integer $recordId The primary key id for the item.
148 * @param string $urlVar The name of the URL variable for the id.
149 *
150 * @return string The arguments to append to the redirect URL.
151 *
152 * @since 1.6
router.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 38 lines
bp-core-cache.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 130 lines
i2c-ali1535 (http://photon-android.googlecode.com/svn/) Unknown · 43 lines
controller.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 84 lines
1 <?php
2 /**
3 * @package Joomla.Site
63 $app = JFactory::getApplication();
64 $menu = $app->getMenu();
65 $items = $menu->getItems('link', 'index.php?option=com_search&view=search');
67 if(isset($items[0])) {
81 $this->setRedirect(JRoute::_('index.php'.$uri->toString(array('query', 'fragment')), false));
82 }
83 }
contentlanguages.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 72 lines
AclProviderInterface.php
(git://github.com/symfony/symfony.git)
PHP · 50 lines
✨ Summary
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
masterlist.txt (http://better-oblivion-sorting-software.googlecode.com/svn/) Plain Text · 5744 lines
27 Requirement REQ An installation requirement for the mod above.
28 Incompatibility INC A specific incompatibility for the mod above.
29 Dirty mod message DIRTY A message relating to dirty edits in the mod above.
30 Warning WARN A message used to display a non-critical warning for the mod above.
31 Error ERROR A message used to display a critical (ie. install-breaking) error for the mod above.
tests.php4
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 228 lines
✨ Summary
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.