100+ results for 'php ksort'
Not the results you expected?
FieldHandlerInterface.php (https://gitlab.com/andecode/theme-spark) PHP · 270 lines
DocumentWriter.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 231 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 /** Zend_Search_Lucene_Index_SegmentWriter */
24 require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
26 /**
74 {
75 /** Zend_Search_Lucene_Search_Similarity */
76 require_once 'Zend/Search/Lucene/Search/Similarity.php';
78 $storedFields = array();
collator_test.php (https://github.com/pauln/moodle.git) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58 $this->error = 'Collation aware sorting not supported';
59 } else {
60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
61 }
62 parent::setUp();
PropertyPathBuilder.php (https://github.com/deviantintegral/symfony.git) PHP · 299 lines
SimpleHeaderSet.php (https://github.com/exponentcms/exponent-cms.git) PHP · 399 lines
1 <?php
3 /*
232 $headers = $this->headers;
233 if ($this->canSort()) {
234 uksort($headers, [$this, 'sortHeaders']);
235 }
303 $headers = $this->headers;
304 if ($this->canSort()) {
305 uksort($headers, [$this, 'sortHeaders']);
306 }
307 foreach ($headers as $collection) {
347 }
349 /** uksort() algorithm for Header ordering */
350 private function sortHeaders($a, $b)
351 {
SimpleHeaderSet.php (https://gitlab.com/oytunistrator/92five) PHP · 387 lines
1 <?php
3 /*
218 $headers = $this->_headers;
219 if ($this->_canSort()) {
220 uksort($headers, array($this, '_sortHeaders'));
221 }
303 $headers = $this->_headers;
304 if ($this->_canSort()) {
305 uksort($headers, array($this, '_sortHeaders'));
306 }
307 foreach ($headers as $collection) {
349 }
351 /** uksort() algorithm for Header ordering */
352 private function _sortHeaders($a, $b)
353 {
array.idl.php (https://github.com/diegoIta/hiphop-php.git) PHP · 376 lines
1 <?php
3 include_once 'base.php';
341 'use_collator' => array(Boolean, 'false')));
343 f('ksort', Boolean,
344 array('array' => VariantMap | Reference,
345 'sort_flags' => array(Int32, '0')));
357 'cmp_function' => Variant));
359 f('uksort', Boolean,
360 array('array' => VariantMap | Reference,
361 'cmp_function' => Variant));
Collection.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 177 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_Directory
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 */
160 }
162 Mage::helper('core/string')->ksortMultibyte($sort);
163 $options = array();
164 foreach ($sort as $label => $value) {
Links.php (https://gitlab.com/blingbang2016/shop) PHP · 271 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_Page
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 */
117 if (intval($position) > 0) {
118 ksort($this->_links);
119 }
CommandParser.php (https://github.com/NickBelhomme/Game.git) PHP · 256 lines
ProcessedCodeCoverageData.php (https://gitlab.com/jjpa2018/dashboard) PHP · 267 lines
1 <?php declare(strict_types=1);
2 /*
3 * This file is part of phpunit/php-code-coverage.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
16 use function count;
17 use function is_array;
18 use function ksort;
19 use SebastianBergmann\CodeCoverage\Driver\Driver;
21 /**
22 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
23 */
24 final class ProcessedCodeCoverageData
ConditionalStyles.php (https://github.com/mackensen/moodle.git) PHP · 149 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;
5 use PhpOffice\PhpSpreadsheet\Style\Conditional;
6 use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalDataBar;
7 use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormattingRuleExtension;
8 use PhpOffice\PhpSpreadsheet\Style\ConditionalFormatting\ConditionalFormatValueObject;
9 use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
53 {
54 foreach ($conditionals as $ref => $cfRules) {
55 ksort($cfRules);
56 $conditionalStyles = $this->readStyleRules($cfRules, $xmlExtLst);
csv-parser.class.php (https://bitbucket.org/mrjt515/tcsa.git) PHP · 270 lines
view.html.php (https://github.com/xillibit/Kunena-forum.git) PHP · 189 lines
file.php (https://github.com/whiletrue/fluxcms.git) PHP · 112 lines
classWriter.php (https://github.com/nickdunn/phpdoctor.git) PHP · 343 lines
1 <?php
3 class ClassWriter extends HTMLWriter {
9 $rootDoc =& $this->_doclet->rootDoc();
10 $phpdoctor =& $this->_doclet->phpdoctor();
11 $packages =& $rootDoc->packages();
13 ksort($packages);
15 foreach ($packages as $packageName => $package) {
21 if ($classes) {
22 ksort($classes);
23 foreach ($classes as $name => $class) {
DefaultIterator.php (https://github.com/MontmereLimited/zf2.git) PHP · 310 lines
Links.php (https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess) PHP · 271 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_Page
23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
117 if (intval($position) > 0) {
118 ksort($this->_links);
119 }
Array.hx (https://gitlab.com/ezeql/haxe) Haxe · 483 lines
Deferred.php (https://bitbucket.org/tobmaster/carica-io.git) PHP · 369 lines
1 <?php
3 namespace Carica\Io {
341 $resolveArguments[$index] = func_get_args();
342 if (--$counter == 0) {
343 ksort($resolveArguments);
344 call_user_func_array(array($master, 'resolve'), $resolveArguments);
345 }
354 $resolveArguments[$index] = array($argument);
355 if (--$counter == 0) {
356 ksort($resolveArguments);
357 call_user_func_array(array($master, 'resolve'), $resolveArguments);
358 }
Main.java (https://github.com/eric7237cire/CodeJam.git) Java · 195 lines
Admin.php (https://github.com/intraweb-modules13/IWstats.git) PHP · 225 lines
AbstractHeader.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 230 lines
1 <?php
2 /**
3 * @version $Id$
89 {
90 $this->addIfHigherOrder($path, $path, $order, $this->script_files);
91 ksort($this->script_files);
92 }
97 $md5 = md5($text);
98 $this->addIfHigherOrder($text, $md5, $order, $this->inline_scripts);
99 ksort($this->inline_scripts);
100 }
101 }
129 {
130 $this->addIfHigherOrder($path, $path, $order, $this->style_files);
131 ksort($this->style_files);
132 }
arr.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 228 lines
72 //Based on recursive array search function from:
73 //http://www.php.net/manual/en/function.array-search.php#91365
74 function search_recursive($needle, $haystack) {
75 foreach ($haystack as $key => $value) {
195 }
197 //Function based on http://php.net/manual/en/function.array-unique.php#82508
198 function in_array_i($str, $a) {
199 foreach($a as $v){
204 }
206 //Function based on http://php.net/manual/en/function.array-unique.php#82508
207 function array_unique_i($a) {
208 $n = array();
SegmentMerger.php (https://github.com/sitengine/sitengine.git) PHP · 270 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Search_Lucene_Index_SegmentInfo */
23 require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
25 /** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
26 require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
28 /** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
29 require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
31 /**
LockerTest.php (https://gitlab.com/imamul68e/137619_PHP31) PHP · 284 lines
SegmentMerger.php (https://github.com/jpratt/cal.git) PHP · 270 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Search_Lucene_Index_SegmentInfo */
23 #require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
25 /** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
26 #require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
28 /** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
29 #require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
31 /**
pnadminapi.php (https://github.com/intraweb-modules12/IWstats.git) PHP · 216 lines
PhpReferenceCompatibility.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 433 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 *
21 * This ArrayObject is a rewrite of the implementation to fix
22 * issues with php's implementation of ArrayObject where you
23 * are unable to unset multi-dimensional arrays because you
24 * need to fetch the properties / lists as references.
25 */
26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
27 {
28 /**
250 * @return void
251 */
252 public function ksort()
253 {
254 ksort($this->storage);
Default.php (https://github.com/scy/val.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
225 $ber_identifier);
226 }
227 ksort($entry, SORT_LOCALE_STRING);
228 return $entry;
229 }
Default.php (https://github.com/kervin/kyzstudio.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 #require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
225 $ber_identifier);
226 }
227 ksort($entry, SORT_LOCALE_STRING);
228 return $entry;
229 }
SimpleHeaderSet.php (https://bitbucket.org/antonyravel/cape-resorts.git) PHP · 394 lines
Default.php (https://github.com/frhumanes/PLM.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
225 $ber_identifier);
226 }
227 ksort($entry, SORT_LOCALE_STRING);
228 return $entry;
229 }
Text.php (https://gitlab.com/techniconline/kmc) PHP · 246 lines
47 public function process(PHP_CodeCoverage $coverage, $showColors = false)
48 {
49 $output = PHP_EOL . PHP_EOL;
50 $report = $coverage->getReport();
51 unset($coverage);
80 $classes = sprintf(
81 ' Classes: %6s (%d/%d)',
82 PHP_CodeCoverage_Util::percent(
83 $report->getNumTestedClassesAndTraits(),
84 $report->getNumClassesAndTraits(),
199 }
201 $output .= PHP_EOL . $fullQualifiedPath . PHP_EOL
202 . ' ' . $methodColor . 'Methods: ' . $this->printCoverageCounts($classInfo['methodsCovered'], $classInfo['methodCount'], 2) . $resetColor . ' '
203 . ' ' . $linesColor . 'Lines: ' . $this->printCoverageCounts($classInfo['statementsCovered'], $classInfo['statementCount'], 3) . $resetColor;
Collection.php (https://github.com/cosmocommerce/magento-mirror.git) PHP · 177 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_Directory
23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
160 }
162 Mage::helper('core/string')->ksortMultibyte($sort);
163 $options = array();
164 foreach ($sort as $label => $value) {
FilterCollection.php (https://github.com/jaikdean/doctrine2.git) PHP · 203 lines
Links.php (https://bitbucket.org/kdms/sh-magento.git) PHP · 241 lines
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)
253 while (list($k, $v) = each($v2)) {
255 uksort($v, 'vcompare');
257 $tma[$kv]["vmenuitems"] = "[";
uc_product.api.php (https://bitbucket.org/SkyBars/newplanet.git) PHP · 195 lines
AbstractDateDropdown.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 155 lines
SiteController.php (https://bitbucket.org/shel3over/scoreboard.git) PHP · 182 lines
Display_Abbreviations.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 392 lines
arrayiterator.natcasesort.html (https://bitbucket.org/thncr/manuals.git) HTML · 68 lines
7 </head>
8 <body><div class="manualnavbar" style="text-align: center;">
9 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.ksort.html">ArrayIterator::ksort</a></div>
10 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.natsort.html">ArrayIterator::natsort</a></div>
11 <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div>
53 <ul class="simplelist">
54 <li class="member"> <span class="methodname"><a href="arrayiterator.asort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::asort()</a> - Sort array by values</span></li>
55 <li class="member"> <span class="methodname"><a href="arrayiterator.ksort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::ksort()</a> - Sort array by keys</span></li>
56 <li class="member"> <span class="methodname"><a href="arrayiterator.natsort.html" class="methodname" rel="rdfs-seeAlso">ArrayIterator::natsort()</a> - Sort an array naturally</span></li>
57 <li class="member"> <span class="function"><a href="function.natcasesort.html" class="function" rel="rdfs-seeAlso">natcasesort()</a> - 用“自然排序”算法对数组进行不区分大小写字母的排序</span></li>
63 </div><hr /><div class="manualnavbar" style="text-align: center;">
64 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.ksort.html">ArrayIterator::ksort</a></div>
65 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.natsort.html">ArrayIterator::natsort</a></div>
66 <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div>
roles-list-table.php (https://bitbucket.org/akeda/bmw-id-hris.git) PHP · 238 lines
66 <ul class="subsubsub">
67 <li><a <?php if ( 'all' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles' ) ); ?>"><?php _e( 'All', 'members' ); ?> <span class="count">(<span id="all_count"><?php echo $roles_count; ?></span>)</span></a> | </li>
68 <li><a <?php if ( 'active' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&role_status=active' ) ); ?>"><?php _e( 'Has Users', 'members' ); ?> <span class="count">(<span id="active_count"><?php echo $active_roles_count; ?></span>)</span></a> | </li>
69 <li><a <?php if ( 'inactive' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&role_status=inactive' ) ); ?>"><?php _e( 'No Users', 'members' ); ?> <span class="count">(<span id="inactive_count"><?php echo $inactive_roles_count; ?></span>)</span></a></li>
70 </ul><!-- .subsubsub -->
158 <?php if ( current_user_can( 'manage_options' ) && $role == get_option( 'default_role' ) ) { ?>
159 | <a href="<?php echo admin_url( ( 'options-general.php' ) ); ?>" title="<?php _e( 'Change default role', 'members' ); ?>"><?php _e( 'Default Role', 'members' ); ?></a>
160 <?php } ?>
162 <?php if ( current_user_can( 'list_users' ) ) { ?>
163 | <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( esc_attr__( 'View all users with the %s role', 'members' ), $name ); ?>"><?php _e( 'View Users', 'members' ); ?></a>
164 <?php } ?>
178 <?php if ( current_user_can( 'list_users' ) ) { ?>
179 <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( __( 'View all users with the %s role', 'members' ), $name ); ?>"><?php printf( _n( '%s User', '%s Users', members_get_role_user_count( $role ), 'members' ), members_get_role_user_count( $role ) ); ?></a>
180 <?php } else { ?>
Charsets.php (git://github.com/phpmyadmin/phpmyadmin.git) PHP · 236 lines
1 <?php
2 /**
3 * MySQL charset metadata and manipulations
6 declare(strict_types=1);
8 namespace PhpMyAdmin;
10 use PhpMyAdmin\Charsets\Charset;
11 use PhpMyAdmin\Charsets\Collation;
13 use function __;
16 use function explode;
17 use function is_string;
18 use function ksort;
20 use const SORT_STRING;
sfDebug.class.php (https://github.com/Pulsrr/Bahamas.git) PHP · 261 lines
1 <?php
3 /*
35 * Returns PHP information as an array.
36 *
37 * @return array An array of php information
38 */
39 public static function phpInfoAsArray()
40 {
41 $values = array(
42 'php' => phpversion(),
43 'os' => php_uname(),
52 foreach($values['extensions'] as $key => $extension)
53 {
54 $values['extensions'][$key] = phpversion($extension) ? sprintf('%s (%s)', $extension, phpversion($extension)) : $extension;
55 }
56 }
Broker.php (https://github.com/Shreef/zf2.git) PHP · 367 lines
SnippetAreaController.php (https://github.com/sulu-io/sulu.git) PHP · 243 lines
plugin.php (http://tpblog.googlecode.com/svn/) PHP · 357 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
44 +----------------------------------------------------------
45 */
46 function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php')
47 {
48 static $plugins = array ();
84 while (($subfile = $subdir->read()) !== false) {
85 if($subfile == "." || $subfile == "..") continue;
86 if (preg_match('/\.php$/', $subfile))
87 $plugin_files[] = "$file/$subfile";
88 }
Analyzer.php (git://github.com/jsylvanus/phpScenario.git) PHP · 247 lines
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://www.phpscenario.org/license.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
16 * @package Scenario
17 * @copyright Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com)
18 * @license http://www.phpscenario.org/license.php New BSD License
19 */
28 * @package Scenario
29 * @copyright Copyright (c) 2011-2012 TK Studios. (http://www.tkstudios.com)
30 * @license http://www.phpscenario.org/license.php New BSD License
31 */
32 class Scenario_Data_Analyzer {
Clover.php (https://gitlab.com/jjpa2018/dashboard) PHP · 255 lines
1 <?php declare(strict_types=1);
2 /*
3 * This file is part of phpunit/php-code-coverage.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
14 use function file_put_contents;
15 use function is_string;
16 use function ksort;
17 use function max;
18 use function range;
165 }
167 ksort($lines);
169 foreach ($lines as $line => $data) {
BusinessController.php (https://gitlab.com/kalasi/vispunchcard.com) PHP · 191 lines
MerchantReport.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 206 lines
ltablib.c (https://github.com/SAPikachu/aegisub_2.1.9.git) C · 250 lines
Clover.php (https://gitlab.com/reasonat/test8) PHP · 284 lines
1 <?php
2 /*
3 * This file is part of the PHP_CodeCoverage package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
11 /**
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
13 *
14 * @since Class available since Release 1.0.0
15 */
16 class PHP_CodeCoverage_Report_Clover
17 {
18 /**
Ordering.php (https://github.com/phan/phan.git) PHP · 167 lines
1 <?php
3 declare(strict_types=1);
12 * This determines the order in which files will be analyzed.
13 * Affected by `consistent_hashing_file_order` and `randomize_file_order`.
14 * By default, files are analyzed in the same order as `.phan/config.php`
15 */
16 class Ordering
99 if (Config::getValue('consistent_hashing_file_order')) {
100 \ksort($file_names_for_classes, \SORT_STRING);
101 }
getlist.php (https://github.com/esche/revolution.git) PHP · 108 lines
create.php (https://github.com/eb/phptourney.git) PHP · 259 lines
ChildrenOfMember.php (https://github.com/sulianapp-com/sulianapp.git) PHP · 260 lines
DocumentWriter.php (https://github.com/Exercise/zf2.git) PHP · 236 lines
plugin.php (https://github.com/devilzz/metabbs.git) PHP · 237 lines
1 <?php
2 // Filter API
3 define('META_FILTER_OVERWRITE', 1); // 필터 충돌시 겹쳐쓴다.
20 }
21 $__plugins[$name] = $plugin;
22 ksort($__plugins);
23 }
68 $filters[$event][$priority] = $callback;
69 }
70 ksort($filters[$event]);
71 }
198 if (import_plugin($plugin, $dir)) break;
199 } else {
200 if (file_exists("$dir$plugin.php")) {
201 include_once("$dir$plugin.php");
HookApi.php (https://gitlab.com/iamgraeme/royalmile) PHP · 337 lines
1 <?php
2 namespace WebSharks\HtmlCompressor;
289 $hook_actions = $this->hooks[$hook];
290 $args = func_get_args();
291 ksort($hook_actions);
293 foreach ($hook_actions as $_hook_action) {
320 $hook_filters = $this->hooks[$hook];
321 $args = func_get_args();
322 ksort($hook_filters);
324 foreach ($hook_filters as $_hook_filter) {
hooks.php (https://github.com/iconifyit/SkyBlue-1.1.git) PHP · 215 lines
1 <?php defined('SKYBLUE') or die('Bad file request');
3 /**
5 * @package SkyBlueCanvas
6 * @copyright Copyright (C) 2005 - 2008 Scott Edwin Lewis. All rights reserved.
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * SkyBlueCanvas is free software. This version may have been modified pursuant
9 * to the GNU General Public License, and as distributed it includes or
185 /**
186 * Encodes an Array or Object as JSON
187 * @param Mixed $data The PHP data structure
188 * @return String
189 */
195 /**
196 * Decodes a JSON string to a PHP data structure
197 * @param Mixed $json The JSON string
198 * @return Mixed
manager.php (https://github.com/michaelcullum/phpbb3.git) PHP · 332 lines
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
12 */
14 namespace phpbb\composer;
16 use Composer\IO\IOInterface;
35 /**
36 * @var string Type of packages (phpbb-packages per example)
37 */
38 protected $package_type;
Tax.php (https://github.com/litecommerce/core.git) PHP · 125 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
15 * to licensing@litecommerce.com so we can send you a copy immediately.
16 *
17 * PHP version 5.3.0
18 *
19 * @category LiteCommerce
20 * @author Creative Development LLC <info@cdev.ru>
21 * @copyright Copyright (c) 2011-2012 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 * @link http://www.litecommerce.com/
24 */
cmap.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 298 lines
1 <?php
2 /**
3 * @package php-font-lib
4 * @link https://github.com/PhenX/php-font-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
13 * `cmap` font table.
14 *
15 * @package php-font-lib
16 */
17 class cmap extends Table {
174 }
176 ksort($newGlyphIndexArray); // Sort by char code
178 $segments = array();
Pptx.php (https://gitlab.com/RonLab1987/YupePlusClear) PHP · 223 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Pptx.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 /** Zend_Search_Lucene_Document_OpenXml */
24 require_once 'Zend/Search/Lucene/Document/OpenXml.php';
26 /**
73 {
74 if (!class_exists('ZipArchive', false)) {
75 require_once 'Zend/Search/Lucene/Exception.php';
76 throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
77 }
Facebook.php (https://github.com/Br3nda/openmicroblogger.git) PHP · 230 lines
1 <?php
3 /**
4 * PHP5 interface for Facebook's REST API
5 *
6 * PHP version 5.1.0+
8 * LICENSE: This source file is subject to the New BSD license that is
9 * available through the world-wide-web at the following URI:
10 * http://www.opensource.org/licenses/bsd-license.php. If you did not receive
11 * a copy of the New BSD License and are unable to obtain it through the web,
12 * please send a note to license@php.net so we can mail you a copy immediately.
16 * @author Joe Stump <joe@joestump.net>
17 * @copyright 2007-2008 Joe Stump <joe@joestump.net>
18 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
19 * @version Release: @package_version@
20 * @link http://pear.php.net/package/Services_Facebook
Abstract.php (https://github.com/expressdecor/Expressdecor.git) PHP · 390 lines
Processor.php (https://gitlab.com/davidgranado/space-strategy-game) PHP · 397 lines
1 <?php
2 class Processor
3 {
285 {
286 // Alphabetically sort the arrays based on the key
287 ksort($this->consts);
289 ksort($this->methods['public']);
290 ksort($this->methods['protected']);
291 ksort($this->methods['private']);
292 ksort($this->methods['static']);
294 ksort($this->properties['public']);
5.0.0.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 325 lines
template-admin.php (https://gitlab.com/presscodes/maera-page-builder-text-section) PHP · 174 lines
67 $column_classes = apply_filters( 'maera_pb-text-column-classes', 'maera_pb-text-column maera_pb-text-column-position-' . $j, $i, $maera_pb_section_data );
68 ?>
69 <div class="<?php echo esc_attr( $column_classes ); ?>" data-id="<?php echo $i; ?>">
70 <div title="<?php esc_attr_e( 'Drag-and-drop this column into place', 'maera' ); ?>" class="maera_pb-sortable-handle">
85 <?php foreach ( $column_buttons as $button ) : ?>
86 <a href="<?php echo esc_url( $button['href'] ); ?>" class="column-buttons <?php echo esc_attr( $button['class'] ); ?>" title="<?php echo esc_attr( $button['title'] ); ?>" <?php if ( ! empty( $button['other-a-attributes'] ) ) echo $button['other-a-attributes']; ?>>
87 <span>
88 <?php echo esc_html( $button['label'] ); ?>
93 <?php echo maera_pb_get_builder_base()->add_uploader( $column_name, maera_pb_sanitize_image_id( $image_id ), __( 'Set image', 'maera' ) ); ?>
94 <?php maera_pb_get_builder_base()->add_frame( $section_id . '-' . $i, $column_name . '[content]', $content ); ?>
96 <?php
172 <input type="hidden" value="<?php echo esc_attr( implode( ',', $section_order ) ); ?>" name="<?php echo $section_name; ?>[columns-order]" class="maera_pb-text-columns-order" />
173 <input type="hidden" class="maera_pb-section-state" name="<?php echo $section_name; ?>[state]" value="<?php if ( isset( $maera_pb_section_data['data']['state'] ) ) echo esc_attr( $maera_pb_section_data['data']['state'] ); else echo 'open'; ?>" />
174 <?php Maera_PB()->sections->load_footer();
sfListTask.class.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 177 lines
1 <?php
3 /*
15 * @subpackage task
16 * @author Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version SVN: $Id: sfListTask.class.php 21428 2009-08-25 11:24:13Z fabien $
18 */
19 class sfListTask extends sfCommandApplicationTask
110 // display tasks
111 ksort($tasks);
112 $currentNamespace = '';
113 foreach ($tasks as $name => $task)
146 // display tasks
147 ksort($tasks);
148 $currentNamespace = 'foobar';
149 $namespaceArrayXML = array();
minifyHTMLResponsePluginTest.php (https://github.com/hadrienl/jelix.git) PHP · 145 lines
1 <?php
3 require_once(JELIX_LIB_PATH.'core/response/jResponseHtml.class.php');
4 require_once(JELIX_LIB_PATH.'plugins/htmlresponse/minify/minify.htmlresponse.php');
6 class testMinifyHTMLResponsePlugin extends minifyHTMLResponsePlugin {
19 class minifyHTMLResponsePluginTest extends PHPUnit_Framework_TestCase
20 {
21 public static function setUpBeforeClass() {
25 function testStaticJs () {
26 $minOptions = array( 'type' => 'text/javascript' );
27 ksort($minOptions);
28 $inputUrls = array('http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js' => $minOptions,
29 'http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js' => $minOptions);
sfTesterDoctrine.class.php (https://github.com/bheneka/gitta.git) PHP · 177 lines
NormalizerTest.php (https://github.com/symfony/polyfill.git) PHP · 153 lines
1 <?php
3 /*
14 use Normalizer as in;
15 use PHPUnit\Framework\TestCase;
16 use Symfony\Polyfill\Intl\Normalizer\Normalizer as pn;
34 unset($rin['NONE'], $rin['FORM_KC_CF'], $rin['NFKC_CF']);
36 ksort($rpn);
37 ksort($rin);
67 {
68 $c = in::normalize('déjà', pn::NFC).in::normalize('훈쇼™', pn::NFD);
69 if (\PHP_VERSION_ID < 70300) {
70 $this->assertSame($c, normalizer_normalize($c, \Normalizer::NONE));
71 }
Media.php (https://gitlab.com/asun89/socianovation-web) PHP · 258 lines
1 <?php
2 namespace Grav\Common\Page;
145 public function all()
146 {
147 ksort($this->instances, SORT_NATURAL | SORT_FLAG_CASE);
148 return $this->instances;
149 }
156 public function images()
157 {
158 ksort($this->images, SORT_NATURAL | SORT_FLAG_CASE);
159 return $this->images;
160 }
167 public function videos()
168 {
169 ksort($this->videos, SORT_NATURAL | SORT_FLAG_CASE);
170 return $this->videos;
171 }
flagging.php (https://github.com/cdavid/wattsapp2.git) PHP · 98 lines
1 <?php if (!defined('APPLICATION')) exit(); ?>
2 <h1><?php echo T($this->Data['Title']); ?></h1>
3 <div class="Info">
4 <?php echo T('The following content has been flagged by users for moderator review.'); ?>
5 </div>
6 <div class="FilterMenu">
7 <?php
8 $ToggleName = C('Plugins.Flagging.Enabled') ? T('Disable Content Flagging') : T('Enable Content Flagging');
9 echo "<div>".Wrap(Anchor($ToggleName, 'plugin/flagging/toggle/'.Gdn::Session()->TransientKey(), 'SmallButton'))."</div>";
11 </div>
13 <?php
14 if (C('Plugins.Flagging.Enabled')) {
15 // Settings
Links.php (https://bitbucket.org/tschrock52/ethodeshare.git) PHP · 241 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_Page
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 */
101 $this->_links[$this->_getNewPosition($position)] = $link;
102 if (intval($position) > 0) {
103 ksort($this->_links);
104 }
DocumentWriter.php (https://github.com/kervin/kyzstudio.git) PHP · 230 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: DocumentWriter.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
23 /** Zend_Search_Lucene_Index_SegmentWriter */
24 #require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
26 /**
73 {
74 /** Zend_Search_Lucene_Search_Similarity */
75 #require_once 'Zend/Search/Lucene/Search/Similarity.php';
77 $storedFields = array();
DocumentWriter.php (https://github.com/frhumanes/PLM.git) PHP · 230 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: DocumentWriter.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
23 /** Zend_Search_Lucene_Index_SegmentWriter */
24 require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
26 /**
73 {
74 /** Zend_Search_Lucene_Search_Similarity */
75 require_once 'Zend/Search/Lucene/Search/Similarity.php';
77 $storedFields = array();
Arr.php (https://github.com/overtrue/yaf-skeleton.git) PHP · 482 lines
DocumentWriter.php (https://github.com/ayamyau/concrete5.git) PHP · 230 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: DocumentWriter.php 23775 2011-03-01 17:25:24Z ralph $
21 */
23 /** Zend_Search_Lucene_Index_SegmentWriter */
24 require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
26 /**
73 {
74 /** Zend_Search_Lucene_Search_Similarity */
75 require_once 'Zend/Search/Lucene/Search/Similarity.php';
77 $storedFields = array();
FilterCollection.php (https://github.com/stefanklug/doctrine2.git) PHP · 198 lines
manage_pages.php (https://github.com/alfsaav/belleidea_WP.git) PHP · 156 lines
36 var json = eval('('+msg+')');
37 var title = (null == json.title) ? "" : json.title;
38 var code = (null == json.phpcode) ? "" : json.phpcode;
39 var precode = (null == json.precode) ? "" : json.precode;
40 var template = (null == json.page_template) ? "" : json.page_template;
118 foreach ($pages as $key => $val) {
119 ?>
120 <option value="<?php echo $key; ?>"><?php echo $val; ?></option>
121 <?php
135 <?php
136 $page_templates = get_page_templates();
137 if (!in_array('page.php',$page_templates) && locate_template(array('page.php',false))) {
138 $page_templates['Page (WP Default)'] = 'page.php';
141 foreach ($page_templates as $template => $file) {
142 ?>
143 <option value="<?php echo $file; ?>"><?php echo $template; ?></option>
144 <?php
PropertyEnumerator.php (https://gitlab.com/nmhieucoder/laravel_tintuc) PHP · 178 lines
CacheControl.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 252 lines
UserToggles.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 114 lines
arrayiterator.unserialize.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 84 lines
7 </head>
8 <body><div class="manualnavbar" style="text-align: center;">
9 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.uksort.html">ArrayIterator::uksort</a></div>
10 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.valid.html">ArrayIterator::valid</a></div>
11 <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="arrayiterator.unserialize" class="refentry">
14 <div class="refnamediv">
79 </div><hr /><div class="manualnavbar" style="text-align: center;">
80 <div class="prev" style="text-align: left; float: left;"><a href="arrayiterator.uksort.html">ArrayIterator::uksort</a></div>
81 <div class="next" style="text-align: right; float: right;"><a href="arrayiterator.valid.html">ArrayIterator::valid</a></div>
82 <div class="up"><a href="class.arrayiterator.html">ArrayIterator</a></div>
Matrix.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 97 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_Adminhtml
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 */
57 foreach( $oldCurrencies as $key => $value ) {
58 ksort($oldCurrencies[$key]);
59 }
PoFileParser.php (https://github.com/LubosRemplik/cakephp.git) PHP · 184 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
11 * @link https://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license https://opensource.org/licenses/mit-license.php MIT License
161 $plurals = $item['translated'];
162 // PO are by definition indexed so sort by index.
163 ksort($plurals);
165 // Make sure every index is filled.
sort.c (https://github.com/haisano/OS161-kernel.git) C · 138 lines
ClassMetadata.php (https://github.com/cystbear/JMSSerializerBundle.git) PHP · 169 lines
1 <?php
3 /*
141 switch ($this->accessorOrder) {
142 case self::ACCESSOR_ORDER_ALPHABETICAL:
143 ksort($this->propertyMetadata);
144 break;
146 case self::ACCESSOR_ORDER_CUSTOM:
147 $order = $this->customOrder;
148 uksort($this->propertyMetadata, function($a, $b) use ($order) {
149 $existsA = isset($order[$a]);
150 $existsB = isset($order[$b]);
node_collector.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 142 lines
Default.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 320 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
20 */
87 * @see Zend_Ldap_Exception
88 */
89 require_once 'Zend/Ldap/Exception.php';
90 throw new Zend_Ldap_Exception( $this->_ldap, 'counting entries' );
91 }
230 $ber_identifier);
231 }
232 ksort($entry, SORT_LOCALE_STRING);
234 return $entry;
ArrayList.class.php (https://github.com/qhwang0427/backend_php.git) PHP · 351 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
326 // 列表排序
327 public function ksort()
328 {
329 ksort($this->_elements);
Service.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 143 lines
AbstractSignature.php (https://github.com/sdh100shaun/Linktuesday.com.git) PHP · 189 lines
LVS.php (https://github.com/pascalmd/PRISM.git) PHP · 168 lines
1 <?php
2 class LVS extends Plugins
3 {
4 const URL = 'http://lfsforum.net/forumdisplay.php?f=312';
5 const NAME = 'LVS';
6 const AUTHOR = 'PRISM Dev Team';
7 const VERSION = PHPInSimMod::VERSION;
8 const DESCRIPTION = 'Lap Verification System.';
157 public function cmdListPLIDs($cmd, $ucid)
158 {
159 ksort($this->onLap);
161 forEach ($this->onLap as $PLID => $LAP)
get_db_directories.class.php (https://github.com/hatone/moodle.git) PHP · 95 lines
ThemeManager.php (git://github.com/phpmyadmin/phpmyadmin.git) PHP · 307 lines
1 <?php
3 declare(strict_types=1);
5 namespace PhpMyAdmin;
7 use function __;
10 use function htmlspecialchars;
11 use function is_dir;
12 use function ksort;
13 use function opendir;
14 use function readdir;
218 );
219 // force a change of a dummy session variable to avoid problems
220 // with the caching of phpmyadmin.css.php
221 $GLOBALS['config']->set('theme-update', $themeId);
HTMLDefinition.php (https://gitlab.com/afzalpotenza/YII_salon) PHP · 324 lines
1 <?php
3 class HTMLPurifier_Printer_HTMLDefinition extends HTMLPurifier_Printer
125 $ret .= $this->start('table');
126 $ret .= $this->element('caption', 'Elements ($info)');
127 ksort($this->def->info);
128 $ret .= $this->heavyHeader('Allowed tags', 2);
129 $ret .= $this->start('tr');
261 protected function listifyTagLookup($array)
262 {
263 ksort($array);
264 $list = array();
265 foreach ($array as $name => $discard) {
280 protected function listifyObjectList($array)
281 {
282 ksort($array);
283 $list = array();
284 foreach ($array as $obj) {
fsource_Smarty_plugins_smartypluginsfunction.assign_debug_info.php.html (https://github.com/lilin01/haha.git) HTML · 58 lines
10 <h1>Source for file function.assign_debug_info.php</h1>
11 <p>Documentation is available at <a href="../Smarty/plugins/_smarty_plugins_function_assign_debug_info_php.html">function.assign_debug_info.php</a></p>
12 <div class="src-code">
13 <pre><ol><li><a name="a1"></a><span class="src-php"><?php</span></li>
31 <li><a name="a19"></a><span class="src-sym">{</span></li>
32 <li><a name="a20"></a> <span class="src-var">$assigned_vars </span>= <span class="src-var">$smarty</span><span class="src-sym">-></span><span class="src-id">_tpl_vars</span><span class="src-sym">;</span></li>
33 <li><a name="a21"></a> <a href="http://www.php.net/ksort">ksort</a><span class="src-sym">(</span><span class="src-var">$assigned_vars</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
34 <li><a name="a22"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/is_array">is_array</a><span class="src-sym">(</span><span class="src-var">$smarty</span><span class="src-sym">-></span><span class="src-id">_config</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">)) </span><span class="src-sym">{</span></li>
35 <li><a name="a23"></a> <span class="src-var">$config_vars </span>= <span class="src-var">$smarty</span><span class="src-sym">-></span><span class="src-id">_config</span><span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]</span><span class="src-sym">;</span></li>
36 <li><a name="a24"></a> <a href="http://www.php.net/ksort">ksort</a><span class="src-sym">(</span><span class="src-var">$config_vars</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
37 <li><a name="a25"></a> <span class="src-var">$smarty</span><span class="src-sym">-></span><span class="src-id">assign</span><span class="src-sym">(</span><span class="src-str">"_debug_config_keys"</span><span class="src-sym">, </span><a href="http://www.php.net/array_keys">array_keys</a><span class="src-sym">(</span><span class="src-var">$config_vars</span><span class="src-sym">))</span><span class="src-sym">;</span></li>
53 </div>
54 <p class="notes" id="credit">
55 Documentation generated on Wed, 05 Aug 2009 07:45:36 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
56 </p>
57 </body>
Filter.php (https://github.com/heavenshell/php-string-filter.git) PHP · 202 lines
SystemShellBuiltIn.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 732 lines
✨ Summary
This Java code defines a set of shell commands for a console plugin, including cd
, pwd
, pushd
, popd
, and others. It provides basic directory navigation functionality, allowing users to change directories, print their current working directory, and manage aliases and variables. The commands are designed to work within the context of a text editor or IDE, likely for a Java-based project.
This Java code defines a set of shell commands for a console plugin, including cd
, pwd
, pushd
, popd
, and others. It provides basic directory navigation functionality, allowing users to change directories, print their current working directory, and manage aliases and variables. The commands are designed to work within the context of a text editor or IDE, likely for a Java-based project.
ContextOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 432 lines
✨ Summary
This Java code creates a dialog for adding new actions to an editor’s context menu. It allows users to select either a separator or an action, and then choose from a list of available actions. The selected action is added to the context menu, and the dialog can be cancelled or confirmed with “OK”.
This Java code creates a dialog for adding new actions to an editor’s context menu. It allows users to select either a separator or an action, and then choose from a list of available actions. The selected action is added to the context menu, and the dialog can be cancelled or confirmed with “OK”.