100+ results results for 'php sort repo:zc1415926/eva-engine' (690 ms)
1<?php 2/** 19 * {@inheritdoc} 20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 21 */ 159 )->addColumn( 160 'sort_order', 161 \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT, 163 ['unsigned' => true, 'nullable' => false, 'default' => '0'], 164 'Sort order' 165 )->addForeignKey( 316 )->addColumn( 317 'sort_order', 318 \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT, 320 ['nullable' => false, 'default' => '0'], 321 'Sort Order' 322 )->addColumn(class-wp-terms-list-table.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 454 lines
1<?php 2/** 136 137 function get_sortable_columns() { 138 return array( 298 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 299 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 300 if ( $tax->public ) 331 332 /** This filter is documented in wp-admin/edit-tag-form.php */ 333 $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>'; 343 function column_slug( $tag ) { 344 /** This filter is documented in wp-admin/edit-tag-form.php */ 345 return apply_filters( 'editable_slug', $tag->slug ); 366 if ( 'attachment' == $this->screen->post_type ) 367 return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>"; 368CakeRoute.php https://github.com/bmcclure/cakephp.git | PHP | 506 lines
1<?php 2/** 8 * 9 * PHP5 10 * 10 * 11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 18 * @link http://cakephp.org CakePHP(tm) Project 19 * @package Cake.Routing.Route 19 * @package Cake.Routing.Route 20 * @since CakePHP(tm) v 1.3 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 154 } 155 krsort($routeParams); 156 $parsed = str_replace(array_keys($routeParams), array_values($routeParams), $parsed);admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 143 ->title($this->module_details['name']) 144 ->append_metadata( js('jquery/jquery.ui.nestedSortable.js') ) 145 ->append_metadata( js('jquery/jquery.cookie.js') ) 543 544 <li id="page_<?php echo $page['id']; ?>"> 545 <div> 545 <div> 546 <a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a> 547 </div> 548 549 <?php if(isset($page['children'])): ?> 550 <ol> 550 <ol> 551 <?php $this->tree_builder($page); ?> 552 </ol>zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
29 if (isset($this->request->get['sort'])) { 30 $url .= '&sort=' . $this->request->get['sort']; 31 } 61 if (isset($this->request->get['sort'])) { 62 $url .= '&sort=' . $this->request->get['sort']; 63 } 165 $data = array( 166 'sort' => $sort, 167 'order' => $order, 254 255 $this->data['sort'] = $sort; 256 $this->data['order'] = $order; 295 if (isset($this->request->get['sort'])) { 296 $url .= '&sort=' . $this->request->get['sort']; 297 }class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
173 } 174 $sort = new Vc_Sort( self::$sc[ $tag ]['params'] ); 175 self::$sc[ $tag ]['params'] = $sort->sortByKey(); 232 } 233 $sort = new Vc_Sort( self::$user_sorted_sc ); 234 self::$user_sorted_sc = $sort->sortByKey(); 402 } 403 $sort = new Vc_Sort( self::$sc[ $name ]['params'] ); 404 self::$sc[ $name ]['params'] = $sort->sortByKey(); 451 } 452 $sort = new Vc_Sort( self::$sc[ $name ]['params'] ); 453 self::$sc[ $name ]['params'] = $sort->sortByKey(); 541 /** 542 * Sorting method for WPBMap::generateUserData method. Called by usort php function. 543 * @deprecated - use Vc_Sort::sortByKey since 4.4store.php https://github.com/totara/moodle.git | PHP | 362 lines
54 * @param array $params params for the sql 55 * @param string $sort sort fields 56 * 71 if (!empty($sort)) { 72 $sort = str_replace($from, $to, $sort); 73 } 88 89 $sort = self::tweak_sort_by_id($sort); 90 131 132 $sort = self::tweak_sort_by_id($sort); 133 134 // Replace the query with hardcoded mappings required for core. 135 list($selectwhere, $params, $sort) = self::replace_sql_legacy($selectwhere, $params, $sort); 136Indicators.class.php https://github.com/bgerp/bgerp.git | PHP | 440 lines
1<?php 2 33 */ 34 public $loadList = 'plg_RowTools2, sens2_Wrapper, plg_AlignDecimals, plg_RefreshRows, plg_Rejected, plg_State2,plg_Sorting'; 35arr.php https://bitbucket.org/lvandervelde/vingiserver.git | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 267 * // Get the value "sorting" from $_GET, if it exists 268 * $sorting = Arr::get($_GET, 'sorting'); 269 * 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
1<?php 2/** 175 type="'.$colSettings[$col]['type'].'" 176 sort="'.$colSettings[$col]['sort'].'" 177 color="'.$colSettings[$col]['color'].'">'.$colSettings[$col]['text'];Cache.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 243 } 244 sort($stats); 245override_form.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 266 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->libdir . '/formslib.php'); 30 101 // Generate an error. 102 $link = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id)); 103 print_error('groupsnone', 'quiz', $link); 132 $users = array(); 133 list($sort, $sortparams) = users_order_by_sql('u'); 134 if (!empty($sortparams)) { 144 'u.id, u.firstname, u.lastname, u.email', 145 $sort, '', '', array_keys($groups), 146 '', false, true); 150 'u.id, u.firstname, u.lastname, u.email' , 151 $sort, '', '', '', '', false, true); 152 }FastExactAutomatonMinimizer.java https://github.com/ryantanner/thesis.git | Java | 319 lines
125 126 protected Map sortIntoBlocks(Collection nodes) { 127 Map blockToMembers = new IdentityHashMap(); 246 Collection inverseImages = getInverseImages(split); 247 Map inverseImagesByBlock = sortIntoBlocks(inverseImages); 248 for (Iterator blockI = inverseImagesByBlock.keySet().iterator(); blockI.hasNext();) { 282 283 TransducerGraph.GraphProcessor quasiDeterminizer = new QuasiDeterminizer(); 284 AutomatonMinimizer minimizer = new FastExactAutomatonMinimizer();Protection.php https://gitlab.com/ilyales/vigma | PHP | 581 lines
4 * 5 * Copyright (c) 2006 - 2015 PHPExcel 6 * 22 * @package PHPExcel_Worksheet 23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Worksheet 34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 290 * @param boolean $pValue 291 * @return PHPExcel_Worksheet_Protection 292 */ 488 * @param boolean $pValue 489 * @return PHPExcel_Worksheet_Protection 490 */grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl-2.0.html 25 $t.p.colNames.unshift(""); 26 $t.p.colModel.unshift({name:'subgrid',width: $.browser.safari ? $t.p.subGridWidth+$t.p.cellLayout : $t.p.subGridWidth,sortable: false,resizable:false,hidedlg:true,search:false,fixed:true}); 27 cm = $t.p.subGridModel;lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 339 lines
133 global $SESSION; 134 $sort = optional_param('youtube_sort', '', PARAM_TEXT); 135 $sess_keyword = 'youtube_'.$this->id.'_keyword'; 135 $sess_keyword = 'youtube_'.$this->id.'_keyword'; 136 $sess_sort = 'youtube_'.$this->id.'_sort'; 137 142 if ($page && !$sort && isset($SESSION->{$sess_sort})) { 143 $sort = $SESSION->{$sess_sort}; 144 } 277 ); 278 $sort->id = 'youtube_sort'; 279 $sort->name = 'youtube_sort'; 279 $sort->name = 'youtube_sort'; 280 $sort->label = get_string('sortby', 'repository_youtube').': '; 281 $ret['login'] = array($search, $sort);import.php https://bitbucket.org/hudsonite/concrete5.git | PHP | 317 lines
72 73<h3><?php echo t('Upload Multiple Files')?></h3> 74 85 $("#ccm-file-manager-multiple-remote").submit(function() { 86 $(this).attr('target', ccm_alProcessorTarget); 87 }); 89 $("#ccm-file-manager-multiple-incoming").submit(function() { 90 $(this).attr('target', ccm_alProcessorTarget); 91 }); 96 upload_url : "<?=REL_DIR_FILES_TOOLS_REQUIRED?>/files/importers/multiple", 97 post_params: {'ccm-session' : "<?php echo session_id(); ?>",'searchInstance': '<?=$searchInstance?>', 'ocID' : '<?=$ocID?>', 'ccm_token' : '<?=$valt->generate("upload")?>'}, 98 file_size_limit : "<?=$umf?>", 100 button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT, 101 file_types_description : "<?php echo t('All Files') ?>", 102 file_upload_limit : 100,class.utilitycontroller.php https://github.com/abhishekmica/Garden.git | PHP | 278 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 14 15 public function Sort() { 16 $Session = Gdn::Session(); 27 foreach ($Rows as $Sort => $ID) { 28 $TableModel->Update(array('Sort' => $Sort), array($Table.'ID' => $ID)); 29 } 91 foreach ($AppNames as $AppName) { 92 $Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS); 93 } 96 // Load that specific application structure file. 97 $Files[] = CombinePaths(array(PATH_APPLICATIONS, $AppName, 'settings', 'structure.php'), DS); 98 }CakeHtmlReporter.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 385 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @since CakePHP(tm) v 1.2.0.4433 16 * @since CakePHP(tm) v 1.2.0.4433 17 * @license http://www.opensource.org/licenses/mit-license.php MIT License 18 */ 104 foreach ($testCases as $testCase) { 105 $title = explode(DS, str_replace('.test.php', '', $testCase)); 106 $title[count($title) - 1] = Inflector::camelize($title[count($title) - 1]); 134 * 135 * @param PHPUnit_Framework_TestResult $result Result object 136 * @return voiddbcreate0.php https://bitbucket.org/simancms/simancms.git | PHP | 321 lines
1<?php 2 47 `no_alike_content` tinyint(4) NULL DEFAULT 0, 48 `sorting_category` SMALLINT NULL DEFAULT '0', 49 `no_use_path` TINYINT( 4 ) NULL DEFAULT '0',SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
1<?php 2/** 11 12class SetTest extends \PHPUnit_Framework_TestCase 13{ 14 /** 15 * @var \PHPUnit_Framework_MockObject_MockObject|Set 16 */ 19 /** 20 * @var \PHPUnit_Framework_MockObject_MockObject 21 */ 24 /** 25 * @var \PHPUnit_Framework_MockObject_MockObject 26 */ 29 /** 30 * @var \PHPUnit_Framework_MockObject_MockObject 31 */settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
1<?php 2/** 106 function() { 107 require __DIR__ . '/settings-inc-page.php'; 108 } 131 $args = [ 132 'file' => __DIR__ . '/settings-inc-section.php', 133 'option' => webcomic( 'option.components' ), 162 'webcomic_general', [ 163 'file' => __DIR__ . '/settings-inc-field-uninstall.php', 164 'option' => webcomic( 'option.uninstall' ), 187 'webcomic_general', [ 188 'file' => __DIR__ . '/settings-inc-field-debug.php', 189 'option' => webcomic( 'option.debug' ), 226 'callback' => function() { 227 require __DIR__ . '/settings-inc-help-overview.php'; 228 },formcustomization.inc.php https://github.com/francisreboucas/revolution.git | PHP | 128 lines
1<?php 2/** 59$_lang['rank'] = 'Rang'; 60$_lang['rank_desc'] = 'De sortering waar de regel in uitgevoerd wordt. Een lager getal betekend dat het eerder wordt uitgevoerd.'; 61$_lang['rule'] = 'Regel'; 101$_lang['sets'] = 'Form Customization Sets'; 102$_lang['simplexml_err_nf'] = 'MODX eist de SimpleXML PHP extentie om deze feature te gebruiken. Controleer of deze extentie geinstalleerd is voordat je doorgaat.'; 103$_lang['tab'] = 'Tab'; 127$_lang['visible'] = 'Zichtbaar'; 128$_lang['xmlwriter_err_nf'] = 'MODX eist de XMLWriter PHP extentie om deze feature te gebruiken. Controleer of deze extentie geinstalleerd is voordat je doorgaat.';FinderTest.php https://github.com/Exercise/symfony.git | PHP | 333 lines
61 $this->assertSame($finder, $finder->depth('< 1')); 62 $this->assertIterator($this->toAbsolute(array('foo', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator()); 63 65 $this->assertSame($finder, $finder->depth('<= 0')); 66 $this->assertIterator($this->toAbsolute(array('foo', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator()); 67 165 166 public function testSortByAccessedTime() 167 { 224 225 $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator); 226 } 274 275 sort($ref); 276 sort($paths);Proximity.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 354 lines
1<?php 2/* 77 $this->_columns = [ 78 ts('Name') => 'sort_name', 79 ts('Street Address') => 'street_address', 166 * @param int $rowcount 167 * @param null $sort 168 * @param bool $includeContactIDs 173 public function all( 174 $offset = 0, $rowcount = 0, $sort = NULL, 175 $includeContactIDs = FALSE, $justIDs = FALSE 179 return $this->sql($selectClause, 180 $offset, $rowcount, $sort, 181 $includeContactIDs, NULL 190 * @param int $rowcount 191 * @param null $sort 192 * @param bool $includeContactIDsBounce.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 304 lines
1<?php 2/* 171 * Number of rows. 172 * @param array $sort 173 * Sort array. 179 $mailing_id, $job_id = NULL, 180 $is_distinct = FALSE, $offset = NULL, $rowCount = NULL, $sort = NULL 181 ) { 223 224 $orderBy = "sort_name ASC, {$bounce}.time_stamp DESC"; 225 if ($sort) { 226 if (is_string($sort)) { 227 $sort = CRM_Utils_Type::escape($sort, 'String'); 228 $orderBy = $sort; 230 else { 231 $orderBy = trim($sort->orderBy()); 232 }Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
1<?php 2/** 149 * @param int Max row count of children datatable(s) to archive 150 * @param string Column name to sort by, before truncating rows (ie. if there are more rows than the specified max row count) 151 * 160 $maximumRowsInSubDataTable = null, 161 $columnToSortByBeforeTruncation = null ) 162 { 176 177 $blob = $table->getSerialized( $maximumRowsInDataTableLevelZero, $maximumRowsInSubDataTable, $columnToSortByBeforeTruncation ); 178 destroy($table);index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
39// Sort (default lastname, optionally firstname) 40$sort = optional_param('sort','',PARAM_ALPHA); 41$firstnamesort = $sort == 'firstname'; 68if ($sort !== '') { 69 $url->param('sort', $sort); 70} 124 $group, 125 $firstnamesort ? 'u.firstname ASC' : 'u.lastname ASC', 126 $csv ? 0 : COMPLETION_REPORT_PAGE, 184if (strlen($sort)) { 185 $link .= '&sort='.$sort; 186} 284 285 // User heading / sort option 286 print '<th scope="col" class="completion-sortchoice">';FeedbackModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 409 lines
1<?php 2 220 'order' => 'status.asc', 221 'FeedbBack_sort' => 'status', 222 ]widgets.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 241 lines
17 $sort = $wp_registered_widgets; 18 usort( $sort, '_sort_name_callback' ); 19 $done = array(); 49/** 50 * Callback to sort array by a 'name' key. 51 * 200 </div> 201 <div class="widget-title"><h4><?php echo $widget_title ?><span class="in-widget-title"></span></h4></div> 202 </div> 206 <div class="widget-content"> 207<?php 208 if ( isset($control['callback']) ) 237 </div> 238<?php 239 echo $sidebar_args['after_widget'];index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 317 lines
16 17{% codeblock array/array_multisort.js lang:js https://raw.github.com/kvz/phpjs/master/functions/array/array_multisort.js raw on github %} 18function array_multisort(arr) { 24 // example 2: jobs = {A: 'Warrior', B: 'Thief', C: 'Monk', D: 'Mage', E: 'Knight'}; 25 // example 2: array_multisort(characters, 'SORT_DESC', 'SORT_STRING', jobs, 'SORT_ASC', 'SORT_STRING'); 26 // returns 2: true 29 // example 3: president = [ 39, 6, 5, 10, 4, 35, 2 ]; 30 // example 3: array_multisort(firstnames, 'SORT_DESC', 'SORT_STRING', lastnames, 'SORT_ASC', 'SORT_STRING', president, 'SORT_NUMERIC'); 31 // returns 3: true 116 // 117 // sortComponents: Holds 2 indexes per every section of the array that can be sorted. As this is the start, the whole array can be sorted. 118 var arrMainLength = sortArrs[0].length; 193 for (l = 0; l !== sortComponents.length; l += 2) { 194 tmpArray = sortArrs[i].slice(sortComponents[l], sortComponents[l + 1] + 1); 195 tmpArray.sort(sFunction);perf-mysql.inc.php https://github.com/MyITCRM/myitcrm1.git | PHP | 315 lines
1<?php 2/* 66 '(per session)'), 67 'sort buffer size' => array('CACHE', 68 array("show variables", 'sort_buffer_size'), 68 array("show variables", 'sort_buffer_size'), 69 'Size of sort buffer (per session)' ), 70 'table cache' => array('CACHE', 303 { 304 // May dont use __FUNCTION__ constant for BC (__FUNCTION__ Added in PHP 4.3.0) 305 ADOConnection::outp( sprintf( "<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, __FUNCTION__, $mode));FilterTest.php https://gitlab.com/oytunistrator/92five | PHP | 305 lines
1<?php 2/** 2/** 3 * PHP_CodeCoverage 4 * 4 * 5 * Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @category PHP 38 * @package CodeCoverage 39 * @subpackage Tests 40 * @author Sebastian Bergmann <sebastian@phpunit.de> 41 * @copyright 2009-2014 Sebastian Bergmann <sebastian@phpunit.de> 66 */ 67class PHP_CodeCoverage_FilterTest extends PHPUnit_Framework_TestCase 68{sfDoctrineBaseTask.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 286 lines
1<?php 2 18 * @author Jonathan H. Wage <jonwage@gmail.com> 19 * @version SVN: $Id: sfDoctrineBaseTask.class.php 28976 2010-04-05 00:27:39Z Kris.Wallsmith $ 20 */ 133 $models = array(); 134 $finder = sfFinder::type('file')->name('*.yml')->sort_by_name()->follow_link(); 135class.ScalrAPICore.php https://github.com/kennethjiang/Wolke.git | PHP | 361 lines
1<?php 2 37 38 protected function insensitiveUksort($a,$b) { 39 return strtolower($a)>strtolower($b); 99 100 uksort($request, array($this, 'insensitiveUksort')); 101 145 146 ksort($request); 147class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
119 "Bitrix\Sale\BsmSiteMaster\Steps\ModuleInstallStep" => [ 120 "SORT" => 370 121 ] 254 $this->defaultStep[$stepName] = [ 255 "SORT" => $sort 256 ]; 360 // sort step 361 array_multisort($arSteps, SORT_ASC, $this->defaultStep); 362 unset($arSteps); 469 $nextStepId = $this->wizard->GetNextStepID(); 470 $nextStepSort = $this->defaultStep[$nextStepId]["SORT"]; 471 foreach ($this->requiredStep as $stepName => $stepValues) 479 { 480 if ($nextStepSort >= $stepValues["SORT"]) 481 {backuplib.php https://github.com/cwaclawik/moodle.git | PHP | 337 lines
1<?PHP //$Id$ 2 //This php script contains all the stuff to backup/restore 207 } else { 208 sort($ids); 209 $ids = implode(',', $ids); 240 // $excluded_tags : fields which will NOT be backed up from the records 241 // $more_backup : optional PHP code to be eval(uated) for each record 242 // If any of the "fwrite" statements fail,shrewd-resume.php https://bitbucket.org/manvscode/shrewd-resume.git | PHP | 334 lines
93 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 94 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> 95 </p> 96 <p> 97 <label for="<?php echo $this->get_field_id( 'display_on_page' ); ?>"><?php _e( 'Display Only On:' ); ?></label> 98 <?php $pages = get_pages( array( 104 105 <select class="widefat" id="<?php echo $this->get_field_id( 'display_on_page' ); ?>" name="<?php echo $this->get_field_name( 'display_on_page' ); ?>"> 106 <?php foreach( $pages as $page ): ?> 107 <?php if( $page->post_name == $display_on_page ): ?> 108 <option value="<?php echo $page->post_name; ?>" selected="selected"> <?php echo $page->post_title; ?> </option> 109 <?php else: ?> 109 <?php else: ?> 110 <option value="<?php echo $page->post_name; ?>"> <?php echo $page->post_title; ?> </option> 111 <?php endif; ?>addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 64 65 $this->jquery->tablesorter('.mainTable', '{ 66 textExtraction: "complex", 186 // Send version to update class and let it do any required work 187 if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php')) 188 { 188 { 189 require $this->installed_modules[$module]['path'].'upd.'.$module.'.php'; 190 228 // Let's order by name just in case 229 asort($names); 230 324 // Send version to update class and let it do any required work 325 if (file_exists($installed[$module]['path'].'upd.'.$module.'.php')) 326 {metaboxes.php https://gitlab.com/code26/selah | PHP | 368 lines
1<?php 2 70 // 'slug' => array( 'news', 'blog' ), 71 // 'template' => array( 'fullwidth.php', 'simple.php' ), 72 // 'parent' => array( 10 ) 153 'clone' => true, 154 'sort_clone' => true, 155 'fields' => array( 242 'clone' => true, 243 'sort_clone' => true, 244 'fields' => array(sagepay.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 257 lines
1<?php 2class ControllerPaymentSagepay extends Controller { 238 239 sort($data); 240SparqlEngineDb.php https://github.com/drobbins/s3db.git | PHP | 391 lines
1<?php 2require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngine.php'; 2require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngine.php'; 3require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/Offsetter.php'; 4require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/QuerySimplifier.php'; 4require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/QuerySimplifier.php'; 5require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/ResultConverter.php'; 6require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlGenerator.php'; 6require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlGenerator.php'; 7require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngineDb/SqlMerger.php'; 8 70 /** 71 * Type sorting instance 72 * @var SparqlEngineDb_TypeSorter 129 $this->rc = new SparqlEngineDb_ResultConverter($this->query, $this->sg, $this); 130 $this->ts = new SparqlEngineDb_TypeSorter ($this->query, $this->dbConn); 131mysql4-install-0.8.0.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 222 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 42 `name` varchar(64) NOT NULL default '', 43 `sort_order` smallint(5) unsigned NOT NULL default '0', 44 `default_group_id` smallint(5) unsigned NOT NULL default '0', 46 UNIQUE KEY `code` (`code`), 47 KEY `sort_order` (`sort_order`), 48 KEY `default_group_id` (`default_group_id`) 77 `name` varchar(32) NOT NULL default '', 78 `sort_order` smallint(5) unsigned NOT NULL default '0', 79 `is_active` tinyint(1) unsigned NOT NULL default '0',ProcessorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 435 lines
1<?php 2/** 20 */ 21class ProcessorTest extends \PHPUnit_Framework_TestCase 22{ 28 /** 29 * @var ItemFactory |\PHPUnit_Framework_MockObject_MockObject 30 */ 33 /** 34 * @var StoreManagerInterface |\PHPUnit_Framework_MockObject_MockObject 35 */ 38 /** 39 * @var State |\PHPUnit_Framework_MockObject_MockObject 40 */ 43 /** 44 * @var Product |\PHPUnit_Framework_MockObject_MockObject 45 */ClientInterface.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 230 lines
1<?php 2 42 * @method array scan($cursor, array $options = null) 43 * @method array sort($key, array $options = null) 44 * @method int ttl($key)Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 134 || ($attribute->getOrigData('is_used_for_promo_rules') == 1) 135 || ($attribute->getOrigData('used_for_sort_by') == 1)); 136 140 || ($attribute->getData('is_used_for_promo_rules') == 1) 141 || ($attribute->getData('used_for_sort_by') == 1)); 142class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | PHP | 396 lines
174?> 175 <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top"> 176<?php 253?> 254 <td <?php echo $attributes ?>><?php 255 $tags = get_the_tags(); 270?> 271 <td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> 272<?php 291?> 292 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 293<?php 313?> 314 <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> 315 <?php if( $user_can_edit ) {?>Attribute.php https://github.com/rgranadino/magento-mirror.git | PHP | 400 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 53 * @method int setUsedInProductListing(int $value) 54 * @method Mage_Catalog_Model_Resource_Eav_Attribute getUsedForSortBy() 55 * @method int setUsedForSortBy(int $value)composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
28$tableID = "tbl_composite_log"; 29$sorting = new CAdminSorting($tableID, "ID", "DESC"); 30$adminList = new CAdminList($tableID, $sorting); 120 121//Sorting 122$sortBy = mb_strtoupper($sorting->getField()); 122$sortBy = mb_strtoupper($sorting->getField()); 123$sortBy = $logEntity->hasField($sortBy) ? $sortBy : "ID"; 124$sortOrder = mb_strtoupper($sorting->getOrder()); 124$sortOrder = mb_strtoupper($sorting->getOrder()); 125$sortOrder = $sortOrder !== "DESC" ? "ASC" : "DESC"; 126 137 "filter" => $filter, 138 "order" => array($sortBy => $sortOrder), 139 "count_total" => true,options.php https://gitlab.com/alexprowars/bitrix | PHP | 479 lines
48 'NAME' => $typeLang['NAME'], 49 'SORT' => $typeLang['SORT'] 50 ]; 62 'NAME' => $iblockTypes[$row['IBLOCK_TYPE_ID']]['NAME'], 63 'SORT' => $iblockTypes[$row['IBLOCK_TYPE_ID']]['SORT'], 64 'ITEMS' => [] 72 73 // sorting by sort 74 usort($iblocks, 76 { 77 if ($a['SORT'] == $b['SORT']) 78 { 80 } 81 return ($a['SORT'] < $b['SORT']) ? -1 : 1; 82 }FieldHandlerInterface.php https://gitlab.com/mohamed_hussein/prodt | PHP | 270 lines
1<?php 2 13 /** 14 * Adds an ORDER BY clause to the query for click sort columns. 15 * 18 */ 19 public function clickSort($order); 20 21 /** 22 * Determines if this field is click sortable. 23 * 24 * @return bool 25 * The value of 'click sortable' from the plugin definition, this defaults 26 * to TRUE if not set. 27 */ 28 public function clickSortable(); 29FormatterPluginManager.php https://gitlab.com/mohamed_hussein/prodt | PHP | 210 lines
1<?php 2 173 $formatter_types = $this->getDefinitions(); 174 uasort($formatter_types, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']); 175 foreach ($formatter_types as $name => $formatter_type) {SimpleHeaderSet.php https://gitlab.com/madwanz64/laravel | PHP | 399 lines
1<?php 2 233 if ($this->canSort()) { 234 uksort($headers, [$this, 'sortHeaders']); 235 } 304 if ($this->canSort()) { 305 uksort($headers, [$this, 'sortHeaders']); 306 } 342 343 /** Test if the headers can be sorted */ 344 private function canSort() 348 349 /** uksort() algorithm for Header ordering */ 350 private function sortHeaders($a, $b)courseRecord.php https://github.com/joseraul/moodlews.git | PHP | 778 lines
1<?php 2/** 22 */ 23 public $sortorder; 24 /** 145 * @param integer $category 146 * @param integer $sortorder 147 * @param string $password 177 */ 178 public function courseRecord($error='',$id=0,$category=0,$sortorder=0,$password='',$fullname='',$shortname='',$idnumber='',$summary='',$format='',$showgrades=0,$newsitems=0,$teacher='',$teachers='',$student='',$students='',$guest=0,$startdate=0,$enrolperiod=0,$numsections=0,$marker=0,$maxbytes=0,$visible=0,$hiddensections=0,$groupmode=0,$groupmodeforce=0,$lang='',$theme='',$cost='',$timecreated=0,$timemodified=0,$metacourse=0,$myrole=0){ 179 $this->error=$error ; 181 $this->category=$category ; 182 $this->sortorder=$sortorder ; 183 $this->password=$password ; 510 */ 511 public function setSortorder($sortorder){ 512 $this->sortorder=$sortorder;users.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 181 lines
1<?php // $Id: users.php,v 1.26.2.18 2010/04/10 15:11:49 iarenaza Exp $ 2 24 $temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'), 25 get_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')), '')); 26 $temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'), 46 } 47 ksort($authbyname); 48 49 foreach ($authbyname as $strauthname=>$authname) { 50 if (file_exists($CFG->dirroot.'/auth/'.$authname.'/settings.php')) { 51 // do not show disabled auths in tree, keep only settings link on manage page 53 if ($ADMIN->fulltree) { 54 include($CFG->dirroot.'/auth/'.$authname.'/settings.php'); 55 } 59 } else { 60 $ADMIN->add('authsettings', new admin_externalpage('authsetting'.$authname, $strauthname, "$CFG->wwwroot/$CFG->admin/auth_config.php?auth=$authname", 'moodle/site:config', !in_array($authname, $authsenabled))); 61 }Upsell.php https://bitbucket.org/jokusafet/magento2.git | PHP | 257 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 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 */ 44 $this->setId('up_sell_product_grid'); 45 $this->setDefaultSort('entity_id'); 46 $this->setUseAjax(true); 145 'header' => Mage::helper('Mage_Catalog_Helper_Data')->__('ID'), 146 'sortable' => true, 147 'width' => 60,ContratoController.php https://gitlab.com/SFMSP/Hagape | PHP | 315 lines
1<?php 2 51 } 52 natsort($fornecedores); 53 $fornecedores = ['' => 'Selecione o Fornecedor'] + $fornecedores; 106 } 107 natsort($fornecedores); 108 $fornecedores = ['' => 'Selecione o Fornecedor'] + $fornecedores; 153 } 154 natsort($fornecedores); 155 $fornecedores = ['' => 'Selecione o Fornecedor'] + $fornecedores; 165 } 166 natsort($fornecedores); 167 $fornecedores = ['' => 'Selecione o Fornecedor'] + $fornecedores;Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 347 lines
1<?php 2/** 14 * Sales Rules resource collection model. 15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 16 */ 118 * Filter collection to use only active rules. 119 * Involved sorting by sort_order column. 120 * 126 * @use $this->addWebsiteGroupDateFilter() 127 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 128 * @return $this 195 } 196 $this->setOrder('sort_order', self::SORT_ORDER_ASC); 197 $this->setFlag('validation_filter', true); 205 * Filter collection to only active rules. 206 * Sorting is not involved 207 *collator_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 333 lines
107 $arr = array('b' => 'a1', 1 => 'a10', 0 => 'a3b'); 108 $result = core_collator::asort($arr, core_collator::SORT_NATURAL); 109 $this->assertSame(array('a1', 'a3b', 'a10'), array_values($arr)); 132 $arr = array(0=>array('bb', 'z'), 1=>array('ab', 'a'), 2=>array('zz', 'x')); 133 $result = core_collator::asort($arr, core_collator::SORT_REGULAR); 134 $this->assertSame(array(1, 0, 2), array_keys($arr)); 169 ); 170 $result = core_collator::asort_objects_by_method($objects, 'get_protected_name', core_collator::SORT_NATURAL); 171 $this->assertSame(array(1, 'b', 0), array_keys($objects)); 194 ); 195 $result = core_collator::asort_objects_by_property($objects, 'publicname', core_collator::SORT_NATURAL); 196 $this->assertSame(array(1, 'b', 0), array_keys($objects)); 272 $arr = array('1.1.1'=>array(), '1.2'=>$obj, '1.20.2'=>null); 273 $result = core_collator::ksort($arr, core_collator::SORT_NATURAL); 274 $this->assertSame(array('1.1.1', '1.2', '1.20.2'), array_keys($arr));widget-featured-services.php https://gitlab.com/luyxtran264/myproject | PHP | 185 lines
145 <?php for ($i=1;$i<13;$i++) { ?> 146 <option <?php echo ($i == $instance['number_of_services'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option> 147 <?php } ?> 151 <p> 152 <label for="<?php echo esc_attr( $this->get_field_id( 'sort_by' ) ); ?>"><?php esc_html_e('What do you want to sort the services by?', 'transfers') ?></label> 153 <select id="<?php echo esc_attr( $this->get_field_id( 'sort_by' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'sort_by') ); ?>"> 157 <option <?php echo 'date' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="date"><?php esc_html_e('Publish Date', 'transfers') ?></option> 158 <option <?php echo 'comment_count' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="comment_count"><?php esc_html_e('Comment Count', 'transfers') ?></option> 159 </select> 163 <label for="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>"><?php esc_html_e('Sort services in descending order?', 'transfers') ?></label> 164 <input type="checkbox" <?php echo ($instance['sort_descending'] == '1' ? 'checked="checked"' : ''); ?> class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'sort_descending') ); ?>" value="1" /> 165 </p> 178 <?php for ($i=1;$i<6;$i++) { ?> 179 <option <?php echo ($i == $instance['services_per_row'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option> 180 <?php } ?>category.php https://github.com/Joomla-Bible-Study/joomla_churchdirectory.git | PHP | 479 lines
1<?php 2/** 106 'sortname', 107 'sortname1', 'a.sortname1', 108 'sortname2', 'a.sortname2', 108 'sortname2', 'a.sortname2', 109 'sortname3', 'a.sortname3' 110 ]; 234 235 // Set sortname ordering if selected 236 if ($this->getState('list.ordering') === 'sortname') 237 { 238 $query->order($db->escape('a.sortname1') . ' ' . $db->escape($this->getState('list.direction', 'ASC'))); 239 $query->order($db->escape('a.sortname2') . ' ' . $db->escape($this->getState('list.direction', 'ASC'))); 239 $query->order($db->escape('a.sortname2') . ' ' . $db->escape($this->getState('list.direction', 'ASC'))); 240 $query->order($db->escape('a.sortname3') . ' ' . $db->escape($this->getState('list.direction', 'ASC'))); 241 }tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
1<?php 2namespace Elementor; 152 153 $plugin_slug = basename( ELEMENTOR__FILE__, '.php' ); 154 205 206 require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; 207 217 218 krsort( $plugin_information->versions ); 219 356 $rollback_html . '<a data-placeholder-text="' . esc_html__( 'Reinstall', 'elementor' ) . ' v{VERSION}" href="#" data-placeholder-url="%s" class="button elementor-button-spinner elementor-rollback-button">%s</a>', 357 wp_nonce_url( admin_url( 'admin-post.php?action=elementor_rollback&version=VERSION' ), 'elementor_rollback' ), 358 esc_html__( 'Reinstall', 'elementor' )Relationship.php https://github.com/michaelmcandrew/cic.git | PHP | 311 lines
1<?php 2 45 46require_once 'api/utils.php'; 47 47 48require_once 'CRM/Contact/BAO/Relationship.php'; 49require_once 'CRM/Contact/BAO/RelationshipType.php'; 72 $targetContact = $target_contact->id; 73 require_once 'CRM/Contact/DAO/RelationshipType.php'; 74 $reletionType = & new CRM_Contact_DAO_RelationshipType(); 98 $params['contact_check'] = array ( $targetContact => $targetContact) ; 99 require_once 'CRM/Contact/BAO/Relationship.php'; 100 129 * @param array $returnProperties Which properties should be included in the related Contact object(s). If NULL, the default set of contact properties will be included. 130 * @param array $sort Associative array of one or more "property_name"=>"sort direction" pairs which will control order of Contact objects returned 131 * @param int $offset Starting row index.default.php https://github.com/ianmacl/page_objects.git | PHP | 219 lines
25?> 26<form action="<?php echo JRoute::_('index.php?option=com_menus&view=items');?>" method="post" name="adminForm" id="adminForm"> 27 <fieldset id="filter-bar"> 89 <th class="title"> 90 <?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?> 91 </th> 140 <?php if ($canEdit) : ?> 141 <a href="<?php echo JRoute::_('index.php?option=com_menus&task=item.edit&id='.(int) $item->id);?>"> 142 <?php echo $this->escape($item->title); ?></a> 163 <?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?> 164 <input type="text" name="order[]" value="<?php echo $orderkey + 1;?>" <?php echo $disabled ?> class="text-area-order" title="<?php echo $item->title; ?> order" /> 165 <?php $originalOrders[] = $orderkey + 1; ?> 181 <?php elseif ($canChange):?> 182 <a href="<?php echo JRoute::_('index.php?option=com_menus&task=items.unsetDefault&cid[]='.$item->id.'&'.JUtility::getToken().'=1');?>"> 183 <?php echo JHtml::_('image', 'mod_languages/'.$item->image.'.gif', $item->language_title, array('title'=>JText::sprintf('COM_MENUS_GRID_UNSET_LANGUAGE', $item->language_title)), true);?>ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
29 { 30 global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx; 31 249 { 250 ${'s_limit_' . $sort_option . '_days'} = '<select name="' . $sort_option . '_st">'; 251 foreach (${'limit_' . $sort_option . '_days'} as $day => $text) 257 258 ${'s_sort_' . $sort_option . '_key'} = '<select name="' . $sort_option . '_sk">'; 259 foreach (${'sort_by_' . $sort_option . '_text'} as $key => $text) 265 266 ${'s_sort_' . $sort_option . '_dir'} = '<select name="' . $sort_option . '_sd">'; 267 foreach ($sort_dir_text as $key => $value) 287 'S_TOPIC_SORT_DAYS' => $s_limit_topic_days, 288 'S_TOPIC_SORT_KEY' => $s_sort_topic_key, 289 'S_TOPIC_SORT_DIR' => $s_sort_topic_dir,CategoryController.php https://github.com/Doap/xoops.git | PHP | 238 lines
1<?php 2/** 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @author Taiwen Jiang <phppp@users.sourceforge.net> 15 * @since 3.0 119 "link" => $this->view->url(array( 120 "action" => "sort", 121 "controller" => "category", 131 "link" => $this->view->url(array( 132 "action" => "sort", 133 "controller" => "category",style.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 193 lines
1<?php 2/** 183 <script type="text/javascript" 184 src="//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.21.5/js/jquery.tablesorter.min.js"></script> 185 <script type="text/javascript"><![CDATA[ 186 $(document).ready(function () { 187 $("#sitemap").tablesorter({widgets: ['zebra']}); 188 });index.php https://bitbucket.org/ricktaylord/osclass.git | PHP | 144 lines
31 <head> 32 <?php osc_current_admin_theme_path('head.php') ; ?> 33 </head> 56 <li> 57 <a href="<?php echo osc_admin_base_url(true); ?>?page=items&catId=<?php echo $c['pk_i_id'] ; ?>"><?php echo $c['s_name'] ; ?></a> 58 <?php echo "(" . $c['i_num_items'] . " " . ( ( $c['i_num_items'] == 1 ) ? __('Item') : __('Items') ) . ")" ; ?> 61 <li> 62 <a href="<?php echo osc_admin_base_url(true); ?>?page=items&catId=<?php echo $subc['pk_i_id'];?>"><?php echo $subc['s_name'] ; ?></a> 63 <?php echo "(" . $subc['i_num_items'] . " " . ( ( $subc['i_num_items'] == 1 ) ? __('Item') : __('Items') ) . ")" ; ?> 100 <li> 101 <strong><?php echo $c['s_author_name'] ; ?></strong> <?php _e('Commented on item') ; ?> <em><a title="<?php echo $c['s_body'] ; ?>" target='_blank' href='<?php echo osc_base_url(true) . '?page=item&id=' . $c['fk_i_item_id'] ; ?>' id='dt_link'><?php echo $c['s_title'] ; ?></a></em> 102 </li> 141 <!-- /container --> 142 <?php osc_current_admin_theme_path('footer.php') ; ?> 143 </body>CurrentEmployer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 394 lines
1<?php 2/* 85 'fields' => [ 86 'sort_name' => [ 87 'title' => ts('Employee Name'), 123 ], 124 'filters' => array_merge($this->getBasicContactFilters(), ['sort_name' => ['title' => ts('Employee Name')]]), 125 'grouping' => 'contact-fields', 373 // convert employee name to links 374 if (array_key_exists('civicrm_contact_sort_name', $row) && 375 array_key_exists('civicrm_contact_id', $row) 380 ); 381 $rows[$rowNum]['civicrm_contact_sort_name_link'] = $url; 382 $rows[$rowNum]['civicrm_contact_sort_name_hover'] = ts('View Contact Detail Report for this contact');SelectableAssociationTrait.php https://gitlab.com/alexandresgv/siteentec | PHP | 341 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 3.0.0 12 * @since 3.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 107 108 if (!empty($options['sort'])) { 109 $fetchQuery->order($options['sort']);AJAX.php https://github.com/timstephenson/NatureBridge.git | PHP | 192 lines
35 36require_once 'CRM/Utils/Type.php'; 37 56 'case_type' => trim( CRM_Utils_Array::value( 1, $criteria ) ), 57 'sort_name' => trim( CRM_Utils_Array::value( 0, $criteria ) ) ); 58 63 } 64 require_once 'CRM/Case/BAO/Case.php'; 65 $unclosedCases = CRM_Case_BAO_Case::getUnclosedCases( $params, $excludeCaseIds ); 67 foreach ( $unclosedCases as $caseId => $details ) { 68 echo $details['sort_name'].' - '.$details['case_type']."|$caseId|".$details['contact_id'].'|'.$details['case_type'].'|'.$details['sort_name']."\n"; 69 } 103 104 require_once "CRM/Activity/BAO/Activity.php"; 105 require_once "CRM/Core/OptionGroup.php";tagcloud.tpl https://bitbucket.org/Shoora/tagcloud1.5.4.git | Smarty Template | 150 lines
4 <?php foreach ($breadcrumbs as $breadcrumb) { ?> 5 <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> 6 <?php } ?> 13 <h1><img src="view/image/module.png" alt="" /> <?php echo $heading_title; ?></h1> 14 <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div> 15 </div> 35 <td class="left"><?php echo $entry_status; ?></td> 36 <td class="right"><?php echo $entry_sort_order; ?></td> 37 <td></td> 45 <td class="left"><input type="text" name="tagcloud_module[<?php echo $module_row; ?>][min_font_size]" value="<?php echo $module['min_font_size']; ?>" size="3" /> 46 <input type="text" name="tagcloud_module[<?php echo $module_row; ?>][max_font_size]" value="<?php echo $module['max_font_size']; ?>" size="3" /> 47 <?php if (isset($error_font[$module_row])) { ?> 89 </select></td> 90 <td class="right"><input type="text" name="tagcloud_module[<?php echo $module_row; ?>][sort_order]" value="<?php echo $module['sort_order']; ?>" size="3" /></td> 91 <td class="left"><a onclick="$('#module-row<?php echo $module_row; ?>').remove();" class="button"><?php echo $button_remove; ?></a></td>XsdTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
1<?php 2/** 9 10class XsdTest extends \PHPUnit_Framework_TestCase 11{ 84 'Element \'total\': Missing child element(s). Expected is one of ( title, title_source_field, ' . 85 'font_size, display_zero, sort_order, model, amount_prefix ).' 86 ], 270 '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' . 271 '<sort_order>100</sort_order></total></totals></config>', 272 [], 275 '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' . 276 '<sort_order>0</sort_order></total></totals></config>', 277 [], 280 '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' . 281 '<sort_order>A</sort_order></total></totals></config>', 282 [DocumentWriter.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 231 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Search_Lucene_Index_SegmentWriter */ 24require_once 'Zend/Search/Lucene/Index/SegmentWriter.php'; 25 75 /** Zend_Search_Lucene_Search_Similarity */ 76 require_once 'Zend/Search/Lucene/Search/Similarity.php'; 77 88 */ 89 require_once 'Zend/Search/Lucene/Exception.php'; 90 throw new Zend_Search_Lucene_Exception( 'Store term vector functionality is not supported yet.' ); 189 { 190 ksort($this->_termDictionary, SORT_STRING); 191default.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 212 lines
23?> 24<form action="<?php echo JRoute::_('index.php?option=com_content&view=featured'); ?>" method="post" name="adminForm" id="adminForm"> 25<?php if (!empty( $this->sidebar)) : ?> 109 <th class="hits-col"> 110 <?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?> 111 </th> 115 <th class="nowrap id-col"> 116 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> 117 </th> 140 <?php if ($canEdit) : ?> 141 <a href="<?php echo JRoute::_('index.php?option=com_content&task=article.edit&return=featured&id='.$item->id);?>"> 142 <?php echo $this->escape($item->title); ?></a> 166 <?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?> 167 <input type="text" name="order[]" value="<?php echo $item->ordering; ?>" <?php echo $disabled; ?> class="text-area-order" title="<?php echo $item->title; ?> order" /> 168 <?php else : ?>blogger.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 323 lines
1<?php 2/** 4 * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5 * @license GNU/GPL, see LICENSE.php 6 * 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 15 16require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'parent.php' ); 17 69 70 function getBloggers($sort = 'latest', $limit = 0, $filter='showallblogger') 71 { 73 74 require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' ); 75 $config = EasyBlogHelper::getConfig();Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
357 // Filter keeping the Keys 358 ksort( $ocost ); 359 370 * numeric costs or not. 371 * @param array $sorted_mins An array of non numeric price minimums sorted smaller to larger, 372 * e.g. `['Really free', 'Somewhat free', 'Free with 3 friends']`. 372 * e.g. `['Really free', 'Somewhat free', 'Free with 3 friends']`. 373 * @param array $sorted_maxs An array of non numeric price maximums sorted smaller to larger, 374 * e.g. `['Donation min $10', 'Donation min $20', 'Donation min 378 */ 379 public function merge_cost_ranges( $original_string_cost, $merging_cost, $with_currency_symbol, $sorted_mins = array(), $sorted_maxs = array() ) { 380 if ( empty( $merging_cost ) || $original_string_cost === $merging_cost ) { 406 $merging_has_min = array_search( reset( $merging_mins ), $sorted_mins ); 407 $original_has_min = array_search( $original_string_cost, $sorted_mins ); 408 $merging_has_min = false === $merging_has_min ? 999 : $merging_has_min;model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
36 $session_data = array(); 37 $session_data['sort_by'] = $this->get_from_session('sort_by', 'name'); 38 $session_data['sort_order'] = $this->get_from_session('sort_order', 'asc'); 49 $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']); 50 $data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array()); 51 $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : ''); 112 113 $file_names = $this->get_sorted_file_names($parent_dir, $sort_by, $sort_order); 114 164 165 function get_media_library_files($sort_by, $sort_order) { 166 $icons_dir_path = WD_BWG_DIR . '/filemanager/images/file_icons'; 218 219 private function get_sorted_file_names($parent_dir, $sort_by, $sort_order) { 220 $file_names = scandir($parent_dir);update.php https://gitlab.com/diva-lab/essam-labs | PHP | 266 lines
1<?php 2require_once("../layout/initialize.php"); 11 if(empty($record_info->id)){ 12 redirect_to("view.php"); 13 }else{ 37<!--sidebar start--> 38<?php require_once("../layout/navigation.php");?> 39<!--sidebar end--> 117 <div class="col-lg-8"> 118 <input type="text" class="form-control" id="sorting" autocomplete="off" value=" <?php echo $record_info->sorting; ?>" 119 style="width:50px;"/> 171 <button type="button" class="btn btn-info" 172 onClick="window.location.href = 'view.php?group_id='+<?php echo $group_data->id?>" >View Links </button> 173 <div id="loading_data"></div> 264<!--footer start--> 265<?php require_once("../layout/footer.php");?> 266<script src="../../js-crud/load_nodes.js"></script>installv2.sh https://bitbucket.org/jorgenio/boca.git | Shell | 320 lines
90 91libCppdev=`apt-cache search libstdc++ | grep "libstdc++6-.*-dev " | sort | tail -n1 | cut -d' ' -f1` 92if [ "$libCppdev" == "" ]; then 95fi 96libCppdbg=`apt-cache search libstdc++ | grep "libstdc++6-.*-dbg " | sort | tail -n1 | cut -d' ' -f1` 97if [ "$libCppdbg" == "" ]; then 100fi 101libCppdoc=`apt-cache search libstdc++ | grep "libstdc++6-.*-doc " | sort | tail -n1 | cut -d' ' -f1` 102if [ "$libCppdoc" == "" ]; then 111apt-get -y install zenity apache2 eclipse-pde eclipse-rcp eclipse-platform eclipse-jdt eclipse emacs \ 112 evince g++ gcc gedit scite libstdc++6 makepasswd manpages-dev mii-diag php5-cli php5-mcrypt openjdk-6-dbg \ 113 php5 php5-pgsql postgresql postgresql-client postgresql-contrib quota sharutils default-jdk openjdk-6-doc \ 114 vim-gnome geany geany-plugin-addons geany-plugin-gdb geany-plugins default-jre sysstat \ 115 $sysvutils vim xfce4 $libCppdev $libCppdoc $libCppdbg php5-gd stl-manual gcc-doc debootstrap schroot c++-annotations 116if [ $? != 0 ]; thenDynamicRouter.php https://gitlab.com/guillaumev/alkarama | PHP | 387 lines
317 /** 318 * Sorts the enhancers and flattens them. 319 * 324 if (empty($this->sortedEnhancers)) { 325 $this->sortedEnhancers = $this->sortRouteEnhancers(); 326 } 331 /** 332 * Sort enhancers by priority. 333 * 333 * 334 * The highest priority number is the highest priority (reverse sorting). 335 * 343 foreach ($this->enhancers as $enhancers) { 344 $sortedEnhancers = array_merge($sortedEnhancers, $enhancers); 345 }Ajax.php https://github.com/ThiloWitt/core.git | PHP | 341 lines
1<?php 2/** 33 if (isset($data[$cid])) { 34 $cats[$k]['sort_value'] = $data[$cid]['lineno']; 35 $cats[$k]['parent_id'] = $data[$cid]['parent']; 77 $category = new Categories_DBObject_Category(); // need this for validation info 78 $editCat['sort_value'] = '0'; 79 $editCat['parent_id'] = $parent;OnlineTest.php https://github.com/tanduy/zf.git | PHP | 357 lines
40 */ 41require_once 'Zend/Http/Client/Adapter/Socket.php'; 42 116 'SearchIndex' => 'Books', 117 'Keywords' => 'php', 118 'ResponseGroup' => 'Small,ItemAttributes,Images,SalesRank,Reviews,EditorialReview,Similarities,' 185 /** 186 * Ensures that itemSearch() works as expected when sorting 187 * 189 */ 190 public function testItemSearchBooksPHPSort() 191 { 350 $this->markTestSkipped('Zend_Service_Amazon online tests not enabled with an access key ID in ' 351 . 'TestConfiguration.php'); 352 }de_de.lang.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 281 lines
1<?php 2/********************************************************************************* 50 'LBL_NONE'=>'ohne', 51 'LBL_GROUPING_SORT'=>'Sortierung:', 52 'LBL_GROUPING_SUMMARIZE'=>'Zwischensumme nach:',HTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
1<?php 2 68 'Scripting', 'Object', 'Forms', 69 // Sorta legacy, but present in strict: 70 'Name',LogCommand.java https://bitbucket.org/cofarrell/jgit.git | Java | 327 lines
7 * accompanies this distribution, is reproduced below, and is 8 * available at http://www.eclipse.org/org/documents/edl-v10.php 9 * 79 * 80 * TODO: add more options (revision ranges, sorting, ...) 81 *ClientInvitationController.php https://gitlab.com/haroldv22/tupadrino | PHP | 287 lines
1<?php 2 16use yii\web\UploadedFile; 17use moonland\phpexcel\Excel; 18 65 ], 66 'sort' => [ 67 'defaultOrder' => [ 67 'defaultOrder' => [ 68 'date_exp' => SORT_DESC, 69 ] 75 76 $excel = new Excel(); // Phpexcel 77 $errorEmail = '';field.nestedcats.php https://github.com/6ui11em/nestedcats.git | PHP | 281 lines
1<?php 2 177 $current = $this->get('related_field_id'); 178 $select = $this->_driver->buildSelectAtSettingsPannel($current[0], $this->get('sortorder'), 'related_field_id', null); 179 187 $label = Widget::Label(); 188 $input = Widget::Input('fields['.$this->get('sortorder').'][allow_multiple_selection]', 'yes', 'checkbox'); 189 if($this->get('allow_multiple_selection') == 'yes') $input->setAttribute('checked', 'checked'); 228 229 function buildSortingSQL(&$joins, &$where, &$sort, $order='ASC'){ 230 $joins .= "INNER JOIN `tbl_entries_data_".$this->get('id')."` AS `ed` ON (`e`.`id` = `ed`.`entry_id`) "; 230 $joins .= "INNER JOIN `tbl_entries_data_".$this->get('id')."` AS `ed` ON (`e`.`id` = `ed`.`entry_id`) "; 231 $sort = 'ORDER BY ' . (in_array(strtolower($order), array('random', 'rand')) ? 'RAND()' : "`ed`.`relation_id` $order"); 232 }index.php https://github.com/lowiebenoot/forkcms.git | PHP | 310 lines
1<?php 2 100 101 // sorting columns 102 $this->dgQueuedMailings->setSortingColumns(array('name', 'campaign_name', 'sent', 'language'), 'name'); 102 $this->dgQueuedMailings->setSortingColumns(array('name', 'campaign_name', 'sent', 'language'), 'name'); 103 $this->dgQueuedMailings->setSortParameter('desc'); 104 180 181 // sorting columns 182 $this->dgSentMailings->setSortingColumns(array('name', 'campaign_name', 'sent', 'language'), 'sent'); 182 $this->dgSentMailings->setSortingColumns(array('name', 'campaign_name', 'sent', 'language'), 'sent'); 183 $this->dgSentMailings->setSortParameter('desc'); 184 245 246 // sorting columns 247 $this->dgUnsentMailings->setSortingColumns(array('name', 'campaign_name', 'created_on', 'language'), 'created_on');define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
125<!-- header //--> 126<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 127<!-- header_eof //--> 228 <tr> 229 <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> 230<?php 233 if ($dir) { 234 $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); 235 while ($file = $dir->read()) { 264<!-- footer //--> 265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 266<!-- footer_eof //--> 269</html> 270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 271preview.php https://github.com/chrisgraham/ocPortal.git | PHP | 308 lines
1<?php /* 2 126 } 127 require_once(get_file_base().'/data/areaedit/plugins/SpellChecker/spell-check-logic.php'); 128 } 195 $ideal_density=1.0/(9.0*count($keyword_explode)); // Pretty rough -- common sense is needed 196 $keywords[]=array('sort'=>$ideal_density,'KEYWORD'=>$meta_keyword,'IDEAL_DENSITY'=>strval(intval(round($ideal_density*100))),'DENSITY'=>strval(intval(round($density*100)))); 197 } 199 global $M_SORT_KEY; 200 $M_SORT_KEY='sort'; 201 usort($keywords,'multi_sort'); 203 { 204 unset($keywords[$ti]['sort']); 205 }listing.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 187 lines
9<div id="iframedoc"></div> 10<form action="<?php echo JRoute::_('index.php?option=com_acymailing&ctrl='.JRequest::getCmd('ctrl')); ?>" method="post" name="adminForm" id="adminForm"> 11 <table> 47 <th class="title titledate"> 48 <?php echo JHTML::_('grid.sort', JText::_('CREATED_DATE'), 'a.created', $this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?> 49 </th> 142 <td align="center"> 143 <span id="<?php echo $htmlid ?>" class="loading"><?php echo $this->toggleClass->toggle($htmlid,$row->html,'subscriber') ?></span> 144 </td> 147 <td align="center"> 148 <span id="<?php echo $confirmedid ?>" class="loading"><?php echo $this->toggleClass->toggle($confirmedid,$row->confirmed,'subscriber') ?></span> 149 </td> 151 <td align="center"> 152 <span id="<?php echo $enabledid ?>" class="loading"><?php echo $this->toggleClass->toggle($enabledid,$row->enabled,'subscriber') ?></span> 153 </td>array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
1<?php 2 2 3include_once 'base.php'; 4 100 101f('array_multisort', Boolean, 102 array('ar1' => Variant | Reference), 322 323f('sort', Boolean, 324 array('array' => VariantMap | Reference, 324 array('array' => VariantMap | Reference, 325 'sort_flags' => array(Int32, '0'), 326 'use_collator' => array(Boolean, 'false'))); 327 328f('rsort', Boolean, 329 array('array' => VariantMap | Reference,tracker.php https://github.com/nadavkav/MoodleTAO.git | PHP | 220 lines
1<?php // $Id: tracker.php,v 1.1.10.3 2008/10/20 22:11:42 diml Exp $ 2 // tracker.php - created with Moodle 1.2 development (2003111400) 150$string['solution'] = 'Solution'; 151$string['sortorder'] = 'Order'; 152$string['status'] = 'Status';admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 45 46 ->append_js('jquery/jquery.ui.nestedSortable.js') 47 ->append_js('jquery/jquery.cooki.js')jquery_engine.php https://github.com/cgajardo/repositorium.git | PHP | 363 lines
12 * 13 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 14 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 19 * @copyright Copyright 2006-2010, Cake Software Foundation, Inc. 20 * @link http://cakephp.org CakePHP Project 21 * @package cake 22 * @subpackage cake.view.helpers 23 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 24 */ 281/** 282 * Create a sortable element. 283 * 283 * 284 * Requires both Ui.Core and Ui.Sortables to be loaded. 285 *default.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 245 lines
61 <label for="filter_search" class="element-invisible"><?php echo JText::_('COM_CATEGORIES_ITEMS_SEARCH_FILTER');?></label> 62 <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('COM_CATEGORIES_ITEMS_SEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_CATEGORIES_ITEMS_SEARCH_FILTER'); ?>" /> 63 </div> 80 <div class="btn-group pull-right"> 81 <label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label> 82 <select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()"> 105 <th width="10%" class="nowrap hidden-phone"> 106 <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'a.access', $listDirn, $listOrder); ?> 107 </th> 163 ?> 164 <tr class="row<?php echo $i % 2; ?>" sortable-group-id="<?php echo $item->parent_id;?>" item-id="<?php echo $item->id?>" parents="<?php echo $parentsStr?>" level="<?php echo $item->level?>"> 165 <td class="order nowrap center hidden-phone"> 172 endif; ?> 173 <span class="sortable-handler hasTooltip <?php echo $disableClassName?>" title="<?php echo $disabledLabel?>"> 174 <i class="icon-menu"></i>widget-output.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 276 lines
1/* Output widget (beta) for TableSorter 5/5/2014 (v2.16.4) 2 * Requires tablesorter v2.8+ and jQuery 1.7+ 3 * Modified from: 4 * HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?) 5 * Download-File-JS: https://github.com/PixelsCommander/Download-File-JS (http://www.apache.org/licenses/LICENSE-2.0) 11 12var ts = $.tablesorter, 13 106 // get header cells 107 $this = $el.find('thead tr:visible').not('.' + (ts.css.filterRow || 'tablesorter-filter-row') ); 108 headers = output.processRow(c, $this, true, outputJSON);Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 243 } 244 sort($stats); 245DefaultOptions.php https://github.com/Exercise/symfony.git | PHP | 320 lines
1<?php 2 19 * 20 * Options are a common pattern for initializing classes in PHP. Avoiding the 21 * problems related to this approach is however a non-trivial task. Usually, 289 if (count($diff) > 0) { 290 sort($knownOptions); 291 sort($diff);instances.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 244 lines
62 $temp = $resorted[$pos]; 63 $resorted[$pos] = $resorted[$switch]; 64 $resorted[$switch] = $temp; 65 // now update db sortorder 66 foreach ($resorted as $sortorder=>$instance) { 67 if ($instance->sortorder != $sortorder) { 67 if ($instance->sortorder != $sortorder) { 68 $instance->sortorder = $sortorder; 69 $DB->update_record('enrol', $instance); 85 // now update db sortorder 86 foreach ($resorted as $sortorder=>$instance) { 87 if ($instance->sortorder != $sortorder) { 87 if ($instance->sortorder != $sortorder) { 88 $instance->sortorder = $sortorder; 89 $DB->update_record('enrol', $instance);Controller.php https://github.com/quarkness/piwik.git | PHP | 321 lines
1<?php 2/** 66 67 ksort($usersAccessByWebsite); 68 86 function orderByName($a, $b) { return strcmp($a['name'], $b['name']); } 87 uasort($websites, 'orderByName'); 88 $view->websites = $websites;theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
41 'canInstall' => current_user_can( 'install_themes' ), 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ) 133 <div class="error hide-if-js"> 134 <p><?php _e( 'The Theme Installer screen requires JavaScript.' ); ?></p> 135 </div> 148 <ul class="filter-links"> 149 <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li> 150 <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> 151 <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li> 152 <li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li> 153 </ul> 183 </div> 184 <?php 185 $feature_list = get_theme_feature_list();ajax.html https://gitlab.com/victor.flores/prueba | HTML | 310 lines
132 133 <div class="php"> 134 <p>The script used to perform the server-side processing for this table is shown below. Please note 134 <p>The script used to perform the server-side processing for this table is shown below. Please note 135 that this is just an example script using PHP. Server-side processing scripts can be written in any 136 language, using <a href="//datatables.net/manual/server-side">the protocol described in the 155 <li><a href="../basic_init/filter_only.html">Feature enable / disable</a></li> 156 <li><a href="../basic_init/table_sorting.html">Default ordering (sorting)</a></li> 157 <li><a href="../basic_init/multi_col_sort.html">Multi-column ordering</a></li> 194 <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar elements</a></li> 195 <li><a href="../advanced_init/sort_direction_control.html">Order direction sequence 196 control</a></li> 284 <li><a href="../plug-ins/api.html">API plug-in methods</a></li> 285 <li><a href="../plug-ins/sorting_auto.html">Ordering plug-ins (with type 286 detection)</a></li>class-helper.php https://gitlab.com/webkod3r/tripolis | PHP | 422 lines
1<?php 2/** 39 'parent' => '', // should get parents? 40 'orderby' => 'name', // sorty by name 41 'order' => 'ASC', // in ascending orderclass-wp-ms-users-list-table.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 307 lines
165 <tr class="<?php echo $alt; ?>"> 166 <?php 167 181 <th scope="row" class="check-column"> 182 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label> 183 <input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" /> 184 </th> 185 <?php 186 break; 192 echo "<td $attributes>"; ?> 193 <?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php 194 if ( in_array( $user->user_login, $super_admins ) ) 197 <br/> 198 <?php 199 $actions = array();Fl_Shared_Image.cxx https://github.com/paniwani/OTB.git | C++ | 467 lines
24// 25// http://www.fltk.org/str.php 26// 51// 52// Typedef the C API sort function type the only way I know how... 53// 146 if (num_images_ > 1) { 147 qsort(images_, num_images_, sizeof(Fl_Shared_Image *), 148 (compare_func_t)compare);PaymentProcessor.php https://github.com/michaelmcandrew/th.git | PHP | 349 lines
1<?php 2 32 * @copyright CiviCRM LLC (c) 2004-2011 33 * $Id: PaymentProcessor.php 9702 2007-05-29 23:57:16Z lobo $ 34 * 36 37require_once 'CRM/Admin/Form.php'; 38 72 $this->assign( 'ppType', $this->_ppType ); 73 require_once 'CRM/Core/DAO/PaymentProcessorType.php'; 74 $this->_ppDAO = new CRM_Core_DAO_PaymentProcessorType( ); 162 163 $types = CRM_Core_PseudoConstant::paymentProcessorType( ); 164 $this->add( 'select', 'payment_processor_type', ts( 'Payment Processor Type' ), $types, true,Set.php https://github.com/eexit/Smak.git | PHP | 362 lines
1<?php 2 5use Smak\Portfolio; 6use Smak\Portfolio\SortHelper; 7use Symfony\Component\Finder\Adapter; 9 10require_once __DIR__ . '/../../../../vendor/autoload.php'; 11 154 array_pop($tree); 155 sort($tree); 156 177 array_pop($tree); 178 sort($tree); 179 272 273 foreach ($set->sort(SortHelper::reverseName())->getAll() as $file) { 274 $results[] = $file->getFilename();ProjectsLocationsCaPoolsCertificates.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 171 lines
1<?php 2/* 103 * [Certificates Filtering documentation](https://cloud.google.com/certificate- 104 * authority-service/docs/sorting-filtering-certificates#filtering_support). 105 * @opt_param string orderBy Optional. Specify how the results should be sorted. 105 * @opt_param string orderBy Optional. Specify how the results should be sorted. 106 * For details on supported fields and syntax, see [Certificates Sorting 107 * documentation](https://cloud.google.com/certificate-authority-service/docs 107 * documentation](https://cloud.google.com/certificate-authority-service/docs 108 * /sorting-filtering-certificates#sorting_support). 109 * @opt_param int pageSize Optional. Limit on the number of Certificates toTrackerItemSource.php https://gitlab.com/ElvisAns/tiki | PHP | 262 lines
1<?php 2 91 [ 92 'title' => $typeFactory->sortable($this->trklib->get_isMain_value($item['trackerId'], $objectId)), 93 'modification_date' => $typeFactory->timestamp($item['lastModif']), 115 if (empty($data['title'])) { 116 $data['title'] = $typeFactory->sortable(tr('Unknown')); 117 }CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
1<?php 2/** 21 /** 22 * @magentoApiDataFixture Magento/Catalog/_files/category_backend.php 23 */ 30 'level' => 2, 31 'available_sort_by' => ['position', 'name'], 32 'include_in_menu' => true, 44 unset($result['created_at'], $result['updated_at'], $result['children'], $result['custom_attributes']); 45 ksort($expected); 46 ksort($result); 81 * 82 * @magentoApiDataFixture Magento/Catalog/Model/Category/_files/service_category_create.php 83 */ 88 $this->assertGreaterThan(0, $result['id']); 89 foreach (['name', 'parent_id', 'available_sort_by'] as $fieldName) { 90 $this->assertEquals(