100+ results for 'php settype'

Not the results you expected?

admin_snippets_edit.php (https://github.com/Thoronador/Frogsystem-2.git) PHP · 326 lines

1 <?php if (!defined('ACP_GO')) die('Unauthorized access!');

2

3 /////////////////////////////

12 {

13 // Security-Functions

14 settype ( $_POST['snippet_id'], 'integer' );

15 settype ( $_POST['snippet_active'], 'integer' );

101 $_POST['snippet_text'] = killhtml ( $_POST['snippet_text'] );

102

103 settype ( $_POST['snippet_id'], 'integer' );

104 settype ( $_POST['snippet_active'], 'integer' );

UserQuery.php (https://github.com/Riges/KawaiViewModel.git) PHP · 355 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: UserQuery.php 24593 2012-01-05 20:35:02Z matthew $

22 */

23

25 * @see Zend_Gdata_Gapps_Query

26 */

27 require_once('Zend/Gdata/Gapps/Query.php');

28

29 /**

108 * @return Zend_Gdata_Photos_UserQuery Provides a fluent interface

109 */

110 public function setType($value)

111 {

112 $this->_type = $value;

BinaryTest.php (https://github.com/Exercise/zf2.git) PHP · 352 lines

1 <?php

2 /**

3 * Zend Framework

35 * @group Zend_Measure

36 */

37 class BinaryTest extends \PHPUnit_Framework_TestCase

38 {

39 /**

276 * expected new type

277 */

278 public function testBinarySetType()

279 {

280 $value = new Measure\Binary('-100',Measure\Binary::STANDARD,'de');

281 $value->setType(Measure\Binary::GIGABYTE);

282 $this->assertEquals(Measure\Binary::GIGABYTE, $value->getType(), 'Zend\Measure\Binary type expected');

283 }

Abstract.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 418 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Locale

24 */

25 #require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 #require_once 'Zend/Locale/Math.php';

31

32 /**

33 * @see Zend_Locale_Format

34 */

35 #require_once 'Zend/Locale/Format.php';

36

37 /**

Boolean.php (https://github.com/sidealice/zf2.git) PHP · 373 lines

1 <?php

2 /**

3 * Zend Framework

43 const EMPTY_ARRAY = 32;

44 const NULL = 64;

45 const PHP = 127;

46 const FALSE_STRING = 128;

47 const YES = 256;

56 self::EMPTY_ARRAY => 'array',

57 self::NULL => 'null',

58 self::PHP => 'php',

59 self::FALSE_STRING => 'false',

60 self::YES => 'yes',

67 * @var integer

68 */

69 protected $_type = self::PHP;

70

71 /**

Column.php (https://gitlab.com/techniconline/kmc) PHP · 494 lines

1 <?php

2 /*

3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

107 {

108 $this->_setName($columnName);

109 $this->setType($type);

110 $this->setOptions($options);

111 }

133 * @return \Doctrine\DBAL\Schema\Column

134 */

135 public function setType(Type $type)

136 {

137 $this->_type = $type;

UserQuery.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 355 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: UserQuery.php 20096 2010-01-06 02:05:09Z bkarwin $

22 */

23

25 * @see Zend_Gdata_Gapps_Query

26 */

27 require_once('Zend/Gdata/Gapps/Query.php');

28

29 /**

108 * @return Zend_Gdata_Photos_UserQuery Provides a fluent interface

109 */

110 public function setType($value)

111 {

112 $this->_type = $value;

ExternalVideoEntryConverterTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 237 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

9 use Magento\ProductVideo\Model\Product\Attribute\Media\ExternalVideoEntryConverter;

10

11 class ExternalVideoEntryConverterTest extends \PHPUnit_Framework_TestCase

12 {

13 /**

14 * @var \PHPUnit_Framework_MockObject_MockObject

15 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterfaceFactory

16 */

18

19 /**

20 * @var \PHPUnit_Framework_MockObject_MockObject

21 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface

22 */

Link.java (https://bitbucket.org/ianmayo/debrief.git) Java · 424 lines

11 *

12 * You can obtain a copy of the LGPL 2.1 license at

13 * http://www.opensource.org/licenses/lgpl-2.1.php

14 *

15 * You can obtain a copy of the CDDL 1.0 license at

16 * http://www.opensource.org/licenses/cddl1.php

17 *

18 * You can obtain a copy of the EPL 1.0 license at

19 * http://www.opensource.org/licenses/eclipse-1.0.php

20 *

21 * See the Licenses for the specific language governing permissions and

%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 139 lines

1 <?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:27

2 compiled from author/submission/layout.tpl */ ?>

3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'url', 'author/submission/layout.tpl', 37, false),array('function', 'icon', 'author/submission/layout.tpl', 98, false),array('modifier', 'escape', 'author/submission/layout.tpl', 21, false),array('modifier', 'to_array', 'author/submission/layout.tpl', 37, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 37, false),array('modifier', 'default', 'author/submission/layout.tpl', 43, false),)), $this); ?>

5

67 <td>&nbsp;</td>

68 </tr>

69 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0);

70 if ($this->_foreach['galleys']['total'] > 0):

71 foreach ($_from as $this->_tpl_vars['galley']):

99 </td>

100 </tr>

101 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0);

102 if ($this->_foreach['suppFiles']['total'] > 0):

103 foreach ($_from as $this->_tpl_vars['suppFile']):

Export.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 350 lines

1 <?php

2

3 /**

266 (

267 $data['meta']['category'] == 'asset' &&

268 DataCenterDB::isAssetType( $data['meta']['type'] )

269 ) ||

270 (

admin_statedit.php (https://github.com/Thoronador/Frogsystem-2.git) PHP · 287 lines

1 <?php if (!defined('ACP_GO')) die('Unauthorized access!');

2

3 /////////////////////////////////

7 if ((isset($_POST['d']) && isset($_POST['m']) && isset($_POST['y']) && isset($_POST['v']) && isset($_POST['h'])) AND $_POST['do'] == 'day')

8 {

9 settype($_POST['d'], 'integer');

10 settype($_POST['m'], 'integer');

11 settype($_POST['y'], 'integer');

12 settype($_POST['v'], 'integer');

13 settype($_POST['h'], 'integer');

14 $FD->db()->conn()->exec('UPDATE '.$FD->env('DB_PREFIX')."counter_stat

15 SET s_visits = $_POST[v],

27 elseif ((isset($_POST['ed']) && isset($_POST['em']) && isset($_POST['ey'])) AND $_POST['do'] == 'day')

28 {

29 settype($_POST['ed'], 'integer');

30 settype($_POST['em'], 'integer');

UserQuery.php (https://github.com/basdog22/Qool.git) PHP · 355 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: UserQuery.php 24594 2012-01-05 21:27:01Z matthew $

22 */

23

25 * @see Zend_Gdata_Gapps_Query

26 */

27 require_once('Zend/Gdata/Gapps/Query.php');

28

29 /**

108 * @return Zend_Gdata_Photos_UserQuery Provides a fluent interface

109 */

110 public function setType($value)

111 {

112 $this->_type = $value;

PressureTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 401 lines

1 <?php

2 /**

3 * Zend Framework

25 * Zend_Measure_Pressure

26 */

27 require_once 'Zend/Measure/Pressure.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_PressureTest extends PHPUnit_Framework_TestCase

38 {

39 /**

307 * expected new type

308 */

309 public function testPressureSetType()

310 {

311 $value = new Zend_Measure_Pressure('-100',Zend_Measure_Pressure::STANDARD,'de');

NullTest.php (https://github.com/jtai/zf2.git) PHP · 329 lines

1 <?php

2 /**

3 * Zend Framework

32 * @group Zend_Filter

33 */

34 class NullTest extends \PHPUnit_Framework_TestCase

35 {

36 /**

77 {

78 $filter = $this->_filter;

79 $filter->setType(NullFilter::BOOLEAN);

80 $this->assertEquals(0.0, $filter(0.0));

81 $this->assertEquals('0', $filter('0'));

96 {

97 $filter = $this->_filter;

98 $filter->setType(NullFilter::INTEGER);

99 $this->assertEquals(0.0, $filter(0.0));

100 $this->assertEquals('0', $filter('0'));

TorqueTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: TorqueTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

25 * Zend_Measure_Torque

26 */

27 require_once 'Zend/Measure/Torque.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_TorqueTest extends PHPUnit_Framework_TestCase

38 {

39 /**

TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

23 if (!defined('PHPUnit_MAIN_METHOD')) {

24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');

28 * Zend_Measure_Temperature

29 */

30 require_once 'Zend/Measure/Temperature.php';

31

32 /**

TorqueTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 389 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: TorqueTest.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

25 * Zend_Measure_Torque

26 */

27 require_once 'Zend/Measure/Torque.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_TorqueTest extends PHPUnit_Framework_TestCase

38 {

39 /**

Event.php (https://gitlab.com/aredhel-bazaar/la-taverne-du-hasard) PHP · 466 lines

1 <?php

2 /**

3 * Created by PhpStorm.

253 * @return Event

254 */

255 public function setType(string $type): Event

256 {

257 $this->type = $type;

Indexer.php (https://bitbucket.org/acidel/buykoala.git) PHP · 309 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

36 * @method Mage_Catalog_Model_Product_Flat_Indexer setAttributeSetId(int $value)

37 * @method string getTypeId()

38 * @method Mage_Catalog_Model_Product_Flat_Indexer setTypeId(string $value)

39 * @method string getSku()

40 * @method Mage_Catalog_Model_Product_Flat_Indexer setSku(string $value)

smarty_internal_data.php (https://gitlab.com/mike_tm555/batiste) PHP · 404 lines

1 <?php

2 /**

3 * Smarty Internal Plugin Data

135 }

136 if (!(is_array($this->tpl_vars[$_key]->value) || $this->tpl_vars[$_key]->value instanceof ArrayAccess)) {

137 settype($this->tpl_vars[$_key]->value, 'array');

138 }

139 if ($merge && is_array($_val)) {

157 }

158 if (!(is_array($this->tpl_vars[$tpl_var]->value) || $this->tpl_vars[$tpl_var]->value instanceof ArrayAccess)) {

159 settype($this->tpl_vars[$tpl_var]->value, 'array');

160 }

161 if ($merge && is_array($value)) {

188 }

189 if (!is_array($this->tpl_vars[$tpl_var]->value)) {

190 settype($this->tpl_vars[$tpl_var]->value, 'array');

191 }

192 if ($merge && is_array($value)) {

Service.php (https://github.com/sendtogeo/Seo-Panel.git) PHP · 287 lines

1 <?php

2 /*

3 * Copyright 2016 Google Inc.

261 return $this->title;

262 }

263 public function setTypes($types)

264 {

265 $this->types = $types;

itkConstNeighborhoodIteratorWithOnlyIndexTest.cxx (https://github.com/chrismullins/ITK.git) C++ · 457 lines

235

236 std::cout << "Adding [1, 1, 1, 1]" << std::endl;

237 OffsetType a_off;

238 a_off.Fill(1);

239 ra_it += a_off;

359 typedef ConstNeighborhoodIteratorType IteratorType;

360 IteratorType iib_it(radius, iib_img, iib_img->GetRequestedRegion());

361 typename IteratorType::OffsetType resultOffset;

362 typename IteratorType::OffsetType internalIndex;

class.LoggerAppenderScalr.php (https://github.com/kennethjiang/Wolke.git) PHP · 319 lines

1 <?php

2

3 require_once(LOG4PHP_DIR . '/LoggerAppender.php');

4 require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php');

103 try

104 {

105 // Reopen new mysql connection (need for php threads)

106 $this->activateOptions();

107

281 }

282

283 function setType($newType)

284 {

285 $this->type = $newType;

TestGraphUnionView.java (https://github.com/chocoteam/choco3.git) Java · 295 lines

45 UndirectedGraph LB1 = GraphFactory.makeStoredUndirectedGraph(m, n, SetType.BITSET, SetType.BITSET);

46 UndirectedGraph UB1 = GraphFactory.makeCompleteStoredUndirectedGraph(m, n, SetType.BITSET, SetType.BITSET, false);

47 UndirectedGraphVar g1 = m.graphVar("g1", LB1, UB1);

48 UndirectedGraph LB2 = GraphFactory.makeStoredUndirectedGraph(m, n, SetType.BITSET, SetType.BITSET);

49 UndirectedGraph UB2 = GraphFactory.makeCompleteStoredUndirectedGraph(m, n, SetType.BITSET, SetType.BITSET, false);

50 UndirectedGraphVar g2 = m.graphVar("g2", LB2, UB2);

51 //

107 DirectedGraph LB2 = GraphFactory.makeStoredDirectedGraph(m, n, SetType.BITSET, SetType.BITSET);

108 DirectedGraph UB2 = GraphFactory.makeCompleteStoredDirectedGraph(m, n, SetType.BITSET, SetType.BITSET, false);

109 DirectedGraphVar g2 = m.digraphVar("g2", LB2, UB2);

110 //

228 Model m = new Model();

229 int n = 5;

230 DirectedGraph LB1 = GraphFactory.makeStoredDirectedGraph(m, n, SetType.BITSET, SetType.BITSET);

231 DirectedGraph UB1 = GraphFactory.makeCompleteStoredDirectedGraph(m, n, SetType.BITSET, SetType.BITSET, false);

MonitoredResourceDescriptor.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 262 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/api/monitored_resource.proto

161 * @return $this

162 */

163 public function setType($var)

164 {

165 GPBUtil::checkString($var, True);

ext_reflection.h (https://gitlab.com/0072016/0072016-PHP.LLC) C Header · 282 lines

1 /*

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 +----------------------------------------------------------------------+

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 +----------------------------------------------------------------------+

16 */

Column.php (https://github.com/kimhemsoe/dbal.git) PHP · 487 lines

1 <?php

2 /*

3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

106 {

107 $this->_setName($columnName);

108 $this->setType($type);

109 $this->setOptions($options);

110 }

132 * @return Column

133 */

134 public function setType(Type $type)

135 {

136 $this->_type = $type;

%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines

1 <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:12

2 compiled from author/submission/layout.tpl */ ?>

3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>

5

65 <td>&nbsp;</td>

66 </tr>

67 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0);

68 if ($this->_foreach['galleys']['total'] > 0):

69 foreach ($_from as $this->_tpl_vars['galley']):

101 </td>

102 </tr>

103 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0);

104 if ($this->_foreach['suppFiles']['total'] > 0):

105 foreach ($_from as $this->_tpl_vars['suppFile']):

MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: MassTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

24 * Zend_Measure_Flow_Mass

25 */

26 require_once 'Zend/Measure/Flow/Mass.php';

27

28 /**

34 * @group Zend_Measure

35 */

36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase

37 {

38 /**

FrequencyTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: FrequencyTest.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

25 * Zend_Measure_Frequency

26 */

27 require_once 'Zend/Measure/Frequency.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase

38 {

39 /**

MassTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 388 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: MassTest.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

24 * Zend_Measure_Flow_Mass

25 */

26 require_once 'Zend/Measure/Flow/Mass.php';

27

28 /**

34 * @group Zend_Measure

35 */

36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase

37 {

38 /**

ClassType.php (https://gitlab.com/paveltizek/shop) PHP · 501 lines

1 <?php

2

3 /**

6 */

7

8 namespace Nette\PhpGenerator;

9

10 use Nette;

23 const TYPE_TRAIT = 'trait';

24

25 /** @var PhpNamespace|NULL */

26 private $namespace;

27

67 {

68 $from = new \ReflectionClass($from instanceof \ReflectionClass ? $from->getName() : $from);

69 if (PHP_VERSION_ID >= 70000 && $from->isAnonymous()) {

70 $class = new static('anonymous');

71 } else {

NullTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 292 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Filter_Int

25 */

26 require_once 'Zend/Filter/Null.php';

27

28 /**

34 * @group Zend_Filter

35 */

36 class Zend_Filter_NullTest extends PHPUnit_Framework_TestCase

37 {

38 /**

76 public function testOnlyBoolean()

77 {

78 $this->_filter->setType(Zend_Filter_Null::BOOLEAN);

79 $this->assertEquals('0', $this->_filter->filter('0'));

80 $this->assertEquals('', $this->_filter->filter(''));

impulsex3.html (https://github.com/nephie/AZL-website.git) HTML · 106 lines

1 <div style="font-weight: bold;margin-left:15px;">impulsex3.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

52 52

53 53

54 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot;</span><span class="hl-comment"></span><span class="hl-code">

55 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;

56 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;

57

58 </span><span class="hl-var">$numpoints</span><span class="hl-code">=</span><span class="hl-number">50</span><span class="hl-code">;

93 </span><span class="hl-comment">//</span><span class="hl-comment"> Create a new impuls type scatter plot</span><span class="hl-comment"></span><span class="hl-code">

94 </span><span class="hl-var">$sp1</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-brackets">)</span><span class="hl-code">;

95 </span><span class="hl-var">$sp1</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_SQUARE</span><span class="hl-brackets">)</span><span class="hl-code">;

96 </span><span class="hl-var">$sp1</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">red</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;

97 </span><span class="hl-var">$sp1</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetImpuls</span><span class="hl-brackets">(</span><span class="hl-brackets">)</span><span class="hl-code">;

Field.php (https://github.com/chromium/chromium.git) PHP · 381 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/protobuf/type.proto

238 * @return $this

239 */

240 public function setTypeUrl($var)

241 {

242 GPBUtil::checkString($var, True);

DataValidation.php (https://github.com/allinside/Yii-CMS.git) PHP · 474 lines

22 * @package PHPExcel_Cell

23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.6, 2011-02-27

33 * @package PHPExcel_Cell

34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Cell_DataValidation

188 *

189 * @param string $value

190 * @return PHPExcel_Cell_DataValidation

191 */

192 public function setFormula1($value = '') {

230 * @return PHPExcel_Cell_DataValidation

231 */

232 public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) {

233 $this->_type = $value;

234 return $this;

PluginTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 314 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

6 namespace Magento\ConfigurableProduct\Test\Unit\Controller\Adminhtml\Product\Builder;

7

8 class PluginTest extends \PHPUnit_Framework_TestCase

9 {

10 /**

14

15 /**

16 * @var \PHPUnit_Framework_MockObject_MockObject

17 */

18 protected $productFactoryMock;

19

20 /**

21 * @var \PHPUnit_Framework_MockObject_MockObject

22 */

23 protected $configurableTypeMock;

SuppFileDAO.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 350 lines

1 <?php

2

3 /**

4 * @file classes/article/SuppFileDAO.inc.php

5 *

6 * Copyright (c) 2003-2009 John Willinsky

14 */

15

16 // $Id: SuppFileDAO.inc.php,v 1.26 2009/05/12 14:34:53 asmecher Exp $

17

18

122 $suppFile->setFileId($row['file_id']);

123 $suppFile->setArticleId($row['article_id']);

124 $suppFile->setType($row['type']);

125 $suppFile->setDateCreated($this->dateFromDB($row['date_created']));

126 $suppFile->setLanguage($row['language']);

windrose_bgimg_ex1.html (https://github.com/nephie/AZL-website.git) HTML · 98 lines

1 <div style="font-weight: bold;margin-left:15px;">windrose_bgimg_ex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

48 48

49 49

50 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot;</span><span class="hl-comment"></span><span class="hl-code">

51 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

52 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_windrose.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

53 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_flags.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

77

78 </span><span class="hl-var">$wp2</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">WindrosePlot</span><span class="hl-brackets">(</span><span class="hl-var">$data2</span><span class="hl-brackets">)</span><span class="hl-code">;

79 </span><span class="hl-var">$wp2</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">WINDROSE_TYPE16</span><span class="hl-brackets">)</span><span class="hl-code">;

80 </span><span class="hl-var">$wp2</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetSize</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.55</span><span class="hl-brackets">)</span><span class="hl-code">;

81 </span><span class="hl-var">$wp2</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetPos</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.5</span><span class="hl-code">,</span><span class="hl-number">0</span><span class="hl-number">.5</span><span class="hl-brackets">)</span><span class="hl-code">;

HeadTitle.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 222 lines

1 <?php

2 /**

3 * Zend Framework

17 * @subpackage Helper

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @version $Id: HeadTitle.php 23775 2011-03-01 17:25:24Z ralph $

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 */

22

23 /** Zend_View_Helper_Placeholder_Container_Standalone */

24 // // // // // // // // require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';

25

26 /**

65 *

66 * @param string $title

67 * @param string $setType

68 * @return Zend_View_Helper_HeadTitle

69 */

OfflineUserDataJob.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 387 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/ads/googleads/v9/resources/offline_user_data_job.proto

218 * @return $this

219 */

220 public function setType($var)

221 {

222 GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V9\Enums\OfflineUserDataJobTypeEnum\OfflineUserDataJobType::class);

MediaContent.php (https://github.com/widmogrod/zf2.git) PHP · 522 lines

1 <?php

2 /**

3 * Zend Framework

315 * @return \Zend\GData\Media\Extension\MediaContent Provides a fluent interface

316 */

317 public function setType($value)

318 {

319 $this->_type = $value;

NumberTest.php (https://github.com/leerbag/zf2.git) PHP · 256 lines

1 <?php

2 /**

3 * Zend Framework

34 * @group Zend_Measure

35 */

36 class NumberTest extends \PHPUnit_Framework_TestCase

37 {

38 /**

145 * expected new type

146 */

147 public function testNumberSetType()

148 {

149 $value = new Measure\Number('-100',Measure\Number::STANDARD,'de');

150 $value->setType(Measure\Number::BINARY);

151 $this->assertEquals(Measure\Number::BINARY, $value->getType(), 'Zend\Measure\Number type expected');

152 $value->setType(Measure\Number::ROMAN);

ccbp_ex2.html (https://github.com/nephie/AZL-website.git) HTML · 72 lines

1 <div style="font-weight: bold;margin-left:15px;">ccbp_ex2.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

35 35

36 36

37 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot; </span><span class="hl-comment"></span><span class="hl-code">

38 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">;

39 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-code">;

40 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">;

41 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">'</span><span class="hl-code">;

42 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">ccbpgraph.class.php</span><span class="hl-quotes">'</span><span class="hl-code">;

52

53 </span><span class="hl-var">$sp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-code">,</span><span class="hl-var">$datax</span><span class="hl-brackets">)</span><span class="hl-code">;

54 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_DIAMOND</span><span class="hl-brackets">)</span><span class="hl-code">;

55 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">white</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

56 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetSize</span><span class="hl-brackets">(</span><span class="hl-number">12</span><span class="hl-brackets">)</span><span class="hl-code">;

ccbp_ex1.html (https://github.com/nephie/AZL-website.git) HTML · 72 lines

1 <div style="font-weight: bold;margin-left:15px;">ccbp_ex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

35 35

36 36

37 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot; </span><span class="hl-comment"></span><span class="hl-code">

38 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">;

39 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-code">;

40 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">;

41 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">'</span><span class="hl-code">;

42 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">ccbpgraph.class.php</span><span class="hl-quotes">'</span><span class="hl-code">;

52

53 </span><span class="hl-var">$sp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-code">,</span><span class="hl-var">$datax</span><span class="hl-brackets">)</span><span class="hl-code">;

54 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_DIAMOND</span><span class="hl-brackets">)</span><span class="hl-code">;

55 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">white</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

56 </span><span class="hl-var">$sp</span><span class="hl-code">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetSize</span><span class="hl-brackets">(</span><span class="hl-number">12</span><span class="hl-brackets">)</span><span class="hl-code">;

polarclockex2.html (https://gitlab.com/GLORIA04/conception-site-web) HTML · 106 lines

1 <div style="font-weight: bold;margin-left:15px;">polarclockex2.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1

2 2

3 3

52 52

53 53

54 </pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot;</span><span class="hl-comment"></span><span class="hl-code">

55 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

56 </span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_polar.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

57

58 </span><span class="hl-comment">//</span><span class="hl-comment">$data = array(22,12,27,40,80,48,120,40,142,27,170,12);</span><span class="hl-comment"></span><span class="hl-code">

73

74 </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetMarginColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">#FFE6C0</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;

75 </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">POLAR_360</span><span class="hl-brackets">)</span><span class="hl-code">;

76 </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetClockwise</span><span class="hl-brackets">(</span><span class="hl-reserved">true</span><span class="hl-brackets">)</span><span class="hl-code">;

77 </span><span class="hl-var">$graph</span><span class="hl-code">-&gt;</span><span class="hl-identifier">Set90AndMargin</span><span class="hl-brackets">(</span><span class="hl-number">40</span><span class="hl-code">,</span><span class="hl-number">40</span><span class="hl-code">,</span><span class="hl-number">50</span><span class="hl-code">,</span><span class="hl-number">40</span><span class="hl-brackets">)</span><span class="hl-code">;

UserQuery.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 354 lines

1 <?php

2

3 /**

24 * @see Zend_Gdata_Gapps_Query

25 */

26 #require_once('Zend/Gdata/Gapps/Query.php');

27

28 /**

107 * @return Zend_Gdata_Photos_UserQuery Provides a fluent interface

108 */

109 public function setType($value)

110 {

111 $this->_type = $value;

116 * Gets the type of data in returned in queries.

117 *

118 * @see setType

119 * @return string type

120 */

InstanceManager.php (https://github.com/MontmereLimited/zf2.git) PHP · 382 lines

1 <?php

2

3 namespace Zend\Di;

305 }

306

307 public function setTypePreference($interfaceOrAbstract, array $preferredImplementations)

308 {

309 $key = ($this->hasAlias($interfaceOrAbstract)) ? 'alias:' . $interfaceOrAbstract : $interfaceOrAbstract;

323 }

324

325 public function unsetTypePreferences($interfaceOrAbstract)

326 {

327 $key = ($this->hasAlias($interfaceOrAbstract)) ? 'alias:' . $interfaceOrAbstract : $interfaceOrAbstract;

TorqueTest.php (https://github.com/MontmereLimited/zf2.git) PHP · 388 lines

1 <?php

2 /**

3 * Zend Framework

306 * expected new type

307 */

308 public function testTorqueSetType()

309 {

310 $value = new Measure\Torque('-100',Measure\Torque::STANDARD,'de');

311 $value->setType(Measure\Torque::NEWTON_CENTIMETER);

312 $this->assertEquals(Measure\Torque::NEWTON_CENTIMETER, $value->getType(), 'Zend\Measure\Torque type expected');

313 }

321 {

322 $value = new Measure\Torque('-100',Measure\Torque::STANDARD,'de');

323 $value->setType(Measure\Torque::POUND_INCH);

324 $this->assertEquals(Measure\Torque::POUND_INCH, $value->getType(), 'Zend\Measure\Torque type expected');

325 }

Rss.php (https://github.com/kiranatama/sagalaya.git) PHP · 333 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

59 $this->_setCategories($this->_dom, $entry);

60 foreach ($this->_extensions as $ext) {

61 $ext->setType($this->getType());

62 $ext->setRootElement($this->getRootElement());

63 $ext->setDOMDocument($this->getDOMDocument(), $entry);

Kinematic.php (https://github.com/jorgenils/zend-framework.git) PHP · 258 lines

1 <?php

2 /**

3 * Zend Framework

24 * Implement needed classes

25 */

26 require_once 'Zend/Measure/Exception.php';

27 require_once 'Zend/Measure/Abstract.php';

28 require_once 'Zend/Locale.php';

29

30

171

172 parent::setValue($value, $type, $locale);

173 parent::setType($type);

174 }

175

CapacitanceTest.php (https://github.com/jorgenils/zend-framework.git) PHP · 398 lines

1 <?php

2

3 /**

25 * Zend_Measure_Capacitance

26 */

27 require_once 'Zend/Measure/Capacitance.php';

28

29 /**

30 * PHPUnit test case

31 */

32 require_once 'PHPUnit/Framework/TestCase.php';

33

34

37 * @subpackage UnitTests

38 */

39 class Zend_Measure_CapacitanceTest extends PHPUnit_Framework_TestCase

40 {

41

VolumeTest.php (https://github.com/jorgenils/zend-framework.git) PHP · 406 lines

1 <?php

2 /**

3 * @package Zend_Measure

9 * Zend_Measure_Volume

10 */

11 require_once 'Zend/Measure/Volume.php';

12

13 /**

14 * PHPUnit test case

15 */

16 require_once 'PHPUnit/Framework/TestCase.php';

17

18

21 * @subpackage UnitTests

22 */

23 class Zend_Measure_VolumeTest extends PHPUnit_Framework_TestCase

24 {

25

ContactDetails.php (https://bitbucket.org/eric_getit/alert.git) PHP · 312 lines

1 <?php

2 /**

3 * Model_Admin_Page_ContactDetail

4 *

5 * PHP Version 5.3

6 *

7 * @category Class

167 $column->setProperty('alertStatus');

168 $column->setCaption('Status');

169 $column->setType(Column::TYPE_ENUM);

170 $column->setSortable(false);

171 $column->setEnumMap(array(

186 $column->setProperty('siteDomain');

187 $column->setCaption('Site');

188 $column->setType(Column::TYPE_STRING);

189 $column->setSortable(false);

190 $columns[] = $column;

EnergyTest.php (https://github.com/Exercise/zf2.git) PHP · 390 lines

1 <?php

2 /**

3 * Zend Framework

35 * @group Zend_Measure

36 */

37 class EnergyTest extends \PHPUnit_Framework_TestCase

38 {

39 /**

307 * expected new type

308 */

309 public function testEnergySetType()

310 {

311 $value = new Measure\Energy('-100',Measure\Energy::STANDARD,'de');

312 $value->setType(Measure\Energy::ERG);

313 $this->assertEquals(Measure\Energy::ERG, $value->getType(), 'Zend\Measure\Energy type expected');

314 }

Type.php (https://github.com/darkyoung/Elastica.git) PHP · 320 lines

1 <?php

2 /**

3 * Elastica type object

103 {

104 foreach ($docs as $doc) {

105 $doc->setType($this->getName());

106 }

107

165 {

166 $mapping = Elastica_Type_Mapping::create($mapping);

167 $mapping->setType($this);

168

169 return $mapping->send();

edit_form.php (https://github.com/nigeldaley/moodle.git) PHP · 112 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

29 }

30

31 require_once($CFG->dirroot . '/lib/formslib.php');

32

33 class cohort_edit_form extends moodleform {

44 $mform->addElement('text', 'name', get_string('name', 'cohort'), 'maxlength="254" size="50"');

45 $mform->addRule('name', get_string('required'), 'required', null, 'client');

46 $mform->setType('name', PARAM_MULTILANG);

47

48 $options = $this->get_category_options($cohort->contextid);

50

51 $mform->addElement('text', 'idnumber', get_string('idnumber', 'cohort'), 'maxlength="254" size="50"');

52 $mform->setType('name', PARAM_RAW);

53

54 $mform->addElement('editor', 'description_editor', get_string('description', 'cohort'), null, $editoroptions);

AbstractServer.php (https://github.com/jtai/zf2.git) PHP · 219 lines

1 <?php

2 /**

3 * Zend Framework

38 /**

39 * @deprecated

40 * @var array List of PHP magic methods (lowercased)

41 */

42 protected static $magic_methods = array(

116 $callback = new Method\Callback();

117 if ($reflection instanceof Reflection\ReflectionMethod) {

118 $callback->setType($reflection->isStatic() ? 'static' : 'instance')

119 ->setClass($reflection->getDeclaringClass()->getName())

120 ->setMethod($reflection->getName());

121 } elseif ($reflection instanceof Reflection\ReflectionFunction) {

122 $callback->setType('function')

123 ->setFunction($reflection->getName());

124 }

WeightTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 387 lines

1 <?php

2 /**

3 * Zend Framework

24 * Zend_Measure_Cooking_Weight

25 */

26 require_once 'Zend/Measure/Cooking/Weight.php';

27

28 /**

34 * @group Zend_Measure

35 */

36 class Zend_Measure_Cooking_WeightTest extends PHPUnit_Framework_TestCase

37 {

38 /**

306 * expected new type

307 */

308 public function testCooking_WeightSetType()

309 {

310 $value = new Zend_Measure_Cooking_Weight('-100',Zend_Measure_Cooking_Weight::STANDARD,'de');

Part.php (https://github.com/ggunlugu/ornekler.git) PHP · 436 lines

1 <?php

2 /**

3 *

10 * @package Solar_Mail

11 *

12 * @author Paul M. Jones <pmjones@solarphp.com>

13 *

14 * @license http://opensource.org/licenses/bsd-license.php BSD

15 *

16 * @version $Id: Part.php 4416 2010-02-23 19:52:43Z pmjones $

17 *

18 */

137 *

138 */

139 public function setType($type)

140 {

141 $this->_type = $type;

LightnessTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 365 lines

1 <?php

2 /**

3 * Zend Framework

25 * Zend_Measure_Lightness

26 */

27 require_once 'Zend/Measure/Lightness.php';

28

29 /**

35 * @group Zend_Measure

36 */

37 class Zend_Measure_LightnessTest extends PHPUnit_Framework_TestCase

38 {

39 /**

307 * expected new type

308 */

309 public function testLightnessSetType()

310 {

311 $value = new Zend_Measure_Lightness('-100',Zend_Measure_Lightness::STANDARD,'de');

edit_form.php (https://github.com/mnoorenberghe/moodle.git) PHP · 141 lines

1 <?php

2 if (!defined('MOODLE_INTERNAL')) {

3 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page

4 }

5

6 require_once ($CFG->dirroot.'/lib/formslib.php');

7

8 class mod_glossary_entry_form extends moodleform {

28

29 $mform->addElement('text', 'concept', get_string('concept', 'glossary'));

30 $mform->setType('concept', PARAM_TEXT);

31 $mform->addRule('concept', null, 'required', null, 'client');

32

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');

36

__CG__TunisiamalltunisiamallBundleEntityCorrespondanceProduit.php (https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB) PHP · 433 lines

1 <?php

2

3 namespace Proxies\__CG__\Tunisiamall\tunisiamallBundle\Entity;

258 * {@inheritDoc}

259 */

260 public function setType($type)

261 {

262

263 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', array($type));

264

265 return parent::setType($type);

helper.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 315 lines

1 <?php

2 /**

3 * @package Joomla.Platform

209

210 // Try to find the class file.

211 $type = strtolower($type) . '.php';

212 foreach ($paths as $path)

213 {

300

301 // Force the new path(s) to an array.

302 settype($new, 'array');

303

304 // Add the new paths to the stack if not already there.

Isbn.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 278 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Validate_Abstract

24 */

25 require_once 'Zend/Validate/Abstract.php';

26

27 /**

79 * @see Zend_Validate_Exception

80 */

81 require_once 'Zend/Validate/Exception.php';

82 throw new Zend_Validate_Exception('Invalid options provided.');

83 }

85 // set type

86 if (array_key_exists('type', $options)) {

87 $this->setType($options['type']);

88 }

89

%%87^87A^87A1ECC2%%statistics.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 121 lines

1 <?php /* Smarty version 2.6.18, created on 2007-12-11 22:59:31

2 compiled from about/statistics.tpl */ ?>

3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'about/statistics.tpl', 20, false),array('function', 'url', 'about/statistics.tpl', 22, false),array('function', 'math', 'about/statistics.tpl', 59, false),array('modifier', 'default', 'about/statistics.tpl', 72, false),)), $this); ?>

5 <?php $this->assign('pageTitle', "about.statistics"); ?>

6 <?php $_smarty_tpl_vars = $this->_tpl_vars;

7 $this->_smarty_include(array('smarty_include_tpl_file' => "common/header.tpl", 'smarty_include_vars' => array()));

8 $this->_tpl_vars = $_smarty_tpl_vars;

14 <table width="100%" class="data">

15 <tr valign="top">

16 <td width="25%" class="label"><h4><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.year"), $this);?>

17 </h4></td>

18 <td width="75%" colspan="2" class="value">

102 </td>

103 </tr>

104 <?php $_from = $this->_tpl_vars['allSubscriptionStatistics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):

105 foreach ($_from as $this->_tpl_vars['type_id'] => $this->_tpl_vars['stats']):

106 ?>

%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines

1 <?php /* Smarty version 2.6.9, created on 2005-07-08 06:01:57

2 compiled from author/submission/layout.tpl */ ?>

3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');

4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>

5

65 <td>&nbsp;</td>

66 </tr>

67 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0);

68 if ($this->_foreach['galleys']['total'] > 0):

69 foreach ($_from as $this->_tpl_vars['galley']):

101 </td>

102 </tr>

103 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0);

104 if ($this->_foreach['suppFiles']['total'] > 0):

105 foreach ($_from as $this->_tpl_vars['suppFile']):

Isbn.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 278 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Validate_Abstract

24 */

25 #require_once 'Zend/Validate/Abstract.php';

26

27 /**

79 * @see Zend_Validate_Exception

80 */

81 #require_once 'Zend/Validate/Exception.php';

82 throw new Zend_Validate_Exception('Invalid options provided.');

83 }

85 // set type

86 if (array_key_exists('type', $options)) {

87 $this->setType($options['type']);

88 }

89

Absence.php (https://github.com/westernmagic/schades.git) PHP · 327 lines

1 <?php

2 /*

3 This file is part of schades.

17 */

18 /**

19 * @file Absence.php

20 *

21 * @author Michal Sudwoj <mswoj61@gmail.com>

26 */

27

28 require_once( 'include.php' ) ;

29

30 /**

91 $this->day = $this->getDate()->getDay() ;

92 } else {

93 throw new ErrorException( 'Absence data error' , 802 , 1 , 'Absence.php' , 39 ) ;

94 }

95

Column.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 423 lines

1 <?php

2 /*

3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

26 * Object representation of a database column

27 *

28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL

29 * @link www.doctrine-project.org

30 * @since 2.0

116 {

117 $this->_setName($columnName);

118 $this->setType($type);

119 $this->setOptions($options);

120 }

139 * @return Column

140 */

141 public function setType(Type $type)

142 {

143 $this->_type = $type;

assetPeer.php (https://github.com/richhl/kalturaCE.git) PHP · 277 lines

1 <?php

2

3 /**

13 // cache classes by their type

14 protected static $class_types_cache = array(

15 assetType::FLAVOR => flavorAssetPeer::OM_CLASS,

16 assetType::THUMBNAIL => thumbAssetPeer::OM_CLASS,

78 if($row)

79 {

80 $assetType = $row[$colnum + 21]; // type column

81 if(isset(self::$class_types_cache[$assetType]))

82 return self::$class_types_cache[$assetType];

83

84 $extendedCls = KalturaPluginManager::getObjectClass(parent::OM_CLASS, $assetType);

class-lp-question-fill-in-blank.php (https://gitlab.com/gregtyka/lfmawordpress) PHP · 252 lines

1 <?php

2 if ( class_exists( 'LP_Abstract_Question' ) ) {

3 /**

53 //

54 if( $question_id == $this->id) {

55 settype( $checked, 'array' );

56 $content = reset( $checked );

57 $content = stripcslashes( current( $content ) );

75

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] );

82 }

Table.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 542 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

512 * @param string

513 */

514 public function setType($type)

515 {

516 $this->type = $type;

ConverterForRSS091Userland.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 153 lines

87 if (desc != null) {

88 SyndContent descContent = new SyndContentImpl();

89 descContent.setType(desc.getType());

90 descContent.setValue(desc.getValue());

91 syndEntry.setDescription(descContent);

94 if (cont != null) {

95 SyndContent content = new SyndContentImpl();

96 content.setType(cont.getType());

97 content.setValue(cont.getValue());

98 List syndContents = new ArrayList();

137 Content cont = new Content();

138 cont.setValue(syndContent.getValue());

139 cont.setType(syndContent.getType());

140 item.setContent(cont);

141 }

PwImageWatermark.php (https://gitlab.com/wuhang2003/phpwind) PHP · 244 lines

1 <?php

2 defined('WEKIT_VERSION') || exit('Forbidden');

3

7 * the last known user to change this file in the repository <$LastChangedBy: jieyin $>

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

11 */

66 * 设置缩略方式 <1.图片水印 1.文字水印>

67 */

68 public function setType($type) {

69 $this->type = $type;

70 return $this;

suppression.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 150 lines

3 include($niveauPage . "inc_verif.php"); // Verification de l'ID de l'inscrit

4 include($niveauPage . "inc_fonctions.php");

5

6 // Recuperer les variables

12

13 // Connection

14 include($niveauPage . "inc_connection.php");

15 mysql_connect($hote,$utilisateurBase,$mdpBase);

16 mysql_select_db($base);

92 ?>

93 <tr>

94 <td class="edf8"><a href="<?php echo "$resultat->UrlSite" ?>" class="edf8" target="_blank"><?php echo "$resultat->NomSite"; ?></a>&nbsp;</td>

95 <td class="edf5"><?php echo "$resultat->DescriptionSite"; ?>&nbsp;</td>

96 <td align="center" class="edf5"><?php formateDate($date); ?></td>

97 <td align="center"><a href="suppression.php?idSupprime=<?php echo "$resultat->IdSite"; ?>" class="edf7">Supprimer</a></td>

98 </tr>

99 <tr>

CapacitanceTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 369 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: CapacitanceTest.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

24 * Zend_Measure_Capacitance

25 */

26 require_once 'Zend/Measure/Capacitance.php';

27

28 /**

29 * PHPUnit test case

30 */

31 require_once 'PHPUnit/Framework/TestCase.php';

32

33 /**

Trigger.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 457 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

341 return $this->triggerId;

342 }

343 public function setType($type)

344 {

345 $this->type = $type;

Feed.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 282 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Date

24 */

25 require_once 'Zend/Date.php';

26

27 /**

28 * @see Zend_Date

29 */

30 require_once 'Zend/Uri.php';

31

32 /**

33 * @see Zend_Feed_Writer

34 */

35 require_once 'Zend/Feed/Writer.php';

36

37 /**

GetInsurancePrices200Ok.php (https://gitlab.com/mglinski/php-esi-lib) PHP · 276 lines

1 <?php

2 /**

3 * GetInsurancePrices200Ok

4 *

5 * PHP version 5

6 *

7 * @category Class

97 protected static $setters = array(

98 'levels' => 'setLevels',

99 'type_id' => 'setTypeId'

100 );

101

209 * @return $this

210 */

211 public function setTypeId($type_id)

212 {

213 $this->container['type_id'] = $type_id;

Atom.php (https://github.com/zucchi/zf2.git) PHP · 375 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

49 $extension->setEntryElement($entry);

50 $extension->setEntryKey($entryKey);

51 $extension->setType($type);

52 $this->extensions[$name] = $extension;

53 }

addressbook.php (https://gitlab.com/billyprice1/app-download.org) PHP · 456 lines

1 <?php

2 // DO NOT EDIT! Generated by Protobuf-PHP protoc plugin @package_version@

125 * @return \tests\Person\PhoneNumber

126 */

127 public function setType( $value){

128 return $this->_set(2, $value);

129 }

XapiActivityDefinition.php (https://github.com/RusticiSoftware/SCORMCloud_WordPressPlugin.git) PHP · 632 lines

1 <?php

2 /**

3 * XapiActivityDefinition

4 *

5 * PHP version 7

6 *

7 * @category Class

142 'name' => 'setName',

143 'description' => 'setDescription',

144 'type' => 'setType',

145 'more_info' => 'setMoreInfo',

146 'interaction_type' => 'setInteractionType',

337 * @return $this

338 */

339 public function setType($type)

340 {

341 $this->container['type'] = $type;

checkbox.php (https://github.com/StudiumDevel/moodle.git) PHP · 267 lines

1 <?php

2 /* vim: set expandtab tabstop=4 shiftwidth=4: */

3 // +----------------------------------------------------------------------+

4 // | PHP version 4.0 |

5 // +----------------------------------------------------------------------+

6 // | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |

7 // +----------------------------------------------------------------------+

8 // | This source file is subject to version 2.0 of the PHP license, |

9 // | that is bundled with this package in the file LICENSE, and is |

10 // | available at through the world-wide-web at |

11 // | http://www.php.net/license/2_02.txt. |

12 // | If you did not receive a copy of the PHP license and are unable to |

JobConfigurationQuery.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 283 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

23 protected $clusteringDataType = '';

24 public $createDisposition;

25 protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';

26 protected $defaultDatasetDataType = '';

27 protected $destinationEncryptionConfigurationType = 'Google_Service_Bigquery_EncryptionConfiguration';

NumberTextBox.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 173 lines

1 <?php

2 /**

3 * Zend Framework

21

22 /** Zend_Dojo_Form_Element_ValidationTextBox */

23 require_once 'Zend/Dojo/Form/Element/ValidationTextBox.php';

24

25 /**

31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 * @version $Id: NumberTextBox.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $

34 */

35 class Zend_Dojo_Form_Element_NumberTextBox extends Zend_Dojo_Form_Element_ValidationTextBox

103 * @return Zend_Dojo_Form_Element_NumberTextBox

104 */

105 public function setType($type)

106 {

107 $type = strtolower($type);

Multiline.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 152 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

29 ) {

30 parent::__construct($factoryElement, $factoryCollection, $escaper, $data);

31 $this->setType('text');

32 $this->setLineCount(2);

33 }

104 /**

105 * @return mixed

106 * @SuppressWarnings(PHPMD.NPathComplexity)

107 */

108 public function getDefaultHtml()

Subselect.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 125 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_SalesRule

23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

32 {

33 parent::__construct();

34 $this->setType('salesrule/rule_condition_product_subselect')

35 ->setValue(null);

36 }

FormFactory.php (https://github.com/nguyennamtien/TaskBoxx.git) PHP · 399 lines

1 <?php

2

3 /*

269 }

270

271 $builder->setTypes($types);

272

273 foreach ($types as $type) {

Deleted.php (https://github.com/leerbag/zf2.git) PHP · 205 lines

1 <?php

2 /**

3 * Zend Framework

96 * @param string $type

97 */

98 public function setType($type)

99 {

100 $this->_type = $type;

Subselect.php (https://bitbucket.org/sevenly/magento-ce.git) PHP · 125 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_SalesRule

23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

32 {

33 parent::__construct();

34 $this->setType('salesrule/rule_condition_product_subselect')

35 ->setValue(null);

36 }

rules-ng-ng.xsd (https://github.com/lucaotta/envytools.git) XML Schema · 388 lines

31 <element name="reg16" type="rng:registerType" />

32 <element name="reg8" type="rng:registerType" />

33 <element name="bitset" type="rng:bitsetType" />

34 <element name="bitfield" type="rng:bitfieldType" />

35 <element name="enum" type="rng:enumType" />

157 </complexType>

158

159 <complexType name="bitsetType">

160 <annotation>

161 <documentation>bitsetType</documentation>

Callback.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 205 lines

1 <?php

2 /**

3 * Zend Framework

121 {

122 $this->_function = (string) $function;

123 $this->setType('function');

124 return $this;

125 }

164 * @throws Zend_Server_Exception

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__);

171 }

feedback_item_form_class.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 110 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.

16

17 require_once($CFG->libdir.'/formslib.php');

18

19 define('FEEDBACK_ITEM_NAME_TEXTBOX_SIZE', 80);

52 } else {

53 $mform->addElement('hidden', 'dependitem', 0);

54 $mform->setType('dependitem', PARAM_INT);

55 $mform->addElement('hidden', 'dependvalue', '');

56 $mform->setType('dependitem', PARAM_ALPHA);

64

65 $mform->addElement('hidden', 'cmid', $common['cmid']);

66 $mform->setType('cmid', PARAM_INT);

67

68 $mform->addElement('hidden', 'id', $common['id']);

Feed.php (https://github.com/luisbraschi/ursp.git) PHP · 281 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Feed.php 20519 2010-01-22 14:06:24Z padraic $

20 */

21

23 * @see Zend_Date

24 */

25 #require_once 'Zend/Date.php';

26

27 /**

28 * @see Zend_Date

29 */

30 #require_once 'Zend/Uri.php';

31

32 /**

helper.php (https://github.com/Hackwar/joomla-platform.git) PHP · 319 lines

1 <?php

2 /**

3 * @package Joomla.Platform

211

212 // Try to find the class file.

213 $type = strtolower($type) . '.php';

214

215 foreach ($paths as $path)

304

305 // Force the new path(s) to an array.

306 settype($new, 'array');

307

308 // Add the new paths to the stack if not already there.

Abstract.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 436 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $

20 */

21

23 * @see Zend_Locale

24 */

25 require_once 'Zend/Locale.php';

26

27 /**

28 * @see Zend_Locale_Math

29 */

30 require_once 'Zend/Locale/Math.php';

31

32 /**

NameNode.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 65 lines ✨ Summary

This Java class represents a named object in a programming context, such as a package name or static method. It has two constructors: one with no arguments and another that takes a name and type. The getFullyQualifiedTypeName method returns the fully qualified type name of the node, and the toString method returns this value.

45 public NameNode(String name, Type type) {

46 setName(name);

47 setType(type);

48 }

49

GeneralOptions.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 259 lines ✨ Summary

This Java class, GeneralOptions, represents general options for a JBrowse application. It stores and manages various settings, such as displaying the status bar, automatic parsing, sorting, filter options, display options, and custom style settings. The class provides methods to load and save these options from/to a PropertyAccessor object.

145 displayOpt.setStaticUlined(

146 props.getBooleanProperty("sidekick.java.custStaAsUlined"));

147 displayOpt.setTypeIsSuffixed(

148 props.getBooleanProperty("sidekick.java.custTypeIsSuffixed"));

149 }

MyDoggyWindowManager.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 605 lines ✨ Summary

This Java code implements a docking area manager for a graphical user interface (GUI). It manages tool windows, which are floating panels that can be docked to specific areas of the GUI. The code provides methods for showing and hiding tool windows, managing their visibility and activation, and updating their properties based on user preferences.

168 if (tw == null)

169 return null;

170 tw.setType(ToolWindowType.FLOATING);

171 tw.setActive(true);

172 return (JComponent) tw.getComponent();

427 public void actionPerformed(ActionEvent e) {

428 toolWindow.getRepresentativeAnchorDescriptor().setVisible(false);

429 toolWindow.setType(ToolWindowType.FLOATING);

430 }

431 }

442 tw = createToolWindow(name);

443 if (DockableWindowManager.FLOATING.equals(getDockablePosition(name)))

444 tw.setType(ToolWindowType.FLOATING_FREE);

445 else

446 tw.setType(ToolWindowType.DOCKED);