100+ results results for 'php settype repo:navyuginfo/phabricator' (1344 ms)
1<?php 2/** 30 * @method string getTypeId() 31 * @method \Magento\CatalogSearch\Model\Advanced setTypeId(string $value) 32 * @method string getSku() 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)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) {CreditCard.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 158 159 $this->setType($options['type']); 160 if (array_key_exists('service', $options)) { 180 */ 181 public function setType($type) 182 { 229 if (!is_callable($service)) { 230 require_once 'Zend/Validate/Exception.php'; 231 throw new Zend_Validate_Exception('Invalid callback given');Backup.php https://gitlab.com/blingbang2016/shop | 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 */ 73 74 $this->setType($backupData->getType()); 75 return $this; 112 */ 113 public function setType($value='db') 114 { 391 if ($backup->getId() == $backupId) { 392 $this->setType($backup->getType()) 393 ->setTime($backup->getTime())ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
1<?php 2 145 ->setDefault('h') 146 ->setType('i'); 147jquery.noty.js https://gitlab.com/Mirros/cdnjs | JavaScript | 475 lines
7* Licensed under the MIT licenses: 8* http://www.opensource.org/licenses/mit-license.php 9* 192 193 setType: function(type) { 194 if (!this.closed) { 311 312 $.noty.setType = function(id, type) { 313 return $.noty.get(id) ? $.noty.get(id).setType(type) : false;mutation.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 329 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 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/mutation.h" 18TypedDataManager.php https://gitlab.com/geeta7/drupal | PHP | 294 lines
1<?php 2 96 $typed_data = $class::createInstance($data_definition, $configuration['name'], $configuration['parent']); 97 $typed_data->setTypedDataManager($this); 98 return $typed_data;PluginTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 314 lines
1<?php 2/** 7 8class PluginTest extends \PHPUnit_Framework_TestCase 9{ 15 /** 16 * @var \PHPUnit_Framework_MockObject_MockObject 17 */ 20 /** 21 * @var \PHPUnit_Framework_MockObject_MockObject 22 */ 25 /** 26 * @var \PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var \PHPUnit_Framework_MockObject_MockObject 32 */class-wp-filesystem-ftpsockets.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 469 lines
1<?php 2/** 31 // Check if possible to use ftp functions. 32 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 33 return; 83 84 $this->ftp->SetType( FTP_BINARY ); 85 $this->ftp->Passive( true );SmartyBC.class.php https://gitlab.com/alvarobacelar/sgp | PHP | 460 lines
3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 5 * SVN: $Id: $ 34 */ 35require(dirname(__FILE__) . '/Smarty.class.php'); 36 58 // register {php} tag 59 $this->registerPlugin('block', 'php', 'smarty_php_tag'); 60 } 98 * @param string $function the name of the template function 99 * @param string $function_impl the name of the PHP function to register 100 * @param bool $cacheable 445/** 446 * Smarty {php}{/php} block function 447 *Theme.php https://gitlab.com/yousafsyed/easternglamor | PHP | 378 lines
1<?php 2/** 29 * @method ThemeInterface setThemeTitle(string $themeTitle) 30 * @method ThemeInterface setType(int $type) 31 * @method ThemeInterface setCode(string $code) 32 * 33 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 34 */ 99 * 100 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 101 */ 328 $messages = $this->_validator->getErrorMessages(); 329 throw new \Magento\Framework\Exception\LocalizedException(__(implode(PHP_EOL, reset($messages)))); 330 }Item.php https://gitlab.com/blingbang2016/shop | PHP | 386 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 */ 32 * @method int getTypeId() 33 * @method Mage_GoogleBase_Model_Item setTypeId(int $value) 34 * @method int getProductId() 105 ->insert(); 106 $this->setTypeId($typeModel->getTypeId()); 107 return $this;__CG__TunisiamalltunisiamallBundleEntityCorrespondanceProduit.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 433 lines
1<?php 2 259 */ 260 public function setType($type) 261 { 262 263 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', array($type)); 264 264 265 return parent::setType($type); 266 }class-lp-question-fill-in-blank.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 252 lines
1<?php 2if ( class_exists( 'LP_Abstract_Question' ) ) { 54 if( $question_id == $this->id) { 55 settype( $checked, 'array' ); 56 $content = reset( $checked ); 76 if ( !empty( $this->user_answered ) ) { 77 settype( $this->user_answered, 'array' ); 78 $input_name = $this->get_input_name( $a[2] ); 79 if ( !empty( $this->user_answered[$input_name] ) ) { 80 settype( $this->user_answered[$input_name], 'array' ); 81 $user_fill = array_shift( $this->user_answered[$input_name] ); 179 180 settype( $args, 'array' ); 181 $answered = !empty( $args['answered'] ) ? $args['answered'] : array(); 182 183 $view = LP_Addon_Question_Fill_In_Blank::locate_template( 'fill-in-blank.php' ); 184 include $view;Isbn.php https://gitlab.com/yousafsyed/easternglamor | PHP | 278 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 80 */ 81 #require_once 'Zend/Validate/Exception.php'; 82 throw new Zend_Validate_Exception('Invalid options provided.'); 86 if (array_key_exists('type', $options)) { 87 $this->setType($options['type']); 88 } 228 */ 229 #require_once 'Zend/Validate/Exception.php'; 230 throw new Zend_Validate_Exception('Invalid ISBN separator.'); 253 */ 254 public function setType($type) 255 {PwImageWatermark.php https://gitlab.com/wuhang2003/phpwind | PHP | 244 lines
1<?php 2defined('WEKIT_VERSION') || exit('Forbidden'); 8 * @author Jianmin Chen <sky_hold@163.com> 9 * @version $Id: PwImageWatermark.php 24724 2013-02-17 10:05:52Z jieyin $ 10 * @package lib.image 67 */ 68 public function setType($type) { 69 $this->type = $type;SmartyBC.class.php https://gitlab.com/milutinke97/Controlify | PHP | 455 lines
1<?php 2/** 2/** 3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 30 */ 31require_once(dirname(__FILE__) . '/Smarty.class.php'); 32 47 /** 48 * This is an array of directories where trusted php scripts reside. 49 * 100 * @param string $function the name of the template function 101 * @param string $function_impl the name of the PHP function to register 102 * @param bool $cacheable 123 * @param string $object name of template object 124 * @param object $object_impl the referenced PHP object to register 125 * @param array $allowed list of allowed methods (empty = all)Multiline.php https://gitlab.com/yousafsyed/easternglamor | PHP | 152 lines
1<?php 2/** 30 parent::__construct($factoryElement, $factoryCollection, $escaper, $data); 31 $this->setType('text'); 32 $this->setLineCount(2); 105 * @return mixed 106 * @SuppressWarnings(PHPMD.NPathComplexity) 107 */Event.php https://gitlab.com/blingbang2016/shop | PHP | 340 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 */ 31 * @method Mage_Index_Model_Resource_Event getResource() 32 * @method Mage_Index_Model_Event setType(string $value) 33 * @method Mage_Index_Model_Event setEntity(string $value)Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
1<?php 2/* 108 $this->_setName($columnName); 109 $this->setType($type); 110 $this->setOptions($options); 134 */ 135 public function setType(Type $type) 136 {HeadTitle.php https://gitlab.com/yousafsyed/easternglamor | PHP | 263 lines
1<?php 2/** 60 * @param string $title 61 * @param string $setType 62 * @return HeadTitle 63 */ 64 public function __invoke($title = null, $setType = null) 65 { 65 { 66 if (null === $setType) { 67 $setType = (null === $this->getDefaultAttachOrder()) 73 if ($title !== '') { 74 if ($setType == Placeholder\Container\AbstractContainer::SET) { 75 $this->set($title); 75 $this->set($title); 76 } elseif ($setType == Placeholder\Container\AbstractContainer::PREPEND) { 77 $this->prepend($title);Option.php https://gitlab.com/yousafsyed/easternglamor | PHP | 297 lines
1<?php 2/** 237 */ 238 public function setType($type) 239 {SendTransacSms.php https://gitlab.com/VTTE/sitios-vtte | PHP | 500 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 125 'content' => 'setContent', 126 'type' => 'setType', 127 'tag' => 'setTag', 365 */ 366 public function setType($type) 367 {Abstract.php https://gitlab.com/devtoannh/cafe | PHP | 242 lines
1<?php 2/** 21/** Zend_Server_Interface */ 22require_once 'Zend/Server/Interface.php'; 23 26 */ 27require_once 'Zend/Server/Definition.php'; 28 31 */ 32require_once 'Zend/Server/Method/Definition.php'; 33 36 */ 37require_once 'Zend/Server/Method/Callback.php'; 38 41 */ 42require_once 'Zend/Server/Method/Prototype.php'; 43ExternalVideoEntryConverterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 231 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;board.controller.php http://xe-board.googlecode.com/svn/trunk/ | PHP | 354 lines
1<?php 2 /** 30 31 settype($obj->title, "string"); 32 if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...');lib.php https://gitlab.com/JrLucena/moodle | PHP | 256 lines
1<?php 2 26 27require_once($CFG->libdir.'/portfolio/plugin.php'); 28require_once($CFG->libdir.'/filelib.php'); 28require_once($CFG->libdir.'/filelib.php'); 29require_once($CFG->libdir.'/flickrlib.php'); 30 104 $mform->addRule('apikey', $strrequired, 'required', null, 'client'); 105 $mform->setType('apikey', PARAM_RAW_TRIMMED); 106 $mform->addElement('text', 'sharedsecret', get_string('sharedsecret', 'portfolio_flickr')); 107 $mform->addRule('sharedsecret', $strrequired, 'required', null, 'client'); 108 $mform->setType('sharedsecret', PARAM_RAW_TRIMMED); 109 $a = new stdClass(); 111 $a->keysurl = 'http://www.flickr.com/services/api/keys/'; 112 $a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=flickr'; 113 $mform->addElement('static', 'setupinfo', get_string('setupinfo', 'portfolio_flickr'),ext_reflection.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 282 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 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 +----------------------------------------------------------------------+text.php https://gitlab.com/JrLucena/moodle | PHP | 194 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require_once($CFG->dirroot.'/user/filters/lib.php'); 27 49 /** 50 * Old syntax of class constructor. Deprecated in PHP7. 51 * 82 $grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false); 83 $mform->setType($this->_name, PARAM_RAW); 84 $mform->disabledIf($this->_name, $this->_name.'_op', 'eq', 5);edit_form.php https://gitlab.com/JrLucena/moodle | PHP | 141 lines
1<?php 2if (!defined('MOODLE_INTERNAL')) { 5 6require_once ($CFG->dirroot.'/lib/formslib.php'); 7 29 $mform->addElement('text', 'concept', get_string('concept', 'glossary')); 30 $mform->setType('concept', PARAM_TEXT); 31 $mform->addRule('concept', null, 'required', null, 'client'); 33 $mform->addElement('editor', 'definition_editor', get_string('definition', 'glossary'), null, $definitionoptions); 34 $mform->setType('definition_editor', PARAM_RAW); 35 $mform->addRule('definition_editor', get_string('required'), 'required', null, 'client'); 47 $mform->addElement('textarea', 'aliases', get_string('aliases', 'glossary'), 'rows="2" cols="40"'); 48 $mform->setType('aliases', PARAM_TEXT); 49 $mform->addHelpButton('aliases', 'aliases', 'glossary'); 55 $mform->addElement('hidden', 'usedynalink', $CFG->glossary_linkentries); 56 $mform->setType('usedynalink', PARAM_INT); 57 $mform->addElement('hidden', 'casesensitive', $CFG->glossary_casesensitive);TaxDetailsItemInterface.php https://gitlab.com/yousafsyed/easternglamor | PHP | 224 lines
1<?php 2/** 42 */ 43 public function setType($type); 44ResellerHistory.php https://gitlab.com/StarsoftDevelopers/migrate | PHP | 283 lines
1<?php 2 98 */ 99 public function setType($type) 100 {_form.php https://gitlab.com/aintenebris/memoria | PHP | 275 lines
1<?php 2 34 <div ng-controller="CatalogItemTypeCtrl"> 35 <a ng-href="#/other/{{modelId}}" ng-click="setType('other')" class="btn btn-default" ng-class="(modelType == 'other') ? 'btn-primary' : 'btn-default'"><?= Yii::t('app', 'Other') ?></a> 36 <a ng-href="#/segment/{{modelId}}" ng-click="setType('segment')" class="btn btn-default" ng-class="(modelType == 'segment') ? 'btn-primary' : 'btn-default'"><?= Yii::t('app', 'Segment') ?></a> 74 75<?php if(1 > 2): ?> 76<script> 81 82 <?php $form = ActiveForm::begin(['id' => 'dynamic-form']); ?> 83 146 147 <?php DynamicFormWidget::begin([ 148 'widgetContainer' => 'dynamicform_wrapper', // required: only alphanumeric characters plus "_" [A-Za-z0-9_] 177 <div class="container-items"><!-- widgetBody --> 178 <?php foreach ($modelsCatalogItemSize as $i => $modelsCatalogItemSize): ?> 179 <div class="item panel panel-default"><!-- widgetItem -->FormConfigBuilderInterface.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 288 lines
1<?php 2 209 */ 210 public function setType(ResolvedFormTypeInterface $type); 211ListBuilder.php https://gitlab.com/cuza/Clinic_Recods | PHP | 193 lines
1<?php 2 57 $guessType = $this->guesser->guessType($admin->getClass(), $fieldDescription->getName(), $admin->getModelManager()); 58 $fieldDescription->setType($guessType->getType()); 59 } else { 59 } else { 60 $fieldDescription->setType($type); 61 } 168 if (null === $fieldDescription->getType()) { 169 $fieldDescription->setType('action'); 170 }Parameter.php https://gitlab.com/luisrepo/ClienteWS | PHP | 214 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Parameter.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 182 */ 183 public function setType($type) 184 {function_8html__checkboxes_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 143 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_checkboxes.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.html_checkboxes.php</h1> </div> 30</div> 31<div class="contents"> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00041"></a>00041 function smarty_function_html_checkboxes($params, &$smarty) 92<a name="l00100"></a>00100 93<a name="l00101"></a>00101 settype($selected, <span class="stringliteral">'array'</span>); 94<a name="l00102"></a>00102 $_html_result = array();TrafficManagement.php https://gitlab.com/blueprintmrk/dyn-php | PHP | 271 lines
1<?php 2 174 $zone->setName($result->data->zone) 175 ->setType($result->data->zone_type) 176 ->setSerialStyle($result->data->serial_style) 201 $zone->setName($zoneData->zone) 202 ->setType($zoneData->zone_type) 203 ->setSerialStyle($zoneData->serial_style)ThemeTest.php https://gitlab.com/svillegas/magento2 | PHP | 489 lines
1<?php 2/** 16/** 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 18 */ 19class ThemeTest extends \PHPUnit_Framework_TestCase 20{ 21 /** 22 * @var \Magento\Theme\Model\Theme|\PHPUnit_Framework_MockObject_MockObject 23 */ 26 /** 27 * @var \PHPUnit_Framework_MockObject_MockObject 28 */ 31 /** 32 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\View\Design\Theme\FlyweightFactory 33 */SiteVerification.php https://gitlab.com/oytunistrator/google-api-php-client | PHP | 404 lines
1<?php 2/* 287 } 288 public function setType($type) 289 { 395 } 396 public function setType($type) 397 {Query.php https://gitlab.com/habracoder/advertising | PHP | 381 lines
1<?php 2 353 */ 354 public function setType($type){ } 355Callback.php https://gitlab.com/yousafsyed/easternglamor | PHP | 205 lines
1<?php 2/** 122 $this->_function = (string) $function; 123 $this->setType('function'); 124 return $this; 165 */ 166 public function setType($type) 167 { 168 if (!in_array($type, $this->_types)) { 169 #require_once 'Zend/Server/Exception.php'; 170 throw new Zend_Server_Exception('Invalid method callback type passed to ' . __CLASS__ . '::' . __METHOD__);4f75513d0ac3ea4d2b93ca969cc7790630043fd3.file.suppliers.tpl.php https://gitlab.com/ivandevp/petshop | PHP | 229 lines
79 <td><input type="checkbox" class="supplierCheckBox" name="check_supplier_<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?> 80" <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_selected']==true) {?>checked="checked"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?> 81" /></td> 85" name="default_supplier" value="<?php echo $_smarty_tpl->tpl_vars['supplier']->value['id_supplier'];?> 86" <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_selected']==false) {?>disabled="disabled"<?php }?> <?php if ($_smarty_tpl->tpl_vars['supplier']->value['is_default']==true) {?>checked="checked"<?php }?> /></td> 87 </tr> 97 <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);?> 98<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&submitFilterproduct=<?php echo intval($_REQUEST['page']);?> 99<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?> 129 <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion-supplier" href="#supplier-<?php echo $_smarty_tpl->tpl_vars['supplier']->value->id;?> 130"><?php if (isset($_smarty_tpl->tpl_vars['supplier']->value->name)) {?><?php echo $_smarty_tpl->tpl_vars['supplier']->value->name;?> 131<?php }?></a> 219<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&submitFilterproduct=<?php echo intval($_REQUEST['page']);?> 220<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?> 221</a>Chart.php https://gitlab.com/goolic/PrestaShop | PHP | 194 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 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 176 177 public function setType($type) 178 {Observer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 414 lines
1<?php 2/** 11 * @author Magento Core Team <core@magentocommerce.com> 12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 13 */ 127 * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation 128 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 129 */ 177 * @return $this 178 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 179 * @SuppressWarnings(PHPMD.NPathComplexity) 182 { 183 $email->setType('price'); 184 foreach ($this->_getWebsites() as $website) { 264 * @return $this 265 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 266 * @SuppressWarnings(PHPMD.NPathComplexity)AbstractAction.php https://gitlab.com/yousafsyed/easternglamor | PHP | 317 lines
1<?php 2/** 122 * @return void 123 * @SuppressWarnings(PHPMD.UnusedLocalVariable) 124 */ 175 foreach (array_keys($this->_productType->getTypes()) as $typeId) { 176 $productEmulator->setTypeId($typeId); 177 $this->_productTypes[$typeId] = $this->_productType->factory($productEmulator); 188 * @return \Magento\Catalog\Model\Indexer\Product\Flat\AbstractAction 189 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 190 */BrkpntSetCommand.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 303 lines
43 */ 44package org.netbeans.modules.php.dbgp.packets; 45 45 46import org.netbeans.modules.php.dbgp.breakpoints.AbstractBreakpoint; 47 121 /* (non-Javadoc) 122 * @see org.netbeans.modules.php.dbgp.packets.DbgpCommand#needAcknowledgment() 123 */ 137 138 public void setType( Types type) { 139 myType = type; 190 StringBuilder builder = new StringBuilder(); 191 setType( builder ); 192 setState( builder );ReportCountsTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 197 lines
1<?php 2/** 17 */ 18class ReportCountsTest extends \PHPUnit_Framework_TestCase 19{ 25 /** 26 * @var \Magento\NewRelicReporting\Model\Config|\PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var ProductManagementInterface|\PHPUnit_Framework_MockObject_MockObject 32 */ 35 /** 36 * @var ConfigurableProductManagementInterface|\PHPUnit_Framework_MockObject_MockObject 37 */ 40 /** 41 * @var CategoryManagementInterface|\PHPUnit_Framework_MockObject_MockObject 42 */Query.php https://gitlab.com/habracoder/advertising | PHP | 395 lines
1<?php 2 366 */ 367 public function setType($type){ } 368ContextTest.php https://gitlab.com/geeta7/drupal | PHP | 172 lines
1<?php 2 24 * 25 * @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface|\PHPUnit_Framework_MockObject_MockObject 26 */ 31 * 32 * @var \Drupal\Core\TypedData\TypedDataManager|\PHPUnit_Framework_MockObject_MockObject 33 */ 38 * 39 * @var \Drupal\Core\TypedData\TypedDataInterface|\PHPUnit_Framework_MockObject_MockObject 40 */ 61 $context = new Context($this->contextDefinition); 62 $context->setTypedDataManager($this->typedDataManager); 63 $this->assertEquals('test', $context->getContextValue()); 72 $context = new Context($this->contextDefinition); 73 $context->setTypedDataManager($this->typedDataManager); 74 $this->assertEquals($this->typedData, $context->getContextData());AnnotationTest.php https://gitlab.com/I-NOZex/quiz | PHP | 241 lines
1<?php 2 3/* 4 * This file is part of the PHP CS utility. 5 * 20 */ 21class AnnotationTest extends \PHPUnit_Framework_TestCase 22{ 202 203 $tag->setTypes($new); 204 234 */ 235 public function testSetTypesOnBadTag() 236 { 238 239 $tag->setTypes(array('string')); 240 }css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
1<?php 2header('Content-Type:text/html; charset=utf-8'); 2header('Content-Type:text/html; charset=utf-8'); 3require ('class.csstidy.php'); 4require ('lang.inc.php'); 49 50 settype($selected, 'array'); 51 settype($options, 'array'); 119<title> 120 <?php 121 echo $lang[$l][0]; 146<h1 style="display: inline"> 147 <?php 148 echo $lang[$l][1]; 150 </h1> 151 <?php 152 echo $lang[$l][2];Full.php https://gitlab.com/yousafsyed/easternglamor | PHP | 450 lines
1<?php 2/** 11/** 12 * @SuppressWarnings(PHPMD.TooManyFields) 13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 177 * @param \Magento\CatalogSearch\Model\Indexer\Fulltext\Action\IndexIteratorFactory $indexIteratorFactory 178 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 179 */ 271 * 272 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 273 * @SuppressWarnings(PHPMD.NPathComplexity) 444 $productEmulator = new \Magento\Framework\DataObject(); 445 $productEmulator->setTypeId($typeId); 446 $this->productEmulators[$typeId] = $productEmulator;SmartyBC.class.php https://gitlab.com/staging06/myproject | PHP | 467 lines
3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 5 * SVN: $Id: $ 30 */ 31require_once(dirname(__FILE__) . '/Smarty.class.php'); 32 55 // register {php} tag 56 $this->registerPlugin('block', 'php', 'smarty_php_tag'); 57 } 95 * @param string $function the name of the template function 96 * @param string $function_impl the name of the PHP function to register 97 * @param bool $cacheable 452/** 453 * Smarty {php}{/php} block function 454 *ajaxPaypalPayment.php https://gitlab.com/wi14b022/fiteoReloaded | PHP | 156 lines
1<?php 2 2 3require_once('../classes/DB.php'); 4require_once('../classes/Customer.php'); 4require_once('../classes/Customer.php'); 5require_once('../classes/FitpointPackage.php'); 6require_once('../functions/generalFunctions.php'); 45 46require_once('../pp-sdk/vendor/autoload.php'); 47require_once('../pp-sdk/lib/PayPal/Rest/ApiContext.php'); 47require_once('../pp-sdk/lib/PayPal/Rest/ApiContext.php'); 48require_once('../pp-sdk/lib/PayPal/Api/Address.php'); 49require_once('../pp-sdk/lib/PayPal/Api/CreditCard.php'); 49require_once('../pp-sdk/lib/PayPal/Api/CreditCard.php'); 50require_once('../pp-sdk/lib/PayPal/Api/FundingInstrument.php'); 51require_once('../pp-sdk/lib/PayPal/Api/Payer.php');ir-unit-inl.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 285 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 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/extra-data.h" 18#include "hphp/runtime/vm/jit/ir-instruction.h"Bundle.php https://gitlab.com/blingbang2016/shop | PHP | 334 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 */ 75 76 $this->setTypesOfDisplay(array( 77 Mage_XmlConnect_Helper_Customer_Order::PRICE_DISPLAY_TYPE_1 => $typeOfDisplay1, 209 210 $this->setTypesOfDisplay(array( 211 Mage_XmlConnect_Helper_Customer_Order::PRICE_DISPLAY_TYPE_1 => $typeOfDisplay1,ir-instruction-inl.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 297 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 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/edge.h" 18FormDataExtractorTest.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 427 lines
1<?php 2 36 */ 37class FormDataExtractorTest extends \PHPUnit_Framework_TestCase 38{ 49 /** 50 * @var \PHPUnit_Framework_MockObject_MockObject 51 */ 54 /** 55 * @var \PHPUnit_Framework_MockObject_MockObject 56 */ 77 $form = $this->createBuilder('name') 78 ->setType($type) 79 ->getForm(); 108 $form = $this->createBuilder('name') 109 ->setType($type) 110 // passed options are stored in an attribute byAbstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 242 lines
1<?php 2/** 21/** Zend_Server_Interface */ 22#require_once 'Zend/Server/Interface.php'; 23 26 */ 27#require_once 'Zend/Server/Definition.php'; 28 31 */ 32#require_once 'Zend/Server/Method/Definition.php'; 33 36 */ 37#require_once 'Zend/Server/Method/Callback.php'; 38 41 */ 42#require_once 'Zend/Server/Method/Prototype.php'; 43activitymanager.php https://gitlab.com/wuhang2003/core | PHP | 534 lines
1<?php 2/** 142 * - setApp() 143 * - setType() 144 * - setAffectedUser() 157 * - setApp() 158 * - setType() 159 * - setAffectedUser() 210 $event->setApp($app) 211 ->setType($type) 212 ->setAffectedUser($affectedUser)class-ftp-sockets.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 250 lines
1<?php 2/** 2/** 3 * PemFTP - A Ftp implementation in pure PHP 4 * 10 * @author Alexey Dotsenko 11 * @link http://www.phpclasses.org/browse/package/1743.html Site 12 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html 24 * @author Alexey Dotsenko 25 * @link http://www.phpclasses.org/browse/package/1743.html Site 26 * @license LGPL http://www.opensource.org/licenses/lgpl-license.html 82 do { 83 $tmp=@socket_read($this->_ftp_control_sock, 4096, PHP_BINARY_READ); 84 if($tmp===false) { 113 function _data_prepare($mode=FTP_ASCII) { 114 if(!$this->_settype($mode)) return FALSE; 115 $this->SendMSG("Creating data socket");MassgeneratorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 340 lines
1<?php 2/** 10 */ 11class MassgeneratorTest extends \PHPUnit_Framework_TestCase 12{ 124 'setCreatedAt', 125 'setType', 126 'setCode', 139 $couponMock->expects($this->any())->method('setCreatedAt')->will($this->returnSelf()); 140 $couponMock->expects($this->any())->method('setType')->will($this->returnSelf()); 141 $couponMock->expects($this->any())->method('setCode')->will($this->returnSelf());addinstanceform.php https://gitlab.com/JrLucena/moodle | PHP | 127 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot.'/cache/forms.php'); 30require_once($CFG->dirroot.'/cache/stores/memcached/lib.php'); 48 $form->addRule('servers', get_string('required'), 'required'); 49 $form->setType('servers', PARAM_RAW); 50 53 $form->setDefault('compression', 1); 54 $form->setType('compression', PARAM_BOOL); 55 58 $form->addHelpButton('serialiser', 'useserialiser', 'cachestore_memcached'); 59 $form->setDefault('serialiser', Memcached::SERIALIZER_PHP); 60 $form->setType('serialiser', PARAM_INT); 62 $form->addElement('text', 'prefix', get_string('prefix', 'cachestore_memcached'), array('size' => 16)); 63 $form->setType('prefix', PARAM_TEXT); // We set to text but we have a rule to limit to alphanumext. 64 $form->addHelpButton('prefix', 'prefix', 'cachestore_memcached');Editor.php https://gitlab.com/blingbang2016/shop | PHP | 399 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 */ 40 if($this->isEnabled()) { 41 $this->setType('wysiwyg'); 42 $this->setExtType('wysiwyg'); 43 } else { 44 $this->setType('textarea'); 45 $this->setExtType('textarea');ValueGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 435 lines
1<?php 2/** 80 if ($type !== self::TYPE_AUTO) { 81 $this->setType($type); 82 } 202 */ 203 public function setType($type) 204 { 394 /** 395 * Quotes value for PHP code. 396 * 398 * @param bool $quote Whether add surrounding quotes or not. 399 * @return string PHP-ready code. 400 */Google_SiteVerificationService.php https://gitlab.com/hop23typhu/doan_tienganh | PHP | 287 lines
1<?php 2/* 206 } 207 public function setType($type) { 208 $this->type = $type; 280 } 281 public function setType($type) { 282 $this->type = $type;guard-relaxation.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 413 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 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/guard-relaxation.h" 18AbstractAction.php https://gitlab.com/yousafsyed/easternglamor | PHP | 300 lines
1<?php 2/** 123 $indexer = $this->_indexerFactory->create($indexerClassName) 124 ->setTypeId($typeId) 125 ->setIsComposite(!empty($typeInfo['composite']));ThemeTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 486 lines
1<?php 2/** 15 16class ThemeTest extends \PHPUnit_Framework_TestCase 17{ 18 /** 19 * @var \Magento\Theme\Model\Theme|\PHPUnit_Framework_MockObject_MockObject 20 */ 23 /** 24 * @var \PHPUnit_Framework_MockObject_MockObject 25 */ 28 /** 29 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\View\Design\Theme\FlyweightFactory 30 */ 33 /** 34 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Theme\Model\ResourceModel\Theme\Collection 35 */Form.php https://gitlab.com/blingbang2016/shop | PHP | 412 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 */ 69 parent::__construct($attributes); 70 $this->setType('form'); 71 $this->_allElements = Mage::getModel('xmlconnect/simplexml_form_element_collection', $this);4f14d81d2871c84464c65035eec87003ba174314.file.calendar.tpl.php https://gitlab.com/ivandevp/petshop | PHP | 220 lines
80 <li><a<?php if (isset($_smarty_tpl->tpl_vars['action']->value['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['action']->value['href'];?> 81"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['action']->value['class'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['action']->value['class'];?> 82"<?php }?>><?php if (isset($_smarty_tpl->tpl_vars['action']->value['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['action']->value['icon'];?> 88 <a<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['href'];?> 89"<?php }?> class="btn btn-default btn-xs pull-right<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['class'];?> 90<?php }?>"><?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['icon'];?> 118 <select id="compare-options" class="form-control fixed-width-lg pull-right" name="compare_date_option"<?php if (is_null($_smarty_tpl->tpl_vars['compare_date_from']->value)||is_null($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> disabled="disabled"<?php }?>> 119 <option value="1" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==1) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?> 120"><?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?> 121</option> 122 <option value="2" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==2) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous Year'),$_smarty_tpl);?> 123"><?php echo smartyTranslate(array('s'=>'Previous year'),$_smarty_tpl);?> 124</option> 125 <option value="3" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==3) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?> 126"><?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>TypeProcessorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 253 lines
1<?php 2/** 13 */ 14class TypeProcessorTest extends \PHPUnit_Framework_TestCase 15{ 33 { 34 $this->_typeProcessor->setTypeData('typeA', ['dataA']); 35 $this->_typeProcessor->setTypeData('typeB', ['dataB']); 44 */ 45 public function testSetTypesData() 46 { 46 { 47 $this->_typeProcessor->setTypeData('typeC', ['dataC']); 48 $this->assertEquals(['typeC' => ['dataC']], $this->_typeProcessor->getTypesData()); 49 $typeData = ['typeA' => ['dataA'], 'typeB' => ['dataB']]; 50 $this->_typeProcessor->setTypesData($typeData); 51 $this->assertEquals($typeData, $this->_typeProcessor->getTypesData());class.dataset.php https://gitlab.com/sheldonels/Garden | PHP | 330 lines
97 98 public function DatasetType($DatasetType = FALSE) { 99 if($DatasetType !== FALSE) { 101 if(!is_null($this->_Result)) { 102 throw new Exception('Cannot change DatasetType after the result has been fetched.'); 103 } 104 105 $this->_DatasetType = $DatasetType; 106 return $this; 118 protected function _FetchAllRows($DatasetType = FALSE) { 119 $this->DatasetType($DatasetType); 120 181 */ 182 public function &LastRow($DatasetType = FALSE) { 183 $Result = &$this->Result($DatasetType);Ftp.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 667 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 320 $ext = $this->_getext($locpath); 321 $mode = $this->_settype($ext); 322 } 368 $ext = $this->_getext($rempath); 369 $mode = $this->_settype($ext); 370 } 595 $ext = $this->_getext($file); 596 $mode = $this->_settype($ext); 597 632 { 633 return in_array($ext, array('txt', 'text', 'php', 'phps', 'php4', 'js', 'css', 'htm', 'html', 'phtml', 'shtml', 'log', 'xml'), TRUE) 634 ? 'ascii'__CG__TunisiaMallEntityBundleEntityCatalogue.php https://gitlab.com/bofbof93/PISprintWeb | PHP | 320 lines
1<?php 2 267 */ 268 public function setType($Type) 269 { 270 271 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$Type]); 272 272 273 return parent::setType($Type); 274 }YamlDriver.php https://gitlab.com/freebird/WebApp | PHP | 289 lines
1<?php 2 103 if (isset($pConfig['type'])) { 104 $pMetadata->setType((string) $pConfig['type']); 105 }forms.php https://gitlab.com/JrLucena/moodle | PHP | 385 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29 30require_once($CFG->dirroot.'/lib/formslib.php'); 31 51 $form->addElement('hidden', 'plugin', $plugin); 52 $form->setType('plugin', PARAM_PLUGIN); 53 $form->addElement('hidden', 'editing', !empty($this->_customdata['store'])); 53 $form->addElement('hidden', 'editing', !empty($this->_customdata['store'])); 54 $form->setType('editing', PARAM_BOOL); 55 59 $form->addRule('name', get_string('required'), 'required'); 60 $form->setType('name', PARAM_NOTAGS); 61 } else { 63 $form->addElement('static', 'name-value', get_string('storename', 'cache'), $store); 64 $form->setType('name', PARAM_NOTAGS); 65 }TraitDescriptor.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 176 lines
1<?php 2/** 2/** 3 * phpDocumentor 4 * 4 * 5 * PHP Version 5.3 6 * 7 * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com) 8 * @license http://www.opensource.org/licenses/mit-license.php MIT 9 * @link http://phpdoc.org 11 12namespace phpDocumentor\Descriptor; 13 127 $property->setDescription($propertyTag->getDescription()); 128 $property->setTypes($propertyTag->getTypes()); 129 $property->setParent($this);TaxCalculation.php https://gitlab.com/yousafsyed/easternglamor | PHP | 389 lines
1<?php 2/** 23/** 24 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 25 */ 183 $processedItem->setCode($item->getCode()); 184 $processedItem->setType($item->getType()); 185 } else {ChannelReaderTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 152 lines
1<?php 2 90 '> 5.2.0.0', 91 'php', 92 '' 96 '== 2.5.6.0', 97 'pear.php.net', 98 'broken' 120 $expectedPackage = new CompletePackage('pear-test.loc/sample', '1.0.0.1' , '1.0.0.1'); 121 $expectedPackage->setType('pear-library'); 122 $expectedPackage->setDistType('file'); 128 $expectedPackage->setRequires(array( 129 new Link('pear-test.loc/sample', 'php', $this->createConstraint('>', '5.2.0.0'), 'required', '> 5.2.0.0'), 130 )); 131 $expectedPackage->setConflicts(array( 132 new Link('pear-test.loc/sample', 'pear-pear.php.net/broken', $this->createConstraint('==', '2.5.6.0'), 'conflicts', '== 2.5.6.0'), 133 ));DefaultRenderer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 194 lines
1<?php 2/** 86 */ 87 public function setType(\Magento\Framework\DataObject $type) 88 { 110 * 111 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 112 * @SuppressWarnings(PHPMD.NPathComplexity) 137 * 138 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 139 * @SuppressWarnings(PHPMD.NPathComplexity)mod_form.php https://gitlab.com/JrLucena/moodle | PHP | 232 lines
1<?php 2 27 28require_once($CFG->dirroot.'/course/moodleform_mod.php'); 29require_once($CFG->dirroot.'/mod/resource/locallib.php'); 29require_once($CFG->dirroot.'/mod/resource/locallib.php'); 30require_once($CFG->libdir.'/filelib.php'); 31 51 if (!empty($CFG->formatstringstriptags)) { 52 $mform->setType('name', PARAM_TEXT); 53 } else { 53 } else { 54 $mform->setType('name', PARAM_CLEANHTML); 55 } 89 $mform->addElement('hidden', 'display'); 90 $mform->setType('display', PARAM_INT); 91 reset($options);Rss.php https://gitlab.com/devtoannh/cafe | PHP | 346 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Feed/Writer/Renderer/RendererAbstract.php'; 26 71 foreach ($this->_extensions as $ext) { 72 $ext->setType($this->getType()); 73 $ext->setRootElement($this->getRootElement()); 91 && !$this->getDataContainer()->getTitle()) { 92 require_once 'Zend/Feed/Exception.php'; 93 $message = 'RSS 2.0 entry elements SHOULD contain exactly one' 120 && !$this->getDataContainer()->getTitle()) { 121 require_once 'Zend/Feed/Exception.php'; 122 $message = 'RSS 2.0 entry elements SHOULD contain exactly one'File.php https://gitlab.com/yousafsyed/easternglamor | PHP | 224 lines
1<?php 2/** 53 parent::__construct($factoryElement, $factoryCollection, $escaper, $data); 54 $this->setType('file'); 55 }class-wp-filesystem-ftpsockets.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 327 lines
1<?php 2/** 26 //Check if possible to use ftp functions. 27 if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) 28 return false; 77 78 $this->ftp->SetType(FTP_AUTOASCII); 79 $this->ftp->Passive(true); 89 $type = FTP_AUTOASCII; 90 $this->ftp->SetType($type); 91 128 $type = $this->is_binary($contents) ? FTP_BINARY : FTP_ASCII; 129 $this->ftp->SetType($type); 130Cache_redis.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 322 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 149 case 'NULL': 150 return settype($data['__ci_value'], $data['__ci_type']) 151 ? $data['__ci_value']CatalogItem.php https://gitlab.com/aintenebris/memoria | PHP | 228 lines
1<?php 2 210 */ 211 public function setType() 212 {Massgenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 256 lines
1<?php 2/** 183 ->setCreatedAt($nowTimestamp) 184 ->setType(\Magento\SalesRule\Helper\Coupon::COUPON_TYPE_SPECIFIC_AUTOGENERATED) 185 ->setCode($code)RendererAbstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 250 lines
1<?php 2/** 22/** @see Zend_Feed_Writer */ 23#require_once 'Zend/Feed/Writer.php'; 24 25/** @see Zend_Version */ 26#require_once 'Zend/Version.php'; 27 90 $this->_container = $container; 91 $this->setType($container->getType()); 92 $this->_loadExtensions(); 165 if (!is_bool($bool)) { 166 #require_once 'Zend/Feed/Exception.php'; 167 throw new Zend_Feed_Exception('Invalid parameter: $bool. Should be TRUE or FALSE (defaults to TRUE if null)'); 189 */ 190 public function setType($type) 191 {Chooser.php https://gitlab.com/yousafsyed/easternglamor | PHP | 230 lines
1<?php 2/** 121 * @return bool 122 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 123 */ 161 'Magento\Backend\Block\Widget\Button' 162 )->setType( 163 'button'MediaText.php https://gitlab.com/yousafsyed/easternglamor | PHP | 211 lines
1<?php 2 26 */ 27#require_once 'Zend/Gdata/App/Extension.php'; 28 151 */ 152 public function setType($value) 153 {Categories.php git://github.com/imagecms/ImageCMS.git | PHP | 302 lines
1<?php 2 264 ->setUrl(translit_url($this->categoriesXml[$categoryData['external_id']]['name'])) 265 ->setType(Route::TYPE_SHOP_CATEGORY) 266 ->setEntityId($categoryData['id'])constant_table.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 244 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 +----------------------------------------------------------------------+ 16 17#include "hphp/compiler/analysis/constant_table.h" 18#include <vector>Email.php https://gitlab.com/blingbang2016/shop | PHP | 301 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 */ 94 */ 95 public function setType($type) 96 {Dynamic.php https://gitlab.com/devtoannh/cafe | PHP | 219 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Dynamic.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Metadata/Interface.php'; 27 30 */ 31require_once 'Zend/Tool/Framework/Metadata/Attributable.php'; 32 78 /** 79 * setType() 80 * 83 */ 84 public function setType($type) 85 {FieldTest.php https://gitlab.com/hatemdigify/digifyblog | PHP | 209 lines
1<?php 2namespace Former\Traits; 46 { 47 $field = $this->former->text('foo')->setType('email'); 48XML.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 255 lines
1<?php 2/* 2/* 3 * This file is part of PHPUnit. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 15 */ 16class PHPUnit_Util_XML 17{ 27 * 28 * Note: prior to PHPUnit 3.3.0, this method loaded a file and 29 * not a string as it currently does. To load a file into a 48 if (!is_string($actual)) { 49 throw new PHPUnit_Framework_Exception('Could not load XML from ' . gettype($actual)); 50 }Inline.php https://gitlab.com/yousafsyed/easternglamor | PHP | 370 lines
1<?php 2/** 121 */ 122 public function setType($type) 123 { 283 * @return bool 284 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 285 */ 299 * @return bool 300 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 301 */products.php https://gitlab.com/yousafsyed/easternglamor | PHP | 327 lines
1<?php 2/** 10$product->isObjectNew(true); 11$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) 12 ->setId(1) 82$product->isObjectNew(true); 83$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) 84 ->setId(2) 154$product->isObjectNew(true); 155$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) 156 ->setId(3) 226$product->isObjectNew(true); 227$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) 228 ->setId(4) 279$product->isObjectNew(true); 280$product->setTypeId(\Magento\Catalog\Model\Product\Type::TYPE_SIMPLE) 281 ->setId(5)jquery.noty.js https://gitlab.com/phpcodeinfected/owncms | JavaScript | 265 lines
7* Licensed under the MIT licenses: 8* http://www.opensource.org/licenses/mit-license.php 9* 121 122 $noty.bind('noty.setType', function(event, type) { 123 $noty.removeClass($noty.data('noty_options').type); 197 }; 198 $.noty.setType = function(id, type) { 199 $.noty.get(id).trigger('noty.setType', type);DB.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 95 lines
47 public static final Property graphLSet = ResourceFactory.createProperty(uri + "GraphLSet" ); 48 public static final Property graphPrefix = ResourceFactory.createProperty(uri + "GraphPrefix" ); 49 public static final Property graphId = ResourceFactory.createProperty(uri + "GraphId" ); 58 public static final Property lSetName = ResourceFactory.createProperty(uri + "LSetName" ); 59 public static final Property lSetType = ResourceFactory.createProperty(uri + "LSetType" ); 60 public static final Property lSetPSet = ResourceFactory.createProperty(uri + "LSetPSet" ); 62 public static final Property pSetName = ResourceFactory.createProperty(uri + "PSetName" ); 63 public static final Property pSetType = ResourceFactory.createProperty(uri + "PSetType" ); 64 public static final Property pSetTable = ResourceFactory.createProperty(uri + "PSetTable" );CreateCollection.php https://gitlab.com/vnsoftdev/sna | PHP | 173 lines
1<?php 2 137 if (isset($this->options['typeMap'])) { 138 $cursor->setTypeMap($this->options['typeMap']); 139 }Deleted.php https://gitlab.com/yousafsyed/easternglamor | PHP | 202 lines
1<?php 2/** 21 22#require_once 'Zend/Feed/Writer/Feed/FeedAbstract.php'; 23 55 if (empty($encoding) || !is_string($encoding)) { 56 #require_once 'Zend/Feed/Exception.php'; 57 throw new Zend_Feed_Exception('Invalid parameter: parameter must be a non-empty string'); 93 */ 94 public function setType($type) 95 { 111 if (empty($reference) || !is_string($reference)) { 112 #require_once 'Zend/Feed/Exception.php'; 113 throw new Zend_Feed_Exception('Invalid parameter: reference must be a non-empty string'); 135 } else { 136 #require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');NotEmpty.php https://gitlab.com/yousafsyed/easternglamor | PHP | 301 lines
1<?php 2/** 23 const NULL = 0x040; 24 const PHP = 0x07F; 25 const SPACE = 0x080; 41 self::NULL => 'null', 42 self::PHP => 'php', 43 self::SPACE => 'space', 85 { 86 $this->setType($this->defaultType); 87 170 */ 171 public function setType($type = null) 172 {