100+ results results for 'php settype repo:baruffaldi/webapp-urltube' (316 ms)
1<?php 2 /** 30 31 settype($obj->title, "string"); 32 if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...');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();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];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'])ftp.class.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 716 lines
1<?php 2@set_time_limit(1000); 276 $ext = $this->_getext($locpath); 277 $mode = $this->_settype($ext); 278 } 445 446 // ?PHP5???? 447 if ( ! function_exists('ftp_chmod')) 575 $ext = $this->_getext($file); 576 $mode = $this->_settype($ext); 577 617 */ 618 function _settype($ext) 619 { 622 'text', 623 'php', 624 'phps',MzGraphPanel.java http://pride-toolsuite.googlecode.com/svn/ | Java | 417 lines
40 */ 41public abstract class MzGraphPanel extends JPanel implements ChartMouseListener, ActionListener { 42 private static final Logger logger = LoggerFactory.getLogger(MzGraphPanel.class); 68 69 public MzGraphPanel(String title, 70 String xAxisLabel, 96 /** 97 * Reset the MzGraphPanel 98 */ 118 119 public void setType(String type) { 120 this.type = type;TemperatureTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TemperatureTest.php 23772 2011-02-28 21:35:29Z ralph $ 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{TemperatureTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 448 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TemperatureTest.php 24594 2012-01-05 21:27:01Z 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{Domain.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 397 lines
1<?php 2/* 2/* 3 * $Id: Domain.php 989 2008-03-11 14:29:30Z heltem $ 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 247 */ 248 public function setType($propelType) 249 { 274 /** 275 * Gets the default value, type-casted for use in PHP OM. 276 * @return mixedresidents.php http://ltw-axis.googlecode.com/svn/trunk/ | PHP | 168 lines
16<div class = "center"> 17 <form name = "optionForm" method = "POST" action = "<?php echo $_SERVER['PHP_SELF']; ?>"> 18 <table class = "content"> 35 ?> 36 <option value = "<?php echo $building['ID']; ?>" <?php if(isset($_POST['buildings']) && $_POST['buildings'] == $building['ID']) echo $selected; ?>> 37 <?php echo $building['bldg_name']; ?> 70 ?> 71 <option value = "<?php echo $type['ID']; ?>" <?php if(isset($_POST['residenttype']) && $_POST['residenttype'] == $type['ID']) echo $selected; ?>> 72 <?php echo $type['resident_type']; ?> 145 <span id = "title<?php echo $id; ?>">RESIDENTIAL INFORMATION</span> - <?php echo $residentInfo['first_name'] . " " . $residentInfo['last_name']; ?> 146 <input type = "button" id = "next<?php echo $id; ?>" name = "next" value = ">>" onClick = "move(<?php echo $id; ?>,'next')"> 147 <input onClick = "showDetails('<?php echo $tdID; ?>');" style = "float: right;" type = "button" name = "close" value = "CLOSE"> 149 <div class = "infoArea" > 150 <iframe id = "profile<?php echo $id; ?>" src = "show_profile.php?id=<?php echo $id; ?>&info=1" > 151 </iframe> 167</div> 168<?php include_once('footer.php');?>ResultSet.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 362 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2 177 public function fetch($index = -1) { 178 settype($index, 'integer'); 179 if ($index < 0) {TorqueTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TorqueTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 26 */ 27require_once 'Zend/Measure/Torque.php'; 28 36 */ 37class Zend_Measure_TorqueTest extends PHPUnit_Framework_TestCase 38{ 308 */ 309 public function testTorqueSetType() 310 { 311 $value = new Zend_Measure_Torque('-100',Zend_Measure_Torque::STANDARD,'de'); 312 $value->setType(Zend_Measure_Torque::NEWTON_CENTIMETER); 313 $this->assertEquals(Zend_Measure_Torque::NEWTON_CENTIMETER, $value->getType(), 'Zend_Measure_Torque type expected');member_status.admin.front.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 480 lines
1<?php 2/*************************************************************** 14 // 15 'class_file' => 'module/member/member.class.php', 16 'class_name' => 'MemberBase', 29// 30include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'control/item.control.class.php'); 31include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'control/item.content.control.class.php'); 33// 34include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/member/member.status.class.php'); 35 89 $msObj->setOwner($this->feObj->_request['id']); 90 $msObj->setType($this->feObj->_post['type']); 91 // 335 $msObj->setOwner($this->feObj->_request['id']); 336 $msObj->setType($this->feObj->_request['type']); 337 $item = $msObj->getItem();TorqueTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 390 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TorqueTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 26 */ 27require_once 'Zend/Measure/Torque.php'; 28 36 */ 37class Zend_Measure_TorqueTest extends PHPUnit_Framework_TestCase 38{ 308 */ 309 public function testTorqueSetType() 310 { 311 $value = new Zend_Measure_Torque('-100',Zend_Measure_Torque::STANDARD,'de'); 312 $value->setType(Zend_Measure_Torque::NEWTON_CENTIMETER); 313 $this->assertEquals(Zend_Measure_Torque::NEWTON_CENTIMETER, $value->getType(), 'Zend_Measure_Torque type expected');MassTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MassTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 25 */ 26require_once 'Zend/Measure/Flow/Mass.php'; 27 35 */ 36class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase 37{ 307 */ 308 public function testFlow_MassSetType() 309 { 310 $value = new Zend_Measure_Flow_Mass('-100',Zend_Measure_Flow_Mass::STANDARD,'de'); 311 $value->setType(Zend_Measure_Flow_Mass::GRAM_PER_DAY); 312 $this->assertEquals(Zend_Measure_Flow_Mass::GRAM_PER_DAY, $value->getType(), 'Zend_Measure_Flow_Mass type expected');MassTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 389 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MassTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Measure/Flow/Mass.php'; 27 35 */ 36class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase 37{ 307 */ 308 public function testFlow_MassSetType() 309 { 310 $value = new Zend_Measure_Flow_Mass('-100',Zend_Measure_Flow_Mass::STANDARD,'de'); 311 $value->setType(Zend_Measure_Flow_Mass::GRAM_PER_DAY); 312 $this->assertEquals(Zend_Measure_Flow_Mass::GRAM_PER_DAY, $value->getType(), 'Zend_Measure_Flow_Mass type expected');FrequencyTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 390 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FrequencyTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 26 */ 27require_once 'Zend/Measure/Frequency.php'; 28 36 */ 37class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase 38{ 308 */ 309 public function testFrequencySetType() 310 { 311 $value = new Zend_Measure_Frequency('-100',Zend_Measure_Frequency::STANDARD,'de'); 312 $value->setType(Zend_Measure_Frequency::KILOHERTZ); 313 $this->assertEquals(Zend_Measure_Frequency::KILOHERTZ, $value->getType(), 'Zend_Measure_Frequency type expected');QType.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 423 lines
1<?php 2 /** 17 * 18 * PHP does not support strongly named types. The QCubed type library 19 * and QCubed typing in general attempts to bring some structure to types 23 * The Type library attempts to allow as much flexibility as possible to 24 * set and cast variables to other types, similar to how PHP does it natively, 25 * but simply adds a big more structure to it. 41 * For values, specifically int to string conversion, one different between 42 * QType::Cast and PHP (in order to add structure) is that if an integer contains 43 * alpha characters, PHP would normally allow that through w/o complaint, simply 48 * In theory, the type library should maintain the same level of flexibility 49 * PHP developers are accostomed to, while providing a mechanism to limit 50 * careless coding errors and tough to figure out mistakes due to PHP's sometimes 120 return false; 121 settype($mixItem, $strNewType); 122 return $mixItem;IdsTest.php git://github.com/ruflin/Elastica.git | PHP | 254 lines
1<?php 2namespace Elastica\Test\Filter; 128 */ 129 public function testSetTypeSingleSearchSingle() 130 { 132 $filter->setIds('1'); 133 $filter->setType('helloworld1'); 134 143 */ 144 public function testSetTypeSingleSearchArray() 145 { 147 $filter->setIds(['1', '2']); 148 $filter->setType('helloworld1'); 149 158 */ 159 public function testSetTypeSingleSearchSingleDocInOtherType() 160 {Element.php http://mvh-source.googlecode.com/svn/trunk/ | PHP | 251 lines
1<?php 2class Nano_Element{ 17 ->setContent( $content ) 18 ->setType( $type ); 19 } 29 30 public function setType( $type ){ 31 $this->type = $type; 36 if( null == $this->type ){ 37 $this->setType( self::DEFAULT_TYPE ); 38 }DataValidation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 501 lines
22 * @package PHPExcel_Cell 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Cell 34 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 88 */ 89 private $_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; 90 161 /** 162 * Create a new PHPExcel_Cell_DataValidation 163 * 237 */ 238 public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) { 239 $this->_type = $value;DataValidation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 501 lines
22 * @package PHPExcel_Cell 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Cell 34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 88 */ 89 private $_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; 90 161 /** 162 * Create a new PHPExcel_Cell_DataValidation 163 * 237 */ 238 public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) { 239 $this->_type = $value;Literal.php git://github.com/njh/easyrdf.git | PHP | 307 lines
1<?php 2 34 * @copyright Copyright (c) 2009-2011 Nicholas J Humfrey 35 * @license http://www.opensource.org/licenses/bsd-license.php 36 * @version $Id$ 43 * @copyright Copyright (c) 2009-2011 Nicholas J Humfrey 44 * @license http://www.opensource.org/licenses/bsd-license.php 45 */ 65 * 66 * PHP values of type bool, int or float, will automatically be converted 67 * to the corresponding datatype and PHP sub-class. 112 113 /** Register an RDF datatype with a PHP class name 114 * 124 * @param string $datatype The RDF datatype (e.g. xsd:dateTime) 125 * @param string $class The PHP class name (e.g. My_DateTime_Class) 126 */RoomOptions.php git://github.com/twilio/twilio-php.git | PHP | 300 lines
1<?php 2 106 */ 107 public function setType(string $type): self { 108 $this->options['type'] = $type;box_graph_propales_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 306 lines
1<?php 2/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net> 18/** 19 * \file htdocs/core/boxes/box_graph_propales_permonth.php 20 * \ingroup propales 22 */ 23include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; 24 75 76 //include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php'; 77 //$propalstatic=new Propal($this->db); 112 113 include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; 114 include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propalestats.class.php'; 146 $filenamenb = $dir."/".$prefix."propalsnbinyear-".$endyear.".png"; 147 $fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propalsnbinyear-'.$endyear.'.png'; 148PresenterComponent.php https://code.google.com/p/celebrio/ | PHP | 410 lines
1<?php 2 134 } else { 135 settype($params[$nm], gettype($meta['def'])); 136 } 174 if (isset($meta['def'])) { 175 settype($val, gettype($meta['def'])); 176 if ($val === $meta['def']) $val = NULL;SmartyBC.class.php git://github.com/modxcms/revolution.git | PHP | 477 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 * 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 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)Amount.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 306 lines
1<?php 2/** 38 parent::__construct($context, $resourceSegment, $data); 39 $this->setType(\Magento\CustomerSegment\Model\Segment\Condition\Shoppingcart\Amount::class); 40 $this->setValue(null); 139 * 140 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 141 */ 208 * 209 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 210 * @SuppressWarnings(PHPMD.UnusedFormalParameter)IncludeSystemSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 314 lines
6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) 7 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 8 */ 56 * 57 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found. 58 * @param integer $stackPtr The position where the token was found. 154 // Is this is a testing class? 155 $name = $phpcsFile->findNext(T_STRING, $condPtr); 156 $name = $tokens[$name]['content']; 197 * 198 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found. 199 * @param int $stackPtr The position in the stack where 283 * 284 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found. 285 * @param array $tokens The array of file tokens.fx_data_column.php http://comet.googlecode.com/svn/trunk/ | PHP | 414 lines
1<?php 2 // L?p Fx_Data_Column chuyęn důng ?? h? tr? cho Fx_Data_Row 163 { 164 require_once APP_LIBRARY_PATH . 'doc/fx_data_column_filter.php'; 165 $filter = new Fx_Data_Column_Filter('text', $this); 295 { 296 $this->_renderer->setType($type); 297 $gridView = & $this->getDataRow()->getDataGrid(); 300 $column = & $row->getColumn($this->getId()); 301 $column->_renderer->setType($type); 302 } 403 } 404 $this->_renderer->setType($_type); 405 $this->setId($_field);%%EE^EE6^EE6906A7%%product-list.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 81 lines
13?> 14 <li class="ajax_block_product <?php if (($this->_foreach['products']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['products']['iteration'] == $this->_foreach['products']['total'])): ?>last_item<?php endif; ?> <?php if (($this->_foreach['products']['iteration']-1) % 2): ?>alternate_item<?php else: ?>item<?php endif; ?> clearfix"> 15 <div class="center_block"> 41 <div> 42 <?php if (isset ( $this->_tpl_vars['product']['show_price'] ) && $this->_tpl_vars['product']['show_price'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] )): ?><span class="price" style="display: inline;"><?php if (! $this->_tpl_vars['priceDisplay']): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price']), $this);?> 43<?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price_tax_exc']), $this);?> 44<?php endif; ?></span><br /><?php endif; ?> 45 <?php if (isset ( $this->_tpl_vars['product']['available_for_order'] ) && $this->_tpl_vars['product']['available_for_order'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] )): ?><span class="availability"><?php if (( $this->_tpl_vars['product']['allow_oosp'] || $this->_tpl_vars['product']['quantity'] > 0 )): ?><?php echo smartyTranslate(array('s' => 'Available'), $this);?> 46<?php elseif (( isset ( $this->_tpl_vars['product']['quantity_all_versions'] ) && $this->_tpl_vars['product']['quantity_all_versions'] > 0 )): ?><?php echo smartyTranslate(array('s' => 'Product available with different options'), $this);?> 46<?php elseif (( isset ( $this->_tpl_vars['product']['quantity_all_versions'] ) && $this->_tpl_vars['product']['quantity_all_versions'] > 0 )): ?><?php echo smartyTranslate(array('s' => 'Product available with different options'), $this);?> 47<?php else: ?><?php echo smartyTranslate(array('s' => 'Out of stock'), $this);?> 48<?php endif; ?></span><?php endif; ?> 71" value="comparator_item_<?php echo $this->_tpl_vars['product']['id_product']; ?> 72" <?php if (isset ( $this->_tpl_vars['compareProducts'] ) && in_array ( $this->_tpl_vars['product']['id_product'] , $this->_tpl_vars['compareProducts'] )): ?>checked<?php endif; ?>/> <label for="comparator_item_<?php echo $this->_tpl_vars['product']['id_product']; ?> 73"><?php echo smartyTranslate(array('s' => 'Select to compare'), $this);?>Migrate.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 581 lines
1<?php 2 18 * @license New BSD License 19 * @version $Id: Migrate.php 131 2010-03-24 23:55:50Z gutierrezandresfelipe $ 20 */ 95 'set_caption' => 'setCaption', 96 'set_type_image' => 'setTypeImage', 97 'set_text_upper' => 'setTextUpper', 544 if($token[0]==T_OPEN_TAG){ 545 $migratedSource.='<?php '; 546 } else { 547 if($token[0]==T_OPEN_TAG_WITH_ECHO){ 548 $migratedSource.='<?php echo '; 549 } else {class.LoggerAppenderScalr.php http://scalr.googlecode.com/svn/ | PHP | 316 lines
1<?php 2 2 3require_once(LOG4PHP_DIR . '/LoggerAppenderSkeleton.php'); 4require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php'); 4require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php'); 5require_once(LOG4PHP_DIR . '/LoggerLog.php'); 6 112 { 113 // Reopen new mysql connection (need for php threads) 114 $this->activateOptions(); 279 280 function setType($newType) 281 {Ftp.php git://github.com/prashants/webzash.git | PHP | 618 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 255 $ext = $this->_getext($locpath); 256 $mode = $this->_settype($ext); 257 } 425 426 // Permissions can only be set when running PHP 5 427 if ( ! function_exists('ftp_chmod')) 512 $ext = $this->_getext($file); 513 $mode = $this->_settype($ext); 514 554 */ 555 function _settype($ext) 556 {domGles_sampler_state.cpp git://github.com/sbarthelemy/collada-dom.git | C++ | 361 lines
4* Licensed under the MIT Open Source License, for details please see license.txt or the website 5* http://www.opensource.org/licenses/mit-license.php 6* 96 ma->setName( "sid" ); 97 ma->setType( dae.getAtomicTypes().get("xsNCName")); 98 ma->setOffset( daeOffsetOf( domGles_sampler_state , attrSid )); 133 ma->setName( "_value" ); 134 ma->setType( dae.getAtomicTypes().get("Gles_sampler_wrap")); 135 ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_s , _value )); 169 ma->setName( "_value" ); 170 ma->setType( dae.getAtomicTypes().get("Gles_sampler_wrap")); 171 ma->setOffset( daeOffsetOf( domGles_sampler_state::domWrap_t , _value )); 205 ma->setName( "_value" ); 206 ma->setType( dae.getAtomicTypes().get("Fx_sampler_filter_common")); 207 ma->setOffset( daeOffsetOf( domGles_sampler_state::domMinfilter , _value ));base_sound_manager.cpp git://github.com/scummvm/scummvm.git | C++ | 298 lines
24 * This file is based on WME Lite. 25 * http://dead-code.org/redir.php?target=wmelite 26 * Copyright (c) 2011 Jan Nedoma 124 sound->setStreaming(streamed); 125 sound->setType(type); 126TimezoneTest.php git://github.com/zendframework/zf2.git | PHP | 333 lines
1<?php 2/** 18 */ 19class TimezoneTest extends \PHPUnit_Framework_TestCase 20{ 39 { 40 $this->validator->setType(Timezone::LOCATION); 41 $this->checkValidationValue($value, $valid); 52 { 53 $this->validator->setType('location'); 54 $this->checkValidationValue($value, $valid); 92 { 93 $this->validator->setType(Timezone::ABBREVIATION); 94 $this->checkValidationValue($value, $valid); 105 { 106 $this->validator->setType('abbreviation'); 107 $this->checkValidationValue($value, $valid);apiSiteVerificationService.php git://github.com/snytkine/LampCMS.git | PHP | 292 lines
1<?php 2/* 17 18require_once 'service/apiModel.php'; 19require_once 'service/apiService.php'; 19require_once 'service/apiService.php'; 20require_once 'service/apiServiceRequest.php'; 21 211 } 212 public function setType($type) { 213 $this->type = $type; 285 } 286 public function setType($type) { 287 $this->type = $type;mysql.php http://webprojecthelper.googlecode.com/svn/trunk/ | PHP | 212 lines
1<?php 2 135 $scalar = clone $scalar; 136 $scalar->setType(Scalar::T_INT); 137 }ResetCommandTest.java git://pkgs.fedoraproject.org/eclipse-jgit | Java | 421 lines
7 * accompanies this distribution, is reproduced below, and is 8 * available at http://www.eclipse.org/org/documents/edl-v10.php 9 * 44 45import static org.eclipse.jgit.api.ResetCommand.ResetType.HARD; 46import static org.junit.Assert.assertEquals; 55 56import org.eclipse.jgit.api.ResetCommand.ResetType; 57import org.eclipse.jgit.api.errors.GitAPIException; 138 ObjectId prevHead = db.resolve(Constants.HEAD); 139 git.reset().setMode(ResetType.HARD).setRef(initialCommit.getName()) 140 .call(); 175 ObjectId prevHead = db.resolve(Constants.HEAD); 176 git.reset().setMode(ResetType.SOFT).setRef(initialCommit.getName()) 177 .call();DrydockRepositoryOperation.php git://github.com/facebook/phabricator.git | PHP | 282 lines
1<?php 2 216 ->setEpoch(PhabricatorTime::getNow()) 217 ->setType($type) 218 ->setData($data);Item.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 447 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-2018 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 291 $link->setRel('alternate'); 292 $link->setType('text/html'); 293 if ($object->getName()) {example16.6.html http://flaimo-php.googlecode.com/svn/trunk/ | HTML | 3 lines
1<code><font color="#000000"> 2<font color="#0000CC"><?php<br /></font><font color="#006600">include (</font><font color="#CC0000">"../jpgraph.php"</font><font color="#006600">);<br />include (</font><font color="#CC0000">"../jpgraph_scatter.php"</font><font color="#006600">);<br />include (</font><font color="#CC0000">"../jpgraph_line.php"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create some "fake" regression data<br /></font><font color="#0000CC">$datay </font><font color="#006600">= array();<br /></font><font color="#0000CC">$datay2 </font><font color="#006600">= array();<br /></font><font color="#0000CC">$datax </font><font color="#006600">= array();<br /></font><font color="#0000CC">$a</font><font color="#006600">=</font><font color="#0000CC">rand</font><font color="#006600">(-</font><font color="#0000CC">3</font><font color="#006600">,</font><font color="#0000CC">3</font><font color="#006600">);<br /></font><font color="#0000CC">$b</font><font color="#006600">=</font><font color="#0000CC">rand</font><font color="#006600">(-</font><font color="#0000CC">5</font><font color="#006600">,</font><font color="#0000CC">5</font><font color="#006600">);<br />for(</font><font color="#0000CC">$x</font><font color="#006600">=</font><font color="#0000CC">0</font><font color="#006600">; </font><font color="#0000CC">$x</font><font color="#006600"><</font><font color="#0000CC">20</font><font color="#006600">; ++</font><font color="#0000CC">$x</font><font color="#006600">) {<br /> </font><font color="#0000CC">$datay</font><font color="#006600">[] = </font><font color="#0000CC">$a</font><font color="#006600">*</font><font color="#0000CC">$x </font><font color="#006600">+ </font><font color="#0000CC">$b</font><font color="#006600">;<br /> </font><font color="#0000CC">$datay2</font><font color="#006600">[] = </font><font color="#0000CC">$a</font><font color="#006600">*</font><font color="#0000CC">$x </font><font color="#006600">+ </font><font color="#0000CC">$b </font><font color="#006600">+ </font><font color="#0000CC">rand</font><font color="#006600">(-</font><font color="#0000CC">30</font><font color="#006600">,</font><font color="#0000CC">30</font><font color="#006600">);<br /> </font><font color="#0000CC">$datax</font><font color="#006600">[] = </font><font color="#0000CC">$x</font><font color="#006600">;<br />}<br /> <br /></font><font color="#FF9900">// Create the graph<br /></font><font color="#0000CC">$graph </font><font color="#006600">= new </font><font color="#0000CC">Graph</font><font color="#006600">(</font><font color="#0000CC">300</font><font color="#006600">,</font><font color="#0000CC">200</font><font color="#006600">,</font><font color="#CC0000">'auto'</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetScale</font><font color="#006600">(</font><font color="#CC0000">"linlin"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Setup title<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"Example of linear regression"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// make sure that the X-axis is always at the<br />// bottom at the plot and not just at Y=0 which is<br />// the default position<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">xaxis</font><font color="#006600">-></font><font color="#0000CC">SetPos</font><font color="#006600">(</font><font color="#CC0000">'min'</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create the scatter plot with some nice colors<br /></font><font color="#0000CC">$sp1 </font><font color="#006600">= new </font><font color="#0000CC">ScatterPlot</font><font color="#006600">(</font><font color="#0000CC">$datay2</font><font color="#006600">,</font><font color="#0000CC">$datax</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetType</font><font color="#006600">(</font><font color="#0000CC">MARK_FILLEDCIRCLE</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetFillColor</font><font color="#006600">(</font><font color="#CC0000">"red"</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">SetColor</font><font color="#006600">(</font><font color="#CC0000">"blue"</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">SetWeight</font><font color="#006600">(</font><font color="#0000CC">3</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetWidth</font><font color="#006600">(</font><font color="#0000CC">4</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create the regression line<br /></font><font color="#0000CC">$lplot </font><font color="#006600">= new </font><font color="#0000CC">LinePlot</font><font color="#006600">(</font><font color="#0000CC">$datay</font><font color="#006600">);<br /></font><font color="#0000CC">$lplot</font><font color="#006600">-></font><font color="#0000CC">SetWeight</font><font color="#006600">(</font><font color="#0000CC">2</font><font color="#006600">);<br /></font><font color="#0000CC">$lplot</font><font color="#006600">-></font><font color="#0000CC">SetColor</font><font color="#006600">(</font><font color="#CC0000">'navy'</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Add the pltos to the line<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Add</font><font color="#006600">(</font><font color="#0000CC">$sp1</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Add</font><font color="#006600">(</font><font color="#0000CC">$lplot</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// ... and stroke<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Stroke</font><font color="#006600">();<br /><br /></font><font color="#0000CC">?><br /></font><br /><br /></font> 3</code>NullTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 25 */ 26require_once 'Zend/Filter/Null.php'; 27 35 */ 36class Zend_Filter_NullTest extends PHPUnit_Framework_TestCase 37{ 77 { 78 $this->_filter->setType(Zend_Filter_Null::BOOLEAN); 79 $this->assertEquals('0', $this->_filter->filter('0')); 94 { 95 $this->_filter->setType(Zend_Filter_Null::INTEGER); 96 $this->assertEquals('0', $this->_filter->filter('0')); 111 { 112 $this->_filter->setType(Zend_Filter_Null::EMPTY_ARRAY); 113 $this->assertEquals('0', $this->_filter->filter('0'));e14282a36d31398d8dba97f8a2d2aad196c6a101.file.facets.tpl.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 180 lines
60?> 61 <?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?><?php $_smarty_tpl->tpl_vars['_collapse'] = new Smarty_variable(false, null, 0);?><?php }?> 62 <?php } ?> 63 <div class="title hidden-md-up" data-target="#facet_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_expand_id']->value, ENT_QUOTES, 'UTF-8');?> 64" data-toggle="collapse"<?php if (!$_smarty_tpl->tpl_vars['_collapse']->value) {?> aria-expanded="true"<?php }?>> 65 <h1 class="h6 facet-title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['facet']->value['label'], ENT_QUOTES, 'UTF-8');?> 75 <ul id="facet_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_expand_id']->value, ENT_QUOTES, 'UTF-8');?> 76" class="collapse<?php if (!$_smarty_tpl->tpl_vars['_collapse']->value) {?> in<?php }?>"> 77 <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["filter"]->_loop = false; 83 <li> 84 <label class="facet-label<?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?> active <?php }?>"> 85 <?php if ($_smarty_tpl->tpl_vars['facet']->value['multipleSelectionAllowed']) {?> 99 <?php } else { ?> 100 <span <?php if (!$_smarty_tpl->tpl_vars['js_enabled']->value) {?> class="ps-shown-by-js" <?php }?>><i class="material-icons checkbox-checked"></i></span> 101 <?php }?>GeoffTest.php git://github.com/jadell/neo4jphp.git | PHP | 351 lines
1<?php 2namespace Everyman\Neo4j; 3 4class GeoffTest extends \PHPUnit_Framework_TestCase 5{ 43 { 44 $geoffString = '(Liz) {"name": "Elizabeth", "title": "Queen of the Commonwealth Realms", "birth.date": "1926-04-21"}'.PHP_EOL 45 . '(Phil) {"name": "Philip", "title": "Duke of Edinburgh", "birth.date": "1921-06-21"}'.PHP_EOL 73 { 74 $geoffString = '(Liz) {"name": "Elizabeth", "title": "Queen of the Commonwealth Realms", "birth.date": "1926-04-21"}'.PHP_EOL 75 . '(Liz) {"name": "Elizabeth", "title": "Queen of the Commonwealth Realms", "birth.date": "1926-04-21"}'.PHP_EOL; 82 { 83 $geoffString = '(Liz) {"name": "Elizabeth", "title": "Queen of the Commonwealth Realms", "birth.date": "1926-04-21"}'.PHP_EOL 84 . '(Phil) {"name": "Philip", "title": "Duke of Edinburgh", "birth.date": "1921-06-21"}'.PHP_EOL 84 . '(Phil) {"name": "Philip", "title": "Duke of Edinburgh", "birth.date": "1921-06-21"}'.PHP_EOL 85 . '(Chaz) {"name": "Charles", "title": "Prince of Wales", "birth.date": "1948-11-14"}'.PHP_EOL 86 . '(Liz)-[:MARRIED]->(Phil) {"marriage.place": "Westminster Abbey", "marriage.date": "1947-11-20"}'.PHP_EOLattachment.php git://github.com/tute/Thumbnail-component-for-CakePHP.git | PHP | 412 lines
1<?php 2/* 2/* 3* File: /app/controllers/components/attachment.php 4* A file uploader and image crop/thumbnailer component for CakePHP 5* 6* @link https://github.com/tute/Thumbnail-component-for-CakePHP 7* @author TuteC (Eugenio Costa) 93 $filename = String::uuid(); 94 settype($filename, 'string'); 95 $filename .= '.' . $filetype; 98 if (!is_uploaded_file($data[$column_prefix]['tmp_name'])) { 99 return $this->log_cakephp_error_and_return('Error uploading file (sure it was a POST request?).'); 100 } 112 if (!$this->config['allow_non_image_files']) { 113 return $this->log_cakephp_error_and_return('File type not allowed (only images files).'); 114 } else {ServiceTester.js http://linb.googlecode.com/svn/trunk/ | JavaScript | 251 lines
147 .setType("popbox") 148 .setValue("http://www.linb.net/backend/PHP/demo.php") 149 .onClick("_ctl_uri_onclick") 165 if(force){ 166 ns.ctl_uri.setValue("http://www.linb.net/backend/PHP/demo.php", true); 167 ns.ctl_query.setValue("{a:1,b:2}", true);Boolean.php git://github.com/eryx/php-framework-benchmark.git | PHP | 374 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 112 if (array_key_exists('type', $options)) { 113 $this->setType($options['type']); 114 } 141 */ 142 public function setType($type = null) 143 {NullTest.php git://github.com/zendframework/zf2.git | PHP | 330 lines
1<?php 2/** 33 */ 34class NullTest extends \PHPUnit_Framework_TestCase 35{ 78 $filter = $this->_filter; 79 $filter->setType(NullFilter::BOOLEAN); 80 $this->assertEquals(0.0, $filter(0.0)); 97 $filter = $this->_filter; 98 $filter->setType(NullFilter::INTEGER); 99 $this->assertEquals(0.0, $filter(0.0)); 116 $filter = $this->_filter; 117 $filter->setType(NullFilter::EMPTY_ARRAY); 118 $this->assertEquals(0.0, $filter(0.0)); 135 $filter = $this->_filter; 136 $filter->setType(NullFilter::STRING); 137 $this->assertEquals(0.0, $filter(0.0));forms.php git://github.com/moodle/moodle.git | 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 }ContextTest.php git://github.com/drupal/drupal.git | PHP | 172 lines
1<?php 2 25 * 26 * @var \Drupal\Core\Plugin\Context\ContextDefinitionInterface|\PHPUnit\Framework\MockObject\MockObject 27 */ 32 * 33 * @var \Drupal\Core\TypedData\TypedDataManager|\PHPUnit\Framework\MockObject\MockObject 34 */ 39 * 40 * @var \Drupal\Core\TypedData\TypedDataInterface|\PHPUnit\Framework\MockObject\MockObject 41 */ 59 $context = new Context($this->contextDefinition); 60 $context->setTypedDataManager($this->typedDataManager); 61 $this->assertEquals('test', $context->getContextValue()); 70 $context = new Context($this->contextDefinition); 71 $context->setTypedDataManager($this->typedDataManager); 72 $this->assertEquals($this->typedData, $context->getContextData());%%94^94D^94D1ADE1%%scenes.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 133 lines
2 compiled from C:%5CD%5CMarocMall/themes/prestashop/./scenes.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 32, false),array('function', 'math', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 45, false),array('function', 'convertPrice', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 51, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 44, false),array('modifier', 'strip_tags', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 63, false),array('modifier', 'truncate', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 63, false),array('modifier', 'count', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 76, false),)), $this); ?> 24 <div> 25 <?php $_from = $this->_tpl_vars['scenes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['scenes'] = array('total' => count($_from), 'iteration' => 0); 26if ($this->_foreach['scenes']['total'] > 0): 62 <p class="price"><?php if ($this->_tpl_vars['priceDisplay']): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(false,$this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);?> 63<?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(true,$this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);?> 64<?php endif; ?></p> 101px;"> 102 <?php $_from = $this->_tpl_vars['scenes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['scenes_list'] = array('total' => count($_from), 'iteration' => 0); 103if ($this->_foreach['scenes_list']['total'] > 0): 107 <li id="scene_thumb_<?php echo $this->_tpl_vars['scene']->id; ?> 108" style="<?php if (! ($this->_foreach['scenes_list']['iteration'] == $this->_foreach['scenes_list']['total'])): ?> padding-right:10px;<?php endif; ?>"> 109 <a style="width:<?php echo $this->_tpl_vars['thumbSceneImageType']['width']; ?>HarbormasterBuildable.php git://github.com/facebook/phabricator.git | PHP | 416 lines
1<?php 2 260 ->setReceiverPHID($this->getPHID()) 261 ->setType($message_type) 262 ->save(); 354 ->setKey('objectPHID') 355 ->setType('phid') 356 ->setDescription(pht('PHID of the object that is built.')), 358 ->setKey('containerPHID') 359 ->setType('phid') 360 ->setDescription(pht('PHID of the object containing this buildable.')), 362 ->setKey('buildableStatus') 363 ->setType('map<string, wild>') 364 ->setDescription(pht('The current status of this buildable.')), 366 ->setKey('isManual') 367 ->setType('bool') 368 ->setDescription(pht('True if this is a manual buildable.')),15datavalidation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 108 lines
37/** PHPExcel_Writer_Excel2007 */ 38include 'PHPExcel/Writer/Excel2007.php'; 39 51$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes."); 52$objPHPExcel->getProperties()->setKeywords("office 2007 openxml php"); 53$objPHPExcel->getProperties()->setCategory("Test result file"); 68$objValidation = $objPHPExcel->getActiveSheet()->getCell('B3')->getDataValidation(); 69$objValidation->setType( PHPExcel_Cell_DataValidation::TYPE_WHOLE ); 70$objValidation->setErrorStyle( PHPExcel_Cell_DataValidation::STYLE_STOP ); 82$objValidation = $objPHPExcel->getActiveSheet()->getCell('B5')->getDataValidation(); 83$objValidation->setType( PHPExcel_Cell_DataValidation::TYPE_LIST ); 84$objValidation->setErrorStyle( PHPExcel_Cell_DataValidation::STYLE_INFORMATION ); 102echo date('H:i:s') . " Write to Excel2007 format\n"; 103$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel); 104$objWriter->save(str_replace('.php', '.xlsx', __FILE__));PagSeguroTransactionParser.class.php http://oraculum-php.googlecode.com/svn/trunk/ | PHP | 373 lines
1<?php if (!defined('PAGSEGURO_LIBRARY')) { die('No direct script access allowed'); } 2/* 92 if (isset($data["type"])) { 93 $transaction->setType(new PagSeguroTransactionType($data["type"])); 94 } 107 if (isset($data["paymentMethod"]['type'])) { 108 $paymentMethod->setType(new PagSeguroPaymentMethodType($data["paymentMethod"]['type'])); 109 } 214 if (isset($data["shipping"]["type"])) { 215 $shipping->setType(new PagSeguroShippingType($data["shipping"]["type"])); 216 } 319 if (isset($data['type'])){ 320 $transactionSummary->setType(new PagSeguroTransactionType($data['type'])); 321 } 357 if (isset($data['paymentMethod']['type'])){ 358 $paymentMethod->setType(new PagSeguroPaymentMethodType($data['paymentMethod']['type'])); 359 }max_input_vars.php git://github.com/moodle/moodle.git | PHP | 231 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require(__DIR__ . '/../../../config.php'); 26require_once($CFG->libdir . '/formslib.php'); 47 $mform->addElement('hidden', 'type', $this->_customdata['type']); 48 $mform->setType('type', PARAM_ALPHA); 49 95// Set up the page details. 96$PAGE->set_url(new moodle_url('/lib/tests/fixtures/max_input_vars.php')); 97$PAGE->set_context($context); 107 } else if ($type[1] === 'e') { 108 // Exactly on the PHP limit, taking into account extra form fields 109 // and the double fields for checkboxes. 119 120 $mform = new core_max_input_vars_form('max_input_vars.php', 121 array('type' => $type, 'fieldcount' => $fieldcount, 'control' => $type[0]));Cache_redis.php git://github.com/EllisLab/CodeIgniter.git | PHP | 364 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 73 /** 74 * del()/delete() method name depending on phpRedis version 75 * 80 /** 81 * sRem()/sRemove() method name depending on phpRedis version 82 * 109 { 110 if (version_compare(phpversion('redis'), '5', '>=')) 111 { 184 case 'NULL': 185 return settype($data['__ci_value'], $data['__ci_type']) 186 ? $data['__ci_value']client_roles_add.php http://scalr.googlecode.com/svn/ | PHP | 172 lines
1<? 2 require("src/prepend.inc.php"); 3 8 $errmsg = "Requested page cannot be viewed from admin account"; 9 UI::Redirect("index.php"); 10 } 88 $group_rules = $db->GetAll("SELECT * FROM security_rules WHERE roleid='{$ami_info['id']}'"); 89 $IpPermissionSet = new IpPermissionSetType(); 90 foreach ($group_rules as $rule) 115 $okmsg = "An image for new role {$post_name} is being bundled. It can take up to 10 minutes."; 116 UI::Redirect("client_roles_view.php"); 117 } 158 $errmsg = "You must have at least one running instance"; 159 UI::Redirect("client_roles_view.php"); 160 }Item.php https://github.com/OpenMage/magento-mirror.git | PHP | 447 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 */ 291 $link->setRel('alternate'); 292 $link->setType('text/html'); 293 if ($object->getName()) {PHUIDiffInlineCommentDetailView.php git://github.com/facebook/phabricator.git | PHP | 468 lines
1<?php 2 110 $draft_text = id(new PHUITagView()) 111 ->setType(PHUITagView::TYPE_SHADE) 112 ->setName(pht('Unsubmitted')) 357 $author_owner = id(new PHUITagView()) 358 ->setType(PHUITagView::TYPE_SHADE) 359 ->setName(pht('Author'))AttributeController.php https://github.com/Polansk/magento-pt_br.git | PHP | 257 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.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('catalog_product')->getTypeId(); 44 }35655e6409b6198f29dd6e732ef9598dec599880.module.ps_shoppingcart.tpl.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 83 lines
29),false); /*/%%SmartyHeaderCode%%*/?> 30<?php if ($_valid && !is_callable('content_5ace5d0af130a6_98657026')) {function content_5ace5d0af130a6_98657026($_smarty_tpl) {?><div class="blockcart cart-preview dropdown js-dropdown" data-refresh-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['refresh_url']->value, ENT_QUOTES, 'UTF-8');?> 31"> 35<!-- <?php echo smartyTranslate(array('s'=>'Your bag: Total','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?> 36 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['value'], ENT_QUOTES, 'UTF-8');?> 37 --> 50</li> 51 <?php } ?> 52 </ul> 54 <div class="cart-subtotals"> 55 <?php $_smarty_tpl->tpl_vars["subtotal"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["subtotal"]->_loop = false; 56 $_from = $_smarty_tpl->tpl_vars['cart']->value['subtotals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} 59?> 60 <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['type'], ENT_QUOTES, 'UTF-8');?> 61 price_inline">register.php http://ds-pro-chat.googlecode.com/svn/trunk/ | PHP | 434 lines
1<?php 2 6 7Include('./vars.php'); 8 10{ 11 //phpinfo();exit; 12 ForEach(Array('pf_nigol', 'pf_ssap', 'pf_dname', 'pf_email') AS $K) 13 { 14 SetType($_REQUEST[$K], 'string'); 15 $_REQUEST[$K] = Trim($_REQUEST[$K]); 60 { 61 Include(PrivateFolder . 'scripts/SQLiteDB.php'); 62 113 114 SetType($File['size'], 'integer'); 115 SetType($File['error'], 'integer');receipt_edit.tpl.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 191 lines
51 52 <div class="title">Receipts: <?php $this->lblHeaderReceipt->Render(); ?></div> 53 <table class="datagrid" cellpadding="5" cellspacing="0" border="0" > 55 <td class="record_header"> 56 <?php 57 $this->btnEdit->Render(); 134 </tr> 135 <?php 136 } 154 <tr> 155 <td colspan="3"><?php $this->rblAssetType->RenderDesigned('DisplayName=false'); ?></td> 156 </tr> 189 <?php $this->RenderEnd() ?> 190 <?php require_once('../includes/footer.inc.php'); ?> 191StandardSearchIndexer.php https://bitbucket.org/saltwaterdev/agilyx.com.git | PHP | 285 lines
1<?php 2namespace Concrete\Core\Attribute\Key\SearchIndexer; 47 */ 48 private function setTypeLength($options) 49 { 86 $options = array_merge($options, $definition['options']); 87 $options = $this->setTypeLength($options); 88 $toTable->changeColumn('ak_' . $key->getAttributeKeyHandle(), $options); 94 $options = array_merge($options, $column['options']); 95 $options = $this->setTypeLength($options); 96 $toTable->changeColumn('ak_' . $key->getAttributeKeyHandle() . '_' . $name, $options);AlmanacNamespace.php git://github.com/facebook/phabricator.git | PHP | 242 lines
1<?php 2 225 ->setKey('name') 226 ->setType('string') 227 ->setDescription(pht('The name of the namespace.')),%%DB^DB7^DB761BB2%%header.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 103 lines
2 compiled from C:%5CD%5CMarocMall/themes/prestashop/header.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/header.tpl', 5, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/header.tpl', 42, false),)), $this); ?> 21 <meta name="generator" content="PrestaShop" /> 22 <meta name="robots" content="<?php if (isset ( $this->_tpl_vars['nobots'] )): ?>no<?php endif; ?>index,follow" /> 23 <link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $this->_tpl_vars['img_ps_dir']; ?> 43<?php if (isset ( $this->_tpl_vars['css_files'] )): ?> 44 <?php $_from = $this->_tpl_vars['css_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 45 foreach ($_from as $this->_tpl_vars['css_uri'] => $this->_tpl_vars['media']): 52<?php if (isset ( $this->_tpl_vars['js_files'] )): ?> 53 <?php $_from = $this->_tpl_vars['js_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 54 foreach ($_from as $this->_tpl_vars['js_uri']): 84" <?php if ($this->_tpl_vars['logo_image_width']): ?>width="<?php echo $this->_tpl_vars['logo_image_width']; ?> 85"<?php endif; ?> <?php if ($this->_tpl_vars['logo_image_height']): ?>height="<?php echo $this->_tpl_vars['logo_image_height']; ?> 86" <?php endif; ?> />%%11^114^11414E95%%header.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 103 lines
2 compiled from C:%5CD%5Cprestashop/themes/prestashop/header.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:\\D\\prestashop/themes/prestashop/header.tpl', 5, false),array('function', 'l', 'C:\\D\\prestashop/themes/prestashop/header.tpl', 42, false),)), $this); ?> 21 <meta name="generator" content="PrestaShop" /> 22 <meta name="robots" content="<?php if (isset ( $this->_tpl_vars['nobots'] )): ?>no<?php endif; ?>index,follow" /> 23 <link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo $this->_tpl_vars['img_ps_dir']; ?> 43<?php if (isset ( $this->_tpl_vars['css_files'] )): ?> 44 <?php $_from = $this->_tpl_vars['css_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 45 foreach ($_from as $this->_tpl_vars['css_uri'] => $this->_tpl_vars['media']): 52<?php if (isset ( $this->_tpl_vars['js_files'] )): ?> 53 <?php $_from = $this->_tpl_vars['js_files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 54 foreach ($_from as $this->_tpl_vars['js_uri']): 84" <?php if ($this->_tpl_vars['logo_image_width']): ?>width="<?php echo $this->_tpl_vars['logo_image_width']; ?> 85"<?php endif; ?> <?php if ($this->_tpl_vars['logo_image_height']): ?>height="<?php echo $this->_tpl_vars['logo_image_height']; ?> 86" <?php endif; ?> />DiffusionPathChange.php git://github.com/facebook/phabricator.git | PHP | 167 lines
1<?php 2 143 $direct[] = $path->getPath(); 144 $change->setType($path->getChangeType()); 145 $file_type = $path->getFileType();Workflow.php https://bitbucket.org/zurmo/zurmo/ | PHP | 499 lines
1<?php 2 /********************************************************************************* 350 */ 351 public function setType($type) 352 {ParamsLoader.php git://github.com/Codeception/Codeception.git | PHP | 157 lines
1<?php 2namespace Codeception\Lib; 38 39 if (preg_match('~\.php$~', $paramStorage)) { 40 return $this->loadPhpFile(); 66 67 protected function loadPhpFile() 68 { 95 case 'double': 96 $a[$key] = settype($value, $type); 97 break; 147 throw new ConfigurationException( 148 "`vlucas/phpdotenv` library is required to parse .env files.\n" . 149 "Please install it via composer: composer require vlucas/phpdotenv"Graph.php git://github.com/mvriel/Docblox.git | PHP | 365 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 10 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 11 * @license http://www.opensource.org/licenses/mit-license.php MIT 12 * @link http://docblox-project.org 26 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 27 * @license http://www.opensource.org/licenses/mit-license.php MIT 28 * @link http://docblox-project.org 64 ->setName($name) 65 ->setType($directional ? 'digraph' : 'graph'); 66 105 */ 106 public function setType($type) 107 {edit_ddmarker_form.php git://github.com/moodle/moodle.git | PHP | 285 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot.'/question/type/ddimageortext/edit_ddtoimage_form_base.php'); 30require_once($CFG->dirroot.'/question/type/ddmarker/shapes.php'); 80 array('size' => 30, 'class' => 'tweakcss')); 81 $mform->setType('text', PARAM_RAW_TRIMMED); 82 114 array('size' => 30, 'class' => 'tweakcss')); 115 $mform->setType('coords', PARAM_RAW); // These are validated manually. 116 $dropzone = $mform->createElement('group', 'drops',lmbTestGetopt.class.php git://github.com/limb-php-framework/limb.git | PHP | 305 lines
17// +----------------------------------------------------------------------+ 18// | Copyright (c) 1997-2004 The PHP Group | 19// +----------------------------------------------------------------------+ 19// +----------------------------------------------------------------------+ 20// | This source file is subject to version 3.0 of the PHP license, | 21// | that is bundled with this package in the file LICENSE, and is | 23// | http://www.php.net/license/3_0.txt. | 24// | If you did not receive a copy of the PHP license and are unable to | 25// | obtain it through the world-wide-web, please send a note to | 27// +----------------------------------------------------------------------+ 28// | Author: Andrei Zmievski <andrei@php.net> | 29// +----------------------------------------------------------------------+ 282 /** 283 * Safely read the $argv PHP array across different PHP configurations. 284 * Will take care on register_globals and register_argc_argv ini directivessettings.php git://git.savannah.nongnu.org/easymagazine.git | PHP | 171 lines
1<?php 2 21 22require_once(STARTPATH.'costants.php'); 23require_once(STARTPATH.SYSTEMPATH.'config.php'); 23require_once(STARTPATH.SYSTEMPATH.'config.php'); 24require_once(STARTPATH.DATAMODELPATH.'option.php'); 25require_once(STARTPATH.DATAMODELPATH.'user.php'); 25require_once(STARTPATH.DATAMODELPATH.'user.php'); 26require_once(STARTPATH.UTILSPATH.'fileWriter.php'); 27require_once(STARTPATH.UTILSPATH.'directoryrunner.php'); 27require_once(STARTPATH.UTILSPATH.'directoryrunner.php'); 28require_once(STARTPATH.CONTROLLERPATH.'all_controllers_commons.php'); 29 65 $toSave->setName('title'); 66 $toSave->setType('settings'); 67 $toSave->setValue($post['title']);ChatEvent.java http://raptor-chess-interface.googlecode.com/svn/trunk/ | Java | 159 lines
2 * New BSD License 3 * http://www.opensource.org/licenses/bsd-license.php 4 * Copyright 2009-2011 RaptorProject (http://code.google.com/p/raptor-chess-interface/) 143 */ 144 public void setType(ChatType type) { 145 this.type = type;meta.php git://github.com/thorsten/phpMyFAQ.git | PHP | 189 lines
1<?php 2 10 * @category phpMyFAQ 11 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 12 * @copyright 2018-2021 phpMyFAQ Team 13 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 14 * @link https://www.phpmyfaq.de 15 * @since 2018-08-10 18use phpMyFAQ\Entity\MetaEntity; 19use phpMyFAQ\Filter; 20use phpMyFAQ\Meta; 21 22if (!defined('IS_VALID_PHPMYFAQ')) { 23 http_response_code(400); 57if ('meta.update' === $action && is_integer($metaId)) { 58 if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfToken) { 59 echo $PMF_LANG['err_NotAuth'];BaseContact.php https://bitbucket.org/wizzmedia/nexity-generateur.git | PHP | 826 lines
1<?php 2/** 486 */ 487 public function setTypeFormulaire(FormulaireSite $typeFormulaire) 488 { 532 */ 533 public function setTypeCommercialisation($typeCommercialisation) 534 {example3.2.html http://flaimo-php.googlecode.com/svn/trunk/ | HTML | 4 lines
1<code><font color="#000000"> 2<font color="#0000CC"><?php<br /></font><font color="#006600">include (</font><font color="#CC0000">"../jpgraph.php"</font><font color="#006600">);<br />include (</font><font color="#CC0000">"../jpgraph_line.php"</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$ydata </font><font color="#006600">= array(</font><font color="#0000CC">11</font><font color="#006600">,</font><font color="#0000CC">3</font><font color="#006600">,</font><font color="#0000CC">8</font><font color="#006600">,</font><font color="#0000CC">12</font><font color="#006600">,</font><font color="#0000CC">5</font><font color="#006600">,</font><font color="#0000CC">1</font><font color="#006600">,</font><font color="#0000CC">9</font><font color="#006600">,</font><font color="#0000CC">15</font><font color="#006600">,</font><font color="#0000CC">5</font><font color="#006600">,</font><font color="#0000CC">7</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create the graph. These two calls are always required<br /></font><font color="#0000CC">$graph </font><font color="#006600">= new </font><font color="#0000CC">Graph</font><font color="#006600">(</font><font color="#0000CC">300</font><font color="#006600">,</font><font color="#0000CC">200</font><font color="#006600">,</font><font color="#CC0000">"auto"</font><font color="#006600">); <br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetScale</font><font color="#006600">(</font><font color="#CC0000">"textlin"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create the linear plot<br /></font><font color="#0000CC">$lineplot</font><font color="#006600">=new </font><font color="#0000CC">LinePlot</font><font color="#006600">(</font><font color="#0000CC">$ydata</font><font color="#006600">);<br /></font><font color="#0000CC">$lineplot</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetType</font><font color="#006600">(</font><font color="#0000CC">MARK_CIRCLE</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Add the plot to the graph<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Add</font><font color="#006600">(</font><font color="#0000CC">$lineplot</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">img</font><font color="#006600">-></font><font color="#0000CC">SetMargin</font><font color="#006600">(</font><font color="#0000CC">40</font><font color="#006600">,</font><font color="#0000CC">20</font><font color="#006600">,</font><font color="#0000CC">20</font><font color="#006600">,</font><font color="#0000CC">40</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"Example 3.2"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">xaxis</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"X-title"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">yaxis</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"Y-title"</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">yaxis</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">xaxis</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$lineplot</font><font color="#006600">-></font><font color="#0000CC">SetColor</font><font color="#006600">(</font><font color="#CC0000">"blue"</font><font color="#006600">);<br /></font><font color="#0000CC">$lineplot</font><font color="#006600">-></font><font color="#0000CC">SetWeight</font><font color="#006600">(</font><font color="#0000CC">2</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">yaxis</font><font color="#006600">-></font><font color="#0000CC">SetWeight</font><font color="#006600">(</font><font color="#0000CC">2</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetShadow</font><font color="#006600">();<br /><br /></font><font color="#FF9900">// Display the graph<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Stroke</font><font color="#006600">();<br /></font><font color="#0000CC">?><br /></font> 3</font>%%9F^9FD^9FD46DAE%%category.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 123 lines
1<?php /* Smarty version 2.6.20, created on 2011-12-03 16:42:36 2 compiled from C:%5CD%5CMarocMall/themes/prestashop/category.tpl */ ?> 2 compiled from C:%5CD%5CMarocMall/themes/prestashop/category.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/category.tpl', 35, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/category.tpl', 61, false),)), $this); ?> 5 6<?php $_smarty_tpl_vars = $this->_tpl_vars; 7$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array())); 10 ?> 11<?php $_smarty_tpl_vars = $this->_tpl_vars; 12$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array())); 20 <h1> 21 <?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['category']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['categoryNameComplement'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo '<span class="category-product-count">'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars; 22$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./category-count.tpl", 'smarty_include_vars' => array())); 59 <ul class="inline_list"> 60 <?php $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 61 foreach ($_from as $this->_tpl_vars['subcategory']):%%5E^5E1^5E10B087%%category.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 123 lines
1<?php /* Smarty version 2.6.20, created on 2011-11-28 23:50:32 2 compiled from C:%5CD%5Cprestashop/themes/prestashop/category.tpl */ ?> 2 compiled from C:%5CD%5Cprestashop/themes/prestashop/category.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:\\D\\prestashop/themes/prestashop/category.tpl', 35, false),array('function', 'l', 'C:\\D\\prestashop/themes/prestashop/category.tpl', 61, false),)), $this); ?> 5 6<?php $_smarty_tpl_vars = $this->_tpl_vars; 7$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array())); 10 ?> 11<?php $_smarty_tpl_vars = $this->_tpl_vars; 12$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array())); 20 <h1> 21 <?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['category']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['categoryNameComplement'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo '<span class="category-product-count">'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars; 22$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./category-count.tpl", 'smarty_include_vars' => array())); 59 <ul class="inline_list"> 60 <?php $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 61 foreach ($_from as $this->_tpl_vars['subcategory']):Abstract.php git://github.com/michael-romer/zf-boilerplate.git | 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'; 43MethodReflection.php https://code.google.com/p/celebrio/ | PHP | 226 lines
1<?php 2 50 if ($param->isArray()) { 51 settype($res[$param->getName()], 'array'); 52 } 72 if ($def !== NULL) { 73 settype($val, gettype($def)); 74 }Parameter.php git://github.com/michael-romer/zf-boilerplate.git | 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 {a2107c262e7d844996c23421a8f4590a61f3986a.file.blockcms.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 110 lines
60 <?php }} ?> 61 <?php if ($_smarty_tpl->tpl_vars['cms_title']->value['display_store']){?><li><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?> 62" title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?> 72 <ul> 73 <?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="first_item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('prices-drop.php');?> 74" title="<?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?> 76</a></li><?php }?> 77 <li class="<?php if ($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>first_<?php }?>item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('new-products.php');?> 78" title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?> 80</a></li> 81 <?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('best-sales.php');?> 82" title="<?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?> 84</a></li><?php }?> 85 <?php if ($_smarty_tpl->getVariable('display_stores_footer')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?> 86" title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>19d48b80b97c52d421d15614b76a9b0774ce2b42.file.cms.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 99 lines
19)); /*/%%SmartyHeaderCode%%*/?> 20<?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php'; 21?> 23 <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); 24 echo $_template->getRenderedTemplate();?><?php unset($_template);?> 25<?php }?> 25<?php }?> 26<?php if (isset($_smarty_tpl->getVariable('cms',null,true,false)->value)&&!isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?> 27 <?php if (!$_smarty_tpl->getVariable('cms')->value->active){?> 47 <?php }?> 48 <div class="rte<?php if ($_smarty_tpl->getVariable('content_only')->value){?> content_only<?php }?>"> 49 <?php echo $_smarty_tpl->getVariable('cms')->value->content;?> 55</h1> 56 <?php if (isset($_smarty_tpl->getVariable('sub_category',null,true,false)->value)&!empty($_smarty_tpl->getVariable('sub_category',null,true,false)->value)){?> 57 <h4><?php echo smartyTranslate(array('s'=>'List of sub categories in '),$_smarty_tpl);?>Hessian2Writer.php http://hessianphp.googlecode.com/svn/trunk/ | PHP | 368 lines
1<?php 2/* 2/* 3 * This file is part of the HessianPHP package. 4 * (c) 2004-2011 Manuel Gómez 26 27 function setTypeMap($typemap){ 28 $this->typemap = $typemap;DiffusionSymbolQuery.php git://github.com/facebook/phabricator.git | PHP | 281 lines
1<?php 2 88 */ 89 public function setType($type) { 90 $this->type = $type;ColumnMap.php https://github.com/rafd/SkuleCourses.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 }ext_reflection.h git://github.com/facebook/hiphop-php.git | C Header | 279 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-present 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 +----------------------------------------------------------------------+filledlineex01.1.html http://flaimo-php.googlecode.com/svn/trunk/ | HTML | 4 lines
1<code><font color="#000000"> 2<font color="#0000CC"><?php<br /></font><font color="#006600">include (</font><font color="#CC0000">"../jpgraph.php"</font><font color="#006600">);<br />include (</font><font color="#CC0000">"../jpgraph_line.php"</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$datay </font><font color="#006600">= array(</font><font color="#0000CC">1.23</font><font color="#006600">,</font><font color="#0000CC">1.9</font><font color="#006600">,</font><font color="#0000CC">1.6</font><font color="#006600">,</font><font color="#0000CC">3.1</font><font color="#006600">,</font><font color="#0000CC">3.4</font><font color="#006600">,</font><font color="#0000CC">2.8</font><font color="#006600">,</font><font color="#0000CC">2.1</font><font color="#006600">,</font><font color="#0000CC">1.9</font><font color="#006600">);<br /></font><font color="#0000CC">$graph </font><font color="#006600">= new </font><font color="#0000CC">Graph</font><font color="#006600">(</font><font color="#0000CC">300</font><font color="#006600">,</font><font color="#0000CC">200</font><font color="#006600">,</font><font color="#CC0000">"auto"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetScale</font><font color="#006600">(</font><font color="#CC0000">"textlin"</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">img</font><font color="#006600">-></font><font color="#0000CC">SetMargin</font><font color="#006600">(</font><font color="#0000CC">40</font><font color="#006600">,</font><font color="#0000CC">40</font><font color="#006600">,</font><font color="#0000CC">40</font><font color="#006600">,</font><font color="#0000CC">40</font><font color="#006600">); <br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetShadow</font><font color="#006600">();<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetGridDepth</font><font color="#006600">(</font><font color="#0000CC">DEPTH_FRONT</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"Example of filled line plot"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$p1 </font><font color="#006600">= new </font><font color="#0000CC">LinePlot</font><font color="#006600">(</font><font color="#0000CC">$datay</font><font color="#006600">);<br /></font><font color="#0000CC">$p1</font><font color="#006600">-></font><font color="#0000CC">SetFillColor</font><font color="#006600">(</font><font color="#CC0000">"orange"</font><font color="#006600">);<br /></font><font color="#0000CC">$p1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetType</font><font color="#006600">(</font><font color="#0000CC">MARK_FILLEDCIRCLE</font><font color="#006600">);<br /></font><font color="#0000CC">$p1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetFillColor</font><font color="#006600">(</font><font color="#CC0000">"red"</font><font color="#006600">);<br /></font><font color="#0000CC">$p1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetWidth</font><font color="#006600">(</font><font color="#0000CC">4</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Add</font><font color="#006600">(</font><font color="#0000CC">$p1</font><font color="#006600">);<br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Stroke</font><font color="#006600">();<br /></font><font color="#0000CC">?><br /></font> 3</font>scatter_csimex1.html http://flaimo-php.googlecode.com/svn/trunk/ | HTML | 4 lines
1<code><font color="#000000"> 2<font color="#0000CC"><?php<br /></font><font color="#006600">include_once (</font><font color="#CC0000">"jpgraph.php"</font><font color="#006600">);<br />include_once (</font><font color="#CC0000">"jpgraph_scatter.php"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Some data for the points<br /></font><font color="#0000CC">$datax </font><font color="#006600">= array(</font><font color="#0000CC">3.5</font><font color="#006600">,</font><font color="#0000CC">13.7</font><font color="#006600">,</font><font color="#0000CC">3</font><font color="#006600">,</font><font color="#0000CC">4</font><font color="#006600">,</font><font color="#0000CC">6.2</font><font color="#006600">,</font><font color="#0000CC">6</font><font color="#006600">,</font><font color="#0000CC">3.5</font><font color="#006600">,</font><font color="#0000CC">8</font><font color="#006600">,</font><font color="#0000CC">14</font><font color="#006600">,</font><font color="#0000CC">8</font><font color="#006600">,</font><font color="#0000CC">11.1</font><font color="#006600">,</font><font color="#0000CC">13.7</font><font color="#006600">);<br /></font><font color="#0000CC">$datay </font><font color="#006600">= array(</font><font color="#0000CC">10</font><font color="#006600">,</font><font color="#0000CC">22</font><font color="#006600">,</font><font color="#0000CC">12</font><font color="#006600">,</font><font color="#0000CC">13</font><font color="#006600">,</font><font color="#0000CC">17</font><font color="#006600">,</font><font color="#0000CC">20</font><font color="#006600">,</font><font color="#0000CC">16</font><font color="#006600">,</font><font color="#0000CC">19</font><font color="#006600">,</font><font color="#0000CC">30</font><font color="#006600">,</font><font color="#0000CC">31</font><font color="#006600">,</font><font color="#0000CC">40</font><font color="#006600">,</font><font color="#0000CC">43</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// A new scatter graph<br /></font><font color="#0000CC">$graph </font><font color="#006600">= new </font><font color="#0000CC">Graph</font><font color="#006600">(</font><font color="#0000CC">300</font><font color="#006600">,</font><font color="#0000CC">200</font><font color="#006600">,</font><font color="#CC0000">'auto'</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetShadow</font><font color="#006600">();<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">SetScale</font><font color="#006600">(</font><font color="#CC0000">"linlin"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">//$graph->img->SetMargin(40,40,40,40); <br /><br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">Set</font><font color="#006600">(</font><font color="#CC0000">"Scatter plot with Image Map"</font><font color="#006600">);<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">title</font><font color="#006600">-></font><font color="#0000CC">SetFont</font><font color="#006600">(</font><font color="#0000CC">FF_FONT1</font><font color="#006600">,</font><font color="#0000CC">FS_BOLD</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Client side image map targets<br /></font><font color="#0000CC">$targ</font><font color="#006600">=array(</font><font color="#CC0000">"pie_csimex1.php#1"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#2"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#3"</font><font color="#006600">,<br /></font><font color="#CC0000">"pie_csimex1.php#4"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#5"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#6"</font><font color="#006600">,<br /></font><font color="#CC0000">"pie_csimex1.php#7"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#8"</font><font color="#006600">,</font><font color="#CC0000">"pie_csimex1.php#9" </font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Strings to put as "alts" (and "title" value)<br /></font><font color="#0000CC">$alts</font><font color="#006600">=array(</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">,</font><font color="#CC0000">"val=%d"</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Create a new scatter plot<br /></font><font color="#0000CC">$sp1 </font><font color="#006600">= new </font><font color="#0000CC">ScatterPlot</font><font color="#006600">(</font><font color="#0000CC">$datay</font><font color="#006600">,</font><font color="#0000CC">$datax</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Use diamonds as markerss<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetType</font><font color="#006600">(</font><font color="#0000CC">MARK_DIAMOND</font><font color="#006600">);<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">mark</font><font color="#006600">-></font><font color="#0000CC">SetWidth</font><font color="#006600">(</font><font color="#0000CC">10</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Set the scatter plot image map targets<br /></font><font color="#0000CC">$sp1</font><font color="#006600">-></font><font color="#0000CC">SetCSIMTargets</font><font color="#006600">(</font><font color="#0000CC">$targ</font><font color="#006600">,</font><font color="#0000CC">$alts</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Add the plot<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">Add</font><font color="#006600">(</font><font color="#0000CC">$sp1</font><font color="#006600">);<br /><br /></font><font color="#FF9900">// Send back the HTML page which will call this script again<br />// to retrieve the image.<br /></font><font color="#0000CC">$graph</font><font color="#006600">-></font><font color="#0000CC">StrokeCSIM</font><font color="#006600">(</font><font color="#CC0000">'Examples/scatter_csimex1.php'</font><font color="#006600">,</font><font color="#CC0000">'scatter_csimex1'</font><font color="#006600">);<br /><br /></font><font color="#0000CC">?><br /></font> 3</font>PhutilBootloader.php git://github.com/facebook/libphutil.git | PHP | 292 lines
1<?php 2 42 public function registerLibrary($name, $path) { 43 if (basename($path) != '__phutil_library_init__.php') { 44 throw new PhutilBootloaderException( 44 throw new PhutilBootloaderException( 45 'Only directories with a __phutil_library_init__.php file may be '. 46 'registered as libphutil libraries.'); 68 $root = $this->getLibraryRoot('phutil'); 69 $this->executeInclude($root.'/symbols/PhutilSymbolLoader.php'); 70 } 74 ->setLibrary($name) 75 ->setType('function'); 76 93 $extensions = id(new FileFinder($extdir)) 94 ->withSuffix('php') 95 ->withType('f')TextStyles.java git://github.com/plutext/docx4j.git | Java | 387 lines
30import org.docx4j.dml.CTTextListStyle; 31import org.docx4j.dml.CTTextParagraphProperties; 32import org.docx4j.dml.BaseStyles.FontScheme; 96 97 public static Style convertToWordStyle(CTTextParagraphProperties lvlPPr, 98 String id, String name, 105// <w:style w:type="paragraph" w:styleId="Heading1"> 106 style.setType("paragraph"); 107 style.setStyleId(id); 127 "URI", "lvl1pPr", // BEWARE: could be lvl2 etc 128 CTTextParagraphProperties.class)); 129 146 "URI", "lvl1pPr", 147 CTTextParagraphProperties.class)); 148TestToolkit.php git://github.com/drupal/drupal.git | PHP | 264 lines
1<?php 2 30 /** 31 * Image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG). 32 * 136 if ($data && in_array($data[2], static::supportedTypes())) { 137 $this->setType($data[2]); 138 $this->width = $data[0]; 196 * @return int 197 * The image type represented by a PHP IMAGETYPE_* constant (e.g. 198 * IMAGETYPE_JPEG). 204 /** 205 * Sets the PHP type of the image. 206 * 207 * @param int $type 208 * The image type represented by a PHP IMAGETYPE_* constant (e.g. 209 * IMAGETYPE_JPEG).AlmanacBinding.php git://github.com/facebook/phabricator.git | PHP | 264 lines
1<?php 2 230 ->setKey('servicePHID') 231 ->setType('phid') 232 ->setDescription(pht('The bound service.')), 234 ->setKey('devicePHID') 235 ->setType('phid') 236 ->setDescription(pht('The device the service is bound to.')), 238 ->setKey('interfacePHID') 239 ->setType('phid') 240 ->setDescription(pht('The interface the service is bound to.')), 242 ->setKey('disabled') 243 ->setType('bool') 244 ->setDescription(pht('Interface status.')),Linux_SambaGroupInstance.h git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ Header | 133 lines
11// You can obtain a current copy of the Eclipse Public License from 12// http://www.opensource.org/licenses/eclipse-1.0.php 13// 51 52 struct isSetType{ 53 unsigned int instanceName:1;Linux_SambaReadListForGlobalInstanceName.h git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ Header | 136 lines
11// You can obtain a current copy of the Eclipse Public License from 12// http://www.opensource.org/licenses/eclipse-1.0.php 13// 52 53 struct isSetType{ 54 unsigned int m_nameSpaceP:1;LocatorTest.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 317 lines
1<?php 2/** 13 * 14 * PHP version 5 15 * 17 * 18 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 19 * @copyright Microsoft Corporation 21 * 22 * @link https://github.com/windowsazure/azure-sdk-for-php 23 */ 27use WindowsAzure\MediaServices\Models\Locator; 28use PHPUnit\Framework\TestCase; 29 34 * 35 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 36 * @copyright Microsoft CorporationVolumeTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 389 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: VolumeTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Measure/Flow/Volume.php'; 27 35 */ 36class Zend_Measure_Flow_VolumeTest extends PHPUnit_Framework_TestCase 37{ 307 */ 308 public function testFlow_VolumeSetType() 309 { 310 $value = new Zend_Measure_Flow_Volume('-100',Zend_Measure_Flow_Volume::STANDARD,'de'); 311 $value->setType(Zend_Measure_Flow_Volume::CUSEC); 312 $this->assertEquals(Zend_Measure_Flow_Volume::CUSEC, $value->getType(), 'Zend_Measure_Flow_Volume type expected');Setting.php https://bitbucket.org/webstar1987923/mycampaignsio.git | PHP | 342 lines
1<?php 2/** 99 /** 100 * Get the PHP type of the setting. 101 * @return string 230 if (isset($this->type) && !is_null($value)) { 231 settype($value, $this->type); 232 }SchemaTest.php http://arrowplatform.googlecode.com/svn/trunk/ | PHP | 350 lines
3 4require_once ('PHPUnit/Autoload.php'); 5 80 $field_test1->setPKey(true); 81 $field_test1->setType("integer"); 82 $field_test1->setSize(11); 85 $field_test2->setName("test2"); 86 $field_test2->setType("varchar"); 87 $field_test2->setSize(255); 150 $field_test2->setName("test2"); 151 $field_test2->setType("varchar"); 152 $field_test2->setSize(255); 156 $field_test3->setName("test3"); 157 $field_test3->setType("integer"); 158 $field_test3->setRequired(true);