100+ results results for 'php gettype repo:designbyheart/original' (505 ms)
1<?php 2 141 self::CODE_VAT_10 => [ 142 PrepaymentCheck::getType() => self::CODE_CALC_VAT_10, 143 PrepaymentReturnCheck::getType() => self::CODE_CALC_VAT_10, 143 PrepaymentReturnCheck::getType() => self::CODE_CALC_VAT_10, 144 PrepaymentReturnCashCheck::getType() => self::CODE_CALC_VAT_10, 145 FullPrepaymentCheck::getType() => self::CODE_CALC_VAT_10, 145 FullPrepaymentCheck::getType() => self::CODE_CALC_VAT_10, 146 FullPrepaymentReturnCheck::getType() => self::CODE_CALC_VAT_10, 147 FullPrepaymentReturnCashCheck::getType() => self::CODE_CALC_VAT_10, 149 self::CODE_VAT_20 => [ 150 PrepaymentCheck::getType() => self::CODE_CALC_VAT_20, 151 PrepaymentReturnCheck::getType() => self::CODE_CALC_VAT_20, 151 PrepaymentReturnCheck::getType() => self::CODE_CALC_VAT_20, 152 PrepaymentReturnCashCheck::getType() => self::CODE_CALC_VAT_20, 153 FullPrepaymentCheck::getType() => self::CODE_CALC_VAT_20,SqlArray.java https://github.com/aherbert/openmicroscopy.git | Java | 354 lines
19 * 20 * References : http://forum.hibernate.org/viewtopic.php?t=946973 21 * http://archives.postgresql.org/pgsql-jdbc/2003-02/msg00141.php 118 throw new RuntimeException("No baseTypeName"); 119 // return SessionsManager.getSettings().getDialect().getTypeName( 120 // baseType );symbol_table.h https://bitbucket.org/gnanakeethan/hiphop-php.git | C Header | 395 lines
10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_SYMBOL_TABLE_H_ 18#define incl_HPHP_SYMBOL_TABLE_H_ 19 20#include "hphp/compiler/hphp.h" 21#include "hphp/util/json.h" 21#include "hphp/util/json.h" 22#include "hphp/util/util.h" 23#include "hphp/util/lock.h"PresenterComponent.php https://github.com/premiumcombination/nts.git | PHP | 438 lines
1<?php 2 144 } else { 145 settype($params[$nm], gettype($meta['def'])); 146 } 181 $class = get_class($this); 182 throw new Nette\InvalidStateException("Persistent parameter must be scalar or array, $class::\$$nm is " . gettype($val)); 183 185 if (isset($meta['def'])) { 186 settype($val, gettype($meta['def'])); 187 if ($val === $meta['def']) {ext_imagick.cpp https://github.com/tstarling/hiphop-php.git | C++ | 359 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+Observer.php https://bitbucket.org/jokusafet/magento2.git | PHP | 298 lines
1<?php 2/** 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 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 */ 288 $product = $observer->getProduct(); 289 $isTransitionalType = $product->getTypeId() === Mage_Catalog_Model_Product_Type::TYPE_SIMPLE 290 || $product->getTypeId() === Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL;parameter_expression.cpp https://github.com/kevlund/hiphop-php.git | C++ | 309 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 26 27using namespace HPHP; 28using namespace std;Backup.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 402 lines
1<?php 2/** 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 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 */ 67 'path' => $filePath, 68 'extension' => Mage::helper('backup')->getExtensionByType($backupData->getType()), 69 'display_name' => Mage::helper('backup')->nameToDisplayName($backupData->getName()), 73 74 $this->setType($backupData->getType()); 75 return $this; 94 { 95 $filename = $this->getTime() . "_" . $this->getType(); 96 $backupName = $this->getName();COLLADAMaxSceneGraphCreator.cpp https://bitbucket.org/ZhangJingGuo/opencollada.git | C++ | 406 lines
14for details please see LICENSE file or the website 15http://www.opensource.org/licenses/mit-license.php 16*/ 111 RefResult res = newImportNode->Reference(getDummyObject()); 112 if ( node->getType() == COLLADAFW::Node::JOINT ) 113 {config.php https://gitlab.com/mautic-master/mautic | PHP | 258 lines
1<?php 2/** 199 'mautic.form.type.page_dashboard_hits_in_time_widget' => [ 200 'class' => 'Mautic\PageBundle\Form\Type\DashboardHitsInTimeWidgetType', 201 'alias' => 'page_dashboard_hits_in_time_widget'DeletionHandler.java https://github.com/CyanogenMod/android_sdk.git | Java | 267 lines
7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 159 160 private void transfer(INode deleted, INode target, ConstraintType targetType, int depth) { 161 if (depth == 20) { 175 176 ConstraintType transfer = getCompatibleConstraint(type, targetType); 177 if (transfer != null) { 183 // Points to another deleted node: recurse 184 transfer(nextDeleted, target, targetType, depth + 1); 185 }VarCloner.php https://gitlab.com/naufal/overtime-service-final | PHP | 324 lines
1<?php 2 81 } 82 $zval['type'] = gettype($v); 83 } 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1; 321 322 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 323 }BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
1<?php 2/** 56 if ($highlight) { 57 $result = highlight_string("<?php\n" . self::$_output, true); 58 self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); 69 { 70 switch (gettype($var)) { 71 case 'boolean': 119 self::$_output .= "$className#$id\n" . $spaces . '('; 120 if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) { 121 $dumpValues = $var->__debugInfo(); 141 * 142 * The string is a valid PHP expression that can be evaluated by PHP parser 143 * and the evaluation result will give back the variable value. 147 * 148 * It also handles objects by using the PHP functions serialize() and unserialize(). 149 *Repository.php https://github.com/MarcelloDuarte/zf2.git | PHP | 319 lines
1<?php 2/** 279 foreach ($this->_metadatas as $metadata) { 280 if (!array_key_exists($metadata->getType(), $metadatasByType)) { 281 $metadatasByType[$metadata->getType()] = array(); 282 } 283 $metadatasByType[$metadata->getType()][] = $metadata; 284 } 287 foreach ($metadatasByType as $type => $metadatas) { 288 $string .= $type . PHP_EOL; 289 foreach ($metadatas as $metadata) { 290 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 291 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 292 $string .= $metadataString;ValidatingArrayLoader.php https://github.com/pborreli/composer.git | PHP | 358 lines
1<?php 2 88 if (!is_array($author)) { 89 $this->errors[] = 'authors.'.$key.' : should be an array, '.gettype($author).' given'; 90 unset($this->config['authors'][$key]); 259 if (isset($this->config[$property]) && !is_string($this->config[$property])) { 260 $this->errors[] = $property.' : should be a string, '.gettype($this->config[$property]).' given'; 261 unset($this->config[$property]); 280 if (isset($this->config[$property]) && !is_array($this->config[$property])) { 281 $this->errors[] = $property.' : should be an array, '.gettype($this->config[$property]).' given'; 282 unset($this->config[$property]); 307 if (!is_string($value) && !is_numeric($value)) { 308 $this->errors[] = $property.'.'.$key.' : must be a string or int, '.gettype($value).' given'; 309 unset($this->config[$property][$key]);RowCustomizer.php https://gitlab.com/svillegas/magento2 | PHP | 365 lines
1<?php 2/** 172 * @return array 173 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 174 */ 189 $id = $product->getEntityId(); 190 $this->bundleData[$id][self::BUNDLE_PRICE_TYPE_COL] = $this->getTypeValue($product->getPriceType()); 191 $this->bundleData[$id][$this->shipmentTypeColumn] = $this->getShipmentTypeValue( 193 ); 194 $this->bundleData[$id][self::BUNDLE_SKU_TYPE_COL] = $this->getTypeValue($product->getSkuType()); 195 $this->bundleData[$id][self::BUNDLE_PRICE_VIEW_COL] = $this->getPriceViewValue($product->getPriceView()); 195 $this->bundleData[$id][self::BUNDLE_PRICE_VIEW_COL] = $this->getPriceViewValue($product->getPriceView()); 196 $this->bundleData[$id][self::BUNDLE_WEIGHT_TYPE_COL] = $this->getTypeValue($product->getWeightType()); 197 $this->bundleData[$id][self::BUNDLE_VALUES_COL] = $this->getFormattedBundleOptionValues($product); 210 /** @var \Magento\Bundle\Model\ResourceModel\Option\Collection $optionsCollection */ 211 $optionsCollection = $product->getTypeInstance() 212 ->getOptionsCollection($product)Pel.php https://gitlab.com/madebycloud/derekman | PHP | 372 lines
1<?php 2 3/** 4 * PEL: PHP Exif Library. A library with support for reading and 5 * writing all Exif headers in JPEG and TIFF images using PHP. 125 * 126 * This controls the quality used then PHP image resources are 127 * encoded into JPEG images. This happens when you create a 179 * printf("Warning: Problem with %s.\n", 180 * PelTag::getName($e->getType(), $e->getTag())); 181 * }CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
1<?php 2/** 17 * @subpackage CookieJar 18 * @version $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $ 19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 25 */ 26require_once "Zend/Uri.php"; 27/** 29 */ 30require_once "Zend/Http/Cookie.php"; 31/** 33 */ 34require_once "Zend/Http/Response.php"; 35 142 } else { 143 require_once 'Zend/Http/Exception.php'; 144 throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );Backup.php https://github.com/pixel-cookers/magento_bootstrap.git | PHP | 402 lines
1<?php 2/** 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 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 */ 67 'path' => $filePath, 68 'extension' => Mage::helper('backup')->getExtensionByType($backupData->getType()), 69 'display_name' => Mage::helper('backup')->nameToDisplayName($backupData->getName()), 73 74 $this->setType($backupData->getType()); 75 return $this; 94 { 95 $filename = $this->getTime() . "_" . $this->getType(); 96 $backupName = $this->getName();BinaryTest.php https://github.com/Exercise/zf2.git | PHP | 352 lines
1<?php 2/** 36 */ 37class BinaryTest extends \PHPUnit_Framework_TestCase 38{ 281 $value->setType(Measure\Binary::GIGABYTE); 282 $this->assertEquals(Measure\Binary::GIGABYTE, $value->getType(), 'Zend\Measure\Binary type expected'); 283 } 292 $value->setType(Measure\Binary::TERABYTE); 293 $this->assertEquals(Measure\Binary::TERABYTE, $value->getType(), 'Zend\Measure\Binary type expected'); 294 } 303 $value->setType(Measure\Binary::KILOBYTE); 304 $this->assertEquals(Measure\Binary::KILOBYTE, $value->getType(), 'Zend\Measure\Binary type expected'); 305 }UserQuery.php https://github.com/Riges/KawaiViewModel.git | PHP | 355 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: UserQuery.php 24593 2012-01-05 20:35:02Z matthew $ 22 */ 26 */ 27require_once('Zend/Gdata/Gapps/Query.php'); 28 121 */ 122 public function getType() 123 { 324 325 if ($this->getType() !== null) { 326 $uri .= '/' . $this->getType(); 327 } else { 328 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 329 throw new Zend_Gdata_App_InvalidArgumentException(Advanced.php https://gitlab.com/yousafsyed/easternglamor | PHP | 388 lines
1<?php 2/** 29 * @method \Magento\CatalogSearch\Model\Advanced setAttributeSetId(int $value) 30 * @method string getTypeId() 31 * @method \Magento\CatalogSearch\Model\Advanced setTypeId(string $value) 43 * @author Magento Core Team <core@magentocommerce.com> 44 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 45 */ 125 * 126 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 127 */ 162 * @throws LocalizedException 163 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 164 * @SuppressWarnings(PHPMD.NPathComplexity) 316 * @return string|bool 317 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 318 * @SuppressWarnings(PHPMD.NPathComplexity)RequestTest.php https://github.com/shevron/zf2.git | PHP | 339 lines
1<?php 2/** 24 */ 25class RequestTest extends \PHPUnit_Framework_TestCase 26{ 144 $this->assertSame(array('foobar'), $this->_request->getParams()); 145 $this->assertSame(array('string'), $this->_request->getTypes()); 146 149 $this->assertSame(array('foo', 1, $null), $this->_request->getParams()); 150 $this->assertSame(array('string', 'int', 'nil'), $this->_request->getTypes()); 151Api.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 329 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 87 if (!empty($errors)) { 88 $this->_fault("add_product_fault", implode(PHP_EOL, $errors)); 89 } 142 if (!empty($errors)) { 143 $this->_fault("update_product_fault", implode(PHP_EOL, $errors)); 144 } 198 if (!empty($errors)) { 199 $this->_fault("remove_product_fault", implode(PHP_EOL, $errors)); 200 }cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php"); 10$selfFolderUrl = $adminPage->getSelfFolderUrl(); 11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID; 12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl); 20{ 21 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 22 25 26 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); 27 die(); 38 39$typeList = Catalog\ContractorTable::getTypeList(true); 40Select.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 316 lines
1<?php 2/** 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 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 */ 313 ); 314 return in_array($this->getOption()->getType(), $_single); 315 }ChoiceFormFieldTest.php https://github.com/thewiredman/symfony.git | PHP | 286 lines
1<?php 2 13 14require_once __DIR__.'/FormFieldTestCase.php'; 15 38 39 public function testGetType() 40 { 43 44 $this->assertEquals('radio', $field->getType(), '->getType() returns radio for radio buttons'); 45 48 49 $this->assertEquals('checkbox', $field->getType(), '->getType() returns radio for a checkbox'); 50 53 54 $this->assertEquals('select', $field->getType(), '->getType() returns radio for a select'); 55 }Abstract.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 350 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27// require_once 'Zend/Mime.php'; 28 130 // Build multipart mail 131 $type = $this->_mail->getType(); 132 if (!$type) { 186 */ 187 // require_once 'Zend/Mail/Transport/Exception.php'; 188 throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property'); 215 */ 216 // require_once 'Zend/Mail/Transport/Exception.php'; 217 throw new Zend_Mail_Exception('At least one mail header line is too long');mysql.dbschema.php https://github.com/foxmask/Booster.git | PHP | 304 lines
1<?php 2/** 41 $hasDefault = ($line->Default != '' || !($line->Default == null && $notNull)); 42 // to fix a bug in php 5.2.5 or mysql 5.0.51 43 if($notNull && $line->Default === null && !$autoIncrement) 50 51 $typeinfo = $tools->getTypeInfo($type); 52 //$col->unifiedType = $typeinfo[1];ConfigListener.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 383 lines
1<?php 2/** 281 . 'instance of Zend\Config\Config. %s given.', 282 __CLASS__, __METHOD__, gettype($paths)) 283 ); 303 sprintf('Parameter to %s::%s() must be a string; %s given.', 304 __CLASS__, __METHOD__, gettype($path)) 305 ); 326 . 'implement the \Traversable interface, or be an ' 327 . 'instance of Zend\Config\Config. %s given.', gettype($config)) 328 );TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 16{ 17 public static function getTypes() 18 {ConfigListener.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 383 lines
1<?php 2/** 281 . 'instance of Zend\Config\Config. %s given.', 282 __CLASS__, __METHOD__, gettype($paths)) 283 ); 303 sprintf('Parameter to %s::%s() must be a string; %s given.', 304 __CLASS__, __METHOD__, gettype($path)) 305 ); 326 . 'implement the Traversable interface, or be an ' 327 . 'instance of Zend\Config\Config. %s given.', gettype($config)) 328 );Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 350 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 18760 2009-10-31 13:09:01Z yoshida@zend.co.jp $ 21 */ 26 */ 27#require_once 'Zend/Mime.php'; 28 130 // Build multipart mail 131 $type = $this->_mail->getType(); 132 if (!$type) { 186 */ 187 #require_once 'Zend/Mail/Transport/Exception.php'; 188 throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property'); 215 */ 216 #require_once 'Zend/Mail/Transport/Exception.php'; 217 throw new Zend_Mail_Exception('At least one mail header line is too long');ServiceLocator.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 261 lines
1<?php 2/** 24 * 25 * ```php 26 * $locator = new \yii\di\ServiceLocator; 146 * 147 * ```php 148 * // a class name 178 * The `class` element is required and stands for the the class of the object to be created. 179 * - a PHP callable: either an anonymous function or an array representing a class method (e.g. `['Foo', 'bar']`). 180 * The callable will be called by [[get()]] to return an object associated with the specified component ID. 194 if (is_object($definition) || is_callable($definition, true)) { 195 // an object, a class name, or a PHP callable 196 $this->_definitions[$id] = $definition; 204 } else { 205 throw new InvalidConfigException("Unexpected configuration type for the \"$id\" component: " . gettype($definition)); 206 }sfWebDebugPanelView.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 366 lines
1<?php 2 16 * @author Kris Wallsmith <kris.wallsmith@symfony-project.com> 17 * @version SVN: $Id: sfWebDebugPanelView.class.php 24069 2009-11-17 06:59:01Z Kris.Wallsmith $ 18 */ 79 */ 80 protected function getLastTemplate($class = 'sfPHPView') 81 { 184 { 185 if (!method_exists($this, $method = 'format'.ucwords(gettype($parameter)).'AsHtml')) 186 { 303 304 return sprintf($nameFormat.' '.$typeFormat, $name, is_object($parameter) ? $this->formatFileLink(get_class($parameter)) : gettype($parameter)); 305 }WebKitBrowserHost.cpp https://github.com/GordonSmith/FireBreath.git | C++ | 291 lines
6 New BSD License 7 http://www.opensource.org/licenses/bsd-license.php 8 - or - 157 158 switch(JSValueGetType(m_jsContext, input)) { 159 case kJSTypeUndefined:Value.php https://github.com/hukumonline/zfurl.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35CreditCard.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: CreditCard.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 169 */ 170 public function getType() 171 { 229 if (!is_callable($service)) { 230 require_once 'Zend/Validate/Exception.php'; 231 throw new Zend_Validate_Exception('Invalid callback given'); 260 $length = strlen($value); 261 $types = $this->getType(); 262 $foundp = false;rpc_request_handler.cpp https://github.com/kevlund/hiphop-php.git | C++ | 292 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 30 31namespace HPHP { 32///////////////////////////////////////////////////////////////////////////////Clinic.php https://gitlab.com/jeamar1234/medicloud | PHP | 242 lines
1<?php 2 77 78 public function Nearby1($lat,$lng,$radius,$getType){ 79 $clinicData = DB::table('clinic') 93 ->where("clinic_types_detail.Active","=",1) 94 ->where("clinic_types_detail.ClinicTypeID","=",$getType) 95 ->having("distance", "<", $radius) 100 } 101 public function Nearby($lat,$lng,$radius,$getType){ 102 $clinicData = DB::table('clinic') 116 ->where("clinic_types_detail.Active","=",1) 117 ->where("clinic_types_detail.ClinicTypeID","=",$getType) 118 ->having("distance", "<", $radius)ColumnMap.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 417 lines
19 * and is licensed under the LGPL. For more information please see 20 * <http://propel.phpdb.org>. 21 */ 121 /** 122 * Set the php anme of this column. 123 * 123 * 124 * @param string $phpName A string representing the PHP name. 125 * @return void 126 */ 127 public function setPhpName($phpName) 128 { 128 { 129 $this->phpName = $phpName; 130 }Abstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 418 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Locale.php'; 26 29 */ 30#require_once 'Zend/Locale/Math.php'; 31 34 */ 35#require_once 'Zend/Locale/Format.php'; 36 94 if (isset($this->_units[$type]) === false) { 95 #require_once 'Zend/Measure/Exception.php'; 96 throw new Zend_Measure_Exception("Type ($type) is unknown"); 121 if (empty($locale)) { 122 #require_once 'Zend/Registry.php'; 123 if (Zend_Registry::isRegistered('Zend_Locale') === true) {element.php https://bitbucket.org/blackriver/openx.git | PHP | 494 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 18 * @author Bertrand Mansion <bmansion@mamasam.com> 19 * @author Alexey Borzov <avb@php.net> 20 * @copyright 2001-2007 The PHP Group 20 * @copyright 2001-2007 The PHP Group 21 * @license http://www.php.net/license/3_01.txt PHP License 3.01 22 * @version CVS: $Id: element.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $AbstractTransport.php https://github.com/sidealice/zf2.git | PHP | 336 lines
1<?php 2/** 132 // Build multipart mail 133 $type = $this->_mail->getType(); 134 if (!$type) {Layout.php https://github.com/rgranadino/magento-mirror.git | PHP | 315 lines
1<?php 2/** 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 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 */ 167 ); 168 foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) { 169 $productsOptions[] = array( 229 ); 230 foreach (Mage_Catalog_Model_Product_Type::getTypes() as $typeId => $type) { 231 $container[$typeId] = array(Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
1<?php 2/* 276 */ 277 public function getType() 278 {Boolean.php https://github.com/mfairchild365/zf2.git | PHP | 373 lines
1<?php 2/** 44 const NULL = 64; 45 const PHP = 127; 46 const FALSE_STRING = 128; 57 self::NULL => 'null', 58 self::PHP => 'php', 59 self::FALSE_STRING => 'false', 68 */ 69 protected $_type = self::PHP; 70 129 */ 130 public function getType() 131 { 238 { 239 $type = $this->getType(); 240 $casting = $this->getCasting();ExternalVideoEntryConverterTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 237 lines
1<?php 2/** 10 11class ExternalVideoEntryConverterTest extends \PHPUnit_Framework_TestCase 12{ 13 /** 14 * @var \PHPUnit_Framework_MockObject_MockObject 15 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterfaceFactory 19 /** 20 * @var \PHPUnit_Framework_MockObject_MockObject 21 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface 24 25 /** @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Api\DataObjectHelper */ 26 protected $dataObjectHelperMock; 27 28 /** @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Api\Data\VideoContentInterfaceFactory */ 29 protected $videoEntryFactoryMock;SimpleRepository.cs https://bitbucket.org/moisesmiranda/subsonic-4.git | C# | 331 lines
6// except in compliance with the License. You may obtain a copy of 7// the License at http://www.opensource.org/licenses/bsd-license.php 8// 188 var tbl = _provider.FindOrCreateTable(typeof(T)); 189 var prop = item.GetType().GetProperty(tbl.PrimaryKey.Name); 190 var settable = result.ChangeTypeTo(prop.PropertyType);PlaylistListEntryTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 239 lines
1<?php 2/** 22 23require_once 'Zend/Gdata/YouTube/PlaylistListEntry.php'; 24require_once 'Zend/Gdata/YouTube.php'; 34 */ 35class Zend_Gdata_YouTube_PlaylistListEntryTest extends PHPUnit_Framework_TestCase 36{ 96 97 $this->assertEquals('application/atom+xml;type=feed', $playlistListEntry->getContent()->getType()); 98 $this->assertEquals('http://gdata.youtube.com/feeds/api/playlists/8E2186857EE27746?v=2', $playlistListEntry->getContent()->getSrc());syntax.php https://github.com/houshuang/folders2web.git | PHP | 441 lines
1<?php 2 14if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); 15require_once(DOKU_PLUGIN . 'syntax.php'); 16require_once(DOKU_PLUGIN . 'columns/info.php'); 62 */ 63 function getType() { 64 return 'substition';functions.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 334 lines
1<?php 2namespace GuzzleHttp; 42{ 43 switch (gettype($input)) { 44 case 'object': 91 92 return fopen('php://output', 'w'); 93} 139 } 140 $defaultAgent .= ' PHP/' . PHP_VERSION; 141 } 298 * @throws Exception\InvalidArgumentException if the JSON cannot be decoded. 299 * @link http://www.php.net/manual/en/function.json-decode.php 300 */ 321 * @throws Exception\InvalidArgumentException if the JSON cannot be encoded. 322 * @link http://www.php.net/manual/en/function.json-encode.php 323 */Value.php https://github.com/jakedorst/ch3-dev-preview.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35Link.java https://bitbucket.org/haris_peco/debrief.git | Java | 424 lines
12 * You can obtain a copy of the LGPL 2.1 license at 13 * http://www.opensource.org/licenses/lgpl-2.1.php 14 * 15 * You can obtain a copy of the CDDL 1.0 license at 16 * http://www.opensource.org/licenses/cddl1.php 17 * 18 * You can obtain a copy of the EPL 1.0 license at 19 * http://www.opensource.org/licenses/eclipse-1.0.php 20 * 127 public Link(Link from) { 128 this(from.getSource(), from.getTypeRef(), from.getTarget()); 129 } 268 */ 269 public Reference getTypeRef() { 270 return getSecond();PrettyPrinterAbstract.php https://gitlab.com/x33n/PHP-Parser | PHP | 268 lines
1<?php 2 2 3namespace PhpParser; 4 4 5use PhpParser\Node\Expr; 6use PhpParser\Node\Stmt; 106 /** 107 * Pretty prints a file of statements (includes the opening <?php tag if it is required). 108 * 116 $p = preg_replace('/^\?>\n?/', '', $p, -1, $count); 117 $p = preg_replace('/<\?php$/', '', $p); 118 119 if (!$count) { 120 $p = "<?php\n\n" . $p; 121 }Import.php https://github.com/brion/mediawiki-svn.git | PHP | 485 lines
1<?php 2/** 146 147 function getType() { 148 return $this->type; 252 $prior = $dbw->selectField( 'logging', '1', 253 array( 'log_type' => $this->getType(), 254 'log_action' => $this->getAction(), 429 switch($upload['error']){ 430 case 1: # The uploaded file exceeds the upload_max_filesize directive in php.ini. 431 return new WikiErrorMsg( 'importuploaderrorsize' );Serializer.php https://github.com/kervin/kyzstudio.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24#require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27#require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"ESLconnection.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 384 lines
1<?php defined('SYSPATH') or die('No direct access allowed.'); 2/** 2/** 3 * ESLconnection.php - This provides ESLconnection when the native ESL 4 * extension is not avaliable 35 if ($event->getHeader('Content-Type') != 'auth/request') { 36 $this->_throwError("unexpected header recieved during authentication: " . $event->getType()); 37 }ChoiceFormField.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 324 lines
1<?php 2 182 */ 183 public function getType() 184 {Abstract.php https://github.com/Enrise/Zend.git | PHP | 350 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 26 */ 27// require_once 'Zend/Mime.php'; 28 130 // Build multipart mail 131 $type = $this->_mail->getType(); 132 if (!$type) { 186 */ 187 // require_once 'Zend/Mail/Transport/Exception.php'; 188 throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property'); 215 */ 216 // require_once 'Zend/Mail/Transport/Exception.php'; 217 throw new Zend_Mail_Exception('At least one mail header line is too long');RevisionOverviewForm.php https://gitlab.com/Drulenium-bot/diff | PHP | 356 lines
1<?php 2 114 $node_storage = $this->entityManager->getStorage('node'); 115 $type = $node->getType(); 116Local.php https://gitlab.com/vincetang/mtweb | PHP | 401 lines
1<?php 2 348 $normalized = [ 349 'type' => $file->getType(), 350 'path' => $this->getFilePath($file),fieldunicity.class.php https://github.com/ardowz/Thesis-SideB.git | PHP | 496 lines
1<?php 2/* 2/* 3 * @version $Id: fieldunicity.class.php 14917 2011-07-13 09:10:10Z moyo $ 4 ------------------------------------------------------------------------- 48 49 static function getTypeName() { 50 global $LANG; 159 $item = new $this->fields['itemtype']; 160 echo $item->getTypeName(); 161 echo "<input type='hidden' name='itemtype' value='".$this->fields['itemtype']."'"; 169 if ($item->can(-1,'r')) { 170 $options[$itemtype] = $item->getTypeName($itemtype); 171 } 179 ajaxUpdateItemOnSelectEvent("dropdown_itemtype$rand", "span_fields", 180 $CFG_GLPI["root_doc"]."/ajax/dropdownUnicityFields.php", 181 $params);DataReaderTests.cs https://github.com/iainlane/mono.git | C# | 537 lines
7// npgsql-general@gborg.postgresql.org 8// http://gborg.postgresql.org/project/npgsql/projdisplay.php 9// 109 110 //cw.WriteLine(result.GetType().Name); 111 Assert.AreEqual(4, result);MssqlSchemaParser.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 248 lines
1<?php 2/* 2/* 3 * $Id: MssqlSchemaParser.php 1262 2009-10-26 20:54:39Z francois $ 4 * 18 * and is licensed under the LGPL. For more information please see 19 * <http://propel.phpdb.org>. 20 */ 21 22require_once 'propel/engine/database/reverse/BaseSchemaParser.php'; 23 79 */ 80 protected function getTypeMapping() 81 {ArrayNode.php https://github.com/Exercise/symfony.git | PHP | 363 lines
1<?php 2 244 $this->getPath(), 245 gettype($value) 246 ));SRF_iCalendar.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 269 lines
1<?php 2/** 176 177 if ( $label == 'start' && $req->getTypeID() == '_dat' ) { 178 $startdate = efSRFGetNextDV( $field ); // save only the first 179 } 180 else if ( $label == 'end' && $req->getTypeID() == '_dat' ) { 181 $enddate = efSRFGetNextDV( $field ); // save only the firstService.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 494 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 24593 2012-01-05 20:35:02Z matthew $ 32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 133 if (null == $this->getName()) { 134 require_once 'Zend/Json/Server/Exception.php'; 135 throw new Zend_Json_Server_Exception( 'SMD service description requires a name; none provided' ); 173 if (!preg_match($this->_nameRegex, $name)) { 174 require_once 'Zend/Json/Server/Exception.php'; 175 throw new Zend_Json_Server_Exception( sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name) ); 203 if (!in_array($transport, $this->_transportTypes)) { 204 require_once 'Zend/Json/Server/Exception.php'; 205 throw new Zend_Json_Server_Exception( sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)) );Sajax.php https://github.com/Shigaru/shigaru.git | PHP | 1476 lines
1<?php 2 181 182 $type = gettype($value); 183 585 586 var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>; 587 589 590 var sajax_request_type = "<?php echo $t; ?>"; 591 597 598 var sajax_failure_redirect = "<?php echo $sajax_failure_redirect; ?>"; 599 801 802 <?php echo "uri = \"".sajax_get_my_uri()."\";"; ?> 803CustomOptions.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 515 lines
1<?php 2/** 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 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 */ 162 $typeMethod = preg_replace('/[^a-zA-Z]/', '', $option['type']); 163 $getTypeData = 'get' . ucfirst(strtolower($typeMethod)) . 'Data'; 164 164 165 $optionData = $this->$getTypeData($optionElement); 166 $optionData['title'] = $title;DiscriminatorColumnLineParserTest.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 209 lines
1package org.netbeans.modules.php.doctrine2.annotations.orm.parser; 2 5import org.netbeans.modules.csl.api.OffsetRange; 6import org.netbeans.modules.php.spi.annotation.AnnotationLineParser; 7import org.netbeans.modules.php.spi.annotation.AnnotationParsedLine; 7import org.netbeans.modules.php.spi.annotation.AnnotationParsedLine; 8import org.netbeans.modules.php.spi.annotation.AnnotationParsedLine.ParsedLine; 9 96 assertEquals("", parsedLine.getDescription()); 97 Map<OffsetRange, String> types = parsedLine.getTypes(); 98 for (Map.Entry<OffsetRange, String> entry : types.entrySet()) { 110 assertEquals("", parsedLine.getDescription()); 111 Map<OffsetRange, String> types = parsedLine.getTypes(); 112 for (Map.Entry<OffsetRange, String> entry : types.entrySet()) { 124 assertEquals("", parsedLine.getDescription()); 125 Map<OffsetRange, String> types = parsedLine.getTypes(); 126 for (Map.Entry<OffsetRange, String> entry : types.entrySet()) {AbstractWriter.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
1<?php 2/** 134 __NAMESPACE__, 135 is_object($filter) ? get_class($filter) : gettype($filter) 136 )); 171 __NAMESPACE__, 172 is_object($plugins) ? get_class($plugins) : gettype($plugins) 173 )); 221 __NAMESPACE__, 222 is_object($plugins) ? get_class($plugins) : gettype($plugins) 223 ) 298 __NAMESPACE__, 299 is_object($formatter) ? get_class($formatter) : gettype($formatter) 300 ));queue.php https://gitlab.com/alexprowars/bitrix | PHP | 397 lines
1<?php 2/** 132 { 133 $types = Service::getTypes(); 134 foreach ($types as $type)ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
1<?php 2 29 $this->assertEquals('foo', $p->getName()); 30 $this->assertEquals('bar', $p->getType()); 31 $this->assertEquals(true, $p->getRequired()); 116 $p = new Parameter(array('type' => 'foo')); 117 $this->assertEquals('foo', $p->getType()); 118 } 163 $this->assertEquals(true, $p->getStatic()); 164 $this->assertEquals('i', $p->getType()); 165 }UserQuery.php https://github.com/Spavacz/NPG.git | PHP | 355 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: UserQuery.php 20096 2010-01-06 02:05:09Z bkarwin $ 22 */ 26 */ 27require_once('Zend/Gdata/Gapps/Query.php'); 28 121 */ 122 public function getType() 123 { 324 325 if ($this->getType() !== null) { 326 $uri .= '/' . $this->getType(); 327 } else { 328 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 329 throw new Zend_Gdata_App_InvalidArgumentException(Serializer.php https://bitbucket.org/simukti/zf1.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"SafeSQL.php https://gitlab.com/igorbabko/mindk | PHP | 337 lines
1<?php 2/** 2/** 3 * File /framework/database/SafeSql.php contains the SafeSql class 4 * which provides secure interaction with database. 5 * 6 * PHP version 5 7 * 300 500, 301 "<strong>Internal server error:</strong> number (?n) placeholder expects numeric value, ".gettype( 302 $valueForm.php https://bitbucket.org/acidel/buykoala.git | PHP | 212 lines
1<?php 2/** 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 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 */ 47 48 $addressType = $this->getType(); 49 if (!$addressType) {Option.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 491 lines
1<?php 2/** 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 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 */ 33 * @method Mage_Catalog_Model_Product_Option setProductId(int $value) 34 * @method string getType() 35 * @method Mage_Catalog_Model_Product_Option setType(string $value) 206 if (is_null($type)) { 207 $type = $this->getType(); 208 } 318 ->saveValues(); 319 } elseif ($this->getGroupByType($this->getType()) == self::OPTION_GROUP_SELECT) { 320 Mage::throwException(Mage::helper('catalog')->__('Select type options required values rows.'));FCDGeometrySource.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 188 lines
5 6 MIT License: http://www.opensource.org/licenses/mit-license.php 7*/ 137 @return The type of data contained within the source. */ 138 inline FUDaeGeometryInput::Semantic GetType() const { return (FUDaeGeometryInput::Semantic) *sourceType; } 139UserQuery.php https://github.com/basdog22/Qool.git | PHP | 355 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: UserQuery.php 24594 2012-01-05 21:27:01Z matthew $ 22 */ 26 */ 27require_once('Zend/Gdata/Gapps/Query.php'); 28 121 */ 122 public function getType() 123 { 324 325 if ($this->getType() !== null) { 326 $uri .= '/' . $this->getType(); 327 } else { 328 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 329 throw new Zend_Gdata_App_InvalidArgumentException(smpl_Quote_Sample.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 142 lines
1<?php 2class smpl_Quote_Sample{ 2class smpl_Quote_Sample{ 3 function getType() { 4 return 'AOS_Quotes';worksheet.md https://gitlab.com/hungnguyen96/WePr_Hung_Nguyen | Markdown | 247 lines
8 9This can be done in various ways: using PHP, Java Server Pages (JSP), Ruby, Python etc. PHP programming language is widely used and fairly easy to learn, so we are using PHP in this course. 10 14 15Further reading: [PHP documentation home page][PHP] 16 63 64This file should be named using PHP-extension (not HTML-extension) for example Minimal.php, so that the server understands to execute the PHP-code. 65 228 }; 229 xmlhttp.open("GET", "php/gethint.php?q=" + str, true); 230 xmlhttp.send(); 238 2391. Change the order.html and serverTime.php files in the following way: put a button on the page, when it's clicked, the php is requested for a random number, which is the shown by the javascript callback function. 2402. Change the suggestions.html and gethint.php in the following way: change the php program to return the first name of the hints in a JSON format and show it by the javascript callback function.MqttWireMessage.java https://gitlab.com/jforge/paho.mqtt.java | Java | 352 lines
10 * and the Eclipse Distribution License is available at 11 * http://www.eclipse.org/org/documents/edl-v10.php. 12 * 86 */ 87 public byte getType() { 88 return type; 116 try { 117 int first = ((getType() & 0x0f) << 4) ^ (getMessageInfo() & 0x0f); 118 byte[] varHeader = getVariableHeader();Headers.php https://bitbucket.org/gencer/zf2.git | PHP | 456 lines
1<?php 2/** 130 'Expected array or Traversable; received "%s"', 131 (is_object($headers) ? get_class($headers) : gettype($headers)) 132 ));mysqli_stmt_affected_rows.php https://gitlab.com/iranjith4/hhvm | PHP | 231 lines
1<?php 2 require_once("connect.inc"); 22 if (0 !== ($tmp = mysqli_stmt_affected_rows($stmt))) 23 printf("[005] Expecting int/0, got %s/'%s'\n", gettype($tmp), $tmp); 24 39 if (1 !== ($tmp = mysqli_stmt_affected_rows($stmt))) 40 printf("[008] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 41 51 if (-1 !== ($tmp = mysqli_stmt_affected_rows($stmt))) 52 printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 53 61 if (2 !== ($tmp = mysqli_stmt_affected_rows($stmt))) 62 printf("[012] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 63 71 if (2 !== ($tmp = mysqli_stmt_affected_rows($stmt))) 72 printf("[014] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 73PrettyPrinterAbstract.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 262 lines
92 */ 93 public function prettyPrintExpr(PHPParser_Node_Expr $node) { 94 return str_replace("\n" . $this->noIndentToken, "\n", $this->p($node)); 134 * 135 * @param PHPParser_Node[] $nodes Array of nodes 136 * @param bool $indent Whether to indent the printed nodes 144 . $this->p($node) 145 . ($node instanceof PHPParser_Node_Expr ? ';' : ''); 146 } 169 170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) { 171 list($precedence, $associativity) = $this->precedenceMap[$type]; 233 * 234 * @param PHPParser_Node[] $nodes Array of Nodes to be printed 235 *XRDS.php https://github.com/halka139/php-openid.git | PHP | 247 lines
1<?php 2 6 7require_once 'Auth/Yadis/XRDS.php'; 8require_once 'Auth/Yadis/XRIRes.php'; 8require_once 'Auth/Yadis/XRIRes.php'; 9require_once 'Auth/Yadis/XRI.php'; 10require_once 'Tests/Auth/Yadis/TestUtil.php'; 11 12class Tests_Auth_Yadis_XRDS extends PHPUnit_Framework_TestCase { 13 44 45 $types = $s->getTypes(); 46 146 $this->assertEquals($s1->getPriority(), 1, "first priority check"); 147 $types = $s1->getTypes(); 148 $this->assertEquals(count($types), 1, "first type check");functions.php https://gitlab.com/reasonat/test8 | PHP | 329 lines
1<?php 2namespace GuzzleHttp; 42{ 43 switch (gettype($input)) { 44 case 'object': 91 92 return fopen('php://output', 'w'); 93} 139 } 140 $defaultAgent .= ' PHP/' . PHP_VERSION; 141 } 295 * @throws \InvalidArgumentException if the JSON cannot be decoded. 296 * @link http://www.php.net/manual/en/function.json-decode.php 297 */ 317 * @throws \InvalidArgumentException if the JSON cannot be encoded. 318 * @link http://www.php.net/manual/en/function.json-encode.php 319 */univalue.cpp https://gitlab.com/jslee1/bitcoin | C++ | 360 lines
3// Distributed under the MIT software license, see the accompanying 4// file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 235 236 if (values.at(idx).getType() != it->second) 237 return false;ModulesService.php https://gitlab.com/gregtyka/frankenserver | PHP | 426 lines
1<?php 2/** 134 throw new \InvalidArgumentException( 135 '$module must be a string. Actual type: ' . gettype($module)); 136 } 167 throw new \InvalidArgumentException( 168 '$module must be a string. Actual type: ' . gettype($module)); 169 } 206 throw new \InvalidArgumentException( 207 '$module must be a string. Actual type: ' . gettype($module)); 208 } 214 throw new \InvalidArgumentException( 215 '$version must be a string. Actual type: ' . gettype($version)); 216 } 254 throw new \InvalidArgumentException( 255 '$instances must be an integer. Actual type: ' . gettype($instances)); 256 }XRDS.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 425 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 18 */ 19require_once 'Services/Yadis/XML.php'; 20 89 */ 90 function getTypes() 91 {Serializer.php https://bitbucket.org/ksekar/campus.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Serializer.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23/** Zend_Amf_Constants */ 24require_once 'Zend/Amf/Constants.php'; 25 26/** @see Zend_Amf_Parse_Serializer */ 27require_once 'Zend/Amf/Parse/Serializer.php'; 28 29/** 30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker. 31 * 65 { 66 // Workaround for PHP5 with E_STRICT enabled complaining about "Only 67 // variables should be passed by reference"HtmlView.php https://github.com/Kunena/Kunena-Forum.git | PHP | 432 lines
1<?php 2/** 142 { 143 $this->moreUri = 'index.php?option=com_kunena&view=topics&layout=default&mode=' . $this->state->get('list.mode'); 144 $userid = $this->state->get('user'); 189 { 190 $this->moreUri = 'index.php?option=com_kunena&view=topics&layout=user&mode=' . $this->state->get('list.mode'); 191 $userid = $this->state->get('user'); 227 { 228 $this->moreUri = 'index.php?option=com_kunena&view=topics&layout=posts&mode=' . $this->state->get('list.mode'); 229 $userid = $this->state->get('user'); 286 $this->category = $this->topic->getCategory(); 287 $usertype = $this->me->getType($this->category->id, true); 288 359 $this->category = $this->topic->getCategory(); 360 $usertype = $this->me->getType($this->category->id, true); 361Vector.class.php https://github.com/treuter/xp-framework.git | PHP | 308 lines
1<?php 2/* This class is part of the XP framework 52 * 53 * @see php://language.oop5.iterations 54 * @return php.Iterator 84 } else { 85 throw new IllegalArgumentException('Incorrect type '.gettype($offset).' for index'); 86 }Indexer.php https://bitbucket.org/acidel/buykoala.git | PHP | 309 lines
1<?php 2/** 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 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 */ 36 * @method Mage_Catalog_Model_Product_Flat_Indexer setAttributeSetId(int $value) 37 * @method string getTypeId() 38 * @method Mage_Catalog_Model_Product_Flat_Indexer setTypeId(string $value)FlashMessenger.php https://github.com/tmccormi/openemr.git | PHP | 353 lines
1<?php 2/** 305 PluginFlashMessenger::class, 306 (is_object($pluginFlashMessenger) ? get_class($pluginFlashMessenger) : gettype($pluginFlashMessenger)) 307 ));Action.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 404 lines
1<?php 2/** 24/** Internally used classes */ 25require_once 'Zend/Pdf/Element.php'; 26require_once 'Zend/Pdf/Element/Array.php'; 29/** Zend_Pdf_Target */ 30require_once 'Zend/Pdf/Target.php'; 31 73 { 74 require_once 'Zend/Pdf/Element.php'; 75 if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) { 75 if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) { 76 require_once 'Zend/Pdf/Exception.php'; 77 throw new Zend_Pdf_Exception('$dictionary mast be a direct or an indirect dictionary object.'); 97 } else { 98 require_once 'Zend/Pdf/Exception.php'; 99 throw new Zend_Pdf_Exception('PDF Action dictionary Next entry must be a dictionary or an array.');TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
1<?php 2/** 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 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main'); 29 */ 30require_once 'Zend/Measure/Temperature.php'; 31 34 */ 35require_once 'Zend/Registry.php'; 36 44 */ 45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase 46{CreditCard.php https://github.com/basdog22/Qool.git | PHP | 317 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: CreditCard.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 169 */ 170 public function getType() 171 { 229 if (!is_callable($service)) { 230 require_once 'Zend/Validate/Exception.php'; 231 throw new Zend_Validate_Exception('Invalid callback given'); 260 $length = strlen($value); 261 $types = $this->getType(); 262 $foundp = false;Event.php https://gitlab.com/aredhel-bazaar/la-taverne-du-hasard | PHP | 466 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: Silvesius 242 */ 243 public function getType() 244 {Image.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 470 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Image.php 20367 2010-01-18 04:51:23Z ralph $ 21 */ 23/** @see Zend_Barcode_Renderer_RendererAbstract*/ 24require_once 'Zend/Barcode/Renderer/RendererAbstract.php'; 25 84 if (!function_exists('gd_info')) { 85 require_once 'Zend/Barcode/Renderer/Exception.php'; 86 throw new Zend_Barcode_Renderer_Exception('Zend_Barcode_Renderer_Image requires the GD extension'); 100 if (!is_numeric($value) || intval($value) < 0) { 101 require_once 'Zend/Barcode/Renderer/Exception.php'; 102 throw new Zend_Barcode_Renderer_Exception( 128 if (!is_numeric($value) || intval($value) < 0) { 129 require_once 'Zend/Barcode/Renderer/Exception.php'; 130 throw new Zend_Barcode_Renderer_Exception(element.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 502 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 18 * @author Bertrand Mansion <bmansion@mamasam.com> 19 * @author Alexey Borzov <avb@php.net> 20 * @copyright 2001-2009 The PHP Group 20 * @copyright 2001-2009 The PHP Group 21 * @license http://www.php.net/license/3_01.txt PHP License 3.01 22 * @version CVS: $Id: element.php,v 1.37 2009/04/04 21:34:02 avb Exp $RestMarshalling.class.php https://github.com/ghiata/xp-framework.git | PHP | 267 lines
1<?php 2/* This class is part of the XP framework 197 if (NULL !== ($arg= $this->keyOf($data))) { 198 return $m->invoke(NULL, array($this->unmarshal($m->getParameter(0)->getType(), $arg[0]))); 199 } 219 } else if ($m & MODIFIER_PUBLIC) { 220 if (NULL !== ($fType= $field->getType())) { 221 $field->set($return, $this->unmarshal($fType, $value)); 231 if (NULL !== ($param= $method->getParameter(0))) { 232 $method->invoke($return, array($this->unmarshal($param->getType(), $value))); 233 } else {Domain.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 396 lines
1<?php 2/* 2/* 3 * $Id: Domain.php 1262 2009-10-26 20:54:39Z francois $ 4 * 18 * and is licensed under the LGPL. For more information please see 19 * <http://propel.phpdb.org>. 20 */ 21 22require_once 'propel/engine/database/model/XMLElement.php'; 23 102 $this->sqlType = $domain->getSqlType(); 103 $this->propelType = $domain->getType(); 104 } 239 */ 240 public function getType() 241 {ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
1<?php 2/** 96 __METHOD__, 97 gettype($modulePaths) 98 ) 142 __METHOD__, 143 gettype($configGlobPaths) 144 ) 168 __METHOD__, 169 gettype($configStaticPaths) 170 ) 205 __METHOD__, 206 gettype($extraConfig) 207 ) 269 if ($this->getConfigCacheKey()) { 270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php'; 271 }AttributeController.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 lines
1<?php 2/** 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 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 */ 42 parent::preDispatch(); 43 $this->_entityTypeId = Mage::getModel('eav/entity')->setType(Mage_Catalog_Model_Product::ENTITY)->getTypeId(); 44 }Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
1<?php 2/** 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 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 */ 142 143 if ($attribute && $event->getType() == Mage_Index_Model_Event::TYPE_DELETE) { 144 $result = $enableBefore; 144 $result = $enableBefore; 145 } elseif ($attribute && $event->getType() == Mage_Index_Model_Event::TYPE_SAVE) { 146 if ($enableAfter || $enableBefore) { 154 } else if ($entity == Mage_Core_Model_Store::ENTITY) { 155 if ($event->getType() == Mage_Index_Model_Event::TYPE_DELETE) { 156 $result = true;NullTest.php https://github.com/sidealice/zf2.git | PHP | 329 lines
1<?php 2/** 33 */ 34class NullTest extends \PHPUnit_Framework_TestCase 35{ 298 */ 299 public function testGetType() 300 { 300 { 301 $this->assertEquals(63, $this->_filter->getType()); 302 }Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 lines
1<?php 2/** 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 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 */ 83 */ 84 if (!in_array($product->getTypeId(), Mage::helper('bundle')->getAllowedSelectionTypes())) { 85 return $this; 183 184 if ($product->getTypeId() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) { 185 //do nothing if not bundle 190 191 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 192 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product);