100+ results for 'php intval'
Not the results you expected?
ValidatorBuilder.php (https://bitbucket.org/hill2steve/mobileroom.git) PHP · 296 lines
1 <?php
3 /*
67 /**
68 * @var ConstraintValidatorFactoryInterface
69 */
70 private $validatorFactory;
242 * {@inheritdoc}
243 */
244 public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory)
245 {
246 $this->validatorFactory = $validatorFactory;
290 }
292 $validatorFactory = $this->validatorFactory ?: new ConstraintValidatorFactory();
294 return new Validator($metadataFactory, $validatorFactory, $this->initializers);
monitoring_result.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 394 lines
COLLADAMaxGeometryImporter.h (https://github.com/AsherBond/MondocosmOS.git) C Header · 192 lines
13 Licensed under the MIT Open Source License,
14 for details please see LICENSE file or the website
15 http://www.opensource.org/licenses/mit-license.php
16 */
175 void setPolygonMeshUVVertices(const NumberArray& uvArray, MNMap* meshMap, size_t stride, size_t startPosition, size_t vertsCount);
177 void setPolygonMeshUVVerticesPerPrimitiveAndChannel( const COLLADAFW::MeshPrimitive* meshPrimitive, MNMap* meshMap, const COLLADAFW::UIntValuesArray& uvIndices, unsigned int initialIndex, size_t& currentFaceIndex);
179 void fillPolygonMeshMapPerSet( const COLLADAFW::MeshVertexData& uvCoordinates, const COLLADAFW::MeshVertexData::InputInfosArray& inputInfos, size_t sourceIndex, MNMap* meshMap);
181 void setTriangleMeshUVVerticesPerPrimitiveAndChannel( const COLLADAFW::MeshPrimitive* meshPrimitive, MeshMap& meshMap, const COLLADAFW::UIntValuesArray& uvIndices, unsigned int initialIndex, size_t& currentFaceIndex);
183 void fillTriangleMeshMapPerSet( const COLLADAFW::MeshVertexData& uvCoordinates, const COLLADAFW::MeshVertexData::InputInfosArray& inputInfos, size_t sourceIndex, MeshMap& meshMap);
ChosenShippingMethodEligibilityValidatorSpec.php (https://github.com/Sylius/Sylius.git) PHP · 212 lines
1 <?php
3 /*
14 namespace spec\Sylius\Bundle\ApiBundle\Validator\Constraints;
16 use PhpSpec\ObjectBehavior;
17 use Prophecy\Argument;
18 use Sylius\Bundle\ApiBundle\Command\Checkout\ChooseShippingMethod;
27 use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface;
28 use Symfony\Component\Validator\Constraint;
29 use Symfony\Component\Validator\ConstraintValidatorInterface;
30 use Symfony\Component\Validator\Context\ExecutionContextInterface;
45 function it_is_a_constraint_validator(): void
46 {
47 $this->shouldImplement(ConstraintValidatorInterface::class);
48 }
ckfinder_php5.php (https://bitbucket.org/bouldertech/myngl.git) PHP · 231 lines
181 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
182 $editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
183 $editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
184 $editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
185 }
226 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
227 $editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
228 $editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
229 $editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
230 }
231 }
admin.php (https://bitbucket.org/vosdbk/wechat_robot_plus.git) PHP · 873 lines
1 <?php
3 /**
32 public function user_index($page = 1) {
33 //取整并判断页码
34 $page = intval($page);
35 if ($page < 1) {
36 $page = 1;
156 public function blacklists_index($page = 1) {
157 //取整并判断页码
158 $page = intval($page);
159 if ($page < 1) {
160 $page = 1;
212 public function msgtype_index($page = 1) {
213 //取整并判断页码
214 $page = intval($page);
215 if ($page < 1) {
216 $page = 1;
CommentController.class.php (https://gitlab.com/xuebutayan/yshop) PHP · 235 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | yershop [ WE CAN DO IT JUST THINK IT ]
18 }
20 $listid=I('get.id',0,'intval');
21 $shoplist=M('shoplist');
22 $list= $shoplist->find($listid);
98 // 商品描述评价
99 $goodscore = intval($comment['goodscore']);
100 switch ($goodscore) {
101 case 1:
142 // 服务态度评价
143 $servicescore = intval($comment['servicescore']);
144 switch ($servicescore) {
145 case 1:
discount.php (https://gitlab.com/alexprowars/bitrix) PHP · 233 lines
1 <?
3 require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/sale/general/discount.php');
5 class CSaleDiscount extends CAllSaleDiscount
194 if ($boolNavStartParams && array_key_exists('nTopCount', $arNavStartParams))
195 {
196 $intTopCount = intval($arNavStartParams["nTopCount"]);
197 }
198 if ($boolNavStartParams && 0 >= $intTopCount)
MediaTransformOutput.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 269 lines
component.php (https://gitlab.com/alexprowars/bitrix) PHP · 296 lines
control_factory.php (https://gitlab.com/slondon/fortissimo) PHP · 231 lines
1 <?php
2 ///////////////////////////////////////////////////////////////////////////
4 require_once 'lib/action_factory.php';
6 class ControlFactory
156 (
157 GuiTextFieldDef::initial_value => strval($initial_value),
158 GuiTextFieldDef::numeric => intval($numeric),
159 GuiTextFieldDef::password => intval($password),
160 GuiTextFieldDef::has_osk => intval($has_osk),
161 GuiTextFieldDef::always_active => intval($always_active),
FunctionNode.php (https://bitbucket.org/prauscher/att.git) PHP · 288 lines
1 <?php
3 /*
264 if (false === strpos($s, 'n')) {
265 // Just a b
266 return array(0, intval((string) $s));
267 }
271 $a = 1;
272 } elseif ('-' == $a || '+' == $a) {
273 $a = intval($a.'1');
274 } else {
275 $a = intval($a);
279 $b = 0;
280 } elseif ('-' == $b || '+' == $b) {
281 $b = intval($b.'1');
282 } else {
283 $b = intval($b);
posts.php (https://gitlab.com/Ltaimao/wecenter) PHP · 514 lines
38 case 'article':
39 $result = $this->fetch_row('article', 'id = ' . intval($post_id));
41 break;
43 case 'project':
44 $result = $this->fetch_row('project', 'id = ' . intval($post_id));
46 break;
114 if (sizeof($posts_index) > 1)
115 {
116 $this->delete('posts_index', "post_id = " . intval($post_id) . " AND post_type = '" . $this->quote($post_type) . "' AND id != " . intval($post_index['id']));
117 }
118 }
FunctionNode.php (https://github.com/societies/SOCIETIES-Platform.git) PHP · 290 lines
admin.functions.php (https://gitlab.com/hocviettut/to-giac-tp) PHP · 255 lines
1 <?php
3 /**
37 while( $row = $result->fetch() )
38 {
39 $id = intval( $row['id'] );
41 if( defined( 'NV_IS_SPADMIN' ) )
52 if( preg_match( '/^([0-9]+)\/([0-1]{1})\/([0-1]{1})\/([0-1]{1})$/i', $a ) )
53 {
54 $admins2 = array_map( 'intval', explode( '/', $a ) );
56 if( $admins2[0] == $admin_info['admin_id'] )
82 {
83 ++$weight;
84 $sql = 'UPDATE ' . NV_PREFIXLANG . '_' . $module_data . '_report_type SET weight=' . $weight . ' WHERE rid=' . intval( $row['rid'] );
85 $db->query( $sql );
86 }
Teams.php (https://github.com/omegaup/omegaup.git) PHP · 268 lines
1 <?php
2 /** ************************************************************************ *
3 * !ATENCION! *
43 is_null($Teams->team_group_id) ?
44 null :
45 intval($Teams->team_group_id)
46 ),
47 (
48 is_null($Teams->identity_id) ?
49 null :
50 intval($Teams->identity_id)
51 ),
52 intval($Teams->team_id),
203 (($pagina - 1) * $filasPorPagina) .
204 ', ' .
205 intval($filasPorPagina)
206 );
207 }
Keranjang.php (https://gitlab.com/alfiantaufani/koperasi-tugas-kuliah) PHP · 230 lines
1 <?php
2 header('Access-Control-Allow-Origin: *');
3 header("Access-Control-Allow-Methods: GET, OPTIONS");
88 $create = $this->db->insert('tbl_keranjang', $insert_keranjang);
89 if ($create) {
90 require APPPATH . '/views/vendor/autoload.php';
92 $pusher = new Pusher\Pusher(
140 $create = $this->db->insert('tbl_keranjang', $insert_keranjang);
141 if ($create) {
142 require APPPATH . '/views/vendor/autoload.php';
144 $pusher = new Pusher\Pusher(
184 public function show()
185 {
186 $draw = intval($this->input->get("draw"));
187 $start = intval($this->input->get("start"));
events.php (https://github.com/livinglab/openlab.git) PHP · 608 lines
1 <?php
2 /**
3 * Events Collection
110 public function shift( $n ) {
111 if ( ! empty( $this->events ) ) {
112 $offset = intval( $n );
113 $length = count( $this->events );
114 $this->set_events( array_slice( $this->events, $offset, $length, true ) );
597 $timestamps = array_keys( $this->events );
598 $lower_bound = array_filter( $timestamps, function( $ts ) use( $from ) {
599 return intval( $ts ) > intval( $from );
600 } );
601 $higher_bound = array_filter( $lower_bound, function( $ts ) use( $to ) {
602 return intval( $ts ) > intval( $to );
603 } );
604 $filtered = array_combine( $higher_bound, $higher_bound );
Creditmemo.php (https://github.com/guiohm/magento-french.git) PHP · 221 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_Bundle
23 * @copyright Copyright (c) 2009 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 */
194 if ($option['value']) {
195 $text = array();
196 $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
197 $values = explode(', ', $_printValue);
Creditmemo.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 221 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Sales
23 * @copyright Copyright (c) 2009 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 */
194 if ($option['value']) {
195 $text = array();
196 $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
197 $values = explode(', ', $_printValue);
Product.php (https://github.com/inhale/core.git) PHP · 261 lines
1 <?php
2 // vim: set ts=4 sw=4 sts=4 et:
10 * that is bundled with this package in the file LICENSE.txt.
11 * It is also available through the world-wide-web at this URL:
12 * http://opensource.org/licenses/osl-3.0.php
13 * If you did not receive a copy of the license and are unable to
14 * obtain it through the world-wide-web, please send an email
20 * @author Creative Development LLC <info@cdev.ru>
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23 * @version GIT: $Id: 576eff983e566544074b656fc9948314d1145c76 $
24 * @link http://www.litecommerce.com/
128 if ($optionGroup->getType() == $optionGroup::GROUP_TYPE) {
129 $option = \XLite\Core\Database::getRepo('\XLite\Module\CDev\ProductOptions\Model\Option')
130 ->find(intval($data));
131 if (
132 !$option
add.php (https://github.com/jingcleovil/Flux-Mod-Full.git) PHP · 258 lines
1 <?php
2 if (!defined('FLUX_ROOT')) exit;
4 require_once 'Flux/Config.php';
6 $title = 'Add Item';
64 // Refineable should be 1 or 0 if it's not null.
65 if (!is_null($refineable)) {
66 $refineable = intval((bool)$refineable);
67 }
141 }
142 if (empty($errorMessage)) {
143 require_once 'Flux/TemporaryTable.php';
145 $tableName = "{$server->charMapDatabase}.items";
Product.php (https://github.com/shryans/core.git) PHP · 261 lines
1 <?php
2 // vim: set ts=4 sw=4 sts=4 et:
10 * that is bundled with this package in the file LICENSE.txt.
11 * It is also available through the world-wide-web at this URL:
12 * http://opensource.org/licenses/osl-3.0.php
13 * If you did not receive a copy of the license and are unable to
14 * obtain it through the world-wide-web, please send an email
20 * @author Creative Development LLC <info@cdev.ru>
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23 * @version GIT: $Id: 30ef939a0a873c0301a9f7522de99d97733ad1f5 $
24 * @link http://www.litecommerce.com/
128 if ($optionGroup->getType() == $optionGroup::GROUP_TYPE) {
129 $option = \XLite\Core\Database::getRepo('\XLite\Module\CDev\ProductOptions\Model\Option')
130 ->find(intval($data));
131 if (
132 !$option
product.php (https://gitlab.com/nvtdn2006/azora) PHP · 413 lines
google.php (https://gitlab.com/Ltaimao/wecenter) PHP · 338 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------------
142 }
144 $this->expires_time = time() + intval($result['expires_in']);
146 return true;
244 $this->update('users_google', array(
245 'access_token' => htmlspecialchars($result['access_token']),
246 'expires_time' => time() + intval($result['expires_in'])
247 ), 'id = ' . $user_info['id']);
259 return $this->insert('users_google', array(
260 'id' => htmlspecialchars($google_user['id']),
261 'uid' => intval($uid),
262 'name' => htmlspecialchars($google_user['name']),
263 'locale' => htmlspecialchars($google_user['locale']),
default-constants.php (https://gitlab.com/Blueprint-Marketing/WordPress-1) PHP · 316 lines
1 <?php
2 /**
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
42 if ( function_exists( 'memory_get_usage' ) ) {
43 $current_limit = @ini_get( 'memory_limit' );
44 $current_limit_int = intval( $current_limit );
45 if ( false !== strpos( $current_limit, 'G' ) )
46 $current_limit_int *= 1024;
47 $wp_limit_int = intval( WP_MEMORY_LIMIT );
48 if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) )
49 $wp_limit_int *= 1024;
56 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
58 // Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
59 if ( !defined('WP_DEBUG') )
60 define( 'WP_DEBUG', false );
component.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 314 lines
11 CUtil::InitJSCore(array('core', 'ajax'));
12 $arParams["AJAX_CALL"] = $arParams["AJAX_CALL"] == "Y" ? "Y" : "N";
13 $arParams["COUNTRY"] = intval($arParams["COUNTRY"]);
14 $arParams["REGION"] = intval($arParams["REGION"]);
15 $arParams["LOCATION_VALUE"] = intval($arParams["LOCATION_VALUE"]);
16 $arParams["ALLOW_EMPTY_CITY"] = $arParams["ALLOW_EMPTY_CITY"] == "N" ? "N" : "Y";
17 $arParams["ZIPCODE"] = IntVal($arParams["ZIPCODE"]);
31 if (is_array($arZip) && count($arZip) > 1)
32 {
33 $arParams["LOCATION_VALUE"] = IntVal($arZip["ID"]);
34 }
35 }
194 $arRegionFilter = array("LID" => LANGUAGE_ID, "!REGION_ID" => "NULL", "!REGION_ID" => "0");
195 if ($arParams["COUNTRY"] > 0)
196 $arRegionFilter["COUNTRY_ID"] = IntVal($arParams["COUNTRY"]);
198 if ($arResult["EMPTY_CITY"] == "Y")
element.php (https://gitlab.com/alexprowars/bitrix) PHP · 216 lines
1 <?php
3 $GLOBALS["UF_GALLERY_SIZE"] = array();
114 {
115 $GLOBALS["PHOTOGALLERY_VARS"]["arGalleries"][$res["ID"]] = $res;
116 $iGalleryID = $GLOBALS["PHOTOGALLERY_VARS"]["arGalleriesID"][$arSection["ID"]] = intval($res["ID"]);
117 }
118 }
119 $arGallery = array();
120 $iGalleryID = intval($iGalleryID);
121 if ($iGalleryID > 0)
122 {
latest.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 257 lines
1 <?php
3 /**
73 $result = $wpdb->query( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table ) );
75 if ( intval( $result, 10 ) !== 1 ) {
76 $missing[] = $table;
77 }
94 foreach ( $tables as $table ) {
95 // These are known queries without user input
96 // phpcs:ignore
97 $row = $wpdb->get_row( 'SHOW CREATE TABLE ' . $table, ARRAY_N );
152 // Default groups
153 if ( intval( $existing_groups, 10 ) === 0 ) {
154 $wpdb->insert( $wpdb->prefix . 'redirection_groups', $defaults[0] );
155 $wpdb->insert( $wpdb->prefix . 'redirection_groups', $defaults[1] );
aut.php (https://gitlab.com/elasa/vb-elasa.ir) PHP · 196 lines
1 <?php
2 class LiveWall_ContentType_aut extends LiveWall_ContentType_Core
3 {
47 favourite.userid IS NOT NULL AS isfavourite
48 :avatarQuery
49 FROM (SELECT entryid FROM $dbtech_thanks_entry ' . ($lastId != -1 ? 'WHERE entryid > ' . intval($lastId) : '') . ' ORDER BY entryid DESC LIMIT ' . $this->registry->options['dbtech_livewall_maxentries'] . ') AS tmp
50 LEFT JOIN $dbtech_thanks_entry AS entry ON(mention.entryid = tmp.entryid)
51 LEFT JOIN $user AS user ON(user.userid = mention.userid)
174 ':memberGroupIdsSetRecipient' => implode(', recipient.membergroupids) AND NOT FIND_IN_SET(', $excludedGroups),
175 ':memberGroupIds' => LIVEWALL::$db->queryList($excludedGroups),
176 ':onlyUser' => ($onlyUser ? 'AND (user.userid = ' . intval($onlyUser) . ' OR mention.mentionedid = ' . intval($onlyUser) . ')' : ''),
177 ':fetchOne' => ($fetchOne ? 'LIMIT 1' : ''),
178 ':limit' => ($lastId == -1 ? 'LIMIT ' . ($limit == -1 ? $this->registry->options['dbtech_livewall_perpage'] : $limit) : '')
189 return construct_phrase($vbphrase['dbtech_usertag_x_mentioned_y_in_z'],
190 '<a href="' . (LIVEWALL::$permissions['canviewuserwall'] ? 'livewall.php?' : 'member.php?') . $this->registry->session->vars['sessionurl'] . 'u=' . $info['userid'] . '" target="_blank">' . $info['username'] . '</a>',
191 '<a href="member.php?' . $this->registry->session->vars['sessionurl'] . 'u=' . $info['recipientuserid'] . '" target="_blank">' . $info['recipientusername'] . '</a>',
Lieu.php (https://github.com/Canop/braldahim.git) PHP · 337 lines
1 <?php
3 /**
240 if ($idTypeLieu != null) {
241 $select->where('type_lieu.id_type_lieu = ?', intval($idTypeLieu));
242 }
244 if ($niveauMin != null) {
245 $select->where('niveau_lieu >= ?', intval($niveauMin));
246 }
265 ->where('lieu.id_fk_communaute_lieu = ?', $idCommunaute)
266 ->where('lieu.id_fk_type_lieu = type_lieu.id_type_lieu')
267 ->where('type_dependance.id_fk_type_lieu_type_dependance = ?', intval($idTypeLieu));
269 $sql = $select->__toString();
methods.php (https://gitlab.com/gricelya/Blog-Merry) PHP · 269 lines
Handler.php (https://bitbucket.org/trotzek/cq_wstest.git) PHP · 199 lines
ValidatorBuilder.php (https://gitlab.com/pr0055/symfonypizza) PHP · 342 lines
1 <?php
3 /*
71 /**
72 * @var ConstraintValidatorFactoryInterface|null
73 */
74 private $validatorFactory;
256 * {@inheritdoc}
257 */
258 public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory)
259 {
260 $this->validatorFactory = $validatorFactory;
324 }
326 $validatorFactory = $this->validatorFactory ?: new ConstraintValidatorFactory();
327 $translator = $this->translator;
default-constants.php (https://gitlab.com/Gashler/dp) PHP · 309 lines
1 <?php
2 /**
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
42 if ( function_exists( 'memory_get_usage' ) ) {
43 $current_limit = @ini_get( 'memory_limit' );
44 if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( intval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) )
45 @ini_set( 'memory_limit', WP_MEMORY_LIMIT );
46 }
49 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
51 // Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
52 if ( !defined('WP_DEBUG') )
53 define( 'WP_DEBUG', false );
55 // Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
56 // display_errors and not force errors to be displayed. Use false to force display_errors off.
57 if ( !defined('WP_DEBUG_DISPLAY') )
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
1 <?php
3 /**
95 if ( ( $lang = $this->get_language( $id ) ) && isset( $translations ) && is_array( $translations ) ) {
96 // sanitize the translations array
97 $translations = array_map( 'intval', $translations );
98 $translations = array_merge( array( $lang->slug => $id ), $translations ); // make sure this object is in translations
99 $translations = array_diff( $translations, array( 0 ) ); // don't keep non translated languages
Ean13.php (https://github.com/cpatrick/Midas3.git) PHP · 225 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: Ean13.php 22999 2010-09-23 19:43:14Z mikaelkael $
21 */
24 * @see Zend_Barcode_Object_ObjectAbstract
25 */
26 // require_once 'Zend/Barcode/Object/ObjectAbstract.php';
28 /**
29 * @see Zend_Validate_Barcode
30 */
31 // require_once 'Zend/Validate/Barcode.php';
33 /**
actions.class.php (https://github.com/SGirousse/Intranet-CCTB.git) PHP · 245 lines
1 <?php
3 /**
7 * @subpackage utilisateur
8 * @author Sébastien MARCELLIN, Simeon GIROUSSE
9 * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z $
10 */
11 class utilisateurActions extends sfActions
141 {
142 //$this->forward404unless($request->isXmlHttpRequest());
143 $number = intval($request->getParameter("num"));
145 if($personne = Doctrine::getTable('Personne')->find($number))
164 {
165 //on récupère le nombre de numéro de téléphones déjà présents (envoyés par la fonction javascript)
166 $number = intval($request->getParameter('num'));
168 //on fait une requête sur la table 'personne' pour vérifier si l'on retrouve ce numéro
column.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 325 lines
240 && $this->default === $target->default
241 && (
242 intval($this->length) < intval($target->length)
243 || (
244 intval($target->length) < intval($this->length)
269 $this->type === $target->type
270 && $this->default === $target->default
271 && intval($this->length) === intval($target->length)
272 && $this->nullable !== $target->nullable
273 )
284 && $this->default === $target->default
285 && (
286 intval($this->length) < intval($target->length)
287 || (
288 intval($target->length) < intval($this->length)
popup_util.php (https://github.com/CircleCode/dynacase-core.git) PHP · 345 lines
1 <?php
2 /*
3 * @author Anakeen
9 *
10 * @author Anakeen
11 * @version $Id: popup_util.php,v 1.15 2005/10/07 14:07:53 eric Exp $
12 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
13 * @package FDL
17 */
19 include_once ("FDL/Class.Doc.php");
21 function popupInit($name, $items)
167 function vcompare($a, $b)
168 {
169 $na = intval(substr($a, 1));
170 $nb = intval(substr($b, 1));
CollectionValidatorTest.php (https://github.com/pulzarraider/symfony.git) PHP · 384 lines
phpunit_test.php (https://github.com/marcotinacci/PMango-Diagrams.git) PHP · 268 lines
1 <?php
2 require "phpunit.php";
4 class SelfTestResult extends TextTestResult {
57 function setUp() {
58 /* put any common setup here */
59 $this->intVal = 1;
60 $this->strVal = 'foo';
61 }
63 function testFail1() {
64 $this->assert($this->intVal == 0, "1 == 0");
65 }
202 class AssertEqualsPhp3ErrorTests extends TestCase {
203 /* These tests create an ERROR in PHP3 and work as expected in PHP4. */
204 function AssertEqualsPhp3ErrorTests($name) { $this->TestCase($name); }
CreationMinerais.php (https://github.com/Canop/braldahim.git) PHP · 340 lines
Jalalian.php (https://github.com/morilog/jalali.git) PHP · 612 lines
admin_access.php
(http://creative-portal.googlecode.com/svn/trunk/)
PHP · 230 lines
✨ Summary
This PHP code is part of a content management system, specifically designed for managing user accounts and permissions. It checks if a user’s login credentials are valid, retrieves their account information, and verifies their permissions to access certain features. The code also handles various user settings, such as email notifications and password security.
This PHP code is part of a content management system, specifically designed for managing user accounts and permissions. It checks if a user’s login credentials are valid, retrieves their account information, and verifies their permissions to access certain features. The code also handles various user settings, such as email notifications and password security.
This PHP code is part of a content management system, specifically designed for managing user accounts and permissions. It checks if a user’s login credentials are valid, retrieves their account information, and verifies their permissions to access certain features. The code also handles various user settings, such as email notifications and password security.
This PHP code is part of a content management system, specifically designed for managing user accounts and permissions. It checks if a user’s login credentials are valid, retrieves their account information, and verifies their permissions to access certain features. The code also handles various user settings, such as email notifications and password security.
1 <?php
3 /**
18 {
19 global $global_config, $client_info;
20 if ( $global_config['block_admin_ip'] and file_exists( NV_ROOTDIR . "/" . NV_DATADIR . "/admin_config.php" ) )
21 {
22 include ( NV_ROOTDIR . "/" . NV_DATADIR . "/admin_config.php" );
51 {
52 $auth_user = $auth_pw = "";
53 if ( nv_getenv( 'PHP_AUTH_USER' ) )
54 {
55 $auth_user = nv_getenv( 'PHP_AUTH_USER' );
72 }
74 if ( nv_getenv( 'PHP_AUTH_PW' ) )
75 {
76 $auth_pw = nv_getenv( 'PHP_AUTH_PW' );
clg.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 213 lines
121 Vh = aVar3.Vh(intValue);
122 size = Vh.size();
123 for (intValue = 0; intValue < size; intValue++) {
124 bArr = (byte[]) Vh.get(intValue);
134 Vh = aVar3.Vh(intValue);
135 size = Vh.size();
136 for (intValue = 0; intValue < size; intValue++) {
137 bArr = (byte[]) Vh.get(intValue);
147 Vh = aVar3.Vh(intValue);
148 size = Vh.size();
149 for (intValue = 0; intValue < size; intValue++) {
150 bArr = (byte[]) Vh.get(intValue);
172 Vh = aVar3.Vh(intValue);
173 size = Vh.size();
174 for (intValue = 0; intValue < size; intValue++) {
175 bArr = (byte[]) Vh.get(intValue);
DeviceFilter.java (https://github.com/dstmath/HWFramework.git) Java · 268 lines
74 }
75 try {
76 int intValue = Integer.parseInt(value, radix);
77 if ("vendor-id".equals(name)) {
78 vendorId = intValue;
79 } else if ("product-id".equals(name)) {
80 productId = intValue;
81 } else if ("class".equals(name)) {
82 deviceClass = intValue;
83 } else if ("subclass".equals(name)) {
84 deviceSubclass = intValue;
85 } else if ("protocol".equals(name)) {
86 deviceProtocol = intValue;
MVCBr.InterfaceHelper.pas (https://github.com/amarildolacerda/MVCBr.git) Pascal · 311 lines
36 overload; static;
37 class function GetType(AGUID: TGUID): TRttiInterfaceType; overload; static;
38 class function GetType(AIntfInTValue: TValue): TRttiInterfaceType;
39 overload; static;
54 class function InvokeMethod(AIntf: IInterface; const MethodName: String;
55 const Args: array of TValue): TValue; overload; static;
56 class function InvokeMethod(AIntfInTValue: TValue; const MethodName: String;
57 const Args: array of TValue): TValue; overload; static;
58 end;
195 end;
197 class function TInterfaceHelper.InvokeMethod(AIntfInTValue: TValue;
198 const MethodName: String; const Args: array of TValue): TValue;
199 var
CartController.php (https://bitbucket.org/markmoskalenko/svitor.git) PHP · 256 lines
1 <?php
2 /**
3 * Created by JetBrains PhpStorm.
40 public function actionAddCart($id)
41 {
42 $id = intval($id);
43 $product = Product::model()->find('id = :id', array(':id' => $id));
44 Yii::app()->shoppingCart->put($product);
54 public function actionDeleteCart($id)
55 {
56 Yii::app()->shoppingCart->remove( Product::model()->findByPk(intval( $id ))->getId() );
57 echo Yii::app()->shoppingCart->getCount();
58 if(!Yii::app()->request->isAjaxRequest) $this->redirect('/cart/orders'); else Yii::app()->end();
61 public function actionUpdateCart($id, $quantity)
62 {
63 Yii::app()->shoppingCart->update( Product::model()->findByPk(intval( $id )), $quantity );
65 if(!Yii::app()->request->isAjaxRequest) $this->redirect('/cart/orders'); else Yii::app()->end();
functions.php (http://nuke-viet.googlecode.com/svn/trunk/) PHP · 0 lines
1 <?php
3 /**
27 if ( $is_parentlink )
28 {
29 $name = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $list[$id]['alias'] . "\">" . $list[$id]['title'] . "</a> » " . $name;
30 }
31 else
75 if ( $is_link )
76 {
77 $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $list2[$row['id']]['alias'] . "\">" . $list2[$row['id']]['name'] . "</a>";
78 }
87 if ( $is_parentlink )
88 {
89 $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "\">" . $module_info['custom_title'] . "</a> » " . $list2[$row['id']]['name'];
90 }
91 }
RoleInstance.php (git://github.com/WindowsAzure/azure-sdk-for-php.git) PHP · 329 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 *
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
34 * @category Microsoft
35 *
36 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
37 * @copyright 2012 Microsoft Corporation
38 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
Link.php (https://github.com/seloshow/Magento-Pruebas.git) PHP · 185 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_Downloadable
23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
175 ->joinLeft(
176 array('link_title_store' => $this->getTable('downloadable/link_title')),
177 'link_title_store.link_id=link.link_id AND link_title_store.store_id=' . intval($storeId),
178 array('title' => 'IFNULL(link_title_store.title, link_title_default.title)'))
179 ->where('link.product_id=?', $productId);
TActiveListControlAdapter.php (https://bitbucket.org/volatileeight/prado.git) PHP · 255 lines
ValidatorFactory.php (https://github.com/stedekay/symfony.git) PHP · 196 lines
1 <?php
3 namespace Symfony\Component\Validator;
54 * $defaultContext = new ValidatorContext();
55 * $defaultContext->setClassMetadataFactory($metadataFactory);
56 * $defaultContext->setConstraintValidatorFactory($validatorFactory);
57 * $factory = new ValidatorFactory($defaultContext);
58 *
143 $context->setClassMetadataFactory(new ClassMetadataFactory($loader));
144 $context->setConstraintValidatorFactory(new ConstraintValidatorFactory());
146 return new static($context);
178 * @return ValidatorContextInterface The preconfigured form context
179 */
180 public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory)
181 {
182 $context = clone $this->defaultContext;
ScreensDDLRecordServiceHttp.java (git://github.com/liferay/liferay-portal.git) Java · 286 lines
of-taxonomy-walker.php (https://bitbucket.org/purenetgit/search-filter.git) PHP · 319 lines
1 <?php
3 class Taxonomy_Walker extends Walker_Category {
90 if ( !empty($show_count) )
91 $link .= ' (' . intval($category->count) . ')';
93 if ( 'list' == $args['style'] ) {
139 if ( !empty($show_count) )
140 $link .= ' (' . intval($category->count) . ')';
213 if ( !empty($show_count) )
214 $link .= ' (' . intval($category->count) . ')';
class-mb-custom-taxonomy-register.php (https://gitlab.com/code26/selah) PHP · 235 lines
1 <?php
2 /**
3 * Controls all operations of MB Custom Taxonomy extension for registering custom taxonomy.
120 // @codingStandardsIgnoreLine
121 $data = 1 == count( $value ) ? $value[0] : $value;
122 $data = is_numeric( $data ) ? ( 1 === intval( $data ) ? true : false ) : $data;
124 $args[ str_replace( 'args_', '', $key ) ] = $data;
CollectionSizeConstraintProcessorTest.java (https://github.com/sbower/kuali-rice-1.git) Java · 307 lines
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl1.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
27 import org.kuali.rice.krad.datadictionary.validation.Employee;
28 import org.kuali.rice.krad.datadictionary.validation.ErrorLevel;
29 import org.kuali.rice.krad.datadictionary.validation.result.ConstraintValidationResult;
30 import org.kuali.rice.krad.datadictionary.validation.result.DictionaryValidationResult;
224 DictionaryValidationResult dictionaryValidationResult = new DictionaryValidationResult();
225 dictionaryValidationResult.setErrorLevel(ErrorLevel.NOCONSTRAINT);
226 ConstraintValidationResult result = process(dictionaryValidationResult, companyWithThreeAddressesAndThreeEmployees, constrained2to4, "employees");
227 Assert.assertEquals(0, dictionaryValidationResult.getNumberOfWarnings());
228 Assert.assertEquals(0, dictionaryValidationResult.getNumberOfErrors());
result.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 239 lines
1 <?php
2 /* For licensing terms, see /license.txt */
3 /**
106 $current_date=api_get_utc_datetime();
107 for ($i=0; $i<count($list_user_course_list); $i++) {
108 $sql_verified = 'SELECT COUNT(*) AS count FROM '.$tbl_grade_results.' WHERE user_id="'.intval($list_user_course_list[$i]['user_id']).'" AND evaluation_id="'.intval($evaluation_id).'";';
109 $res_verified = Database::query($sql_verified);
110 $info_verified = Database::result($res_verified,0,0);
111 if ($info_verified == 0) {
112 $sql_insert='INSERT INTO '.$tbl_grade_results.'(user_id,evaluation_id,created_at,score)
113 VALUES ("'.intval($list_user_course_list[$i]['user_id']).'","'.intval($evaluation_id).'","'.$current_date.'",0);';
114 $res_insert=Database::query($sql_insert);
115 }
Shipping.php (https://github.com/inhale/core.git) PHP · 440 lines
1 <?php
2 // vim: set ts=4 sw=4 sts=4 et:
10 * that is bundled with this package in the file LICENSE.txt.
11 * It is also available through the world-wide-web at this URL:
12 * http://opensource.org/licenses/osl-3.0.php
13 * If you did not receive a copy of the license and are unable to
14 * obtain it through the world-wide-web, please send an email
20 * @author Creative Development LLC <info@cdev.ru>
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23 * @version GIT: $Id: abd3881753e69af232d95057d1f455a946859382 $
24 * @link http://www.litecommerce.com/
206 }
208 if (0 < intval($this->getShippingId())) {
209 // Set selected rate from the rates list if shipping_id is already assigned
server_processing.php (https://bitbucket.org/mkirby91/tritontime.git) PHP · 174 lines
1 <?php
2 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3 * Easy set variables
23 /* REMOVE THIS LINE (it just includes my SQL connection user/pass) */
24 include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" );
27 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
28 * If you just want to use the basic configuration for DataTables with PHP server-side, there is
29 * no need to edit below this line
30 */
58 {
59 $sOrder = "ORDER BY ";
60 for ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )
61 {
62 if ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == "true" )
recurly_js.php (https://github.com/arush/desparation-deprecated.git) PHP · 228 lines
1 <?php
3 class Recurly_js
52 if (empty($currency) || strlen($currency) != 3)
53 throw new InvalidArgumentException("Invalid currency");
54 if (intval($amountInCents) <= 0)
55 throw new InvalidArgumentException("Invalid amount in cents");
121 throw new Recurly_ForgedQueryStringError("Invalid signature");
122 $hmac = substr($signature, 0, $pos);
123 $timestamp = intval(substr($signature, $pos + 1));
124 $time_diff = $this->time_difference($timestamp);
newsletter.php (https://bitbucket.org/antonyravel/cape-resorts.git) PHP · 201 lines
compare.php (https://github.com/country3721/choclate.git) PHP · 125 lines
1 <?php
3 /**
11 * ============================================================================
12 * $Author: liuhui $
13 * $Id: compare.php 17063 2010-03-25 06:35:46Z liuhui $
14 */
16 define('IN_ECS', true);
18 require(dirname(__FILE__) . '/includes/init.php');
20 if (!empty($_REQUEST['goods']) && is_array($_REQUEST['goods']) && count($_REQUEST['goods']) > 1)
58 $arr[$goods_id]['shop_price'] = price_format($row['shop_price']);
59 $arr[$goods_id]['rank_price'] = price_format($row['rank_price']);
60 $arr[$goods_id]['goods_weight'] = (intval($row['goods_weight']) > 0) ?
61 ceil($row['goods_weight']) . $_LANG['kilogram'] : ceil($row['goods_weight'] * 1000) . $_LANG['gram'];
62 $arr[$goods_id]['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true);
ValidatorTest.php (https://github.com/Faianca/symfony.git) PHP · 163 lines
1 <?php
3 /*
12 namespace Symfony\Tests\Component\Validator;
14 require_once __DIR__.'/Fixtures/Entity.php';
15 require_once __DIR__.'/Fixtures/FailingConstraint.php';
16 require_once __DIR__.'/Fixtures/FailingConstraintValidator.php';
17 require_once __DIR__.'/Fixtures/FakeClassMetadataFactory.php';
23 use Symfony\Component\Validator\ConstraintViolation;
24 use Symfony\Component\Validator\ConstraintViolationList;
25 use Symfony\Component\Validator\ConstraintValidatorFactory;
26 use Symfony\Component\Validator\Mapping\ClassMetadata;
ACloudVerCustomizedForum.php (https://gitlab.com/wuhang2003/phpwind) PHP · 170 lines
1 <?php
2 ! defined ( 'ACLOUD_PATH' ) && exit ( 'Forbidden' );
56 */
57 public function getForumByFid($fid) {
58 $fid = intval ( $fid );
59 if ($fid < 1)
60 return $this->buildResponse ( FORUM_INVALID_PARAMS,"参数错误" );
72 */
73 public function getChildForumByFid($fid) {
74 $fid = intval ( $fid );
75 if ($fid < 1)
76 return $this->buildResponse ( FORUM_INVALID_PARAMS,"参数错误" );
Model.php (https://github.com/GeekZooTeam/Geek-Zoo-PHP-Library.git) PHP · 402 lines
1 <?php
3 /*
5 *
6 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
7 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
8 * @author xuanyan <xuanyan@geek-zoo.com>
9 *
218 // if (!is_array($sql)) {
219 // if (strlen(intval($sql)) == strlen($sql)) {
220 // $sql = array($this->pri => $sql);
221 // }
339 }
341 return intval($result);
342 }
actions.php (https://gitlab.com/Ltaimao/wecenter) PHP · 544 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------------
358 $associate_action = explode(',', $actions);
360 array_walk_recursive($associate_action, 'intval_string');
362 $associate_action = implode(',', $associate_action);
364 else if ($actions)
365 {
366 $associate_action = intval($actions);
367 }
373 else
374 {
375 $where[] = "(associate_type = " . ACTION_LOG::CATEGORY_QUESTION . " AND uid = " . intval($uid) . " AND associate_action IN(" . $this->quote($associate_action) . "))";
376 }
Setting.php (https://github.com/houdunwang/video.git) PHP · 275 lines
1 <?php namespace app\site\controller;
3 use houdunwang\request\Request;
72 $_POST['creditnames']['credit2']['status'] = 1;
73 foreach ($_POST['creditnames'] as $credit => $d) {
74 $_POST['creditnames'][$credit]['status'] = isset($d['status']) ? intval($d['status']) : 0;
75 }
76 $this->db['creditnames'] = json_encode($_POST['creditnames'], JSON_UNESCAPED_UNICODE);
NumberOrderCheck.php (https://gitlab.com/EdwinHuijsing/learnhebrew) PHP · 243 lines
101 <tr>
102 <td class=ScoreLeft>Score:</td>
103 <td<?php FScoreBG($Score); ?>><?php echo $Score; ?>%</td>
104 </tr>
105 </table>
106 <a href="NumberOrder.php?start=<?php echo $Start;?>&end=<?php echo $End;?>">Try again!!</a>
107 </td> <!-- ******************** EOF score ******************** -->
108 <td>
138 echo $key;
139 ?></td>
140 <td Class=Main<?php FColor($arrNumber[$key]["Number"], $data);?>><?php echo $data;?> </td>
141 </tr>
142 <?php }
message.php (https://github.com/usagi-project/mynets1.git) PHP · 459 lines
2 /* ========================================================================
3 *
4 * @license This source file is subject to version 3.01 of the PHP license,
5 * that is available at http://www.php.net/license/3_01.txt
6 * If you did not receive a copy of the PHP license and are unable
7 * to obtain it through the world-wide-web, please send a note to
8 * license@php.net so we can mail you a copy immediately.
143 $sql .= " WHERE $where";
144 $sql .= " ORDER BY r_datetime DESC";
145 $params = array(intval($c_member_id));
146 $c_message_list = db_get_all_page($sql, $page, $page_size, $params);
236 $sql = 'SELECT * FROM ' . MYNETS_PREFIX_NAME . 'c_message WHERE '. $where . ' ORDER BY r_datetime DESC';
237 $params = array(intval($c_member_id), intval($c_member_id));
238 $c_message_list = db_get_all_page($sql, $page, $page_size, $params);
importcriterion.php (https://gitlab.com/neuser/bitrix-core) PHP · 359 lines
Page.class.php (https://bitbucket.org/silenceper/frogphp.git) PHP · 130 lines
1 <?php
3 class Page {
39 $this->varPage = C('VAR_PAGE') ? C('VAR_PAGE') : 'p' ;
40 if(!empty($listRows)) {
41 $this->listRows = intval($listRows);
42 }
43 $this->totalPages = ceil($this->totalRows/$this->listRows); //总页数
44 $this->coolPages = ceil($this->totalPages/$this->rollPage);
45 $this->nowPage = !empty($_GET[$this->varPage])?intval($_GET[$this->varPage]):1;
46 if(!empty($this->totalPages) && $this->nowPage>$this->totalPages) {
47 $this->nowPage = $this->totalPages;
Pdf.php (https://github.com/Exercise/zf2.git) PHP · 244 lines
GameController.php (https://bitbucket.org/trotzek/uua_lan.git) PHP · 151 lines
1 <?php
2 namespace UUA\Lan\Controller;
91 $participant = $this->participantRepository->findByUid($GLOBALS['TSFE']->fe_user->user['uid']);
92 /** @var LanParty $lanParty */
93 $lanParty = $this->lanPartyRepository->findByUid(intval($this->settings['activeLanParty']));
94 $newGame->addCreator($participant);
95 $newGame->setLanParty($lanParty);
115 /** @var Participant $fe_user */
116 $fe_user = $this->participantRepository->findByUid($fe_user['uid']);
117 $games = $this->gameRepository->findByLanParty(intval($this->settings['activeLanParty']));
119 /** @var Game $game */
ProcessController.php (https://bitbucket.org/yeahyahoo/yeahyahoo.bitbucket.org.git) PHP · 178 lines
1 <?php
3 class ProcessController extends Zend_Controller_Action {
8 if ($this->getRequest()->isPost()) {
9 $formData = $this->getRequest()->getPost();
10 $rows = intval($formData['rows']);
11 $page = intval($formData['page']);
133 $process = $process_model->findById($formData['id']);
135 $pid = intval($process['pid']);
136 if ($process['status'] == 'active' && $pid > 0) {
137 exec("kill $pid");
FolderHandler.php (https://github.com/nDIGAH3CEYIiCsq/gold.git) PHP · 270 lines
controller.php (https://github.com/shin2/concrete5.git) PHP · 135 lines
1 <?php
3 defined('C5_EXECUTE') or die("Access Denied.");
125 $args['truncateTitles'] = ($args['truncateTitles']) ? '1' : '0';
126 $args['displayFeaturedOnly'] = ($args['displayFeaturedOnly']) ? '1' : '0';
127 $args['truncateChars'] = intval($args['truncateChars']);
128 $args['truncateTitleChars'] = intval($args['truncateTitleChars']);
FavParser.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 195 lines
GroupsApiController.php (https://gitlab.com/ilyales/vigma) PHP · 221 lines
1 <?php
2 class GroupsApiController extends Controller
3 {
24 public function actionImportGroupsAjax()
25 {
26 $data = json_decode(file_get_contents('php://input'));
28 $response = array('status'=>true);
48 public function actionAddGroupToCatalogcatAjax()
49 {
50 $data = json_decode(file_get_contents('php://input'));
52 $response = array('status'=>true);
68 public function actionRemoveGroupFromCatalogcatAjax()
69 {
70 $data = json_decode(file_get_contents('php://input'));
71 $response = array('status'=>true);
admin_snippets_edit.php (https://github.com/Sweil/Frogsystem-2.git) PHP · 326 lines
1 <?php if (!defined('ACP_GO')) die('Unauthorized access!');
3 /////////////////////////////
47 // Security-Functions
48 $_POST['snippet_id'] = array_map ( 'intval', explode ( ',', $_POST['snippet_id'] ) );
50 // SQL-Delete-Query
72 {
73 // Security Function
74 $_POST['snippet_id'] = array_map ( 'intval', $_POST['snippet_id'] );
76 ///////////////////////////
kunena.announcement.class.php (https://github.com/rich20/Kunena-1.6.git) PHP · 216 lines
1 <?php
2 /**
3 * @version $Id$
154 function displayBox() {
155 if ($this->config->showannouncement && $this->id) {
156 CKunenaTools::loadTemplate ( '/announcement/box.php' );
157 }
158 }
163 }
164 $do = JRequest::getVar ( "do", "" );
165 $id = intval ( JRequest::getVar ( "id", "" ) );
167 switch ($do) {
168 case 'read' :
169 $this->getAnnouncement ( $id, 1 );
170 CKunenaTools::loadTemplate ( '/announcement/read.php' );
171 break;
172 case 'show' :
UnaryExprTest.java (https://github.com/ballerina-platform/ballerina-lang.git) Java · 188 lines
53 BInteger x = (BInteger) returns[0];
54 Assert.assertSame(x.getClass(), BInteger.class, "Invalid class type returned.");
55 Assert.assertEquals(x.intValue(), (-5), "Invalid value returned.");
57 BInteger y = (BInteger) returns[1];
58 Assert.assertSame(y.getClass(), BInteger.class, "Invalid class type returned.");
59 Assert.assertEquals(y.intValue(), 5, "Invalid value returned.");
60 }
69 BInteger x = (BInteger) returns[0];
70 Assert.assertSame(x.getClass(), BInteger.class, "Invalid class type returned.");
71 Assert.assertEquals(x.intValue(), (+5), "Invalid value returned.");
73 BInteger y = (BInteger) returns[1];
categories.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 237 lines
1 <?php
3 defined('SYSPATH') OR die('No direct access allowed.');
39 case 'int' :
40 if (is_array($_POST['filter'][$field['alias']]))
41 $data = array_map('intval', $_POST['filter'][$field['alias']]);
42 else
43 $data = intval($_POST['filter'][$field['alias']]);
95 $sortby = !empty($_COOKIE['shop_f_sortby']) ? $_COOKIE['shop_f_sortby'] : null;
96 $sortasc = !empty($_COOKIE['shop_f_sortasc']) ? $_COOKIE['shop_f_sortasc'] : null;
97 $rowsPerPage = !empty($_COOKIE['shop_f_rowsPerPage']) ? intval($_COOKIE['shop_f_rowsPerPage']) : Kohana::config('shop')->rows_frontend;
98 $brandId = !empty($_COOKIE['shop_f_brandId']) ? intval($_COOKIE['shop_f_brandId']) : null;
143 case 'int' :
144 if (is_array($_POST['filter'][$field['alias']]))
145 $data = array_map('intval', $_POST['filter'][$field['alias']]);
146 else
147 $data = intval($_POST['filter'][$field['alias']]);
blog_item.php (https://github.com/raeldc/nooku-server.git) PHP · 138 lines
1 <?php // no direct access
2 defined('_JEXEC') or die('Restricted access'); ?>
3 <?php $canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')); ?>
13 <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
14 <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
15 <?php echo $this->escape($this->item->title); ?></a>
108 </tr>
110 <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
111 <tr>
112 <td colspan="2" class="modifydate">
119 <tr>
120 <td colspan="2">
121 <a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
122 <?php if ($this->item->readmore_register) :
RunCounts.php (https://github.com/omegaup/omegaup.git) PHP · 297 lines
1 <?php
2 /** ************************************************************************ *
3 * !ATENCION! *
57 $params = [
58 $Run_Counts->date,
59 intval($Run_Counts->total),
60 intval($Run_Counts->ac_count),
85 );';
86 $params = [
87 intval($Run_Counts->total),
88 intval($Run_Counts->ac_count),
240 (($pagina - 1) * $filasPorPagina) .
241 ', ' .
242 intval($filasPorPagina)
243 );
244 }
config.php (https://github.com/artisdom/freeradius-server.git) PHP · 117 lines
1 <?php
2 #
3 # Things should work even if register_globals is set to off
6 $testVer=intval(str_replace(".", "",'4.1.0'));
7 $curVer=intval(str_replace(".", "",phpversion()));
8 if( $curVer >= $testVer )
9 import_request_variables('GPC');
111 date_default_timezone_set($config[timezone]);
113 //Include missing.php if needed
114 if (!function_exists('array_change_key_case'))
115 include_once('../lib/missing.php');
sets.php (https://github.com/jasteele12/concrete5.git) PHP · 207 lines
Menu.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 233 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_Backend
23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
77 $parentItem->getChildren()->add($item, null, $index);
78 } else {
79 $index = intval($index);
80 if (!isset($this[$index])) {
81 $this->offsetSet($index, $item);
GeodesicFilterEvaluation.java (https://github.com/idsc-frazzoli/owl.git) Java · 132 lines
51 "<tr><td width = 200>Minimizers: </td><td width = 200>alpha</td><td width = 200>WindowSize</td><td width = 200>Kernel</td><td width = 200>Resulting Error</td><td width = 200>Unit</td></tr>");
52 htmlUtf8.appendln("<tr><td width = 200>Pose</td><td width = 200>" + minimizingAlphas.Get(0) + "</td><td width = 200>" + minimizingWindowSizes.Get(0)
53 + "</td><td width = 200>" + SmoothingKernel.values()[Scalars.intValueExact(minimizingKernels.Get(0))] + "</td><td width = 200>"
54 + minimizingErrors.Get(0) + "</td><td width = 200>[m]</td></tr>");
55 htmlUtf8.appendln("<tr><td width = 200>Orientation</td><td width = 200>" + minimizingAlphas.Get(1) + "</td><td width = 200>"
56 + minimizingWindowSizes.Get(1) + "</td><td width = 200>" + SmoothingKernel.values()[Scalars.intValueExact(minimizingKernels.Get(1))]
57 + "</td><td width = 200>" + minimizingErrors.Get(1) + "</td><td width = 200>[rad]</td></tr>");
58 htmlUtf8.appendln("<tr><td width = 200>Pose change</td><td width = 200>" + minimizingAlphas.Get(2) + "</td><td width = 200>"
59 + minimizingWindowSizes.Get(2) + "</td><td width = 200>" + SmoothingKernel.values()[Scalars.intValueExact(minimizingKernels.Get(2))]
60 + "</td><td width = 200>" + minimizingErrors.Get(2).divide(time(data)) + "</td><td width = 200>[m/s]</td></tr>");
61 htmlUtf8.appendln("<tr><td width = 200>Orientation change</td><td width = 200>" + minimizingAlphas.Get(3) + "</td><td width = 200>"
FilterDataMapper.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 292 lines
1 <?php
3 namespace MailPoet\Segments\DynamicSegments;
109 return new DynamicSegmentFilterData(DynamicSegmentFilterData::TYPE_USER_ROLE, $data['action'], [
110 'segments' => array_map(function ($segmentId) {
111 return intval($segmentId);
112 }, $data['segments']),
113 'operator' => $data['operator'] ?? DynamicSegmentFilterData::OPERATOR_ANY,
166 if (empty($data['newsletters']) || !is_array($data['newsletters'])) throw new InvalidFilterException('Missing newsletter', InvalidFilterException::MISSING_NEWSLETTER_ID);
167 $filterData['newsletters'] = array_map(function ($segmentId) {
168 return intval($segmentId);
169 }, $data['newsletters']);
170 }
173 $action = $data['action'];
174 if (isset($data['link_ids']) && is_array($data['link_ids'])) {
175 $filterData['link_ids'] = array_map('intval', $data['link_ids']);
176 if (!isset($data['operator'])) throw new InvalidFilterException('Missing operator', InvalidFilterException::MISSING_OPERATOR);
177 $filterData['operator'] = $data['operator'];
friends.php (https://github.com/veb/lifelitup.git) PHP · 293 lines
1 <?php
2 require_once('classes/profile.php');
209 function sendFriendVerification($userid, $friendid) {
210 $profile = new Profile;
211 $user = $profile->get(intval($userid));
212 $friend = $profile->get(intval($friendid));
216 ."" . $user["first_name"] . " " . $user["last_name"] . " wants to become your friend on LifeLitUp\n\n"
217 ."If you know this person and want to confirm this friendship, then please click here:\n"
218 ."http://www.lifelitup.com/alpha/profile.php?action=confirmFriend&userid=" . $friend["user_id"] . "&friendid=" . $user["user_id"] . "\n\n"
219 ."If you do not know this person or want to ignore this friend request, then click the link below:\n"
220 ."http://www.lifelitup.com/alpha/profile.php?action=ignoreFriend&userid=" . $friend["user_id"] . "&friendid=" . $user["user_id"] . "\n\n"
224 $headers = 'From: no-reply@lifelitup.com' . "\r\n" .
225 'Reply-To: no-reply@lifelitup.com' . "\r\n" .
226 'X-Mailer: PHP/' . phpversion();
228 mail($friend['email'], $subject, $emailMsg, $headers);
default.php (https://gitlab.com/endomorphosis/greenrenaissancejoomla) PHP · 133 lines
1 <?php // no direct access
2 defined('_JEXEC') or die('Restricted access');
11 <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
12 <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
13 <?php echo $this->escape($this->article->title); ?></a>
122 </tr>
124 <?php if ( intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
125 <tr>
126 <td colspan="2" class="modifydate">
127 <?php echo JText::_( 'Last Updated' ); ?> ( <?php echo JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2')); ?> )
128 </td>
129 </tr>
Cache.php (https://github.com/friendica/friendica.git) PHP · 210 lines
ChecklistController.php (https://bitbucket.org/markmoskalenko/svitor.git) PHP · 192 lines
1 <?php
2 class ChecklistController extends AppController
3 {
5 {
6 $private_for = '';
7 $type_id = intval($type_id);
8 $cat_id = intval($cat_id);
79 $model->$type_str = $type_id;
81 $search .= '&type_id='.intval($type_id);
83 if (!empty($cat_id)) {
85 $model->$cat_str = $cat_id;
87 $search .= '&cat_id='.intval($cat_id);
88 }
89 }
HolidayController.php (https://bitbucket.org/markmoskalenko/svitor.git) PHP · 178 lines
particlecurvewidget.cc (https://github.com/gscept/nebula-trifid.git) C++ · 351 lines
metatags.processor.php (https://github.com/gunf/novo-isaak.local.git) PHP · 117 lines
1 <?php
2 if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");
17 tag => $modx->db->escape($tag),
18 tagvalue => $modx->db->escape($_POST["tagvalue"]),
19 http_equiv => intval($http_equiv)
20 );
21 if($f["name"] && $f["tagvalue"]) {
25 // edit tag
26 else if($opcode=="edttag") {
27 $id = intval($_POST["id"]);
28 list($tag,$http_equiv) = explode(";",$_POST["tag"]);
29 $f = array(
31 tag => $modx->db->escape($tag),
32 tagvalue => $modx->db->escape($_POST["tagvalue"]),
33 http_equiv => intval($http_equiv)
34 );
35 if($f["name"] && $f["tagvalue"]) {
random_bytes_dev_urandom.php (https://gitlab.com/reasonat/test8) PHP · 142 lines
1 <?php
2 /**
3 * Random_* Compatibility Library
4 * for using the new PHP 7 random_* API in PHP 5 projects
5 *
6 * The MIT License (MIT)
67 * stream_set_read_buffer() does not exist in HHVM
68 *
69 * If we don't set the stream's read buffer to 0, PHP will
70 * internally buffer 8192 bytes, which can waste entropy
71 *
81 }
82 try {
83 $bytes = RandomCompat_intval($bytes);
84 } catch (TypeError $ex) {
85 throw new TypeError(
enluminures_typo_pipelines.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 213 lines
m_configuration.php (https://bitbucket.org/earnest-tekkies/sample-php-ci.git) PHP · 112 lines
IndexController.php (https://github.com/srsree/OurBank.git) PHP · 168 lines
1 <?php
2 /*
3 ############################################################################
20 ?>
22 <?php
23 /*
24 * bank controller for add, view,update,delete
118 $bank = new Bank_Model_Bank();
119 //Update the previous record
120 $id = intval($this->_request->getPost('id'));
121 $editinstitution = $this->view->adm->editRecord("ob_bank",$id);
122 $this->view->adm->updateLog("ob_bank_log",$editinstitution[0],$this->view->createdby);
128 } else {
129 $this->view->title=$this->view->translate('Edit Bank');
130 $this->view->id = intval($this->_request->getParam("id"));
131 $editBank = $this->view->adm->editRecord("ob_bank",$this->view->id);
132 $form->populate($editBank[0]);
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
36 $dumpTime = function($start, $msg) {
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
Code25.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 143 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: Code25.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_Barcode_Object_ObjectAbstract
25 */
26 // // // // // // // // require_once 'Zend/Barcode/Object/ObjectAbstract.php';
28 /**
29 * @see Zend_Validate_Barcode
30 */
31 // // // // // // // // require_once 'Zend/Validate/Barcode.php';
33 /**
CINLabel.php (https://github.com/dnyz520/careyshop.git) PHP · 322 lines
1 <?php
2 /**
3 *--------------------------------------------------------------------
12 namespace CodeItNow\BarcodeBundle\Generator;
13 use CodeItNow\BarcodeBundle\Generator\CINArgumentException;
14 use CodeItNow\BarcodeBundle\Generator\CINFontPhp;
15 use CodeItNow\BarcodeBundle\Generator\CINFontFile;
46 */
47 public function __construct($text = '', $font = null, $position = self::POSITION_BOTTOM, $alignment = self::ALIGN_CENTER) {
48 $font = $font === null ? new CINFontPhp(5) : $font;
49 $this->setFont($font);
50 $this->setText($text);
118 */
119 public function setPosition($position) {
120 $position = intval($position);
121 if ($position !== self::POSITION_TOP && $position !== self::POSITION_RIGHT && $position !== self::POSITION_BOTTOM && $position !== self::POSITION_LEFT) {
122 throw new CINArgumentException('The text position must be one of a valid constant.', 'position');
GettersTest.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 285 lines
1 <?php
3 /*
109 {
110 $d = Carbon::createFromDate(1975, 5, 21);
111 $age = intval(substr(date('Ymd') - date('Ymd', $d->timestamp), 0, -4));
113 $this->assertSame($age, $d->age);
152 public function testGetLocalTrue()
153 {
154 // Default timezone has been set to America/Toronto in TestFixture.php
155 // @see : http://en.wikipedia.org/wiki/List_of_UTC_time_offsets
156 $this->assertTrue(Carbon::createFromDate(2012, 1, 1, 'America/Toronto')->local);
TagHighlight.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 370 lines
✨ Summary
This Java code is a part of an editor plugin that highlights matching XML tags in a text editor. It uses a combination of buffer changes and caret updates to detect when a tag is being edited, and then updates the highlighting accordingly. The plugin also handles cases where a tag is inserted or removed from the buffer.
This Java code is a part of an editor plugin that highlights matching XML tags in a text editor. It uses a combination of buffer changes and caret updates to detect when a tag is being edited, and then updates the highlighting accordingly. The plugin also handles cases where a tag is inserted or removed from the buffer.
RE.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1357 lines
✨ Summary
This Java code is part of a regular expression compiler, responsible for parsing and compiling regular expressions into an internal representation. It handles various input types, including strings, character arrays, and streams, and provides methods for debugging and human-readable output. The compiled regular expression can be used to match patterns in text data.
This Java code is part of a regular expression compiler, responsible for parsing and compiling regular expressions into an internal representation. It handles various input types, including strings, character arrays, and streams, and provides methods for debugging and human-readable output. The compiled regular expression can be used to match patterns in text data.
ndis_events.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 809 lines
✨ Summary
This C code initializes a Windows-based network interface for receiving notifications about network events, such as packet arrival and error conditions. It creates an instance of a WMI (Windows Management Instrumentation) object sink, connects to a WMI server, and registers asynchronous notifications with the sink. The sink provides methods for querying, adding references, releasing, indicating, and setting the status of the notification.
This C code initializes a Windows-based network interface for receiving notifications about network events, such as packet arrival and error conditions. It creates an instance of a WMI (Windows Management Instrumentation) object sink, connects to a WMI server, and registers asynchronous notifications with the sink. The sink provides methods for querying, adding references, releasing, indicating, and setting the status of the notification.
SubversionOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 141 lines
✨ Summary
This Java code defines a plugin option pane for Subversion version control system. It creates a GUI with checkboxes, spinners, and combo boxes to configure settings such as using tsvn template, maximum log entries, and file format. The settings are saved when the user clicks “save” or closes the panel.
This Java code defines a plugin option pane for Subversion version control system. It creates a GUI with checkboxes, spinners, and combo boxes to configure settings such as using tsvn template, maximum log entries, and file format. The settings are saved when the user clicks “save” or closes the panel.
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
RETokenPOSIX.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 126 lines
✨ Summary
This Java class, RETokenPOSIX
, represents a token type in regular expressions for POSIX compliance. It defines various character classes (e.g., alphanumeric, alphabetical, control characters) and provides methods to match input strings against these classes. The class also includes functionality for negating matches and dumping the current state of the match.
This Java class, RETokenPOSIX
, represents a token type in regular expressions for POSIX compliance. It defines various character classes (e.g., alphanumeric, alphabetical, control characters) and provides methods to match input strings against these classes. The class also includes functionality for negating matches and dumping the current state of the match.
ErrorHighlight.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 166 lines
✨ Summary
This Java code is part of a text editor plugin that highlights errors in source code. It paints wavy red underlines on lines with errors, displays error messages as tooltips when hovered over, and uses a custom color scheme based on error types. The code extends the JEdit text area and uses its built-in features to display error information.
This Java code is part of a text editor plugin that highlights errors in source code. It paints wavy red underlines on lines with errors, displays error messages as tooltips when hovered over, and uses a custom color scheme based on error types. The code extends the JEdit text area and uses its built-in features to display error information.
BigInt.scala
(git://github.com/greedy/scala-llvm.git)
Scala · 385 lines
✨ Summary
This is a Scala implementation of a BigInt (Big Integer) class, providing various mathematical operations and conversions to other data types such as byte, short, char, int, long, float, and double. It also offers methods for creating ranges of BigInt values with specified steps and end values. The class provides a way to represent large integers in a scalable and efficient manner.
This is a Scala implementation of a BigInt (Big Integer) class, providing various mathematical operations and conversions to other data types such as byte, short, char, int, long, float, and double. It also offers methods for creating ranges of BigInt values with specified steps and end values. The class provides a way to represent large integers in a scalable and efficient manner.
309 * BigInt value as well as return a result with the opposite sign.
310 */
311 override def byteValue = intValue.toByte
313 /** Converts this BigInt to a <tt>short</tt>.
316 * BigInt value as well as return a result with the opposite sign.
317 */
318 override def shortValue = intValue.toShort
320 /** Converts this BigInt to a <tt>char</tt>.
331 * the opposite sign.
332 */
333 def intValue = this.bigInteger.intValue
335 /** Converts this BigInt to a <tt>long</tt>.
GppFunctionalTest.groovy (https://bitbucket.org/nbargnesi/idea.git) Groovy · 616 lines
269 """
270 myFixture.completeBasic()
271 assertSameElements myFixture.lookupElementStrings, "intValue"
272 }
373 """
374 myFixture.completeBasic()
375 assertSameElements myFixture.getLookupElementStrings(), "intValue"
376 }
384 """
385 myFixture.completeBasic()
386 assertSameElements myFixture.getLookupElementStrings(), "intValue"
387 }