100+ results for 'php tan'
Not the results you expected?
InstallSchema.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 407 lines
214 25,
215 [],
216 'For instance entities'
217 )->addColumn(
218 'entities',
228 'Path to widget template'
229 )->addIndex(
230 $installer->getIdxName('widget_instance_page', 'instance_id'),
231 'instance_id'
232 )->addForeignKey(
233 $installer->getFkName('widget_instance_page', 'instance_id', 'widget_instance', 'instance_id'),
234 'instance_id',
270 ['type' => \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_UNIQUE]
271 )->addForeignKey(
272 $installer->getFkName('widget_instance_page_layout', 'page_id', 'widget_instance_page', 'page_id'),
273 'page_id',
274 $installer->getTable('widget_instance_page'),
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
102 #[@test]
103 public function equalsMethodIsInvoked() {
104 $instance= newinstance('lang.Object', array(), '{
105 public $equalsInvoked= 0;
111 }');
113 $this->assertEquals($instance, $instance);
114 $this->assertNotEquals($instance, NULL);
257 */
258 #[@test, @expect('unittest.AssertionFailedError')]
259 public function objectIsNotAnInstanceOfString() {
260 $this->assertInstanceOf('lang.types.String', new Object());
401 */
402 #[@test, @expect('unittest.AssertionFailedError')]
403 public function primitiveIsNotAnInstanceOfStringClass() {
404 $this->assertInstanceOf('string', new String());
os2.javainstall.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 31 lines
✨ Summary
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
1 <!-- begin os2.javainstall.text -->
3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->
5 <p>To find out which Java virtual machine is best for running jEdit on OS/2,
6 see the <a href="index.php?page=compatibility">compatibility</a> page.</p>
8 <p>To install jEdit, open a command prompt and
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
1 <?php
2 /**
3 * File containing the eZISBN10To13Converter class.
42 function addAllClasses()
43 {
44 $db = eZDB::instance();
45 $this->Cli->output( $this->Cli->stylize( 'strong', 'Fetch All' ) . ' classes:' );
46 $sql = "SELECT id, data_int1 FROM ezcontentclass_attribute WHERE " .
87 {
88 $class = eZContentClass::fetch( $classID );
89 if ( $class instanceof eZContentClass )
90 {
91 $classFilter = array( 'data_type_string' => 'ezisbn' );
145 {
146 $classAttribute = eZContentClassAttribute::fetch( $attributeID );
147 if ( $classAttribute instanceof eZContentClassAttribute )
148 {
149 if ( $classAttribute->attribute( 'data_type_string' ) == 'ezisbn' )
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
37 private function setheaders() {
38 /*$BccList = array('nakarinb@bluecube.com.sg','bobby.tan@bluecube.com.sg');*/
39 $this->headers = "To: " . $this->toMail . "\r\n";
40 $this->headers .= "From: " . $this->fromMail . "\r\n";
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 . "--";
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
FormErrors.php (https://github.com/jtai/zf2.git) PHP · 466 lines
1 <?php
2 /**
3 * Zend Framework
84 {
85 $form = $this->getElement();
86 if (!$form instanceof Form\Form) {
87 return $content;
88 }
447 }
448 foreach ($form->getElementsAndSubFormsOrdered() as $subitem) {
449 if ($subitem instanceof Form\Element && !$this->getOnlyCustomFormErrors()) {
450 $messages = $subitem->getMessages();
451 if (count($messages)) {
456 . $this->getMarkupListItemEnd();
457 }
458 } elseif ($subitem instanceof Form\Form && !$this->ignoreSubForms()) {
459 $content .= $this->getMarkupListStart()
460 . $this->_recurseForm($subitem, $view)
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
1 <?php
2 // Prevent file from being loaded directly
3 if ( ! defined( 'ABSPATH' ) ) {
150 'et_pb_featured_posts_slider-border_radius' => '3px',
152 // Blog Feed Standard
153 'et_pb_posts_blog_feed_standard-header_font_size' => '16px',
154 'et_pb_posts_blog_feed_standard-header_font_style' => 'uppercase',
155 'et_pb_posts_blog_feed_standard-header_text_color' => '',
156 'et_pb_posts_blog_feed_standard-header_line_height' => '1',
157 'et_pb_posts_blog_feed_standard-header_letter_spacing' => '1.2px',
159 'et_pb_posts_blog_feed_standard-title_font_size' => '18px',
160 'et_pb_posts_blog_feed_standard-title_font_style' => '',
AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines
1 <?php
2 namespace Parser;
3 /*
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>
44 * Responsible for storing the information about the structure being parsed
45 *
46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure
47 */
48 protected $structure;
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
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
59 import("Db");
60 // 获取数据库操作对象
61 $this->db = Db::getInstance(empty($this->connection)?'':$this->connection);
62 // 设置表前缀
63 $this->tablePrefix = $this->tablePrefix?$this->tablePrefix:C('DB_PREFIX');
VoteTest.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 536 lines
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"
172 * @inheritDoc()
173 */
174 public void setServerHostAndPort(String hostNameAndPort) {
175 parseHostNameAndPort(hostNameAndPort);
176 }
ast_tree_output.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 550 lines
1 <?php
2 /**
3 * File containing the ezcTemplateAstNodeGenerator class
33 /**
34 * Convenience function for outputting a node.
35 * Instantiates the ezcTemplateAstTreeOutput class and calls accept() on
36 * $node, the resulting text is returned.
37 *
59 /**
60 * visitConstantAstNode
61 *
62 * @param ezcTemplateConstantAstNode $node
63 * @return void
64 */
65 public function visitConstantAstNode( ezcTemplateConstantAstNode $node )
66 {
67 $this->text .= $this->outputNode( $node );
Barcode.php (https://github.com/jtai/zf2.git) PHP · 323 lines
1 <?php
2 /**
3 * Zend Framework
45 * Default barcode TTF font name
46 *
47 * It's used by standard barcode objects derived from
48 * {@link Object\AbstractObject} class
49 * if corresponding constructor option is not provided.
74 public static function getObjectBroker()
75 {
76 if (!self::$objectBroker instanceof Broker) {
77 self::$objectBroker = new ObjectBroker();
78 }
88 public static function getRendererBroker()
89 {
90 if (!self::$rendererBroker instanceof Broker) {
91 self::$rendererBroker = new RendererBroker();
92 }
Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
79 public function __construct($options = null)
80 {
81 if ($options instanceof Zend_Config) {
82 $this->setConfig($options);
83 }
147 foreach ($tags as $tag) {
148 if ($tag instanceof Zend_Tag_Taggable) {
149 $itemList[] = $tag;
150 } else if (is_array($tag)) {
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;
Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines
Base.php (https://github.com/ewandor/horde.git) PHP · 305 lines
1 <?php
2 /**
3 * Utilities for the various XML handlers.
4 *
5 * PHP version 5
6 *
7 * @category Kolab
80 * @param DOMNode $parent_node The parent node of the
81 * node to be loaded.
82 * @param Horde_Kolab_Format_Xml_Helper $helper A XML helper instance.
83 * @param array $params Additiona parameters for
84 * this parse operation.
104 *
105 * @param DOMNode $node Retrieve value for this node.
106 * @param Horde_Kolab_Format_Xml_Helper $helper A XML helper instance.
107 * @param array $params Additiona parameters for
108 * this parse operation.
fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines
1 <?php return array(
2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',
3 'how to purchase' => 'Hvordan kjøpe',
46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',
49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>
50 I dette menyvalget kan du redigere din personlige informasjon.<br/>
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
24 import static com.android.ide.common.api.SegmentType.TOP;
25 import static com.android.ide.common.api.SegmentType.UNKNOWN;
26 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ABOVE;
27 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BASELINE;
28 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BOTTOM;
29 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_LEFT;
30 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_BOTTOM;
31 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_LEFT;
Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
79 public function __construct($options = null)
80 {
81 if ($options instanceof Zend_Config) {
82 $this->setConfig($options);
83 }
147 foreach ($tags as $tag) {
148 if ($tag instanceof Zend_Tag_Taggable) {
149 $itemList[] = $tag;
150 } else if (is_array($tag)) {
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;
FormErrors.php (https://github.com/lazenge/zf2.git) PHP · 466 lines
1 <?php
2 /**
3 * Zend Framework
84 {
85 $form = $this->getElement();
86 if (!$form instanceof Form\Form) {
87 return $content;
88 }
447 }
448 foreach ($form->getElementsAndSubFormsOrdered() as $subitem) {
449 if ($subitem instanceof Form\Element && !$this->getOnlyCustomFormErrors()) {
450 $messages = $subitem->getMessages();
451 if (count($messages)) {
456 . $this->getMarkupListItemEnd();
457 }
458 } elseif ($subitem instanceof Zend\Form && !$this->ignoreSubForms()) {
459 $content .= $this->getMarkupListStart()
460 . $this->_recurseForm($subitem, $view)
ConfigListener.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
121 $module = $e->getModule();
123 if (!$module instanceof ConfigProviderInterface
124 && !is_callable(array($module, 'getConfig'))
125 ) {
271 protected function addConfigPaths($paths, $type)
272 {
273 if ($paths instanceof Traversable) {
274 $paths = ArrayUtils::iteratorToArray($paths);
275 }
279 sprintf('Argument passed to %::%s() must be an array, '
280 . 'implement the \Traversable interface, or be an '
281 . 'instance of Zend\Config\Config. %s given.',
282 __CLASS__, __METHOD__, gettype($paths))
283 );
GlyphPacker.cs (https://github.com/virtualglobebook/OpenGlobe.git) C# · 270 lines
64 /// <exception cref="InvalidOperationException">Occurs if the item is larger than the available TexturePacker area</exception>
65 /// <exception cref="TexturePackerFullException">Occurs if the item cannot fit in the remaining packer space.</exception>
66 public bool TryAdd(Rectangle boundingBox, out Rectangle packedRectangle)
67 {
68 if (!root.Rectangle.Contains(boundingBox))
85 }
87 packedRectangle = new Rectangle(node.Rectangle.X, node.Rectangle.Y, node.Rectangle.Width - 2, node.Rectangle.Height - 2);
88 return true;
89 }
101 /// <exception cref="InvalidOperationException">Occurs if the item is larger than the available TexturePacker area</exception>
102 /// <exception cref="TexturePackerFullException">Occurs if the item cannot fit in the remaining packer space.</exception>
103 public bool TryAdd(RectangleF boundingBox, out RectangleF packedRectangle)
104 {
105 Rectangle bbox = new Rectangle(
Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 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
63 $this->object($set)
64 ->isInstanceOf('\Symfony\Component\Finder\Finder');
66 $this->object($set)
67 ->isInstanceOf('\Smak\Portfolio\Portfolio');
69 $this->class('\Smak\Portfolio\Set')
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 /**
266 $t2 = Table11Peer::retrieveByRank(2);
267 $res = $t2->removeFromList();
268 $this->assertTrue($res instanceof Table11, 'removeFromList() returns the current object');
269 $this->assertNull($res->getRank(), 'removeFromList() resets the object\'s rank');
270 Table11Peer::clearInstancePool();
BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines
1 <?php
47 *
48 * @param string $dbName The dabase name
49 * @param string $modelName The phpName of a model, e.g. 'Book'
50 * @param string $modelAlias The alias for the model in this query, e.g. 'b'
51 */
65 public static function create($modelAlias = null, $criteria = null)
66 {
67 if ($criteria instanceof CcBackupQuery) {
68 return $criteria;
69 }
72 $query->setModelAlias($modelAlias);
73 }
74 if ($criteria instanceof Criteria) {
75 $query->mergeWith($criteria);
76 }
Object.js (https://github.com/Seldaiendil/meyeOS.git) JavaScript · 429 lines
10 License:
11 LGPL: http://www.gnu.org/licenses/lgpl.html
12 EPL: http://www.eclipse.org/org/documents/epl-v10.php
13 See the LICENSE file in the project's top-level directory for details.
124 testRemoveUnexistantTarget: function() {
125 // test some cases
126 this.__controller.removeTarget(this.__label1, "value", "zIndex");
ConfigListener.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
121 $module = $e->getModule();
123 if (!$module instanceof ConfigProviderInterface
124 && !is_callable(array($module, 'getConfig'))
125 ) {
271 protected function addConfigPaths($paths, $type)
272 {
273 if ($paths instanceof Traversable) {
274 $paths = ArrayUtils::iteratorToArray($paths);
275 }
279 sprintf('Argument passed to %::%s() must be an array, '
280 . 'implement the Traversable interface, or be an '
281 . 'instance of Zend\Config\Config. %s given.',
282 __CLASS__, __METHOD__, gettype($paths))
283 );
AdvertiserService.java (https://github.com/orchestra-io/sample-openx.git) Java · 358 lines
FinderTest.php (https://github.com/Exercise/symfony.git) PHP · 333 lines
135 $finder = new Finder();
136 $this->assertSame($finder, $finder->ignoreVCS(true));
137 $this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
138 }
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();
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 }
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.
24 import java.util.concurrent.TimeoutException;
26 import org.eclipse.jetty.spdy.StandardSession;
27 import org.eclipse.jetty.util.Callback;
28 import org.eclipse.jetty.util.Fields;
37 public void testClientRequestResponseNoBody() throws Exception
38 {
39 Session session = new StandardSession(SPDY.V2, null, null, null, null, null, null, 1, null, null, null);
41 session.syn(new SynInfo(new Fields(), true), new StreamFrameListener.Adapter()
FaultTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 297 lines
27 }
29 require_once "PHPUnit/Framework/TestCase.php";
30 require_once "PHPUnit/Framework/TestSuite.php";
53 public static function main()
54 {
55 require_once "PHPUnit/TextUI/TestRunner.php";
57 $suite = new PHPUnit_Framework_TestSuite("Zend_XmlRpc_Server_FaultTest");
105 Zend_XmlRpc_Server_Fault::attachFaultException('zxrs_fault_test_exception');
106 $e = new zxrs_fault_test_exception4('test exception', 411);
107 $fault = Zend_XmlRpc_Server_Fault::getInstance($e);
108 $this->assertEquals('test exception', $fault->getMessage());
109 $this->assertEquals(411, $fault->getCode());
118 Zend_XmlRpc_Server_Fault::attachFaultException('zxrs_fault_test_exception');
119 $e = new zxrs_fault_test_exception('test exception', 411);
120 $fault = Zend_XmlRpc_Server_Fault::getInstance($e);
121 $this->assertEquals('test exception', $fault->getMessage());
122 $this->assertEquals(411, $fault->getCode());
Type.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 344 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_Eav
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 */
192 }
194 $incrementInstance = Mage::getModel($this->getIncrementModel())
195 ->setPrefix($entityStoreConfig->getIncrementPrefix())
196 ->setPadLength($this->getIncrementPadLength())
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.
93 * </code>
94 *
95 * IMPORTANT: parent::addDefaultOptions() must always be called before adding
96 * new default options!
97 *
198 /**
199 * Creates a new instance.
200 */
201 public function __construct()
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
67 if (
68 (
69 ($prm instanceof PrimitiveFormsList)
70 || ($prm instanceof PrimitiveForm)
365 public function toFormValue($value)
366 {
367 if ($value instanceof FormField)
368 return $this->getValue($value->getName());
369 elseif ($value instanceof LogicalObject)
Clinic.php (https://gitlab.com/jeamar1234/medicloud) PHP · 242 lines
1 <?php
3 use Illuminate\Auth\UserTrait;
88 ) + sin( radians({$lat}) ) *
89 sin( radians( lat ) ) )
90 ) AS distance"))
91 ->where("clinic.Active","=",1)
92 ->where("clinic_types.Active","=",1)
93 ->where("clinic_types_detail.Active","=",1)
94 ->where("clinic_types_detail.ClinicTypeID","=",$getType)
95 ->having("distance", "<", $radius)
96 ->orderBy("distance","ASC")
111 ) + sin( radians({$lat}) ) *
112 sin( radians( lat ) ) )
113 ) AS distance"))
114 ->where("clinic.Active","=",1)
115 ->where("clinic_types.Active","=",1)
vfsStreamWrapperFileTestCase.php (https://github.com/acoulton/vfsStream.git) PHP · 335 lines
SimpleHeaderSet.php (https://gitlab.com/madwanz64/laravel) PHP · 399 lines
TSqlMapGateway.php (https://bitbucket.org/volatileeight/prado.git) PHP · 259 lines
1 <?php
2 /**
3 * TSqlMapGateway class file.
20 * # execute a select query for a list of objects
21 *
22 * This class should be instantiated from a TSqlMapManager instance.
23 *
24 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
56 /**
57 * Executes a Sql SELECT statement that returns that returns data
58 * to populate a single object instance.
59 *
60 * The parameter object is generally used to supply the input
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 /**
class-cp-interactions-cluster.php (https://gitlab.com/dev73/clusterpress) PHP · 345 lines
1 <?php
2 /**
3 * Interactions Cluster.
33 /**
34 * Add the Interactions Cluster to ClusterPress main instance.
35 *
36 * @since 1.0.0
177 'interactions_cluster_slug_settings' => array(
178 'clusterpress_user_mentions_slug' => array(
179 'title' => __( 'Portion d\'URL pour la page de profil présentant les mentions de l\'utilisateur.', 'clusterpress' ),
180 'callback' => 'cp_interactions_settings_mentions_slug',
181 'sanitize_callback' => 'cp_sanitize_slug',
182 ),
183 'clusterpress_user_likes_slug' => array(
184 'title' => __( 'Portion d\'URL pour la page de profil présentant les "likes" de l\'utilisateur.', 'clusterpress' ),
185 'callback' => 'cp_interactions_settings_likes_slug',
186 'sanitize_callback' => 'cp_sanitize_slug',
sfValidatorBaseTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 246 lines
58 try
59 {
60 new ValidatorIdentity(array('nonexistant' => false, 'foo' => 'foobar', 'anothernonexistant' => 'bar', 'required' => true));
61 $t->fail('__construct() throws an InvalidArgumentException if you pass some non existant options');
66 $t->pass('__construct() throws an InvalidArgumentException if you pass some non existant options');
67 $t->like($e->getMessage(), '/ \'nonexistant\', \'anothernonexistant\'/', 'The exception contains the non existant option names');
68 }
70 try
71 {
72 new ValidatorIdentity(array(), array('required' => 'This is required.', 'nonexistant' => 'foo', 'anothernonexistant' => false));
73 $t->fail('__construct() throws an InvalidArgumentException if you pass some non existant error codes');
78 $t->pass('__construct() throws an InvalidArgumentException if you pass some non existant error codes');
79 $t->like($e->getMessage(), '/ \'nonexistant\', \'anothernonexistant\'/', 'The exception contains the non existant error codes');
80 }
param_values.php (https://github.com/F5/zetacomponents.git) PHP · 345 lines
1 <?php
2 /**
3 *
92 public static function suite()
93 {
94 return new PHPUnit_Framework_TestSuite( 'ezcParamValuesTest' );
95 }
98 {
99 try {
100 $db = ezcDbInstance::get();
101 }
102 catch ( Exception $e )
105 }
107 $this->assertNotNull( $db, 'Database instance is not initialized.' );
109 $db->exec( 'CREATE TABLE ' .
test.php (https://github.com/F5/zetacomponents.git) PHP · 297 lines
Borders.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 411 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Style;
5 use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
7 class Borders extends Supervisor
94 *
95 * @param bool $isSupervisor Flag indicating if this is a supervisor or not
96 * Leave this value at default unless you understand exactly what
97 * its ramifications are
98 * @param bool $isConditional Flag indicating if this is a conditional style or not
99 * Leave this value at default unless you understand exactly what
100 * its ramifications are
101 */
ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines
1 <?hh
2 // @generated by docskel.php
4 /**
61 * library.
62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the
63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE
64 * results in a standard zlib deflated string (inclusive zlib headers)
65 * after a gzip file header but without the trailing crc32 checksum. In
66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant
67 * output, consisting of a zlib header, the deflated data, and an Adler
68 * checksum.
292 *
293 * @param string $filename - The file name. This file will be opened from
294 * the filesystem and its contents written to standard output.
295 * @param int $use_include_path - You can set this optional parameter to
296 * 1, if you want to search for the file in the include_path too.
Task.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 371 lines
1 <?php
2 /**
3 * Zend Framework
95 *
96 * @param Zend_Date $time
97 * @return Zend_Scheduler_Task This instance
98 */
99 public function setTime($time)
100 {
101 if (!$time instanceof Zend_Date) {
102 $time = new Zend_Date($time);
103 }
116 * @param string $action Action name
117 * @param array $parameters Request parameters
118 * @return Zend_Scheduler_Task This instance
119 */
120 public function setRequest($controller, $action = 'index', array $parameters = array())
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
OpsWorksClient.php (https://github.com/trob/fabrik.git) PHP · 158 lines
1 <?php
2 namespace Aws\OpsWorks;
7 * This client is used to interact with the **AWS OpsWorks** service.
8 *
9 * @method \Aws\Result assignInstance(array $args = [])
10 * @method \GuzzleHttp\Promise\Promise assignInstanceAsync(array $args = [])
21 * @method \Aws\Result createDeployment(array $args = [])
22 * @method \GuzzleHttp\Promise\Promise createDeploymentAsync(array $args = [])
23 * @method \Aws\Result createInstance(array $args = [])
24 * @method \GuzzleHttp\Promise\Promise createInstanceAsync(array $args = [])
31 * @method \Aws\Result deleteApp(array $args = [])
32 * @method \GuzzleHttp\Promise\Promise deleteAppAsync(array $args = [])
33 * @method \Aws\Result deleteInstance(array $args = [])
34 * @method \GuzzleHttp\Promise\Promise deleteInstanceAsync(array $args = [])
SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines
SimpleHeaderSet.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 387 lines
CertificateOfOriginApplicationType.php (https://github.com/moyarada/XSD-to-PHP.git) PHP · 256 lines
1 <?php
2 namespace oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2;
239 * @ComponentType ASBIE
240 * @DictionaryEntryName Certificate Of Origin Application. Signature
241 * @Definition One or more signatures applied to the document instance.
242 * @Cardinality 0..n
243 * @ObjectClass Certificate Of Origin Application
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
130 * @param boolean $revert Revert elements (not used in sorting)
131 * @param boolean $responseIterator[optional] If true - command return iterator which read from socket buffer.
132 * Important: new connection will be created
133 *
134 * @return array
style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines
47 float: right;
48 position: relative;
49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>
50 }
83 <?php endif; ?>
84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>
85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>
89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>
90 background-color: <?php echo $text_overlay_bgcolor;?>;
97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>
98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>
100 position: absolute;
101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>
102 }
Bin.php (https://github.com/jaws-project/jaws.git) PHP · 419 lines
1 <?php
2 /**
3 * Bin.php - Bin Class for all bin widgets
10 */
12 require_once PIWI_PATH . '/Widget/Widget.php';
13 require_once PIWI_PATH . '/JS/JSEnums.php';
374 {
375 if (is_string($validator)) {
376 $file = PIWI_PATH . '/JS/' . $validator . '.php';
377 if (file_exists($file)) {
378 require_once $file;
388 for ($i = 1; $i < $arg_count; $i++) {
389 if (defined($arg_list[$i])) {
390 $arg_list[$i] = constant($arg_list[$i]);
391 }
392 $parameter .= "\$arg_list[$i]";
haSerializer.js (https://github.com/jaws-project/jaws.git) JavaScript · 301 lines
2 * HTML_AJAX_Serialize_HA - custom serialization
3 *
4 * This class is used with the JSON serializer and the HTML_AJAX_Action php class
5 * to allow users to easily write data handling and dom manipulation related to
6 * ajax actions directly from their php code
15 * reads the action to take and pipes it to the right method
16 *
17 * @param string payload incoming data from php
18 * @return true on success, false on failure
19 */
Files.php (https://github.com/jaws-project/jaws.git) PHP · 282 lines
1 <?php
2 /**
3 * Directory Gadget
23 }
24 $data['create_time'] = $data['update_time'] = time();
25 return Jaws_ORM::getInstance()->table('directory')->insert($data)->exec();
26 }
40 $data['parent'] = (int)$data['parent'];
41 $data['update_time'] = time();
42 return Jaws_ORM::getInstance()->table('directory')->update($data)->where('id', $id)->exec();
43 }
169 // Update Tags
170 if (Jaws_Gadget::IsGadgetInstalled('Tags') && !empty($tags)) {
171 $tModel = Jaws_Gadget::getInstance('Tags')->model->loadAdmin('Tags');
172 $tModel->UpdateReferenceTags(
173 'Directory',
NestedSetBehaviorPeerBuilderModifierWithScopeTest.php (https://github.com/apinstein/Propel2.git) PHP · 262 lines
1 <?php
3 /*
30 class NestedSetBehaviorPeerBuilderModifierWithScopeTest extends BookstoreNestedSetTestBase
31 {
32 public function testConstants()
33 {
34 $this->assertEquals(Table10Peer::LEFT_COL, 'table10.MY_LEFT_COLUMN', 'nested_set adds a LEFT_COL constant using the custom left_column parameter');
35 $this->assertEquals(Table10Peer::RIGHT_COL, 'table10.MY_RIGHT_COLUMN', 'nested_set adds a RIGHT_COL constant using the custom right_column parameter');
36 $this->assertEquals(Table10Peer::LEVEL_COL, 'table10.MY_LEVEL_COLUMN', 'nested_set adds a LEVEL_COL constant using the custom level_column parameter');
37 $this->assertEquals(Table10Peer::SCOPE_COL, 'table10.MY_SCOPE_COLUMN', 'nested_set adds a SCOPE_COL constant when the use_scope parameter is true');
38 }
NullTest.php (https://github.com/leerbag/zf2.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
32 * @group Zend_Filter
33 */
34 class NullTest extends \PHPUnit_Framework_TestCase
35 {
36 /**
169 * @return void
170 */
171 public function testArrayConstantNotation()
172 {
173 $filter = new NullFilter(
221 * @return void
222 */
223 public function testMultiConstantNotation()
224 {
225 $filter = new NullFilter(
MappingInfo.php (https://gitlab.com/cserobiul/BITM-LabMs-New) PHP · 517 lines
query_builder.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 302 lines
ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
87 public function setModulePaths($modulePaths)
88 {
89 if (!is_array($modulePaths) && !$modulePaths instanceof Traversable) {
90 throw new Exception\InvalidArgumentException(
91 sprintf(
92 'Argument passed to %s::%s() must be an array, '
93 . 'implement the Traversable interface, or be an '
94 . 'instance of Zend\Config\Config. %s given.',
95 __CLASS__,
96 __METHOD__,
133 public function setConfigGlobPaths($configGlobPaths)
134 {
135 if (!is_array($configGlobPaths) && !$configGlobPaths instanceof Traversable) {
136 throw new Exception\InvalidArgumentException(
137 sprintf(
Clients.php (https://gitlab.com/my-application.bjoernbartels.earth/my-application) PHP · 322 lines
1 <?php
2 /**
3 * BB's Zend Framework 2 Components
279 /**
280 * Retrieve service manager instance
281 *
282 * @return ServiceManager
289 /**
290 * Set service manager instance
291 *
292 * @param ServiceManager $serviceManager
301 /**
302 * Set serviceManager instance
303 *
304 * @param ServiceLocatorInterface $serviceLocator
CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines
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
164 $result = $Field->getRules();
165 $this->assertEquals(array('validEmail'), array_keys($result));
166 $this->assertTrue(array_pop($result) instanceof CakeValidationRule);
168 $rules = array('notEmpty' => $RuleEmpty);
array.idl.php (https://github.com/diegoIta/hiphop-php.git) PHP · 376 lines
Grammar.php (https://github.com/sergiosgc/Structures_Grammar.git) PHP · 407 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
3 namespace sergiosgc;
80 {
81 if (is_null($this->nonTerminals)) $this->computeTerminals();
82 if (!$value instanceof Structures_Grammar_Symbol) $value = Structures_Grammar_Symbol::create($value);
83 foreach ($this->nonTerminals as $cursor) if ($value->__equals($cursor)) return true;
84 return false;
130 {
131 if (is_null($this->terminals)) $this->computeTerminals();
132 if (!$value instanceof Structures_Grammar_Symbol) $value = Structures_Grammar_Symbol::create($value);
133 foreach ($this->terminals as $cursor) if ($value == $cursor) return true;
134 return false;
177 $symbols = func_get_args();
178 if (count($symbols) == 0) throw new Structures_Grammar_Exception('At least one symbol is needed in a context-free grammar rule');
179 foreach($symbols as $i => $symbol) if (!($symbol instanceof Structures_Grammar_Symbol)) $symbols[$i] = Structures_Grammar_Symbol::create($symbol);
180 $rule = new Structures_Grammar_Rule();
181 $rule->addSymbolToLeft($symbols[0]);
collator_test.php (https://github.com/vadimonus/moodle.git) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58 $this->error = 'Collation aware sorting not supported';
59 } else {
60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
61 }
62 parent::setUp();
fontif-err.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 340 lines
19 <dl>
20 <!-- <dt id="bugs-affect-mode-switching">Two Emacs 22 beta bugs affects PHP mode switching</dt> -->
21 <!-- <dd> -->
22 <!-- <p> -->
23 <!-- <a href="nxhtml.html#php">PHP / nXhtml automatic mode switching</a> is affected: -->
24 <!-- </p> -->
25 <!-- <ul> -->
49 <!-- </ul> -->
50 <!-- </dd> -->
51 <dt id="new-mode-switching" style="margin-top:1em;">I have rewritten the PHP mode switching</dt>
52 <dd>
53 <p>
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.'"/>';
question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines
6 <tr>
7 <td width='50' colspan='1' class='men-met'>
8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />
9 </td>
10 <td width='250' colspan='5' class='men-met'>
11 <span class='title'><?php echo $men . " " . $year; ?></span><br />
12 </td>
13 <td width='50' colspan='1' align='right' class='men-met'>
14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />
15 </td>
16 </tr>
README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines
1 Using Amazon S3 with Dojo has the following prerequisites:
2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.
3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.
4 * proxy.php requires the following modules:
9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming
10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key
11 into the proxy.php file on line 3 and 4:
20 var s3Buckets = new dojox.rpc.Service({
21 target:"http://s3.amazonaws.com/",
22 proxyUrl:"../s3/proxy.php", // the path to the proxy
23 transport:"REST",
24 envelope:"PROXIED-PATH",
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
.
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9
109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa
557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+
558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj
559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr
560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx
SimpleListModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 106 lines
✨ Summary
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
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;
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.
1 /* Generated By:JavaCC: Do not edit this line. Token.java Version 3.0 */
2 package gatchan.phpparser.parser;
4 /**
11 * An integer that describes the kind of this token. This numbering
12 * system is determined by JavaCCParser, and a table of these numbers is
13 * stored in the file ...Constants.java.
14 */
15 public int kind;
68 * you want to create if ofKind is ID, simlpy add something like :
69 *
70 * case MyParserConstants.ID : return new IDToken();
71 *
72 * to the following switch statement. Then you can cast matchedToken
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.
PHPDocument.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 231 lines
✨ Summary
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
8 import gatchan.phpparser.project.itemfinder.PHPItem;
9 import gatchan.phpparser.parser.PHPParser;
15 /**
16 * It's a php document. This class is an outlineable object It will contains html and php
17 *
18 * @author Matthieu Casanova
32 /**
33 * Create the PHPDocument.
34 *
35 * @param name the nale f the document
111 * @param phpParser the php parser
112 */
113 public void analyzeCode(PHPParser phpParser) {
114 if (nodes != null) {
115 for (int i = 0; i < nodes.length; i++) {
try.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 24 lines
WInZipAesKeyStrength.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 14 lines
ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 lines
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
53 Set the minimum log level to an integer between 1 and 9. Default is 7.
54 Has no effect when connecting to
55 another instance via the edit server.
56 .TP
57 \fB\-usage\fR
71 \fB\-plugins\fR
72 Enable loading of plugins. This is the default. Has no effect
73 when connecting to another instance via the edit server.
74 .TP
75 \fB\-noplugins\fR
76 Disable loading of plugins. Has no effect
77 when connecting to another instance via the edit server.
78 .TP
79 \fB\-restore\fR
AboutBox.resx (https://hg01.codeplex.com/jungletimer) Unknown · 1288 lines
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
692 MUDJEUNGH05WY02g263FJlr2xiN1kdl0xrIx98JG6ByRMdm06CRD9GXRw8QsNUswiaKKh08E0kYDxycN
693 Pvu1y1G2yexS2VlFx5AtTYd8zImGMOHKM8hY9OVllaQdCajMGe5t2EAYxpMpr4y2sUJ2Cdcunl4ogOPD
694 DwzJS4zKtanKLAckAqLTg/PBbIRWcye1a9ANycbTwsoh0aaztIr64FGklWEr/vst1APc06nt0y6OLYEu
695 Dk1IkTGPc9XPkq81/TpdU0VUurnTovUksYWrM0aipoh3NPbNlPBtxDm6KOrqXDLkU08lXNm80cNxsEI5
696 sNih8fo75l6KcSaLpO1sU4ESD7e8vXIk0BY7xlmMa0gudjyWnj3zZ5dJtYdVDVHvfO35lcIfXYDkGJYA
921 Z981+TIZm3NhARCgz7fDXj0L9spJbAFWFYxb3FHrczPHDDH3IYksfwAwdF6juTzTtMW91v8ARtwaQ8uC
922 pWgkeIAcQ3iK9BlecmINMRIVacebIo/LzW1lpdzNardqzahpqStwI2ANK1XluDmLhPHZLZEWLKO1fzDp
923 WpaW1npqvPd3yLFHY8CPS3HU9PhptTLcOGRlQ5uOY8B4jsAl01rb6Tp0NsXDTULSkdWc9aew6Zt5xGOI
924 Hc0RvJIlif1jfr+3XqPDMTjDl+G//9T4AjFVdAO/fpkosSiORC+2Tl3sY9yizhailW8PD55Bmpbk1brg
925 Q47Yqn+nkHTp4x9oyBm9xTMrCHFzfWFKaIlaUy6cbCIS3UI+UbgjanXKQeEth3CcWWoG3lDgVrsynM3F
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.
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(
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
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines
home.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 189 lines
159 <h3><?php echo __d('cake_dev', 'More about Cake'); ?></h3>
160 <p>
161 <?php echo __d('cake_dev', 'CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?>
162 </p>
163 <p>
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>
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>
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.
XModeHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 767 lines
✨ Summary
This Java code defines a class TagDecl
that represents a tag declaration in an XML parser. It stores information about the tag, such as its name, start and end positions, and attributes like default IDs and token IDs. The class also tracks various flags indicating whether certain conditions are met during parsing.
This Java code defines a class TagDecl
that represents a tag declaration in an XML parser. It stores information about the tag, such as its name, start and end positions, and attributes like default IDs and token IDs. The class also tracks various flags indicating whether certain conditions are met during parsing.
123 && ! tag.lastDelegateSet.getModeName().equals(modeName))
124 {
125 Mode mode = ModeProvider.instance.getMode(tag.lastDelegateSet.getModeName());
126 if( ! reloadModes.contains(mode) )
127 {
451 //{{{ Private members
453 //{{{ Instance variables
454 private String modeName;
455 /** The token marker cannot be null. */
465 /**
466 * A list of modes to be reloaded at the end, loaded through DELEGATEs
467 * @see http://sourceforge.net/tracker/index.php?func=detail&aid=1742250&group_id=588&atid=100588
468 */
469 private Vector<Mode> reloadModes;
InclusionExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 261 lines
✨ Summary
This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression
and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.
This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression
and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20 package net.sourceforge.phpdt.internal.compiler.ast;
22 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;
23 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
25 import java.util.List;
27 import gatchan.phpparser.project.itemfinder.PHPItem;
28 import gatchan.phpparser.parser.PHPParserConstants;
29 import gatchan.phpparser.parser.PHPParser;
74 private String keywordToString()
75 {
76 return PHPParserConstants.tokenImage[keyword];
77 } //}}}
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>
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 }
_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
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.
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
eztemplateelementparser.php
(git://github.com/ezsystems/ezpublish.git)
PHP · 603 lines
✨ Summary
This is a PHP class that parses eZTemplate element definitions, which are used to define custom elements for an eZ Publish content management system. The class breaks down the definition into its constituent parts, such as identifiers, quotes, numbers, and whitespace, and returns their positions in the template string. It provides methods for accessing these positions and performing various operations on them.
This is a PHP class that parses eZTemplate element definitions, which are used to define custom elements for an eZ Publish content management system. The class breaks down the definition into its constituent parts, such as identifiers, quotes, numbers, and whitespace, and returns their positions in the template string. It provides methods for accessing these positions and performing various operations on them.
1 <?php
2 /**
3 * File containing the eZTemplateElementParser class.
11 /*!
12 \class eZTemplateElementParser eztemplateelementparser.php
13 \brief The class eZTemplateElementParser does
585 /**
586 * Returns a shared instance of the eZTemplateElementParser class.
587 *
588 * @return eZTemplateElementParser
592 if ( !isset( $GLOBALS['eZTemplateElementParserInstance'] ) ||
593 !( $GLOBALS['eZTemplateElementParserInstance'] instanceof eZTemplateElementParser ) )
594 {
595 $GLOBALS['eZTemplateElementParserInstance'] = new eZTemplateElementParser();
populate
(git://github.com/openmelody/melody.git)
Perl · 798 lines
✨ Summary
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
51 # define objects and such...
52 use constant RAND_BOOL => [ 0, 1 ];
54 my @word_pool = qw(
55 cool tech blogging politics interesting video
56 perl python ruby web2.0 sixapart reference link audio
57 php javascript voip news
58 );
118 field(
119 'file_extension',
120 [ '', '', 'html', 'asp', 'jsp', 'php' ]
121 ),
122 field( 'email_new_comments', RAND_BOOL ),
exploretags.js
(https://code.google.com/p/ontowiki/)
JavaScript · 249 lines
✨ Summary
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
2 * This file is part of the tagging extension for OntoWiki
3 *
4 * @author Atanas Alexandrov <sirakov@gmail.com>
5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>
6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}
7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
8 * @version $Id: $
9 *
cap_inline.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 410 lines
✨ Summary
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
8 *
9 * Notwithstanding the above, under no circumstances may you combine this
10 * software in any way with any other Broadcom software provided under a
11 * license other than the GPL, without Broadcom's express prior written
20 #include <cfg_global.h>
22 /* ---- Public Constants and Types --------------------------------------- */
23 #define CAP_CONFIG0_VPM_DIS 0x00000001
24 #define CAP_CONFIG0_ETH_PHY0_DIS 0x00000002
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.