100+ results for 'php exp'
Not the results you expected?
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 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: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
BaseUserService.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 399 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: BaseUserService.php 20166 2010-01-09 19:00:17Z bkarwin $
21 */
24 * @see Zend_Service_DeveloperGarden_Client_ClientAbstract
25 */
26 #require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
28 /**
29 * @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
30 */
31 #require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php';
33 /**
PhpClass.php (https://github.com/adaykin/zf2.git) PHP · 562 lines
147 * setPhpFile()
148 *
149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile
150 */
151 public function setPhpFile(PhpFile $phpFile)
333 * @param array|\Zend\CodeGenerator\Php\PhpProperty $property
334 * @return \Zend\CodeGenerator\Php\PhpClass
335 */
336 public function setProperty($property)
392 *
393 * @param array $methods
394 * @return \Zend\CodeGenerator\Php\PhpClass
395 */
396 public function setMethods(array $methods)
558 $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);
559 $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);
560 }
Grammar.php (https://github.com/sergiosgc/Structures_Grammar.git) PHP · 407 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
10 * c) A set of production rules of the form (N U T)*N(N U T)* -> (N U T)*
11 * where U is the set union operator and * is the Kleene star operator (the one
12 * used in regexps).
13 * d) A start symbol S that is a member of N
14 * The class automatically restricts sets N and T to be disjoint.
InstallSchema.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 407 lines
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 *
27 *
28 */
29 #[@test, @expect('unittest.AssertionFailedError')]
30 public function falseIsNotTrue() {
31 $this->assertTrue(FALSE);
45 *
46 */
47 #[@test, @expect('unittest.AssertionFailedError')]
48 public function trueIsNotFalse() {
49 $this->assertFalse(TRUE);
63 *
64 */
65 #[@test, @expect('unittest.AssertionFailedError')]
66 public function falseIsNotNull() {
67 $this->assertNull(FALSE);
faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
1 <?php
2 /**
3 * Zend Framework
482 $stylesheets = $this->getStyleSheets();
483 if (strstr($stylesheets, ';')) {
484 $stylesheets = explode(';', $stylesheets);
485 } elseif (!empty($stylesheets)) {
486 $stylesheets = (array) $stylesheets;
542 {
543 $styleSheets = $this->getStyleSheets();
544 $styleSheets = explode(';', $styleSheets);
545 return in_array($styleSheet, $styleSheets);
546 }
555 {
556 $styleSheets = $this->getStyleSheets();
557 $styleSheets = explode(';', $styleSheets);
558 if (false !== ($index = array_search($styleSheet, $styleSheets))) {
559 unset($styleSheets[$index]);
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 . "--";
129 $this->sendPasswordResetToUser($property);
130 break;
131 case 'sendPointshavebeenexpired':
132 $this->sendPointshavebeenexpired($property);
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
1 <?php
3 /**
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
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
AclVoterTest.php (https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB) PHP · 432 lines
1 <?php
3 /*
21 use Symfony\Component\Security\Acl\Voter\AclVoter;
23 class AclVoterTest extends \PHPUnit_Framework_TestCase
24 {
25 /**
32 $permissionMap
33 ->expects($this->once())
34 ->method('contains')
35 ->with($this->identicalTo($attribute))
91 list($voter, , $permissionMap, ,) = $this->getVoter();
92 $permissionMap
93 ->expects($this->atLeastOnce())
94 ->method('getMasks')
95 ->will($this->returnValue(null))
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines
1 <?php
2 namespace Parser;
3 /*
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
19 use Meta\AbstractPHPStructure;
20 use Meta\DocBlock;
33 /**
34 * Responsible for parsing a php class
35 *
36 * @author Richard Downes <richard@sculpt.ie>
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
50 /**
51 * Test as a privilged user (administrator)
52 * Expects test to pass
53 * @param mixed $comment Comment object
54 * @param string action trash, untrash, etc.
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
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
sfValidatorDateTest.php (https://github.com/IDCI-Consulting/WebsiteEval.git) PHP · 246 lines
1 <?php
3 /*
9 */
11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
13 $t = new lime_test(52);
88 $t->diag('validate regex');
89 $v->setOption('date_format', '~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~');
90 $t->is($v->clean('18/10/2005'), '2005-10-18', '->clean() accepts a regular expression to match dates');
91 $t->is($v->clean(array('year' => '2005', 'month' => '10', 'day' => '18')), '2005-10-18', '->clean() accepts a regular expression when cleaning an array');
100 {
101 $t->pass('->clean() throws a sfValidatorError if the date does not match the regex');
102 $t->like($e->getMessage(), '/'.preg_quote(htmlspecialchars($v->getOption('date_format'), ENT_QUOTES, 'UTF-8'), '/').'/', '->clean() returns the expected date format in the error message');
103 $t->is($e->getCode(), 'bad_format', '->clean() throws a sfValidatorError');
104 }
FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines
65 /**
66 * @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
67 */
68 public function testExpectsStringCompatibleTypeOrFile()
81 public function testValidUploadedfile()
82 {
83 $this->context->expects($this->never())
84 ->method('addViolation');
168 ;
169 $file
170 ->expects($this->once())
171 ->method('getPathname')
172 ->will($this->returnValue($this->path))
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
18 * Helper for specifying and resolving inter-dependent options.
19 *
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
21 * problems related to this approach is however a non-trivial task. Usually,
22 * both classes and subclasses should be able to set default option values.
119 *
120 * Now it is impossible to pass a value in the "gear" option that is not
121 * expected.
122 *
123 * Last but not least, you can define options that depend on other options.
314 foreach ($this->allowedValues as $option => $allowedValues) {
315 if (!in_array($options[$option], $allowedValues, true)) {
316 throw new InvalidOptionException(sprintf('The option "%s" has the value "%s", but is expected to be one of "%s"', $option, $options[$option], implode('", "', $allowedValues)));
317 }
318 }
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
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);
229 /**
230 * @expectedException UnexpectedValueException
231 */
232 public function testTreeUpdateShiftToChildParent()
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
sfValidatorBaseTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 246 lines
1 <?php
3 /*
9 */
11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
13 $t = new lime_test(47);
244 $v = new ValidatorIdentity(array(), array('required' => 'Yep, this is required!', 'foo' => 'Yep, this is a foo error!'));
245 $t->is($v->getMessage('required'), 'Yep, this is required!', '::setDefaultMessage() is ignored if the validator explicitly overrides the message');
246 $t->is($v->getMessage('foo'), 'Yep, this is a foo error!', '::setDefaultMessage() is ignored if the validator explicitly overrides the message');
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"
29 * @author Jordan Slott <jslott@dev.java.net>
30 */
31 @ExperimentalAPI
32 public class ContentURI extends AssetURI {
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 }
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 }
MassCancelTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 292 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
12 /**
13 * Class MassCancelTest
14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15 */
16 class MassCancelTest extends \PHPUnit_Framework_TestCase
23 /**
24 * @var Context|\PHPUnit_Framework_MockObject_MockObject
25 */
26 protected $contextMock;
28 /**
29 * @var \Magento\Backend\Model\View\Result\Redirect|\PHPUnit_Framework_MockObject_MockObject
30 */
31 protected $resultRedirectMock;
FilesystemTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 240 lines
1 <?php
3 /*
21 * @dataProvider providePathCouplesAsCode
22 */
23 public function testFindShortestPathCode($a, $b, $directory, $expected)
24 {
25 $fs = new Filesystem;
26 $this->assertEquals($expected, $fs->findShortestPathCode($a, $b, $directory));
27 }
69 * @dataProvider providePathCouples
70 */
71 public function testFindShortestPath($a, $b, $expected, $directory = false)
72 {
73 $fs = new Filesystem;
SetTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 295 lines
1 <?php
2 /**
3 *
10 use Magento\Eav\Model\ResourceModel\Entity\Attribute\Set;
12 class SetTest extends \PHPUnit_Framework_TestCase
13 {
14 /**
15 * @var \PHPUnit_Framework_MockObject_MockObject|Set
16 */
17 protected $model;
19 /**
20 * @var \PHPUnit_Framework_MockObject_MockObject
21 */
22 protected $eavConfigMock;
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 }
351 $message = str_replace("\r", "\n", $message);
353 $lines = explode("\n", $message);
355 foreach ($lines as $line) {
orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines
1 <?php
2 namespace Bitrix\Sale\Exchange\OneC;
22 {
23 self::$FIELD_INFOS = array(
24 //region export fields
25 /*'XML_1C_DOCUMENT_ID' => array(
26 'TYPE' => 'string'
166 )
167 ),
168 //region export fields requsite
169 'DATE_PAID' => array(
170 'TYPE' => 'array',
470 'TYPE' => 'string'
471 ),
472 //region export fields discount
473 'NAME' => array(
474 'TYPE' => 'string'
JFacebookNoteTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 467 lines
1 <?php
2 /**
3 * @package Joomla.UnitTest
65 $_SERVER['HTTP_HOST'] = 'example.com';
66 $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0';
67 $_SERVER['REQUEST_URI'] = '/index.php';
68 $_SERVER['SCRIPT_NAME'] = '/index.php';
70 $app_id = "app_id";
71 $app_secret = "app_secret";
72 $my_url = "http://localhost/gsoc/joomla-platform/facebook_test.php";
73 $access_token = array(
74 'access_token' => 'token',
75 'expires' => '51837673', 'created' => '2443672521');
77 $this->options = new JRegistry;
article0004Test.php (https://github.com/dextercowley/joomla-cms.git) PHP · 196 lines
1 <?php
2 /**
3 * @package Joomla.SystemTest
7 */
9 require_once 'SeleniumJoomlaTestCase.php';
11 /**
67 $this->click("link=Article Manager");
68 $this->waitForPageToLoad("30000");
69 $this->jPrint ("Check that first three articles are as expected\n");
70 $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']//table.1.3"));
71 $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']//table.2.3"));
103 $this->waitForPageToLoad("30000");
105 $this->jPrint ("Check that first three articles are as expected\n");
106 $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']//table.1.3"));
107 $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']//table.2.3"));
PU_test_dcp_role.php (https://github.com/CircleCode/dynacase-core.git) PHP · 432 lines
57 }
59 foreach ($expectedRoles as $roleLogin) {
60 $this->assertTrue(in_array($roleLogin, $uRoleLogins) , sprintf("role %s must be present", $roleLogin));
61 }
80 }
81 foreach ($uRoleLogins as $roleLogin) {
82 $this->assertTrue(in_array($roleLogin, $expectedRoles) , sprintf("role %s must not be present", $roleLogin));
83 }
84 }
87 * @dataProvider dataRoleMail
88 */
89 public function testRoleMail($roleLogin, $expectRawMail, $expectCompleteMail)
90 {
91 $r = new \User(self::$dbaccess);
107 $this->assertEquals($expectRawMail, $rawMail, "document role raw mail test");
108 $this->assertEquals($expectCompleteMail, $completeMail, "document role complete mail test");
109 }
110 /**
Base.php (https://github.com/ewandor/horde.git) PHP · 305 lines
PageRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 282 lines
Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines
1 <?php
3 namespace Smak\Portfolio\tests\units;
8 use tests\units\Smak\Portfolio\Fs;
10 require_once __DIR__ . '/../../../../vendor/autoload.php';
12 class Set extends Fs\FsAdapter
233 $first = $set->getFirst();
234 $tree = $this->buildFs()->getTree();
235 $expected = array_shift($tree['Travels']['Chile']);
237 $this->object($first)
240 $this->string($first->getFilename())
241 ->isEqualTo($expected);
242 }
SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines
1 <?php
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 */
12 require_once 'tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php';
14 /**
97 $this->assertTrue($t->isNew(), 'insertAtRank() doesn\'t save the object');
98 $t->save();
99 $expected = array(1 => 'row1', 2 => 'new', 3 => 'row2', 4 => 'row3', 5 => 'row4');
100 $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtRank() shifts the entire suite');
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
29 if (!is_null($this->getExpire()) && $result) {
30 $this->expire($this->getExpire(), $this->isExpireTimestamp());
31 }
46 if (!is_null($this->getExpire()) && $result) {
47 $this->expire($this->getExpire(), $this->isExpireTimestamp());
48 }
240 if (!is_null($this->getExpire())) {
241 $pipeline->expire($this->getName(), $this->getExpire(), $this->isExpireTimestamp());
242 }
ConstraintType.java (https://gitlab.com/Codeaurora/platform_sdk) Java · 237 lines
6 * You may obtain a copy of the License at
7 *
8 * http://www.eclipse.org/org/documents/epl-v10.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
NullTest.php (https://github.com/bruisedlee/zf2.git) PHP · 329 lines
PropertyPathMapperTest.php (https://bitbucket.org/vvanuytven/php_auto.git) PHP · 319 lines
1 <?php
3 /*
16 use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper;
18 class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase
19 {
20 /**
25 /**
26 * @var \PHPUnit_Framework_MockObject_MockObject
27 */
28 private $dispatcher;
30 /**
31 * @var \PHPUnit_Framework_MockObject_MockObject
32 */
33 private $propertyAccessor;
FingersCrossedHandlerTest.php (https://gitlab.com/techniconline/kmc) PHP · 255 lines
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';
16 class phpbb_notification_test extends phpbb_tests_notification_base
17 {
18 protected $notifications, $db, $container, $user, $config, $auth, $cache;
72 public function test_subscriptions()
73 {
74 $expected_subscriptions = array(
75 'notification.type.forum' => array('notification.method.board'),
76 'notification.type.post' => array('notification.method.board'),
GlyphPacker.cs (https://github.com/virtualglobebook/OpenGlobe.git) C# · 270 lines
16 //
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
33 namespace OpenTK.Graphics.Text
34 {
35 class GlyphPacker
36 {
37 Node root;
39 #region --- Constructors ---
41 public GlyphPacker(int width, int height)
42 {
43 if (width <= 0)
Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines
1 <?php
3 namespace User;
57 public function getConfig()
58 {
59 return include __DIR__.'/../../config/module.config.php';
60 }
62 /**
63 * Expected to return \Zend\ServiceManager\Config object or array to seed
64 * such an object.
65 *
104 /**
105 * Expected to return \Zend\ServiceManager\Config object or array to
106 * seed such an object.
107 *
Tag.php (https://github.com/sceccola/com_civicrm.git) PHP · 215 lines
1 <?php
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 {
115 CRM_Utils_Array::value( $parentId, $form->_submitValues['activity_taglist']) ) {
116 $allTags = CRM_Core_Pseudoconstant::tag( );
117 $tagIds = explode( ',', $form->_submitValues['activity_taglist'][$parentId] );
118 foreach( $tagIds as $tagId ) {
119 if ( is_numeric( $tagId ) ) {
132 CRM_Utils_Array::value( $parentId, $form->_submitValues['case_taglist']) ) {
133 $allTags = CRM_Core_Pseudoconstant::tag( );
134 $tagIds = explode( ',', $form->_submitValues['case_taglist'][$parentId] );
135 foreach( $tagIds as $tagId ) {
136 if ( is_numeric( $tagId ) ) {
CakeValidationSetTest.php (https://bitbucket.org/00firestar00/ejfirestar.com.git) 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 */
categories.php (https://github.com/tomtom127/oscommerce.git) PHP · 247 lines
provider_test.php (https://github.com/enovation/moodle.git) PHP · 240 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
56 $this->assertCount(1, $contextlist);
58 // Check that a context is returned is the expected.
59 $usercontext = \context_user::instance($user->id);
60 $this->assertEquals($usercontext->id, $contextlist->get_contextids()[0]);
63 /**
64 * Test that user data is exported correctly.
65 *
66 * @covers ::export_user_data
67 */
68 public function test_export_user_data() {
69 $user = $this->getDataGenerator()->create_user();
70 $auth = get_auth_plugin('lti');
EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines
1 <?php
3 namespace Drupal\Tests\Core\Entity;
167 * @dataProvider providerTestGetBundleInfo
168 */
169 public function testGetBundleInfo($entity_type_id, $expected) {
170 $this->moduleHandler->invokeAll('entity_bundle_info')->willReturn([]);
171 $this->moduleHandler->alter('entity_bundle_info', Argument::type('array'))->willReturn(NULL);
186 $bundle_info = $this->entityTypeBundleInfo->getBundleInfo($entity_type_id);
187 $this->assertSame($expected, $bundle_info);
188 }
243 $this->typedDataManager->clearCachedDefinitions()->shouldBeCalled();
245 $expected = [
246 'apple' => [
247 'apple' => [
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 |
20 // +----------------------------------------------------------------------+
21 //
22 // $Id: States.php,v 1.1 2006/08/14 01:42:55 glendavies Exp $
23 //
24 /**
25 * Parsing states.
26 * @package XML_HTMLSax3
27 * @version $Id: States.php,v 1.1 2006/08/14 01:42:55 glendavies Exp $
28 */
29 /**
UpdateQueryBuilderTest.php (https://github.com/csanquer/QueryBuilder.git) PHP · 326 lines
66 * @dataProvider setProvider
67 */
68 public function testSet($column, $expression, $value, $expected)
69 {
70 $this->assertInstanceOf('SQL\UpdateQueryBuilder', $this->queryBuilder->set($column, $expression, $value));
122 * @dataProvider getSetStringProvider
123 */
124 public function testGetSetString($sets, $expectedBoundParameters, $expected, $expectedFormatted)
125 {
126 foreach ($sets as $set) {
262 * @dataProvider getQueryStringProvider
263 */
264 public function testGetQueryString($table, $sets, $wheres, $expectedBoundParameters, $expected, $expectedFormatted)
265 {
266 $this->queryBuilder->update($table);
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()
125 public function exists($path)
126 {
127 // Explode the registry path into an array
128 if ($nodes = explode('.', $path))
171 return (isset($this->data->$path) && $this->data->$path !== null && $this->data->$path !== '') ? $this->data->$path : $default;
172 }
173 // Explode the registry path into an array
174 $nodes = explode('.', $path);
FinderTest.php (https://github.com/Exercise/symfony.git) PHP · 333 lines
142 $finder = new Finder();
143 $this->assertSame($finder, $finder->ignoreDotFiles(false)->ignoreVCS(false));
144 $this->assertIterator($this->toAbsolute(array('.git', 'foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
146 $finder = new Finder();
153 $finder = new Finder();
154 $this->assertSame($finder, $finder->sortByName());
155 $this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
156 }
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 }
shipping.php (https://gitlab.com/reclamare/mao) PHP · 268 lines
1 <?php
2 class ControllerApiShipping extends Controller {
3 public function address() {
237 $json['error'] = $this->language->get('error_method');
238 } else {
239 $shipping = explode('.', $this->request->post['shipping_method']);
241 if (!isset($shipping[0]) || !isset($shipping[1]) || !isset($this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]])) {
PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines
1 <?php
2 /*
3 * This file is a part of Mibew Messenger.
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 use vierbergenlars\SemVer\version as Version;
23 use vierbergenlars\SemVer\expression as VersionExpression;
25 /**
258 // Check exact version of the library
259 $version_constrain = new VersionExpression($required_version);
260 if (!$version_constrain->satisfiedBy(new Version($system_info[$lib]))) {
261 return true;
errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines
1 <?php
3 /**
39 'password exists history' => 'Password was used on one of last ten passwords',
40 'password invalid difference' => 'Password must differ in at least 3 characters with last 10 passwords',
41 'password expired' => 'Your password has expired',
42 'password invalid' => 'Your password is no longer valid',
138 'email address already exists' => 'That email address is already in use.',
140 'session expired error' => 'Session expired due to user inactivity. Please login again',
141 'unimplemented type' => 'Unimplemented type',
142 'unimplemented action' => 'Unimplemented action',
ClientUsageTest.java (https://bitbucket.org/beginnerjyh/jetty.project.git) Java · 260 lines
11 //
12 // The Apache License v2.0 is available at
13 // http://www.opensource.org/licenses/apache2.0.php
14 //
15 // You may elect to redistribute this code under either of these licenses.
194 {
195 // Differently from JDK 7 AIO, there is no need to
196 // have an explicit parameter for the context since
197 // that is captured while the handler is created anyway,
198 // and it is used only by the handler as parameter
County.java (https://github.com/sbower/kuali-rice-1.git) Java · 304 lines
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
289 /**
290 * A private class which exposes constants which define the XML element names to use
291 * when this object is marshalled to XML.
292 */
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2006, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
24 * @subpackage Libraries
25 * @category User Agent
26 * @author ExpressionEngine Dev Team
27 * @link http://codeigniter.com/user_guide/libraries/user_agent.html
28 */
array_init.h (https://bitbucket.org/gnanakeethan/hiphop-php.git) C Header · 320 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 */
mysql4-install-0.8.0.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 222 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_Core
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 */
137 `session_id` varchar(255) NOT NULL default '',
138 `website_id` smallint(5) unsigned default NULL,
139 `session_expires` int(10) unsigned NOT NULL default '0',
140 `session_data` text NOT NULL,
141 PRIMARY KEY (`session_id`),
ext_reflection.h (https://gitlab.com/0072016/0072016-PHP.LLC) C Header · 282 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
HelperRegistryTest.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 334 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 2.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
102 * test lazy loading of helpers
103 *
104 * @expectedException \Cake\View\Exception\MissingHelperException
105 * @return void
106 */
ipn.php (https://github.com/steebo/CakePHP-Paypal-IPN-Plugin.git) PHP · 120 lines
1 <?php
2 class ipnSchema extends CakeSchema {
3 var $name = 'ipn';
46 'tax' => array('type' => 'float', 'null' => true, 'default' => NULL, 'length' => '10,2'),
47 'auth_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 19),
48 'auth_exp' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 28),
49 'auth_amount' => array('type' => 'integer', 'null' => true, 'default' => NULL),
50 'auth_status' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 20),
ManagerController.php (https://github.com/ccaballero/yachay.git) PHP · 248 lines
1 <?php
3 class Teams_ManagerController extends Yachay_Controller_Action
54 $breadcrumb['Materias'] = $this->view->url(array(), 'subjects_list');
55 }
56 if ($this->acl('subjects', array('new', 'import', 'export', 'lock', 'delete'))) {
57 $breadcrumb['Administrador de materias'] = $this->view->url(array(), 'subjects_manager');
58 }
124 $breadcrumb['Materias'] = $this->view->url(array(), 'subjects_list');
125 }
126 if ($this->acl('subjects', array('new', 'import', 'export', 'lock', 'delete'))) {
127 $breadcrumb['Administrador de materias'] = $this->view->url(array(), 'subjects_manager');
128 }
TranslatorTest.php (https://gitlab.com/Marwamimo/Crowdrise_Web) PHP · 288 lines
1 <?php
3 /*
18 use Symfony\Component\Translation\MessageSelector;
20 class TranslatorTest extends \PHPUnit_Framework_TestCase
21 {
22 protected $tmpDir;
100 $translator->setLocale('invalid locale');
102 $this->setExpectedException('\InvalidArgumentException');
103 $translator->trans('foo');
104 }
113 $request = $this->getMock('Symfony\Component\HttpFoundation\Request');
114 $request
115 ->expects($this->any())
116 ->method('getLocale')
117 ->will($this->returnValue('en'))
Form.class.php (https://github.com/bassta/onphp-framework.git) PHP · 498 lines
1 <?php
2 /****************************************************************************
3 * Copyright (C) 2004-2009 by Konstantin V. Arkhipov, Anton E. Lebedevich *
16 * @ingroup Module
17 *
18 * @see http://onphp.org/examples.Form.en.html
19 **/
20 final class Form extends RegulatedForm
346 }
348 public function exportValue($primitiveName)
349 {
350 return $this->get($primitiveName)->exportValue();
351 }
353 public function export()
354 {
355 $result = array();
ZipTarget.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 24 lines
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
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.'"/>';
posts.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 195 lines
81 <h2><?php _e( 'Posts' ); ?>
82 <?php
83 $h2_search = $post_query->get( 'post_text' );
84 $h2_forum = $post_query->get( 'forum_id' );
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; ?>
148 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" class="button submit-input" />
149 <?php bb_nonce_field( 'post-bulk' ); ?>
150 </fieldset>
152 <div class="tablenav">
153 <?php if ( $total ) : ?>
154 <div class="tablenav-pages">
155 <span class="displaying-num"><?php echo $displaying_num = sprintf(
php4run.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 218 lines
21 /* This causes warnings from GCC >= 4.2 (assigning a string literal to char*).
22 * But this seems to be unavoidable without directly assuming knowledge of
23 * the structure, which changed between PHP4 and PHP5. */
24 # define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_NAMED_FE(ZN, N, A)
25 #endif
33 } while (0)
35 /* These TSRMLS_ stuff should already be defined now, but with older php under
36 redhat are not... */
37 #ifndef TSRMLS_D
54 /* But in fact SWIG_ConvertPtr is the native interface for getting typed
55 pointer values out of zvals. We need the TSRMLS_ macros for when we
56 make PHP type calls later as we handle php resources */
57 #define SWIG_ConvertPtr(obj,pp,type,flags) SWIG_ZTS_ConvertPtr(obj,pp,type,flags TSRMLS_CC)
67 #define SWIG_PHP_Error(code,msg) do { SWIG_ErrorCode() = code; SWIG_ErrorMsg() = msg; SWIG_fail; } while (0)
69 #define SWIG_contract_assert(expr,msg) \
70 if (!(expr) ) { zend_printf("Contract Assert Failed %s\n",msg ); } else
_zewdDocumentation1.m
(git://github.com/robtweed/EWD.git)
Objective C · 913 lines
✨ Summary
This is a collection of methods for interacting with an XML Document Object Model (DOM). It provides functions to locate, manipulate and query elements within the DOM, such as getting the tag name, prefix, public ID, system ID, and attribute values, as well as searching for specific nodes based on tag name and attribute values.
This is a collection of methods for interacting with an XML Document Object Model (DOM). It provides functions to locate, manipulate and query elements within the DOM, such as getting the tag name, prefix, public ID, system ID, and attribute values, as well as searching for specific nodes based on tag name and attribute values.
281 ;;<?xml version='1.0' encoding='UTF-8' ?>
282 ;;In this example, target = "xml", data = "version='1.0' encoding='UTF-8'
283 ;;This method can also be used to create PHP processing instructions, eg:
284 ;;<?php
285 ;;//this is some PHP code
286 ;;?>
287 ;;In this example, "php" is the target and your PHP code is specified as data.
288 ;;</purpose>
289 ;;<parameters>
helphelp.txt (https://code.google.com/p/msysgit/) Unknown · 350 lines
69 :help i^V
70 <
71 To use a regexp |pattern|, first do ":help" and then
72 use ":tag {pattern}" in the help window. The
73 ":tnext" command can then be used to jump to other
107 next one. Or use |:cwindow| to get the list of
108 matches in the quickfix window.
109 {pattern} is used as a Vim regexp |pattern|.
110 'ignorecase' is not used, add "\c" to ignore case.
111 Example for case sensitive search: >
224 Polish - translated by Mikolaj Machowski
225 Russian - translated by Vassily Ragosin
226 See the Vim website to find them: http://www.vim.org/translations.php
228 A set of translated help files consists of these files:
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.
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.
layout-devices.xsd (https://bitbucket.org/nbargnesi/idea.git) XML Schema · 345 lines
7 * You may obtain a copy of the License at
8 *
9 * http://www.eclipse.org/org/documents/epl-v10.php
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
214 <xsd:documentation xml:lang="en">
215 If your configuration uses a soft keyboard, use the keyssoft value.
216 If it doesn't and has a real keyboard, use keysexposed or keyshidden.
217 </xsd:documentation>
218 </xsd:annotation>
Curl.php
(http://xe-core.googlecode.com/svn/trunk/)
PHP · 462 lines
✨ Summary
This is a PHP class that implements the HTTP_Request2 interface for sending HTTP requests using the cURL extension. It provides methods for setting and getting request configuration options, adding request headers, and sending the request. The class also includes callback functions for handling response data from cURL.
This is a PHP class that implements the HTTP_Request2 interface for sending HTTP requests using the cURL extension. It provides methods for setting and getting request configuration options, adding request headers, and sending the request. The class also includes callback functions for handling response data from cURL.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
39 * @license http://opensource.org/licenses/bsd-license.php New BSD License
40 * @version SVN: $Id: Curl.php 291118 2009-11-21 17:58:23Z avb $
41 * @link http://pear.php.net/package/HTTP_Request2
45 * Base class for HTTP_Request2 adapters
46 */
47 require_once 'HTTP/Request2/Adapter.php';
49 /**
199 curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
200 }
201 // works sometime after 5.3.0, http://bugs.php.net/bug.php?id=49571
202 if ($this->request->getConfig('strict_redirects') && defined('CURLOPT_POSTREDIR ')) {
203 curl_setopt($ch, CURLOPT_POSTREDIR, 3);
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>
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
21 \fBjEdit\fP is a cross-platform text editor written in Java. It
22 has an extensive feature set that includes syntax highlighting, auto indent,
23 folding, word wrap, abbreviation expansion, multiple clipboards, powerful search and replace and much more.
25 Furthermore, \fBjEdit\fP is extremely customizable, and extensible, using either macros written in the BeanShell scripting language, or plugins written
158 .SH BUGS
159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.
161 .SH WEB
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>
22 </SPAN_REGEXP>
24 <KEYWORDS>
85 <KEYWORD1>ContentDigest</KEYWORD1>
86 <KEYWORD1>CookieDomain</KEYWORD1>
87 <KEYWORD1>CookieExpires</KEYWORD1>
88 <KEYWORD1>CookieName</KEYWORD1>
89 <KEYWORD1>CookieStyle</KEYWORD1>
_zewdCompiler7.m
(git://github.com/robtweed/EWD.git)
Objective C · 1405 lines
✨ Summary
This Objective C code appears to be part of a web application, specifically handling dynamic data and user interactions. It provides functions for merging arrays from a session, copying lists between sessions, retrieving text from lists, replacing options by field name or ID, and returning options with specific values. These functions seem to be used in a web page’s JavaScript code to update and interact with the web application’s data.
This Objective C code appears to be part of a web application, specifically handling dynamic data and user interactions. It provides functions for merging arrays from a session, copying lists between sessions, retrieving text from lists, replacing options by field name or ID, and returning options with specific values. These functions seem to be used in a web page’s JavaScript code to update and interact with the web application’s data.
159 . . . . s jsTextOID=$$modifyTextData^%zewdDOM(jsText,jsTextOID)
160 . . ;
161 . . ; Now expand any ewd.ajaxRequest functions
162 . . ;
163 . . k %changed,%id,%np,%nvp,%p1,%p2,%p3,%p4,%trace,%url
315 . s x3=$p(p2,"&php;",3,500)
316 . s x2=$g(phpVars(x2))
317 . s p2=x1_"<?="_x2_" ?>"_x3
318 s p3=$p(p2,";",1)
724 . quit:$$zcvt^%zewdAPI(filename,"L")'[".inc"
725 . set filename=inputPath_filename
726 . set %error=$$parseFile^%zewdHTMLParser(filename,incDocName,,.phpVars,1)
727 . if %error'="" QUIT
728 . set incDocOID=$$getDocumentNode^%zewdDOM(incDocName)
844 . . k cspVarsX,phpVarsX
845 . . m cspVarsX=cspVars
846 . . m phpVarsX=phpVars
847 . . s path=$$getApplicationRootPath^%zewdAPI()
848 . . s dlim=$$getDelim^%zewdCompiler()
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 $
4 *
5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 */
22 require_once 'phing/tasks/system/condition/ConditionBase.php';
24 /**
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
3 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4 <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
72 Unk62oG1sELf4JoEFKROOQ0jfYrXDxVgafeGULx14nhF5qXeI6IqeniQw95yN1yeDQe7s+W+Z3oi
73 fbeiW+yRY8fDTnjQg4tzdH7J8vQUK5lCJGsgBWeWwkhmatBd+muTVmucMef7cIrzKVzRidK3AhLa
74 NLF2OMI5dGNtTt84oqzODudChHOBS69QXTToEXpVgijeprCMYe6I1+lfVBCrfBeloGFAl4vaOMwz
75 lIy2wlEEslYoWx0WubBOmYWNBGYMI2lHXq4yx4eT37gucnSsvr9fubv1CjvaI68WpJzIp6dMjx8z
76 np+QxxEzp4gxi1cURKBIoEQhByii5FAhvCKO4A0xEaS9Rp4iA1477GCOulMWA/7kCf0Pf5mzx0/o
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
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.
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;
3 import java.util.EventListener;
5 /**
6 * The listener to listen to the PHPParserListener
7 *
8 * @author Matthieu Casanova
9 */
10 public interface PHPParserListener extends EventListener {
12 void parseError(PHPParseErrorEvent e);
13 void parseMessage(PHPParseMessageEvent e);
14 }
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;
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.
5 /**
6 * A ConditionalExpression is like that : booleanExpression ? trueValue : falseValue;.
7 * @author Matthieu Casanova
8 */
9 public final class ConditionalExpression extends OperatorExpression {
11 private final Expression condition;
12 private final Expression valueIfTrue;
13 private final Expression valueIfFalse;
15 public ConditionalExpression(final Expression condition,
16 final Expression valueIfTrue,
tip2.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 18 lines
✨ Summary
This HTML code describes a basic code completion feature. It explains how pressing <b>C+b</b>
searches for words starting with the input before the caret in the current buffer and mode’s keyword list, providing suggestions to auto-complete previously-declared identifier names, Javadoc tags, or PHP function names.
This HTML code describes a basic code completion feature. It explains how pressing <b>C+b</b>
searches for words starting with the input before the caret in the current buffer and mode’s keyword list, providing suggestions to auto-complete previously-declared identifier names, Javadoc tags, or PHP function names.
try.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 24 lines
ComponentCollectionTest.php (https://bitbucket.org/floresj/notetime.git) PHP · 178 lines
1 <?php
2 /**
3 * ComponentCollectionTest file
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://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
15 * @package Cake.Test.Case.Controller
16 * @since CakePHP(tm) v 2.0
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
19 App::uses('CakeResponse', 'Network');
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
home.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 189 lines
169 <ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>
170 <li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a>
171 <ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>
172 <li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>
173 <ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>
174 <li><a href="http://api20.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>
175 <ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li>
183 <ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>
184 <li><a href="http://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>
185 <ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>
186 <li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a>
187 <ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li>
default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines
WinZipAesExtra.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 46 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);})();
RoleVoter.php
(git://github.com/symfony/symfony.git)
PHP · 62 lines
✨ Summary
This PHP class, RoleVoter
, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN
by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED
.
This PHP class, RoleVoter
, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN
by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED
.
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;
29 import org.gjt.sp.jedit.jEdit;
30 import org.gjt.sp.jedit.textarea.Selection;
AboutBox.resx (https://hg01.codeplex.com/jungletimer) Unknown · 1288 lines
135 1ub2N0dXZ3eHl6e3x9fn9xEAAgIBAgQEAwQFBgcHBgU1AQACEQMhMRIEQVFhcSITBTKBkRShsUIjwVLR
136 8DMkYuFygpJDUxVjczTxJQYWorKDByY1wtJEk1SjF2RFVTZ0ZeLys4TD03Xj80aUpIW0lcTU5PSltcXV
137 5fVWZnaGlqa2xtbm9ic3R1dnd4eXp7fH/9oADAMBAAIRAxEAPwDypKE4EqbayU4C0EsIS2yiurifEJRP
138 eIhHhRaMMP8AFL0z9/CNLGyBqC2JPina03PDG8mAJ8fotR4QjiKH041kc/lUnVgCe3iNVv8ASunY1Zsd
139 ktJZtOx5B9rh/grf9Ha39x//AFtZWbXL32hu1kwDxOqccJA4lkc0ZSMR0ahqcGhx0ae6iWxyiNc4CAdO
157 qInXVlAXe8umAGjuAkjvxaq2w+yXFoc0jgk9pSRo730TWvDR+x//0/Kwp16gjzEqLRoVKvuERug7O10U
158 Pvf6e91VY+k9kA/yGb1bufbSXMd1Gwt7NbZ/5ksL7bbVV6FJ2j85w5JUcbHsyb2NDH2guG/YC50fnQfd
159 7lJI46AMRKX7xYRDJxEiZjHpHdlmsa23cLJ3ckjv/ZQPb/pAPhP9y6DI6de1m240dPqaDFTnSWt82D6X
160 P07LP0iyTj9PZ9F9lwGm6G1A/DebXqMy7Fn4WuK69pdLiByQ0lQPpfvH7v8AarT7KA0NZWABoJfJ+9ga
161 hGxg+jWwecFx/wCkSm690UwdW7a10Oh/0CWnWP3T+crTMFzNrrnNqYwjcSZLT+b6jWbn17v3tqALLCx7
208 AQAAAAAAAAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUH
209 BggFAwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNU
210 ZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3
211 EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNTFWNzNPEl
212 BhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaWprbG1ub2JzdH
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>
gfortran.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 27 lines
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.
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">
3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>
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
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.
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.
category.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 177 lines
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
Makefile.old (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 16 lines
2 SWIG = $(TOP)/../swig
3 SRCS = example.c
4 TARGET = php_example
5 INTERFACE = example.i
6 SWIGOPT = -noproxy
8 all::
9 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
10 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4
12 clean::
13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h
15 check: all
php_calendar.php
(http://phpwcms.googlecode.com/svn/trunk/)
PHP · 150 lines
✨ Summary
The PHP code generates a calendar table with the current month and year, displaying days of the week and dates. It takes into account day names, weekday numbers, and user-defined links for each date. The output is an HTML string representing a calendar table, which can be used in a web page or other application to display a calendar view.
The PHP code generates a calendar table with the current month and year, displaying days of the week and dates. It takes into account day names, weekday numbers, and user-defined links for each date. The output is an HTML string representing a calendar table, which can be used in a web page or other application to display a calendar view.
1 <?php
3 ////////////////////////////////////////////////////////
5 // PHP Calendar (version 2.3), written by Keith Devens
6 // http://keithdevens.com/software/php_calendar
8 // License: http://keithdevens.com/software/license
10 // enhanced by Oliver Georgi for phpwcms
46 }
48 @list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
49 $weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
50 $title = htmlentities(ucfirst($month_name)).' '.$year; //note that some locales don't capitalize month and day names
index.php
(http://sgd.googlecode.com/svn/trunk/)
PHP · 60 lines
✨ Summary
This HTML code is a basic template for an administrative dashboard, likely used to manage teachers’ information. It includes PHP session start, links to CSS and JavaScript files, and includes several PHP views (header, sobre, menuLogin, footer) that are dynamically rendered based on user login status. The layout is divided into main content, sidebar, and footer sections.
This HTML code is a basic template for an administrative dashboard, likely used to manage teachers’ information. It includes PHP session start, links to CSS and JavaScript files, and includes several PHP views (header, sobre, menuLogin, footer) that are dynamically rendered based on user login status. The layout is divided into main content, sidebar, and footer sections.
18 <body>
19 <div id="wrapper">
20 <?php include 'app/views/header.php'; ?>
21 <div id="page">
22 <div id="content">
23 <?php include 'app/views/sobre.php'; ?>
24 </div>
25 <div id="sidebar">
35 </div>
36 <div id="auxiliarOculta"></div>
37 <?php include 'app/views/footer.php'; ?>
38 </div>
39 <script type="text/javascript" src="public/js/jquery-1.4.2.min.js"></script>