100+ results for 'php join'
Not the results you expected?
inline-javascript-imports.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 81 lines
class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
323 } else {
324 $in = array_map( 'esc_sql', $in );
325 $in = '"' . join( '","', $in ) . '"';
326 return "{$field_name} IN ({$in})";
327 }
340 } else {
341 $in = wp_parse_id_list( $in );
342 $in = join( ',', $in );
344 $operator = 'IN';
386 if ( is_array( $column ) ) {
387 $type = 'results';
388 $column = join( ', ', $column );
389 }
GitCheckoutOperation.java (https://bitbucket.org/nbargnesi/idea.git) Java · 254 lines
97 }
98 else {
99 fatalError(getCommonErrorTitle(), result.getErrorOutputAsJoinedString());
100 fatalErrorHappened = true;
101 }
143 protected String getRollbackProposal() {
144 return "However checkout has succeeded for the following " + repositories() + ":<br/>" +
145 successfulRepositoriesJoined() +
146 "<br/>" + String.format(ROLLBACK_PROPOSAL_FORMAT, myPreviousBranch);
147 }
spiral.svg (https://bitbucket.org/ultra_iter/qt-vtl.git) SVG · 100 lines
sale.php (https://github.com/sansanwawa/e-commerse.git) PHP · 307 lines
1 <?php
2 class ModelReportSale extends Model {
3 public function getOrders($data = array()) {
103 public function getTaxes($data = array()) {
104 $sql = "SELECT MIN(o.date_added) AS date_start, MAX(o.date_added) AS date_end, ot.title, SUM(ot.value) AS total, COUNT(o.order_id) AS `orders` FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'tax'";
106 if (isset($data['filter_order_status_id']) && $data['filter_order_status_id']) {
159 public function getTotalTaxes($data = array()) {
160 $sql = "SELECT COUNT(*) AS total FROM (SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'tax'";
162 if (isset($data['filter_order_status_id']) && $data['filter_order_status_id']) {
205 public function getShipping($data = array()) {
206 $sql = "SELECT MIN(o.date_added) AS date_start, MAX(o.date_added) AS date_end, ot.title, SUM(ot.value) AS total, COUNT(o.order_id) AS `orders` FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'shipping'";
208 if (isset($data['filter_order_status_id']) && $data['filter_order_status_id']) {
query_builder.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 302 lines
CanvasRenderingContext2D.idl (https://bitbucket.org/ultra_iter/qt-vtl.git) IDL · 181 lines
52 attribute float lineWidth;
53 attribute [ConvertNullToNullString] DOMString lineCap;
54 attribute [ConvertNullToNullString] DOMString lineJoin;
55 attribute float miterLimit;
94 void setLineWidth(in float width);
95 void setLineCap(in DOMString cap);
96 void setLineJoin(in DOMString join);
97 void setMiterLimit(in float limit);
98 #endif
test_mutex.cpp (https://bitbucket.org/prenaux/boost_1_53.git) C++ · 363 lines
related_items_tree_app_spec.js (https://gitlab.com/markglenfletcher/gitlab-ee) JavaScript · 315 lines
contacts.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 159 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
126 . '\'2\' AS browsernav');
127 $query->from('#__contact_details AS a');
128 $query->innerJoin('#__categories AS c ON c.id = a.catid');
129 $query->where('(a.name LIKE '. $text .'OR a.misc LIKE '. $text .'OR a.con_position LIKE '. $text
130 .'OR a.address LIKE '. $text .'OR a.suburb LIKE '. $text .'OR a.state LIKE '. $text
147 if ($rows) {
148 foreach($rows as $key => $row) {
149 $rows[$key]->href = 'index.php?option=com_contact&view=contact&id='.$row->slug.'&catid='.$row->catslug;
150 $rows[$key]->text = $row->title;
151 $rows[$key]->text .= ($row->con_position) ? ', '.$row->con_position : '';
Collection.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 333 lines
58 /**
59 * Store strong mode flag that determine if needed for inner join or left join of linked products
60 *
61 * @var bool
108 /**
109 * Initialize collection parent product and add limitation join
110 *
111 * @param Mage_Catalog_Model_Product $product
224 $adapter->quoteInto('links.link_type_id = ?', $this->_linkTypeId)
225 );
226 $joinType = 'join';
227 if ($this->getProduct() && $this->getProduct()->getId()) {
228 $productId = $this->getProduct()->getId();
230 $this->getSelect()->where('links.product_id = ?', (int)$productId);
231 } else {
232 $joinType = 'joinLeft';
233 $joinCondition[] = $adapter->quoteInto('links.product_id = ?', $productId);
test-job-manager.js (https://gitlab.com/etteplan/dynamic-dashboard) JavaScript · 290 lines
5 describe ('job manager', function(){
7 var packagesLocalFolder = path.join(process.cwd(), "/test/fixtures/packages");
8 var packagesWithInvalidJob = path.join(process.cwd(), "/test/fixtures/package_invalid_job");
9 var packagesWithInvalidDashboard = path.join(process.cwd(), "/test/fixtures/package_invalid_format");
10 var packagesWithNoWidgetField = path.join(process.cwd(), "/test/fixtures/package_dashboard_with_no_widgets");
11 var packagesWithNoLayoutField = path.join(process.cwd(), "/test/fixtures/package_dashboard_with_no_layout");
12 var packagesNoSharedStateForJobs = path.join(process.cwd(), "/test/fixtures/package_job_sharing_state");
13 var packageMultipleConfigs = path.join(process.cwd(), "/test/fixtures/package_with_multiple_configs");
15 //we use only wallboard local folder, since we don´t want our tests to depend on atlasboard jobs
16 //var packagesAtlasboardFolder = path.join(process.cwd(), "/packages");
18 var configPath = path.join(process.cwd(), "/test/fixtures/config");
SearsAPIs.js (https://github.com/littlelazer/SearsAPIs.git) JavaScript · 501 lines
AesbePropostaDadosEntity.php (https://gitlab.com/sejainfo/aesbe) PHP · 662 lines
1 <?php
3 namespace Application\Entity;
193 *
194 * @ORM\ManyToOne(targetEntity="Application\Entity\AesbeMaterialEntity")
195 * @ORM\JoinColumns({
196 * @ORM\JoinColumn(name="co_material", referencedColumnName="co_material")
203 *
204 * @ORM\ManyToOne(targetEntity="Application\Entity\AesbeModalidadeLicitacaoEntity")
205 * @ORM\JoinColumns({
206 * @ORM\JoinColumn(name="co_modalidade", referencedColumnName="co_modalidade")
213 *
214 * @ORM\ManyToOne(targetEntity="Application\Entity\AesbePropostaEntity")
215 * @ORM\JoinColumns({
216 * @ORM\JoinColumn(name="co_proposta", referencedColumnName="co_proposta")
ascii_colossal.py (https://github.com/al8/sublimetext-colossal.git) Python · 201 lines
TranslatableTest.php (https://github.com/Atlantic18/DoctrineExtensions.git) PHP · 245 lines
1 <?php
3 declare(strict_types=1);
65 ->createQueryBuilder('p')
66 ->select('p, t')
67 ->join('p.translations', 't')
68 ->getQuery()
69 ->execute();
83 ->createQueryBuilder('p')
84 ->select('p, t')
85 ->join('p.translations', 't')
86 ->getQuery()
87 ->execute();
207 ->createQueryBuilder('p')
208 ->select('p, t')
209 ->join('p.translations', 't')
210 ->getQuery()
211 ->execute();
SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines
1 <?php
3 namespace Lazy\Test;
16 class SequenceTest extends \PHPUnit_Framework_TestCase {
18 /**
103 public function testAppend() {
104 // Test that append joins 2 non-empty sequences correctly
105 $this->assertEquals(
106 [5, 6, 7, 8],
108 );
110 // Test that append joins an empty and a non-empty sequence correctly
111 $this->assertEquals(
112 [5, 6],
BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines
1 <?php
19 * @method CcBackupQuery groupByTotime() Group by the totime column
20 *
21 * @method CcBackupQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
22 * @method CcBackupQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
23 * @method CcBackupQuery innerJoin($relation) Adds a INNER JOIN clause to the query
24 *
25 * @method CcBackup findOne(PropelPDO $con = null) Return the first CcBackup matching the query
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 */
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
Clinic.php (https://gitlab.com/jeamar1234/medicloud) PHP · 242 lines
1 <?php
3 use Illuminate\Auth\UserTrait;
78 public function Nearby1($lat,$lng,$radius,$getType){
79 $clinicData = DB::table('clinic')
80 ->join('clinic_types_detail', 'clinic.ClinicID', '=', 'clinic_types_detail.ClinicID')
81 ->join('clinic_types', 'clinic_types_detail.ClinicTypeID', '=', 'clinic_types.ClinicTypeID')
101 public function Nearby($lat,$lng,$radius,$getType){
102 $clinicData = DB::table('clinic')
103 ->join('clinic_types_detail', 'clinic.ClinicID', '=', 'clinic_types_detail.ClinicID')
104 ->join('clinic_types', 'clinic_types_detail.ClinicTypeID', '=', 'clinic_types.ClinicTypeID')
150 $clinicData = DB::table('clinic')
151 ->join('clinic_insurence_company', 'clinic.ClinicID', '=', 'clinic_insurence_company.ClinicID')
152 //->join('insurance_company', 'clinic_insurence_company.InsuranceID', '=', 'insurance_company.CompanyID')
vec.c (https://github.com/llucax/dmd.git) C · 656 lines
SetTest.php (https://gitlab.com/daigiangaitu91/magento) 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;
phony-test.js (https://github.com/neocotic/phony.js.git) JavaScript · 467 lines
22 */
23 function loadFixture(filePath) {
24 filePath = path.join('test', 'fixtures', filePath);
26 return q.nfcall(fs.readFile, filePath, {encoding: 'utf8'})
220 'Alfa_Juliett_Zulu',
221 'Nadazero_Dash_Novenine'
222 ].join('_+_'), options)).to.be('AJZ 0-9');
223 });
227 'Alfa Juliett Zulu',
228 'Nadazero Dash Novenine'
229 ].join(' Space '))).to.be('AJZ 0-9');
230 });
line_shape_helper.cpp (https://github.com/mapsme/omim.git) C++ · 272 lines
129 }
131 void GenerateJoinNormals(dp::LineJoin joinType, glsl::vec2 const & normal1, glsl::vec2 const & normal2,
132 float halfWidth, bool isLeft, float widthScalar, std::vector<glsl::vec2> & normals,
133 std::vector<glsl::vec2> * uv)
137 return;
139 if (joinType == dp::LineJoin::BevelJoin)
140 {
141 glsl::vec2 const n1 = halfWidth * normal1;
153 }
154 }
155 else if (joinType == dp::LineJoin::MiterJoin)
156 {
157 glsl::vec2 averageNormal = halfWidth * widthScalar * glsl::normalize(normal1 + normal2);
tabs_helper.php (https://github.com/rickogden/joind.in.git) PHP · 337 lines
5 * PHP version 5
6 *
7 * @category Joind.in
8 * @package Helpers
9 * @author Kathryn Reeve <kat@BinaryKitten.me.uk>
10 * @copyright 2009 - 2010 Joind.in
11 * @license http://github.com/joindin/joind.in/blob/master/doc/LICENSE JoindIn
12 * @link http://github.com/joindin/joind.in
56 * Set this tab instance's Base URL. Used as a base for links in the html render
57 * @param string $url The New Base URL
58 * @return joindIn_Tabs Itself for a fluid chainable instance
59 **/
60 public function setBaseUrl($url) {
74 * Set this tab instance's Selected Tab.
75 * @param string $hash the hash of the tab to make selected
76 * @return joindIn_Tabs Itself for a fluid chainable instance
77 **/
78 public function setSelectedTab($id) {
SpellCheckPluginTest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 490 lines
✨ Summary
This Java code tests the functionality of a spell checking plugin for a text editor. It creates test cases to verify that the plugin correctly identifies and suggests corrections for misspelled words, handles different markup modes, ignores certain words, and persists its state across invocations. The test cases cover various scenarios, including manual markup mode, ignore all functionality, and clearing ignored words.
This Java code tests the functionality of a spell checking plugin for a text editor. It creates test cases to verify that the plugin correctly identifies and suggests corrections for misspelled words, handles different markup modes, ignores certain words, and persists its state across invocations. The test cases cover various scenarios, including manual markup mode, ignore all functionality, and clearing ignored words.
110 //TestUtils.jeditFrame().menuItem(AbstractButtonTextMatcher.withText(JMenuItem.class,"Exit")).select();
111 // try{
112 // runJeditThread.join(10000);
113 // }catch(InterruptedException ie){
114 // fail("don't interrupt me !");
139 spellDialog.button("Change").click();
140 try{
141 spellThread.join(5000);
142 }catch(InterruptedException ie){}
143 assertTrue("spell-checking didn't finish", !spellThread.isAlive());
188 spellDialog.list().selectItem("liberté");
189 spellDialog.button("Change").click();
190 try{spellThread.join(5000);}catch(InterruptedException ie){}
191 assertTrue("spell-checking didn't finish", !spellThread.isAlive());
192 assertEquals(null,except.get());
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
store.php (https://gitlab.com/alexprowars/bitrix) PHP · 415 lines
1 <?php
3 namespace Bitrix\Catalog;
166 'CREATED_BY_USER',
167 UserTable::class,
168 Main\ORM\Query\Join::on('this.USER_ID', 'ref.ID')
169 ),
170 'MODIFIED_BY' => new Main\Entity\IntegerField(
178 'MODIFIED_BY_USER',
179 UserTable::class,
180 Main\ORM\Query\Join::on('this.MODIFIED_BY', 'ref.ID')
181 ),
182 'PHONE' => new Main\Entity\StringField(
JoinTableLineParserTest.java (https://github.com/apache/incubator-netbeans.git) Java · 201 lines
156 public void testValidUseCase_09() throws Exception {
157 AnnotationParsedLine parsedLine = parser.parse("\\Foo\\Bar\\JoinTable(name=\"users_phonenumbers\", joinColumns={@JoinColumn(name=\"user_id\", referencedColumnName=\"id\")}, inverseJoinColumns={@JoinColumn(name=\"phonenumber_id\", referencedColumnName=\"id\", unique=true)})");
158 assertEquals("JoinTable", parsedLine.getName());
159 assertEquals("(name=\"users_phonenumbers\", joinColumns={@JoinColumn(name=\"user_id\", referencedColumnName=\"id\")}, inverseJoinColumns={@JoinColumn(name=\"phonenumber_id\", referencedColumnName=\"id\", unique=true)})", parsedLine.getDescription());
160 Map<OffsetRange, String> types = parsedLine.getTypes();
161 assertNotNull(types);
171 public void testValidUseCase_10() throws Exception {
172 AnnotationParsedLine parsedLine = parser.parse("\\Foo\\Bar\\jointable(name=\"users_phonenumbers\", joinColumns={@joincolumn(name=\"user_id\", referencedColumnName=\"id\")}, inverseJoinColumns={@joincolumn(name=\"phonenumber_id\", referencedColumnName=\"id\", unique=true)})");
173 assertEquals("JoinTable", parsedLine.getName());
186 public void testValidUseCase_11() throws Exception {
187 AnnotationParsedLine parsedLine = parser.parse("\\Foo\\Bar\\JoinTable(name=\"users_phonenumbers\", joinColumns={@Baz\\JoinColumn(name=\"user_id\", referencedColumnName=\"id\")}, inverseJoinColumns={@JoinColumn(name=\"phonenumber_id\", referencedColumnName=\"id\", unique=true)})");
188 assertEquals("JoinTable", parsedLine.getName());
citext.sql.in (https://github.com/gurjeet/postgres.git) Autoconf · 488 lines
ReplaceSource.js (https://gitlab.com/ahmad.jamal/sally) JavaScript · 471 lines
frontpage.php (https://github.com/netspotau/moodle.git) PHP · 228 lines
48 <title><?php echo $PAGE->title ?></title>
49 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
50 <?php echo $OUTPUT->standard_head_html() ?>
51 </head>
52 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
53 <?php echo $OUTPUT->standard_top_of_body_html(); ?>
97 <!-- begin of navigation bar -->
98 <?php if ($hasnavbar) { ?>
99 <div class="navbar clearfix">
100 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
101 <div class="navbutton"><?php echo $PAGE->button; ?></div>
102 </div>
103 <?php } ?>
ArrayHydrator.php (https://github.com/jaikdean/doctrine2.git) PHP · 280 lines
1 <?php
3 declare(strict_types=1);
84 if (isset($this->rsm->parentAliasMap[$dqlAlias])) {
85 // It's a joined result
87 $parent = $this->rsm->parentAliasMap[$dqlAlias];
88 $path = $parent . '.' . $dqlAlias;
90 // missing parent data, skipping as RIGHT JOIN hydration is not supported.
91 if (! isset($nonemptyComponents[$parent])) {
92 continue;
test.php (https://gitlab.com/vincent.perdereau/picandparts) PHP · 305 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_Sales
23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
26 include "lib/Varien/Object.php";
50 $frontendStatus = $this->getFrontendStatus();
51 $actions = $this->getOrderActions();
52 $actions = join(', ', array_keys($actions));
53 #echo "<tr><td>$orderStatus</td><td>$paymentStatus</td><td>$shippingStatus</td><td>$refundStatus</td><td>$returnStatus</td><td>$adminStatus</td><td>$frontendStatus</td><td>$actions</td></tr>";
54 echo "<tr><td>$orderStatus</td><td>$paymentStatus</td><td>$refundStatus</td><td>$shippingStatus</td><td>$actions</td></tr>";
Hooks.php (https://bitbucket.org/valmy/openx.git) PHP · 253 lines
1 <?php
3 /*
25 $Id$
26 */
27 require_once MAX_PATH . '/lib/OX/Admin/UI/Event/EventDispatcher.php';
28 require_once MAX_PATH . '/lib/OX/Admin/UI/Event/EventContext.php';
31 * A manager for UI related hooks.
32 *
33 * Allows registration of event listeners in the form of {@link http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback callback}
34 * and when informed of an event it will pass the event to registered listeners.
35 *
81 * 'pageData' => menu links parameter values (eg. clientid, campaignid etc.),
82 *
83 * @param PHP callback $callback
84 */
85 public static function registerBeforePageHeaderListener($callback)
SmGenerator.pro (git://github.com/gregsmirnov/bouml.git) Prolog · 344 lines
6 ./UmlStateAction.h \
7 ./anExpansionKind.h \
8 ./UmlBaseJoinPseudoState.h \
9 ./UmlSettings.h \
10 ./UmlBaseExtraClassMember.h \
37 ./UmlBaseParameterSet.h \
38 ./UmlOperation.h \
39 ./UmlJoinPseudoState.h \
40 ./UmlBaseItem.h \
41 ./UmlBaseComponent.h \
72 ./UmlClassMember.h \
73 ./StateBehavior.h \
74 ./PhpSettings.h \
75 ./UmlFlow.h \
76 ./UmlActivityActionClasses.h \
sale.php (https://bitbucket.org/deringer/opencart.git) PHP · 309 lines
1 <?php
2 class ModelReportSale extends Model {
3 public function getOrders($data = array()) {
105 public function getTaxes($data = array()) {
106 $sql = "SELECT MIN(o.date_added) AS date_start, MAX(o.date_added) AS date_end, ot.title, SUM(ot.value) AS total, COUNT(o.order_id) AS `orders` FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'tax'";
108 if (!empty($data['filter_order_status_id'])) {
161 public function getTotalTaxes($data = array()) {
162 $sql = "SELECT COUNT(*) AS total FROM (SELECT COUNT(*) AS total FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'tax'";
164 if (!empty($data['filter_order_status_id'])) {
207 public function getShipping($data = array()) {
208 $sql = "SELECT MIN(o.date_added) AS date_start, MAX(o.date_added) AS date_end, ot.title, SUM(ot.value) AS total, COUNT(o.order_id) AS `orders` FROM `" . DB_PREFIX . "order_total` ot LEFT JOIN `" . DB_PREFIX . "order` o ON (ot.order_id = o.order_id) WHERE ot.code = 'shipping'";
210 if (!empty($data['filter_order_status_id'])) {
Shipping.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 254 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
137 * @return $this
138 * @throws \Exception
139 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
140 */
141 protected function _aggregateByShippingCreatedAt($from, $to)
194 ['source_table' => $sourceTable],
195 $columns
196 )->joinInner(
197 ['order_table' => $orderTable],
198 $connection->quoteInto(
201 ),
202 []
203 )->useStraightJoin();
205 $filterSubSelect = $connection->select()->from(
Array.hx (https://gitlab.com/ezeql/haxe) Haxe · 483 lines
ModelWithTest.php (git://github.com/propelorm/Propel2.git) PHP · 265 lines
149 $with = new ModelWith($join);
150 $this->assertNull($with->getLeftPhpName(), 'A ModelWith initialized from a primary join has a null left phpName');
152 $q = AuthorQuery::create('a')
180 $with = new ModelWith($join);
181 $this->assertEquals('Book', $with->getLeftPhpName(), 'A ModelWith uses the previous join relation name as left phpName');
183 $q = ReviewQuery::create()
189 $with = new ModelWith($join);
190 $this->assertEquals('Book', $with->getLeftPhpName(), 'A ModelWith uses the previous join relation name as left phpName');
191 $join = $joins['BookReader'];
192 $with = new ModelWith($join);
193 $this->assertEquals('BookOpinion', $with->getLeftPhpName(), 'A ModelWith uses the previous join relation name as left phpName');
195 $q = BookReaderQuery::create()
test.php (https://bitbucket.org/acidel/buykoala.git) PHP · 305 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_Sales
23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
26 include "lib/Varien/Object.php";
50 $frontendStatus = $this->getFrontendStatus();
51 $actions = $this->getOrderActions();
52 $actions = join(', ', array_keys($actions));
53 #echo "<tr><td>$orderStatus</td><td>$paymentStatus</td><td>$shippingStatus</td><td>$refundStatus</td><td>$returnStatus</td><td>$adminStatus</td><td>$frontendStatus</td><td>$actions</td></tr>";
54 echo "<tr><td>$orderStatus</td><td>$paymentStatus</td><td>$refundStatus</td><td>$shippingStatus</td><td>$actions</td></tr>";
Builder.php (https://gitlab.com/habracoder/advertising) PHP · 446 lines
UserController.php (https://gitlab.com/RonLab1987/YupePlusClear) PHP · 262 lines
1 <?php
2 namespace application\modules\social\controllers;
99 Yii::t(
100 'SocialModule.social',
101 'Account with this email address already exists! Please, login if you want to join this social network to your account.'
102 )
103 );
156 Yii::t(
157 'SocialModule.social',
158 'Account with this email address already exists! Please, login if you want to join this social network to your account.'
159 )
160 );
stub.js (http://webpagetest.googlecode.com/svn/trunk/) JavaScript · 321 lines
information.php (https://gitlab.com/AndreyLes/top-tap) PHP · 290 lines
1 <?php
2 class ModelCatalogInformation extends Model {
3 public function addInformation($data) {
109 public function getInformations($data = array()) {
110 if ($data) {
111 $sql = "SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "'";
113 $sort_data = array(
148 if (!$information_data) {
149 $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY id.title");
151 $information_data = $query->rows;
submitchoices.php (https://github.com/adivik2000/nigraha.git) PHP · 304 lines
1 <?php
2 $conn = mysql_connect("localhost", "root", "password") or die(mysql_error());
3 mysql_select_db("mnit_profiles", $conn);
200 <td valign="top" bgcolor="#E0E0E0">
201 <p>
202 <?php
203 $count=1;
204 while(isset($_POST['add'.$count])) {
216 <table width="100%" border="0">
217 <tr>
218 <td><font face="Verdana, Arial, Helvetica, sans-serif">Branch: <?php echo $arr['dept'] ?>
219 </font></td>
242 <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Year Of Joining: <?php echo $arr['yearofjoin'] ?></font></td>
243 </tr>
Conditional.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 463 lines
GridFieldSortableHeaderTest.php (git://github.com/silverstripe/sapphire.git) PHP · 232 lines
1 <?php
3 namespace SilverStripe\Forms\Tests\GridField;
145 $relationListAsql = Convert::nl2os($relationListA->sql(), ' ');
147 // Assert that all tables are joined properly
148 $this->assertStringContainsString('FROM "GridFieldSortableHeaderTest_Team"', $relationListAsql);
149 $this->assertStringContainsString(
192 $relationListBsql
193 );
194 // Joined tables are joined basetable first
195 // Note: CheerLeader is base of Mom table, hence the alias
196 $this->assertStringContainsString(
201 $relationListBsql
202 );
203 // Then the basetable of the joined record is joined to the specific subtable
204 $this->assertStringContainsString(
205 'LEFT JOIN "GridFieldSortableHeaderTest_Mom" '
Page.php (https://github.com/bblc/tomatocms208v1.git) PHP · 297 lines
1 <?php
2 /**
3 * TomatoCMS
15 * @copyright Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
16 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
17 * @version $Id: Page.php 4891 2010-08-24 20:06:55Z huuphuoc $
18 * @since 2.0.5
19 */
218 {
219 $sql = sprintf('SELECT p.* FROM ' . $this->_prefix . 'page AS p
220 INNER JOIN
221 (
222 SELECT tr1.* FROM ' . $this->_prefix . 'core_translation AS tr1
223 INNER JOIN ' . $this->_prefix . 'core_translation AS tr2
224 ON (tr1.item_id = "%s" AND tr1.source_item_id = tr2.item_id)
225 OR (tr2.item_id = "%s" AND tr1.item_id = tr2.source_item_id)
testdatalib.php (https://github.com/nigeldaley/moodle.git) PHP · 150 lines
32 /**
33 * Unit tests for some of the code in ../datalib.php.
34 *
35 * @copyright 2009 The Open University
94 "SELECT qa.id, qa.maxmark
95 FROM {other_table} ot
96 JOIN {question_attempts} qa ON qa.questionusageid = ot.usageid
97 WHERE ot.id = 1 AND qa.slot = :slot", array('slot' => 1));
98 }
100 public function test_qubaid_join_no_where_join() {
101 $qubaids = new qubaid_join("{other_table} ot", 'ot.usageid');
104 "SELECT qa.id, qa.maxmark
105 FROM {other_table} ot
106 JOIN {question_attempts} qa ON qa.questionusageid = ot.usageid
107 WHERE 1 = 1 AND qa.slot = :slot", array('slot' => 1));
108 }
DDAutoFilterSearchBehavior.php (https://bitbucket.org/jwerner/yii-ddautofilter.git) PHP · 360 lines
41 {
42 $op = '';
43 $join = isset($filter['join']) ? $filter['join'] : 'AND';
44 switch(trim($filter['operator']))
45 {
271 break;
272 case 'LT':
273 $criteria->addCondition("$attribute<'{$filter['value']}'", $join);
274 break;
275 case 'LTE':
311 foreach($filters as $i=>$filter)
312 {
313 $join = isset($filter['join']) ? $filter['join'] : 'AND';
314 // DEBUG var_dump($filter, $filter['value']);
SqlServerGrammar.php (https://gitlab.com/vincetang/mtweb) PHP · 551 lines
Createdat.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 255 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
43 * @return $this
44 * @throws \Exception
45 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
46 * @SuppressWarnings(PHPMD.UnusedLocalVariable)
211 ['o' => $this->getTable('sales_order')],
212 $columns
213 )->join(
214 ['oi' => $selectOrderItem],
215 'oi.order_id = o.entity_id',
memberList.php (https://github.com/ciniki/customers.git) PHP · 213 lines
1 <?php
2 //
3 // Description
62 ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');
63 $date_format = ciniki_users_dateFormat($ciniki, 'php');
64 $mysql_date_format = ciniki_users_dateFormat($ciniki, 'mysql');
82 if( isset($args['category']) && $args['category'] != '' ) {
83 $strsql .= "FROM ciniki_customer_tags "
84 . "LEFT JOIN ciniki_customers ON ("
85 . "ciniki_customer_tags.customer_id = ciniki_customers.id "
86 . "AND ciniki_customers.tnid = '" . ciniki_core_dbQuote($ciniki, $args['tnid']) . "' "
88 . ") ";
89 if( ($ciniki['tenant']['modules']['ciniki.customers']['flags']&0x02000000) > 0 ) {
90 $strsql .= "LEFT JOIN ciniki_customer_season_members ON ("
91 . "ciniki_customers.id = ciniki_customer_season_members.customer_id "
92 . "AND ciniki_customer_season_members.tnid = '" . ciniki_core_dbQuote($ciniki, $args['tnid']) . "' "
mpr.c (https://github.com/trevor/ImageMagick.git) C · 220 lines
24 % obtain a copy of the License at %
25 % %
26 % http://www.imagemagick.org/script/license.php %
27 % %
28 % Unless required by applicable law or agreed to in writing, software %
136 entry->decoder=(DecodeImageHandler *) ReadMPRImage;
137 entry->encoder=(EncodeImageHandler *) WriteMPRImage;
138 entry->adjoin=MagickFalse;
139 entry->stealth=MagickTrue;
140 entry->description=ConstantString("Magick Persistent Registry");
145 entry->encoder=(EncodeImageHandler *) WriteMPRImage;
146 entry->stealth=MagickTrue;
147 entry->adjoin=MagickFalse;
148 entry->stealth=MagickTrue;
149 entry->description=ConstantString("Magick Persistent Registry");
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;
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.
15 *
16 * The data structure allows for the grammar to be restricted to a context-free grammar
top_level.rb (https://gitlab.com/gag2502/EP3OO) Ruby · 282 lines
comments.php (https://github.com/temperamente/temperamente.git) PHP · 166 lines
59 if( $instance['display_avatar']) { ?>
60 <a href="<?php echo $get_the_peralink; ?>" title="<?php echo $comment->post_title; ?>"><img class="comments-widget-avatar <?php echo $instance['avatar_align']; ?>" src="http://www.gravatar.com/avatar.php?gravatar_id=<?php echo md5($comment->comment_author_email); ?>&size=<?php echo $instance['avatar_size']; ?>" /></a><?php
61 }
117 <td class="tt-widget-label" width="40%"><label for="<?php echo $this->get_field_id('title'); ?>">Title:</label></td>
118 <td class="tt-widget-content" width="60%"><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /></td>
119 </tr>
122 <td class="tt-widget-label"><label for="<?php echo $this->get_field_id('comments_number'); ?>">Number Of Comments:</label></td>
123 <td class="tt-widget-content"><input class="widefat" id="<?php echo $this->get_field_id('comments_number'); ?>" name="<?php echo $this->get_field_name('comments_number'); ?>" type="text" value="<?php echo esc_attr($instance['comments_number']); ?>" /></td>
124 </tr>
142 <input type="checkbox" name="<?php echo $this->get_field_name('display_author'); ?>" <?php checked('true', $instance['display_author']); ?> value="true" /> <?php _e('Author', 'themater'); ?>
143 <br /><input type="checkbox" name="<?php echo $this->get_field_name('display_comment'); ?>" <?php checked('true', $instance['display_comment']); ?> value="true" /> <?php _e('The Comment', 'themater'); ?>
144 <br /><input type="checkbox" name="<?php echo $this->get_field_name('display_avatar'); ?>" <?php checked('true', $instance['display_avatar']); ?> value="true" /> <?php _e('Avatar', 'themater'); ?>
Dao.php (https://github.com/pimcore/pimcore.git) PHP · 315 lines
1 <?php
3 /**
77 $query = 'SELECT SQL_CALC_FOUND_ROWS DISTINCT o_virtualProductId as o_id, priceSystemName FROM '
78 . $this->model->getCurrentTenantConfig()->getTablename() . ' a '
79 . $this->model->getCurrentTenantConfig()->getJoins()
80 . $condition . ' GROUP BY o_virtualProductId, priceSystemName' . $orderBy . ' ' . $limit;
81 } else {
82 $query = 'SELECT SQL_CALC_FOUND_ROWS DISTINCT o_virtualProductId as o_id, priceSystemName FROM '
83 . $this->model->getCurrentTenantConfig()->getTablename() . ' a '
84 . $this->model->getCurrentTenantConfig()->getJoins()
85 . $condition . ' ' . $limit;
86 }
88 $query = 'SELECT SQL_CALC_FOUND_ROWS a.o_id, priceSystemName FROM '
89 . $this->model->getCurrentTenantConfig()->getTablename() . ' a '
90 . $this->model->getCurrentTenantConfig()->getJoins()
91 . $condition . $orderBy . ' ' . $limit;
92 }
v009.php (https://github.com/denisbz/SPIP.git) PHP · 128 lines
1 <?php
3 /***************************************************************************\
58 while ($row2 = sql_fetch($result2)) $forums[] = $row2['id_forum'];
59 if (!$forums) break;
60 $forums = join(',', $forums);
61 $forums_article[] = $forums;
62 $result2 = spip_query("SELECT id_forum FROM spip_forum WHERE id_parent IN ($forums)");
63 }
64 $forums_article = join(',', $forums_article);
65 spip_query("UPDATE spip_forum SET id_article=$id_article WHERE id_forum IN ($forums_article)");
66 }
76 while ($row2 = sql_fetch($result2)) $forums[] = $row2['id_forum'];
77 if (!$forums) break;
78 $forums = join(',', $forums);
79 $forums_breve[] = $forums;
80 $result2 = spip_query("SELECT id_forum FROM spip_forum WHERE id_parent IN ($forums)");
address.php (https://github.com/subhabrata/oscommerce.git) PHP · 292 lines
1 <?php
2 /*
3 $Id: $
35 if ( is_numeric($address) ) {
36 $Qaddress = $osC_Database->query('select ab.entry_firstname as firstname, ab.entry_lastname as lastname, ab.entry_company as company, ab.entry_street_address as street_address, ab.entry_suburb as suburb, ab.entry_city as city, ab.entry_postcode as postcode, ab.entry_state as state, ab.entry_zone_id as zone_id, ab.entry_country_id as country_id, z.zone_code as zone_code, c.countries_name as country_title from :table_address_book ab left join :table_zones z on (ab.entry_zone_id = z.zone_id), :table_countries c where ab.address_book_id = :address_book_id and ab.entry_country_id = c.countries_id');
37 $Qaddress->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
38 $Qaddress->bindTable(':table_zones', TABLE_ZONES);
Order.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 318 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_Sales
23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
52 protected function _addGiftMessageInfo(Mage_Sales_Model_Resource_Order_Collection $collection)
53 {
54 $collection->getSelect()->joinLeft(
55 array('gift_message' => $collection->getTable('gift_message')),
56 'main_table.gift_message_id = gift_message.gift_message_id',
organization.class.php (https://bitbucket.org/cantico/absences.git) PHP · 244 lines
1 <?php
2 /************************************************************************
3 * OVIDENTIA http://www.ovidentia.org *
23 ************************************************************************/
25 require_once dirname(__FILE__).'/record.class.php';
26 require_once dirname(__FILE__).'/collection.class.php';
27 require_once dirname(__FILE__).'/vacincl.php';
29 /**
166 }
168 require_once dirname(__FILE__).'/agent.class.php';
169 $agents = new absences_AgentIterator();
170 $agents->setOrganization($this);
GroupMembership.php (https://github.com/sizzlelab/NairobiSizzle.git) PHP · 321 lines
1 <?php
2 /**
3 * Handles requests to /people/<user id>/@groups/<group id> module of the ASI platform.
107 /**
108 * Creates a new group membership for a person. In essence this is sending an
109 * invite/request to join a group. Sends a POST request to /people/<user id>/@groups.
110 *
111 * @param string $userId The person's ID. If not provided, this method will call
MailFake.php (https://gitlab.com/jjpa2018/dashboard) PHP · 433 lines
1 <?php
3 namespace Illuminate\Support\Testing\Fakes;
10 use Illuminate\Contracts\Queue\ShouldQueue;
11 use Illuminate\Support\Traits\ReflectsClosures;
12 use PHPUnit\Framework\Assert as PHPUnit;
14 class MailFake implements Factory, Mailer, MailQueue
58 }
60 PHPUnit::assertTrue(
61 $this->sent($mailable, $callback)->count() > 0,
62 $message
75 $count = $this->sent($mailable)->count();
77 PHPUnit::assertSame(
78 $times, $count,
79 "The expected [{$mailable}] mailable was sent {$count} times instead of {$times} times."
class.harupage.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 1458 lines
10 <div class="next" style="text-align: right; float: right;"><a href="function.harupage-arc.html">HaruPage::arc</a></div>
11 <div class="up"><a href="book.haru.html">haru</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.harupage" class="reference">
14 <h1 class="title">HaruPage クラス</h1>
221 )</div>
222 <div class="methodsynopsis dc-description">
223 <span class="type">int</span> <span class="methodname"><a href="function.harupage-getlinejoin.html" class="methodname">getLineJoin</a></span>
224 ( <span class="methodparam">void</span>
225 )</div>
362 )</div>
363 <div class="methodsynopsis dc-description">
364 <span class="type">bool</span> <span class="methodname"><a href="function.harupage-setlinejoin.html" class="methodname">setLineJoin</a></span>
365 ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$join</tt></span>
540 <tr valign="middle">
541 <td align="left">int</td>
542 <td align="left">HaruPage::MITER_JOIN</td>
543 <td class="empty"> </td>
544 </tr>
interface.FollowDAO.php (https://github.com/SimonCoopey/ThinkUp.git) PHP · 326 lines
1 <?php
2 /**
3 *
4 * ThinkUp/webapp/_lib/model/interface.FollowDAO.php
5 *
6 * Copyright (c) 2009-2016 Gina Trapani, Christoffer Viken
105 public function countTotalFriends($user_id, $network);
106 /**
107 * Gets the number of friends of a user that joined the network after the specified date
108 * @param int $user_id
109 * @param str $network
110 * @param str $date Fetch friends joined after this date
111 * @return int Number of friends that joined after date
netcdf.py
(git://github.com/clawpack/clawpack-4.x.git)
Python · 496 lines
✨ Summary
This Python code reads data from NetCDF files and stores it in a structured format for use in numerical simulations. It supports multiple NetCDF versions (3, 4) and can handle subgroups of grids. The code creates grid objects with dimensions, q-values, and optional auxiliary data, which are then stored in a solution object.
This Python code reads data from NetCDF files and stores it in a structured format for use in numerical simulations. It supports multiple NetCDF versions (3, 4) and can handle subgroups of grids. The code creates grid objects with dimensions, q-values, and optional auxiliary data, which are then stored in a solution object.
184 # Filename
185 filename = os.path.join(path,"%s.q%s.nc" % (file_prefix,str(frame).zfill(4)))
186 if use_netcdf3:
187 import numpy
220 # Write q array
221 tmp_names=dim_names+['meqn','timedimension']
222 index_str = ','.join( [':' for name in tmp_names] )
223 q = f.createVariable('grid_'+str(grid.gridno),'d',tmp_names)
224 exec("q[%s] = grid.q" % index_str)
280 dim_names = grid.name
281 dim_names.append('meqn')
282 index_str = ','.join( [':' for name in dim_names] )
283 q = subgroup.createVariable('q','f8',dim_names,zlib,
284 complevel,shuffle,fletcher32,
ModuleFilenameHelpers.js (https://gitlab.com/limorelv/trelloApp) JavaScript · 159 lines
1 /*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4 */
100 " ** " + requestShortener.shorten(module),
101 " **/"
102 ].join("\n");
103 } else {
104 return [
109 " ** module chunks = " + module.chunks.map(function(c) {
110 return c.id;
111 }).join(" "),
112 " **/"
113 ].join("\n");
historyservice.php (https://gitlab.com/alexprowars/bitrix) PHP · 173 lines
1 <?
2 include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bizproc/classes/general/historyservice.php");
4 class CBPHistoryService
92 "USER_ID" => Array("FIELD" => "H.USER_ID", "TYPE" => "int"),
94 "USER_NAME" => Array("FIELD" => "U.NAME", "TYPE" => "string", "FROM" => "INNER JOIN b_user U ON (H.USER_ID = U.ID)"),
95 "USER_LAST_NAME" => Array("FIELD" => "U.LAST_NAME", "TYPE" => "string", "FROM" => "INNER JOIN b_user U ON (H.USER_ID = U.ID)"),
96 "USER_SECOND_NAME" => Array("FIELD" => "U.SECOND_NAME", "TYPE" => "string", "FROM" => "INNER JOIN b_user U ON (H.USER_ID = U.ID)"),
97 "USER_LOGIN" => Array("FIELD" => "U.LOGIN", "TYPE" => "string", "FROM" => "INNER JOIN b_user U ON (H.USER_ID = U.ID)"),
StatRepository.php (https://gitlab.com/mautic-master/mautic) PHP · 205 lines
1 <?php
2 /**
3 * @copyright 2016 Mautic Contributors. All rights reserved.
30 $q = $this->createQueryBuilder('s');
31 $q->select('s')
32 ->leftJoin('s.lead', 'l')
33 ->leftJoin('s.sms', 'e')
124 $query->select('IDENTITY(s.sms) AS sms_id, s.id, s.dateSent, e.title, IDENTITY(s.list) AS list_id, l.name as list_name, s.trackingHash as idHash')
125 ->leftJoin('MauticSmsBundle:Sms', 'e', 'WITH', 'e.id = s.sms')
126 ->leftJoin('MauticLeadBundle:LeadList', 'l', 'WITH', 'l.id = s.list')
carrilana.sql (https://github.com/RamonCidL/Carrilanas.git) SQL · 338 lines
1 -- phpMyAdmin SQL Dump
2 -- version 3.2.4
3 -- http://www.phpmyadmin.net
6 -- Tiempo de generación: 26-10-2011 a las 13:58:40
7 -- Versión del servidor: 5.1.41
8 -- Versión de PHP: 5.3.1
10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
273 --
275 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `carrilana`.`videoconmiembro` AS select `carrilana`.`video`.`id` AS `id`,`carrilana`.`video`.`titulo` AS `titulo`,`carrilana`.`video`.`video` AS `video`,`carrilana`.`video`.`comentario` AS `comentario`,`carrilana`.`video`.`miembro_id` AS `miembro_id`,`carrilana`.`miembro`.`nombre` AS `nombre` from (`carrilana`.`video` join `carrilana`.`miembro`) where (`carrilana`.`miembro`.`id` = `carrilana`.`video`.`miembro_id`);
277 --
AnnotationReaderTest.php (https://github.com/ad2joe/php-framework-benchmarks.git) PHP · 282 lines
46 $joinTableAnnot = $propAnnots['Doctrine\Tests\Common\Annotations\DummyJoinTable'];
47 $this->assertEquals(1, count($joinTableAnnot->joinColumns));
48 $this->assertEquals(1, count($joinTableAnnot->inverseJoinColumns));
49 $this->assertTrue($joinTableAnnot->joinColumns[0] instanceof DummyJoinColumn);
50 $this->assertTrue($joinTableAnnot->inverseJoinColumns[0] instanceof DummyJoinColumn);
51 $this->assertEquals('col1', $joinTableAnnot->joinColumns[0]->name);
52 $this->assertEquals('col2', $joinTableAnnot->joinColumns[0]->referencedColumnName);
53 $this->assertEquals('col3', $joinTableAnnot->inverseJoinColumns[0]->name);
54 $this->assertEquals('col4', $joinTableAnnot->inverseJoinColumns[0]->referencedColumnName);
200 /**
201 * @DummyJoinTable(name="join_table",
202 * joinColumns={
module_db.php (https://github.com/joechen2010/0775168.git) PHP · 405 lines
Shipping.php (https://gitlab.com/daigiangaitu91/magento) PHP · 254 lines
1 <?php
2 /**
3 * Copyright © 2015 Magento. All rights reserved.
137 * @return $this
138 * @throws \Exception
139 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
140 */
141 protected function _aggregateByShippingCreatedAt($from, $to)
194 ['source_table' => $sourceTable],
195 $columns
196 )->joinInner(
197 ['order_table' => $orderTable],
198 $connection->quoteInto(
201 ),
202 []
203 )->useStraightJoin();
205 $filterSubSelect = $connection->select()->from(
impress.js (https://bitbucket.org/jkodumal/rmanalan.bitbucket.org.git) JavaScript · 324 lines
effects.js
(git://github.com/kingarawana/testapp.git)
JavaScript · 1123 lines
✨ Summary
This JavaScript code defines a set of visual effects and utility functions for manipulating HTML elements, such as fading, animating, highlighting, and modifying element styles. It also provides methods for getting inline styles, forcing re-rendering, and collecting text nodes from an element. The effects are designed to be reusable and can be chained together to create complex animations.
This JavaScript code defines a set of visual effects and utility functions for manipulating HTML elements, such as fading, animating, highlighting, and modifying element styles. It also provides methods for getting inline styles, forcing re-rendering, and collecting text nodes from an element. The effects are designed to be reusable and can be chained together to create complex animations.
32 return (node.nodeType==3 ? node.nodeValue :
33 (node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
34 }).flatten().join('');
35 };
40 ((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
41 Element.collectTextNodesIgnoreClass(node, className) : ''));
42 }).flatten().join('');
43 };
qsvgnode.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 345 lines
activity.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 78 lines
1 <?php
3 /**
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
24 if ( !bp_is_current_action( 'groups' ) ) :
25 if ( bp_is_active( 'blogs' ) ) : ?>
50 <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
51 <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
53 <?php endif;
test_image_selection.html
(git://github.com/zpao/v8monkey.git)
HTML · 93 lines
✨ Summary
This HTML code creates a test page for Mozilla Bug 599368, which is related to image selection and drag points. It loads an iframe with an image, simulates mouse interactions, and takes snapshots of the window’s content before and after selecting different images. The test verifies that selecting different images results in different drag points being added.
This HTML code creates a test page for Mozilla Bug 599368, which is related to image selection and drag points. It loads an iframe with an image, simulates mouse interactions, and takes snapshots of the window’s content before and after selecting different images. The test verifies that selecting different images results in different drag points being added.
rview.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines
random_access_index.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class random_access_index
that provides a random access interface for storing and querying data. It allows insertion, deletion, and iteration over elements in the index, with features like invariant checking and specialized algorithms for swapping indices. The class is designed to work with various super-metatypes and tag lists, providing flexibility and customization options for different use cases.
This C++ header file defines a class random_access_index
that provides a random access interface for storing and querying data. It allows insertion, deletion, and iteration over elements in the index, with features like invariant checking and specialized algorithms for swapping indices. The class is designed to work with various super-metatypes and tag lists, providing flexibility and customization options for different use cases.
48 #if defined(BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING)
49 #define BOOST_MULTI_INDEX_RND_INDEX_CHECK_INVARIANT \
50 detail::scope_guard BOOST_JOIN(check_invariant_,__LINE__)= \
51 detail::make_obj_guard(*this,&random_access_index::check_invariant_); \
52 BOOST_JOIN(check_invariant_,__LINE__).touch();
deployment.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 293 lines
116 void DeploymentHandler::initQtDeploy(QMakeProject *project, DeploymentList &deploymentList, const QString &testPath)
117 {
118 QString targetPath = project->values("deploy.path").join(" ");
119 if (targetPath.isEmpty())
120 targetPath = testPath;
183 // C-runtime deployment
184 QString runtime = project->values("QT_CE_C_RUNTIME").join(QLatin1String(" "));
185 debugOutput(QString::fromLatin1("Runtime:%1").arg(runtime), 2);
186 if (!runtime.isEmpty() && (runtime != QLatin1String("no"))) {
200 if (!vcInstallDir.isEmpty()) {
201 vcInstallDir += "\\ce\\dll\\";
202 vcInstallDir += project->values("CE_ARCH").join(QLatin1String(" "));
203 if (!QFileInfo(vcInstallDir + QDir::separator() + runtimeVersion).exists())
204 runtime.clear();
FLWORArranger.java
(http://xbird.googlecode.com/svn/trunk/)
Java · 1011 lines
✨ Summary
This Java code is part of an XQuery processor, specifically a dependency checker and optimizer. It analyzes an XQuery expression to identify dependencies between variables and clauses, allowing for optimization and simplification of the query. The code uses visitor patterns to traverse the abstract syntax tree of the XQuery expression and detect dependencies, which are then used to optimize the query.
This Java code is part of an XQuery processor, specifically a dependency checker and optimizer. It analyzes an XQuery expression to identify dependencies between variables and clauses, allowing for optimization and simplification of the query. The code uses visitor patterns to traverse the abstract syntax tree of the XQuery expression and detect dependencies, which are then used to optimize the query.
688 final VarRefDetector detector2 = new VarRefDetector(firstBindingVar, false);
689 detector2.visit(right, null);
690 if(detector2.isJoinDisabled() || detector2.isDetected()) {
691 break inner;
692 } else {
795 private boolean _detected = false;
796 private boolean _disableJoin = false;
798 VarRefDetector(final BindingVariable var, final boolean doReplace) {
807 }
809 boolean isJoinDisabled() {
810 return _disableJoin;
842 final int targetBirthId = variable.getBirthId();
843 if(targetBirthId > _birthId) {
844 this._disableJoin = true;
845 return variable;
846 }
qmaintainingreader.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 274 lines
wscript (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 104 lines
48 if building_on_win32:
49 js_dir = get_output('cygpath --unix "%s"' % js_dir)
50 derived_sources_dir = os.path.join(jscore_dir, 'DerivedSources')
51 if not os.path.exists(derived_sources_dir):
52 os.mkdir(derived_sources_dir)
55 os.chdir(derived_sources_dir)
57 command = 'make -f %s/DerivedSources.make JavaScriptCore=%s BUILT_PRODUCTS_DIR=%s all FEATURE_DEFINES="%s"' % (js_dir, js_dir, js_dir, ' '.join(feature_defines))
58 os.system(command)
59 os.chdir(olddir)
76 jscore = bld.new_task_gen(
77 features = 'cxx cstaticlib',
78 includes = '. .. assembler wrec DerivedSources ForwardingHeaders ' + ' '.join(includes),
79 source = sources,
80 target = 'jscore',
PrismaticJoint.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 147 lines
✨ Summary
This Java code defines a class PrismaticJoint
that extends Joint
. It provides functionality for a prismatic joint, which allows translation along an axis while preventing relative rotation. The class includes methods to get and set joint limits, motor speed, and force, as well as enable/disable the limit and motor features.
This Java code defines a class PrismaticJoint
that extends Joint
. It provides functionality for a prismatic joint, which allows translation along an axis while preventing relative rotation. The class includes methods to get and set joint limits, motor speed, and force, as well as enable/disable the limit and motor features.
20 * A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is
21 * prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint
22 * friction.
23 */
24 public class PrismaticJoint extends Joint {
25 public PrismaticJoint (World world, long addr) {
38 /**
39 * Get the current joint translation speed, usually in meters per second.
40 */
41 public float getJointSpeed () {
42 return jniGetJointSpeed(addr);
43 }
XmlActions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1218 lines
✨ Summary
This Java code is part of an XML editor plugin, providing functionality for editing and manipulating XML documents. It includes methods for copying XPath expressions, opening schema files, generating DTDs, and handling buffer properties. The code also includes utility methods for working with buffers and segments, such as counting newlines and finding non-whitespace characters.
This Java code is part of an XML editor plugin, providing functionality for editing and manipulating XML documents. It includes methods for copying XPath expressions, opening schema files, generating DTDs, and handling buffer properties. The code also includes utility methods for working with buffers and segments, such as counting newlines and finding non-whitespace characters.
setupscript.rst
(https://bitbucket.org/tarek/distutils2/)
ReStructuredText · 687 lines
✨ Summary
This text explains how to use the setup
function in Python’s Distutils library to create a package. It covers various options, such as specifying version information, classifiers, and license, and provides examples of valid values for each field. It also discusses debugging techniques, including setting the DISTUTILS_DEBUG
environment variable to print detailed output.
This text explains how to use the setup
function in Python’s Distutils library to create a package. It covers various options, such as specifying version information, classifiers, and license, and provides examples of valid values for each field. It also discusses debugging techniques, including setting the DISTUTILS_DEBUG
environment variable to print detailed output.
52 code instead of hardcoding path separators::
54 glob.glob(os.path.join('mydir', 'subdir', '*.html'))
55 os.listdir(os.path.join('mydir', 'subdir'))
269 from distutils2.sysconfig import get_python_inc
270 incdir = os.path.join(get_python_inc(plat_specific=1), 'Numerical')
271 setup(...,
272 Extension(..., include_dirs=[incdir]))
MouseHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 563 lines
✨ Summary
This Java code is part of a text editor’s mouse event handling mechanism. It handles various mouse events such as clicks, drags, and releases to manage selections, insertions, and deletions of text within the editor. The code ensures proper behavior for different mouse button combinations, including drag-and-drop functionality and quick copy/paste operations.
This Java code is part of a text editor’s mouse event handling mechanism. It handles various mouse events such as clicks, drags, and releases to manage selections, insertions, and deletions of text within the editor. The code ensures proper behavior for different mouse button combinations, including drag-and-drop functionality and quick copy/paste operations.
225 dragStartOffset--;
227 boolean joinNonWordChars =
228 jEdit.getBooleanProperty("view.joinNonWordChars");
229 int wordStart = TextUtilities.findWordStart(lineText,
230 dragStartOffset,noWordSep,joinNonWordChars);
231 int wordEnd = TextUtilities.findWordEnd(lineText,
232 dragStartOffset+1,noWordSep,joinNonWordChars);
413 String noWordSep = textArea.getBuffer()
414 .getStringProperty("noWordSep");
415 boolean joinNonWordChars =
416 jEdit.getBooleanProperty("view.joinNonWordChars");
422 offset = TextUtilities.findWordStart(
423 lineText,offset,noWordSep,
424 joinNonWordChars);
425 }
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 219 lines
sync_access_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
makefile.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 96 lines
tc-conf-merger.pl
(git://github.com/SingularityCore/Singularity.git)
Perl · 43 lines
✨ Summary
This is a Perl script that merges two configuration files, one of which contains new settings and the other contains old settings. The script replaces the old settings with the new ones in the output file. It takes three arguments: the path to the new .conf.dist file, the path to the old .conf file, and the path to the output .conf file.
This is a Perl script that merges two configuration files, one of which contains new settings and the other contains old settings. The script replaces the old settings with the new ones in the output file. It takes three arguments: the path to the new .conf.dist file, the path to the old .conf file, and the path to the output .conf file.
views.py
(http://soclone.googlecode.com/svn/trunk/)
Python · 885 lines
✨ Summary
This is a Django application’s URL configuration, defining various views and routes for different features such as questions, answers, comments, tags, users, badges, and more. It maps URLs to corresponding view functions, which handle requests and return responses with data in various formats like HTML, JSON, or XML.
This is a Django application’s URL configuration, defining various views and routes for different features such as questions, answers, comments, tags, users, badges, and more. It maps URLs to corresponding view functions, which handle requests and return responses with data in various formats like HTML, JSON, or XML.
432 'title': revision.title,
433 'html': sanitize_html(markdowner.convert(revision.text)),
434 'tags': ' '.join(['<a class="tag">%s</a>' % tag
435 for tag in revision.tagnames.split(' ')]),
436 }
834 USER_SORT = {
835 'reputation': ('-reputation', '-date_joined'),
836 'newest': ('-date_joined',),
837 'oldest': ('date_joined',),
838 'name': ('username',),
839 }
testNativeLog.js (git://github.com/zpao/v8monkey.git) JavaScript · 8 lines
bucket.py
(git://github.com/linkedin/indextank-service.git)
Python · 495 lines
✨ Summary
This is a Python class that represents an Amazon S3 bucket. It has various methods for interacting with the bucket, such as listing its contents, setting its permissions, and deleting it.
This is a Python class that represents an Amazon S3 bucket. It has various methods for interacting with the bucket, such as listing its contents, setting its permissions, and deleting it.
wrap.rb
(git://github.com/adamdoupe/find_ear_rails.git)
Ruby · 256 lines
✨ Summary
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
133 rescue TypeError => exn
134 msg = "calling #{self.inspect}.#{mname} with arguments "
135 msg << args.map{|x|x.inspect}.join(', ')
136 msg << " raised a TypeError\n"
137 ctx.violation msg
140 file,line = Utils.find_caller(Object.send(:caller,2))
141 fname = File.basename(file)
142 call_stack = Object.send(:caller,3).map {|x| " from "+x}.join "\n"
143 ctx.violation "#{fname}:#{line}: undefined method `#{mname}' for #{self.inspect}:#{self.class} (NoMethodError)\n#{call_stack}"
144 end
dhd_common.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1733 lines
✨ Summary
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
524 static struct {uint event; char *event_name;} event_names[] = {
525 {WLC_E_SET_SSID, "SET_SSID"},
526 {WLC_E_JOIN, "JOIN"},
527 {WLC_E_START, "START"},
528 {WLC_E_AUTH, "AUTH"},
559 {WLC_E_PFN_NET_LOST, "PNO_NET_LOST"},
560 {WLC_E_RESET_COMPLETE, "RESET_COMPLETE"},
561 {WLC_E_JOIN_START, "JOIN_START"},
562 {WLC_E_ROAM_START, "ROAM_START"},
563 {WLC_E_ASSOC_START, "ASSOC_START"},
package.scala
(git://github.com/greedy/scala-llvm.git)
Scala · 70 lines
✨ Summary
This Scala code provides a collection of utility functions for working with threads, timing, and string manipulation. It includes functions to execute code while waiting for threads to complete, measure time elapsed, generate strings from streams, and create stack traces as strings. These functions can be used in various applications to simplify common tasks.
This Scala code provides a collection of utility functions for working with threads, timing, and string manipulation. It includes functions to execute code while waiting for threads to complete, measure time elapsed, generate strings from streams, and create stack traces as strings. These functions can be used in various applications to simplify common tasks.
RhizosphereUserAgent.java
(https://code.google.com/p/rhizosphere/)
Java · 612 lines
✨ Summary
This Java code is a part of a visualization framework, specifically handling user interactions and events. It sets up event listeners for various actions such as filtering, selection, layout changes, model additions/removals, error notifications, and user actions. These events are then propagated to the visualization’s owner, triggering corresponding callback methods to handle the events.
This Java code is a part of a visualization framework, specifically handling user interactions and events. It sets up event listeners for various actions such as filtering, selection, layout changes, model additions/removals, error notifications, and user actions. These events are then propagated to the visualization’s owner, triggering corresponding callback methods to handle the events.
gnome-session-properties.svg
(git://github.com/tuquito/tuquito-artwork-gnome.git)
SVG · 402 lines
✨ Summary
This SVG code represents a simple graphical interface, likely for a web application. It displays a series of shapes and lines to create a visual representation of a dashboard or control panel. The exact functionality depends on the context in which it is used, but it appears to be a basic layout with various elements such as rectangles, paths, and text.
This SVG code represents a simple graphical interface, likely for a web application. It displays a series of shapes and lines to create a visual representation of a dashboard or control panel. The exact functionality depends on the context in which it is used, but it appears to be a basic layout with various elements such as rectangles, paths, and text.
328 y="2.5010662"
329 id="rect1316"
330 style="fill:url(#radialGradient2447);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient2449);stroke-width:1.00213289;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
331 <path
332 d="M 2.0476194,3 C 1.4689615,3 1.0000003,3.524803 1.0000003,4.172365 L 1.0000003,12.747378 C 1.0013303,12.819518 1.0295963,12.887736 1.0779433,12.935475 C 1.1262903,12.983215 1.1902956,13.006105 1.2544223,12.998595 L 22.805444,9.180039 C 22.916302,9.160469 22.998452,9.054397 23.000002,8.928818 L 23.000002,4.172365 C 23.000002,3.524803 22.53104,3 21.952382,3 L 2.0476194,3 z"
341 y="6"
342 id="rect1436"
343 style="opacity:0.2;fill:url(#linearGradient2441);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.00000012;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" />
344 <path
345 d="M 2.0336918,2.5 C 2.0336918,2.5 22.138876,2.5042946 22.138876,2.5042946 C 22.938726,2.5042946 23.500357,3.1349562 23.500357,3.8328274 C 23.500357,3.8328274 23.500357,5.5 23.500357,5.5 C 23.500357,5.5 0.50035808,5.5 0.50035808,5.5 C 0.50035808,5.5 0.50035808,3.8328274 0.50035808,3.8328274 C 0.50035808,3.0889868 1.1181823,2.5 2.0336918,2.5 z"
346 id="rect2311"
347 style="fill:url(#linearGradient2436);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient2438);stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" />
348 <rect
349 width="20.997868"
epiphany-icon.svg
(git://github.com/tuquito/tuquito-artwork-gnome.git)
SVG · 224 lines
✨ Summary
This SVG code represents a stylized map of the world, with various shapes and paths forming continents, oceans, and other geographical features. The map is rendered in a simplified style, with no labels or details. It appears to be a decorative element, possibly used as a background image or icon. Its purpose is unclear without additional context.
This SVG code represents a stylized map of the world, with various shapes and paths forming continents, oceans, and other geographical features. The map is rendered in a simplified style, with no labels or details. It appears to be a decorative element, possibly used as a background image or icon. Its purpose is unclear without additional context.
197 sodipodi:cx="62.625"
198 id="path2774"
199 style="opacity:0.56043958000000005;fill:url(#radialGradient3868);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.99999987999999995;stroke-linecap:butt;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
200 sodipodi:type="arc" />
201 <path
202 style="fill:url(#radialGradient6407);fill-opacity:1;stroke:#204a87;stroke-width:0.99994898000000021;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
203 d="M 12.457962,1.499974 C 6.9388938,1.499974 2.4657908,5.973075 2.4657908,11.492145 C 2.4657908,17.011214 6.9388938,21.500027 12.457962,21.500026 C 17.97703,21.500026 22.46585,17.011214 22.46584,11.492145 C 22.46584,5.973075 17.97703,1.499974 12.457962,1.499974 z"
204 id="path2555" />
212 id="path8655" />
213 <path
214 style="fill:url(#radialGradient2414);fill-opacity:1;fill-rule:evenodd;stroke:#666666;stroke-width:1.00000012;stroke-linecap:butt;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
215 d="M 13.633749,8.6693407 L 22.728739,17.496672 L 18.582494,17.63042 C 18.582494,17.63042 20.321242,21.2416 20.321242,21.2416 C 20.856242,22.84657 18.448744,23.448432 18.047494,22.244706 C 18.047494,22.244706 16.442496,18.633525 16.442496,18.633525 L 13.5,21.776591 L 13.633749,8.6693407 z"
216 id="path3970"
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.
84 if ($missing) $message[]="does not have these methods:\n ".join(",",$missing);
85 if ($message) {
86 return check::fail("Class %s %s\nFull class list:\n %s\n",$classname,join("\nbut ",$message),join("\n ",get_class_methods($classname)));
87 }
88 if ($extra) $message[]="Class ".$classname." has these extra methods:\n ".join(",",$extra);
89 if ($message) return check::warn(join("\n ",$message));
90 return TRUE;
91 }
137 if ($message) return check::fail(join("\n ",$message));
138 if ($extra) $message[]=sprintf("These extra classes are defined: %s",join(",",array_keys($extra)));
139 if ($message) return check::warn(join("\n ",$message));
151 else unset($extra[$func]);
152 }
153 if ($missing) $message[]=sprintf("Functions missing: %s",join(",",$missing));
154 if ($message) return check::fail(join("\n ",$message));