100+ results results for 'php compact repo:moodle/moodle' (1891 ms)
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 78 if (!$delete && $from && $to) 79 $aliases[$id] = compact('from', 'to', 'posts'); 80 }class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 454 lines
1<?php 2/** 94 $this->set_pagination_args( array( 95 'total_items' => wp_count_terms( $this->screen->taxonomy, compact( 'search' ) ), 96 'per_page' => $tags_per_page, 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>"; 368Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
1<?php namespace Cms\Controllers; 2 106 107 $this->bodyClass = 'compact-container side-panel-not-fixed'; 108 $this->pageTitle = 'cms::lang.cms.menu_label';XmlFileLoader.php https://github.com/schinzi/symfony.git | PHP | 402 lines
1<?php 2 73 74 $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter')); 75 } 84 $this->currentDir = dirname($file); 85 $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors')); 86 } 112 $method = 'set'.str_replace('-', '', $key); 113 $definition->$method((string) $service->getAttributeAsPhp($key)); 114 } 120 121 $definition->setArguments($service->getArgumentsAsPhp('argument')); 122 137 foreach ($service->call as $call) { 138 $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument')); 139 }BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
1<?php 2/** 56 if ($highlight) { 57 $result = highlight_string("<?php\n" . self::$_output, true); 58 self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); 119 self::$_output .= "$className#$id\n" . $spaces . '('; 120 if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) { 121 $dumpValues = $var->__debugInfo(); 141 * 142 * The string is a valid PHP expression that can be evaluated by PHP parser 143 * and the evaluation result will give back the variable value. 145 * This method is similar to `var_export()`. The main difference is that 146 * it generates more compact string representation using short array syntax. 147 * 147 * 148 * It also handles objects by using the PHP functions serialize() and unserialize(). 149 *Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
1<?php 2/** 2/** 3 * Logger.php 4 * 9 * Logging utility class. This class handles basic logging with levels, log rotation and custom log formats. It's 10 * designed to be compact but still powerful and flexible. 11 *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 205 <li><a href="../styling/cell-border.html">Base style - cell borders</a></li> 206 <li><a href="../styling/compact.html">Base style - compact</a></li> 207 <li><a href="../styling/hover.html">Base style - hover</a></li>TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
1<?php 2/** 2/** 3 * TableProcessor.php 4 * 32 33require_once(dirname(__FILE__) . '/AbstractProcessor.php'); 34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php'); 34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php'); 35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php'); 36 208 case 'REDUNDANT': 209 case 'COMPACT': 210 case 'NO':class_stats.tex https://gitlab.com/karl3/gs_libs | LaTeX | 392 lines
86 87Definition at line 18 of file Stats.\-class.\-php. 88 183 184Definition at line 356 of file Stats.\-class.\-php. 185 207 208Definition at line 161 of file Stats.\-class.\-php. 209 255 256Definition at line 136 of file Stats.\-class.\-php. 257 391\item 392/\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/Stats.\-class.\-php\end{DoxyCompactItemize} 393ControllerTest.php https://bitbucket.org/thesyncim/admin-biarq.git | PHP | 356 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2011, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 24 $request = new MockControllerRequest(); 25 $postsController = new MockPostsController(compact('request')); 26 $result = get_class($postsController->request); 31 * Tests the use of `Controller::__invoke()` for dispatching requests to action methods. Also 32 * tests that using PHP's callable syntax yields the same result as calling `__invoke()` 33 * explicitly. 142 143 $controller = new MockPostsController(compact('request') + array('classes' => array( 144 'media' => 'lithium\tests\mocks\action\MockMediaClass'ShellTest.php https://gitlab.com/Laolballs/cbtapp | PHP | 325 lines
1<?php 2 19 20class ShellTest extends \PHPUnit_Framework_TestCase 21{ 40 $shell = new Shell($this->getConfig()); 41 $shell->setScopeVariables(compact('one', 'two', 'three', '__psysh__', '_', '_e')); 42 65 { 66 $config = $this->getConfig(array('configFile' => __DIR__ . '/../../fixtures/empty.php')); 67 76 $config = $this->getConfig(array( 77 'defaultIncludes' => array('/file.php'), 78 'configFile' => __DIR__ . '/../../fixtures/empty.php', 83 $includes = $shell->getIncludes(); 84 $this->assertEquals('/file.php', $includes[0]); 85 }haml.php https://bitbucket.org/mintao/yii-phamlp.git | PHP | 287 lines
1<?php 2/** 13 * See below and HamlParser for a description of options 14 * * Add the following line in your app_controller.php 15 * <pre>var $view = 'Haml';</pre> 95 * expanded: block tags have their own lines as does content which is indented 96 * compact: block tags and their content go on one line 97 * compressed: all unneccessary whitepaces is removed. If ugly is true this 160 161 App::import('Vendor', 'HamlParser', array('file'=>'phamlp'.DS.'haml'.DS.'HamlParser.php')); 162 $this->haml = new HamlParser($options); 165 /** 166 * Renders a piece of PHP with provided parameters and returns HTML, XML, or 167 * any other string.Mailer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 504 lines
1<?php namespace Illuminate\Mail; 2 108 { 109 $this->from = compact('address', 'name'); 110 } 166 167 return $this->queue->push('mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue); 168 } 197 198 return $this->queue->later($delay, 'mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue); 199 }repo-auth-type.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 387 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15*/ 16#include "hphp/runtime/base/repo-auth-type.h" 17ArticlesController.php https://gitlab.com/forby/Trace | PHP | 476 lines
1<?php namespace App\Http\Controllers; 2 38 39 return view('articles.index', compact('articles', 'top_tags')); 40 } 61 // Show the view 62 return view('articles.create', compact('tags', 'categories', 'user', 'users')); 63 } 118 119 return view('articles.show', compact('article', 'relatedArticles', 'user')); 120 } 139 // Show the edit view 140 return view ('articles.edit', compact('article', 'tags', 'categories', 'user')); 141 } 225 if ( $author->email ) { 226 Mail::send('emails.published', compact('author', 'article'), function( $message ) use ( $author ) { 227 $message->to($author->email, $author->name);Service.php https://github.com/jpratt/cal.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $ 32 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 #require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));paperclip.rb https://github.com/kende/lovd-by-less.git | Ruby | 244 lines
8# Copyright:: Copyright (c) 2008 thoughtbot, inc. 9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php) 10# 55 def path_for_command command #:nodoc: 56 path = [options[:image_magick_path], command].compact 57 File.join(*path) 95 # geometry strings at the ImageMagick website 96 # (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip 97 # also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximallyrules.php https://github.com/FullService/joomla.git | PHP | 286 lines
1<?php 2/** 78 79 // Use the compact form for the content rules (to be deprecated). 80// if (!empty($component) && $section != 'component') {array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
1<?php 2 2 3include_once 'base.php'; 4 177 178f('compact', VariantMap, 179 array('varname' => Variant),module.js https://github.com/arborrow/moodle.git | JavaScript | 259 lines
22 // Properties. 23 api : M.cfg.wwwroot + '/mod/chat/chat_ajax.php?sesskey=' + M.cfg.sesskey, // The path to the ajax callback script. 24 cfg : {}, // A configuration variable. 120 {text: M.util.get_string('bubble', 'mod_chat'), url: this.cfg.chaturl + '&theme=bubble'}, 121 {text: M.util.get_string('compact', 'mod_chat'), url: this.cfg.chaturl + '&theme=compact'} 122 ]);ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
1<?php namespace Backend\Behaviors; 2 278 if (!isset($this->listDefinitions[$definition])) { 279 throw new ApplicationException(Lang::get('backend::lang.list.missing_parent_definition', compact('definition'))); 280 } 345 346 return implode(PHP_EOL, $collection); 347 }core.h https://gitlab.com/freedmpure/bitcoin | C Header | 476 lines
3// Distributed under the MIT/X11 software license, see the accompanying 4// file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 242 243/** wrapper for CTxOut that provides a more compact serialization */ 244class CTxOutCompressorService.php https://github.com/tuteke/isaved.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $ 32 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 #require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));key.cpp https://gitlab.com/yenny.prathivi/bitcoin | C++ | 330 lines
2// Distributed under the MIT software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 197 198bool CKey::SignCompact(const uint256 &hash, std::vector<unsigned char>& vchSig) const { 199 if (!fValid) 205 assert(ret); 206 secp256k1_ecdsa_recoverable_signature_serialize_compact(secp256k1_context_sign, (unsigned char*)&vchSig[1], &rec, &sig); 207 assert(ret);config.inc.php https://gitlab.com/gentotech/evotennissg | PHP | 263 lines
5if(file_exists($wp_root . '/wp-load.php')) { 6require_once($wp_root . "/wp-load.php"); 7} else if(file_exists($wp_root . '/wp-config.php')) { 7} else if(file_exists($wp_root . '/wp-config.php')) { 8require_once($wp_root . "/wp-config.php"); 9}else { 28} 29# Language of PHPFM. 30$language = "english"; 40# Login is handled by Wordpress in this hack 41# DO NOT enable phpfm_auth, as it will likely break the script 42$phpfm_auth = FALSE; 91 "layout.gif" => "html htm shtml htm pdf", 92 "script.gif" => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js", 93 "image2.gif" => "jpeg jpe jpg gif png bmp",Table.php https://gitlab.com/techniconline/kmc | PHP | 408 lines
1<?php 2 394 395 $compact = new TableStyle(); 396 $compact 404 'borderless' => $borderless, 405 'compact' => $compact, 406 );class_images.tex https://gitlab.com/karl3/gs_libs | LaTeX | 223 lines
4\subsection*{Static Public Member Functions} 5\begin{DoxyCompactItemize} 6\item 68 69Definition at line 281 of file Images.\-class.\-php. 70 82 83Definition at line 40 of file Images.\-class.\-php. 84 118)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_images_a9fd2462b057c4b6bbe052a757addad15} 119Thanks to Ze\-Badger for original example, and Davide Gualano for pointing me to it Original at \href{http://it.php.net/manual/en/function.imagecreatefromgif.php#59787}{\tt http\-://it.\-php.\-net/manual/en/function.\-imagecreatefromgif.\-php\#59787} 120 222\item 223/\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/Images.\-class.\-php\end{DoxyCompactItemize} 224rules.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 318 lines
1<?php 2/** 86 87 // Use the compact form for the content rules (deprecated). 88 //if (!empty($component) && $section != 'component') {RegisterCompanyController.php https://gitlab.com/pedramkousari/soratjalase | PHP | 452 lines
1<?php namespace App\Http\Controllers\Customer; 2 47 '.form-step1', 48 view('customer.frm.inc.register_company_step1',compact('type', 'step_cnt', 'documentId', 'companyId' , 'company'))->render() 49 ]); 69 '.form-step2', 70 view('customer.frm.inc.register_company_step2',compact('userPartner','companyPartner'))->render() 71 ]); 91 '.form-step3', 92 view('customer.frm.inc.register_company_step3',compact('userPartner','json_address'))->render() 93 ]); 113 '.form-step4', 114 view('customer.frm.inc.register_company_step4',compact('boardType','userPartner','userBoard'))->render() 115 ]); 126 '.form-step5', 127 view('customer.frm.inc.register_company_step5',compact('companyName'))->render() 128 ]);lang_sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 178 lines
1<?php 2//generated at 17.03.2007 5$lang['sql_view_normal']="Exibir: normal"; 6$lang['sql_view_compact']="Exibir: compacto"; 7$lang['import_notable']="Nenhuma tabela foi selecionada para importação!";DumpDataCollector.php https://gitlab.com/kimting254/wbms | PHP | 298 lines
1<?php 2 43 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 44 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 45 $this->requestStack = $requestStack; 71 72 $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true; 73 if (PHP_VERSION_ID >= 50400) { 130 131 $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt'); 132 ++$this->dataCount; 154 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 155 $this->dumper = new HtmlDumper('php://output', $this->charset); 156 } else { 156 } else { 157 $this->dumper = new CliDumper('php://output', $this->charset); 158 }class.jetpack-options.php https://gitlab.com/hunt9310/ras | PHP | 256 lines
1<?php 2 9 10 public static function get_option_names( $type = 'compact' ) { 11 switch ( $type ) { 11 switch ( $type ) { 12 case 'non-compact' : 13 case 'non_compact' : 71 if ( is_array( $name ) ) { 72 $compact_names = array(); 73 foreach ( array_keys( self::$grouped_options ) as $_group ) { 73 foreach ( array_keys( self::$grouped_options ) as $_group ) { 74 $compact_names = array_merge( $compact_names, self::get_option_names( $_group ) ); 75 } 76 77 $result = array_diff( $name, self::get_option_names( 'non_compact' ), $compact_names ); 78update.php https://bitbucket.org/MashedUpMedia/mashedupmedia.git | PHP | 420 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 61 'version' => $wp_version, 62 'php' => $php_version, 63 'locale' => $locale, 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 174 175 $to_send = (object) compact('plugins', 'active'); 176 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );RecordSetTest.php https://github.com/brtriver/sukonv.git | PHP | 420 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 67 68 $this->_recordSet = new MockRecordSet(compact('result', 'model') + array('exists' => true)); 69 71 $result->records = array_merge(array(false), $this->_records); 72 $this->_objectRecordSet = new MockRecordSet(compact('result', 'model') + array( 73 'exists' => trueeiffel.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | PHP | 395 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * eiffel.php 4 * ---------- 253 'COMPARABLE', 254 'COMPACT_TREE_CURSOR', 255 'COMPACT_CURSOR_TREE',about.css https://gitlab.com/webkod3r/tripolis | CSS | 481 lines
353 354.about-wrap .compact { 355 margin-bottom: 0 366 367.about-wrap .compact .wp-person { 368 height: auto; 381 382.about-wrap .compact .wp-person .gravatar { 383 width: 30px; 408 409.freedoms-php .about-wrap ol { 410 margin: 40px 60px; 412 413.freedoms-php .about-wrap ol li { 414 list-style-type: decimal;Builder.php https://gitlab.com/jjpa2018/dashboard | PHP | 433 lines
1<?php 2 383 384 return Container::getInstance()->make(Blueprint::class, compact('table', 'callback', 'prefix')); 385 }externallib_test.php https://github.com/danpoltawski/moodle.git | PHP | 286 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30 31require_once($CFG->dirroot . '/webservice/tests/helpers.php'); 32 87 'tool_mobile_disabledfeatures' => '', 88 'launchurl' => "$CFG->wwwroot/$CFG->admin/tool/mobile/launch.php", 89 'warnings' => array() 98 set_config('logo', 'mock.png', 'core_admin'); 99 set_config('logocompact', 'mock.png', 'core_admin'); 100 108 } 109 if ($compactlogourl = $OUTPUT->get_compact_logo_url()) { 110 $expected['compactlogourl'] = $compactlogourl->out(false); 122 global $CFG, $SITE; 123 require_once($CFG->dirroot . '/course/format/lib.php'); 124DatabaseStore.php https://gitlab.com/ealexis.t/trends | PHP | 266 lines
1<?php 2 109 try { 110 $this->table()->insert(compact('key', 'value', 'expiration')); 111 } catch (Exception $e) { 111 } catch (Exception $e) { 112 $this->table()->where('key', '=', $key)->update(compact('value', 'expiration')); 113 }about.css https://gitlab.com/kath.de/cibedo_cibedo.de | CSS | 537 lines
344 345.about-wrap ul.compact { 346 margin-bottom: 0 357 358.about-wrap ul.compact li.wp-person { 359 height: auto; 372 373.about-wrap ul.compact li.wp-person img.gravatar { 374 width: 30px; 396 397.freedoms-php .about-wrap ol { 398 margin: 40px 60px; 400 401.freedoms-php .about-wrap ol li { 402 list-style-type: decimal;Ftp.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 448 lines
1<?php 2 186 { 187 $stream = fopen('php://temp', 'w+b'); 188 fwrite($stream, $contents); 217 218 return compact('path', 'visibility'); 219 } 397 { 398 $stream = fopen('php://temp', 'w+'); 399 $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode); 407 408 return compact('stream'); 409 } 421 422 return compact('visibility'); 423 }tlib.vim https://gitlab.com/jeichert/vimrc | Vim Script | 219 lines
2" @Author: Thomas Link (mailto:micathom AT gmail com?subject=vim-tLib) 3" @Website: http://www.vim.org/account/profile.php?user_id=4037 4" @License: GPL (see http://www.gnu.org/licenses/gpl.txt) 24 25TAssert IsEqual(tlib#list#Compact([]), []) 26TAssert IsEqual(tlib#list#Compact([0,1,2,3,[], {}, ""]), [1,2,3])BaseCrudController.php https://gitlab.com/joepa37/ierschool | PHP | 402 lines
1<?php 2 104 105 return $this->renderIsAjax($this->directory.'index', compact('dataProvider', 'searchModel')); 106 } 153 154 return $this->renderIsAjax($this->directory.'create', compact('model')); 155 } 190 191 return $this->renderIsAjax($this->directory.'update', compact('model')); 192 }MySql.php https://github.com/brtriver/sukonv.git | PHP | 437 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 90 /** 91 * Check for required PHP extension, or supported database feature. 92 * 172 $_config = $this->_config; 173 $params = compact('model'); 174 203 public function describe($entity, array $meta = array()) { 204 $params = compact('entity', 'meta'); 205 return $this->_filter(__METHOD__, $params, function($self, $params) {func-emitter.h https://github.com/soitun/hiphop-php.git | C Header | 420 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 18 19#include "hphp/runtime/base/attr.h" 20#include "hphp/runtime/base/datatype.h"projectsController.php https://gitlab.com/php2laravel/php-project-boost | PHP | 341 lines
1<?php 2 41 42 return view('pages.projects', compact('projects', 'designershort')); 43 } 130 //-----------------------DB-----------------------------// 131 //return view('pages.showProject', compact('project', 'palette')); 132 // votes 196 $tags = Tag::lists('name', 'id'); 197 return view('pages.projects.edit', compact('project', 'tags')); 198 } 293 $tags = Tag::lists('name', 'id'); 294 return view('pages.projectsCreate', compact('tags')); 295ResourceRegistrar.php https://gitlab.com/phanthanh9787/crud-user | PHP | 359 lines
1<?php 2 83 84 return $this->router->group(compact('prefix'), $callback); 85 }LocaleController.php https://gitlab.com/campus-academy/krowkaramel | PHP | 162 lines
1<?php 2/** 123 if( 0 === $nfiles ){ 124 return $this->view('admin/errors/no-locale', compact('breadcrumb','locale') ); 125 } 157 158 return $this->view( 'admin/bundle/locale', compact('breadcrumb','translations','types','npofiles','modified') ); 159 }W3CReference.php https://github.com/symfony/symfony.git | PHP | 400 lines
1<?php 2 232 'colspan' => true, 233 'compact' => true, 234 'content' => true,_directories.erb https://gitlab.com/gutocarvalho/puppetlabs-apache | Ruby HTML | 283 lines
82 <%- end -%> 83 <%- if directory['php_flags'] and ! directory['php_flags'].empty? -%> 84 <%- directory['php_flags'].sort.each do |flag,value| -%> 88 <%- end -%> 89 <%- if directory['php_values'] and ! directory['php_values'].empty? -%> 90 <%- directory['php_values'].sort.each do |key,value| -%> 93 <%- end -%> 94 <%- if directory['php_admin_flags'] and ! directory['php_admin_flags'].empty? -%> 95 <%- directory['php_admin_flags'].sort.each do |flag,value| -%> 99 <%- end -%> 100 <%- if directory['php_admin_values'] and ! directory['php_admin_values'].empty? -%> 101 <%- directory['php_admin_values'].sort.each do |key,value| -%> 192 <%- if directory['suphp'] and @suphp_engine == 'on' -%> 193 suPHP_UserGroup <%= directory['suphp']['user'] %> <%= directory['suphp']['group'] %> 194 <%- end -%>media.php https://github.com/bb-dev/cakephp2x.git | PHP | 258 lines
1<?php 2/** 4 * 5 * PHP Version 5.x 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs.view 17 * @since CakePHP(tm) v 1.2.0.5714 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 32 'ccad' => 'application/clariscad', 'cdf' => 'application/x-netcdf', 'class' => 'application/octet-stream', 33 'cpio' => 'application/x-cpio', 'cpt' => 'application/mac-compactpro', 'csh' => 'application/x-csh', 34 'csv' => 'application/csv', 'dcr' => 'application/x-director', 'dir' => 'application/x-director',system.routing.yml https://gitlab.com/geeta7/drupal | YAML | 477 lines
129 130system.admin_compact_page: 131 path: '/admin/compact/{mode}' 132 defaults: 133 _controller: 'Drupal\system\Controller\SystemController::compactPage' 134 mode: 'off' 299 300system.php: 301 path: '/admin/reports/status/php' 302 defaults: 303 _controller: 'Drupal\system\Controller\SystemInfoController::php' 304 requirements: 453system.db_update: 454 path: '/update.php/{op}' 455 defaults:adminController.php https://gitlab.com/higordaniell/SIN-352 | PHP | 403 lines
1<?php 2class adminController extends Controller { 23 $venda = $vt->getById($venda_id); 24 $this->_page->adminView('admin/vendas/detalhes', compact('venda')); 25 } 27 $vendas = $vt->getAll(); 28 $this->_page->adminView('admin/vendas/view', compact('vendas')); 29 } 38 $usuario = $ut->getById($usuario_id); 39 $this->_page->adminView('admin/clientes/detalhes', compact('usuario')); 40 } 42 $usuarios = $ut->getAll(); 43 $this->_page->adminView('admin/clientes/view', compact('usuarios')); 44 } 69 70 $this->_page->adminView("admin/livros/view", compact('livros')); 71 }server_side.html https://gitlab.com/ealexis.t/trends | HTML | 310 lines
24 "serverSide": true, 25 "ajax": "../server_side/scripts/server_processing.php" 26 } ); 94 "serverSide": true, 95 "ajax": "../server_side/scripts/server_processing.php" 96 } ); 133 134 <div class="php"> 135 <p>The script used to perform the server-side processing for this table is shown below. Please note 135 <p>The script used to perform the server-side processing for this table is shown below. Please note 136 that this is just an example script using PHP. Server-side processing scripts can be written in any 137 language, using <a href="//datatables.net/manual/server-side">the protocol described in the 205 <li><a href="../styling/cell-border.html">Base style - cell borders</a></li> 206 <li><a href="../styling/compact.html">Base style - compact</a></li> 207 <li><a href="../styling/hover.html">Base style - hover</a></li>DumpDataCollector.php https://gitlab.com/madwanz64/laravel | PHP | 296 lines
1<?php 2 53 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 54 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 55 $this->requestStack = $requestStack; 94 } 95 $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt'); 96 ++$this->dataCount; 127 if ($response->headers->has('Content-Type') && str_contains($response->headers->get('Content-Type'), 'html')) { 128 $dumper = new HtmlDumper('php://output', $this->charset); 129 $dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]); 130 } else { 131 $dumper = new CliDumper('php://output', $this->charset); 132 if (method_exists($dumper, 'setDisplayOptions')) { 244 245 if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) { 246 $dumper = new HtmlDumper('php://output', $this->charset);WebSocketParserD08.java git://pkgs.fedoraproject.org/jetty | Java | 389 lines
11 * The Apache License v2.0 is available at 12 * http://www.opensource.org/licenses/apache2.0.php 13 * 24// The Apache License v2.0 is available at 25// http://www.opensource.org/licenses/apache2.0.php 26// You may elect to redistribute this code under either of these licenses. 153 { 154 // compact to mark (set at start of data) 155 _buffer.compact(); 163 Buffer data =_buffer.get(4*(available/4)); 164 _buffer.compact(); 165 if (_masked)sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 302 lines
6include ('language/'.$config['language'].'/lang_sql.php'); 7include ('./inc/functions_sql.php'); 8include ('./'.$config['files']['parameter']); 46$no_order=false; 47$tdcompact=(isset($_GET['tdc'])) ? $_GET['tdc'] : $config['interface_table_compact']; 48$db=(!isset($_GET['db'])) ? $databases['db_actual'] : $_GET['db']; 189 190$params="sql.php?db=".$db."&tablename=".$tablename."&dbid=".$dbid.'&context='.$context.'&sql_statement='.urlencode($sql['sql_statement']).'&tdc='.$tdcompact.'&showtables='.$showtables; 191if ($order!="") $params.="&order=".$order."&orderdir=".$orderdir.'&context='.$context; 199 $aus=''; 200 include ('./inc/sqlbrowser/sqlbox.php'); 201 259 260 if ($mode=='edit'||$mode=='searchedit') include ('./inc/sqlbrowser/sql_record_update_inputmask.php'); 261 if ($mode=='new') include ('./inc/sqlbrowser/sql_record_insert_inputmask.php');character.php https://github.com/bheiskell/Riiga.git | PHP | 524 lines
1<?php 2class Character extends AppModel { 95 // The required validator checks using isset, not array_key_exists. I'm 96 // not sure why, but cakephp's search must null out empty columns. Thus 97 // my pending behavior pulls down non-isset compatible data. This is 173 return 1 == $this->find('count', array( 174 'conditions' => compact('id', 'user_id') 175 )); 187 public function getUserIdById($id) { 188 return $this->field('user_id', compact('id')); 189 }select_rows.html https://gitlab.com/metahuman247/business | HTML | 326 lines
27 "serverSide": true, 28 "ajax": "scripts/ids-arrays.php", 29 "rowCallback": function( row, data ) { 110 "serverSide": true, 111 "ajax": "scripts/ids-arrays.php", 112 "rowCallback": function( row, data ) { 162 163 <div class="php"> 164 <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side 230 <li><a href="../styling/cell-border.html">Base style - cell borders</a></li> 231 <li><a href="../styling/compact.html">Base style - compact</a></li> 232 <li><a href="../styling/hover.html">Base style - hover</a></li>other.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
1<?php 2/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com> 75 'PredefinedMailContentSendFichInter' => 'You will find here the intervention __FICHINTERREF__\n\n__PERSONALIZED__Sincerely\n\n__SIGNATURE__', 76 'DemoDesc' => 'Speedealing is a compact ERP/CRM composed by several functional modules. A demo that includes all modules does not mean anything as this never occurs. So, several demo profiles are available.', 77 'ChooseYourDemoProfil' => 'Choose the demo profile that match your activity...', 148 'EnableGDLibraryDesc' => 'Install or enable GD library with your PHP for use this option.', 149 'EnablePhpAVModuleDesc' => 'You need to install a module compatible with your anti-virus. (Clamav : php4-clamavlib ou php5-clamavlib)', 150 'ProfIdShortDesc' => '<b>Prof Id %s</b> is an information depending on third party country.<br>For example, for country <b>%s</b>, it\'s code <b>%s</b>.',mod-search.tpl https://gitlab.com/ElvisAns/tiki | Smarty Template | 178 lines
8 {* <div class="{*col-auto*}{*me-2"> *} 9 <input style="min-width: 4rem;{if $smod_params.compact eq "y"}{*width:72%;border-bottom-right-radius:0;border-top-right-radius: 0;*}{/if}" placeholder="{tr}Find{/tr}" class="form-control my-1" id="search_mod_input_{$search_mod_usage_counter}" name="{if $smod_params.search_action eq 'tiki-searchindex.php'}filter~content{else}find{/if}" {if !empty($smod_params.input_size)}size="{$smod_params.input_size}" style="width: auto"{/if} type="text" accesskey="s" value="{$smod_params.input_value|escape}"> 10 <label class="sr-only" for="search_mod_input_{$search_mod_usage_counter}">Find</label> 16 <div class="col-auto"> 17 {if $smod_params.search_action eq 'tiki-searchindex.php'} 18 <select id="filterType" name="filter~type" class="form-select my-1" {*style="width:{$smod_params.select_size}em;"*}> 72 title="{tr}Search{/tr}|{tr}Search for text throughout the site.{/tr}" 73 {if $smod_params.compact eq "y"}data-bs-placement="bottom"{/if} 74 onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.search_action|escape:javascript}').attr('page_selected','');" 81 title="{tr}Go{/tr}|{tr}Go directly to a page, or search in page titles if exact match is not found.{/tr}" 82 {if $smod_params.compact eq "y"}data-bs-placement="bottom"{/if} 83 onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.go_action|escape:javascript}').attr('page_selected',''); 83 onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.go_action|escape:javascript}').attr('page_selected',''); 84 {if $smod_params.search_action eq 'tiki-searchindex.php'} 85 $('#search-module-form{$search_mod_usage_counter} input[name=\'filter~content\']').attr('name', 'find');DashboardController.php https://gitlab.com/Ankit77/motiv8 | PHP | 249 lines
1<?php 2 23 $themes=DB::table("themes")->get(); 24 return view('backend.pages.themes', compact('themes')); 25 } 98 $userdetail=DB::table('users')->where('id', $id)->get(); 99 return view('backend.pages.viewuser', compact('userdetail')); 100 } 103 $themes=DB::table('themes')->where('id',$id)->get(); 104 return view('backend.pages.edittheme', compact('themes')); 105 } 153 154 return view('backend.pages.viewtheme', compact('themes')); 155 } 158 $challenges=DB::table('challenges')->join('user_challenges', 'challenges.id','=', 'user_challenges.challenge_id')->select('challenges.*', 'user_challenges.challenge_timeline', 'user_challenges.post_frequency', 'user_challenges.completion_reward', 'user_challenges.invite_friend')->get(); 159 return view('backend.pages.challenges', compact('challenges') ); 160 }class-thelib-ui.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 514 lines
1<?php 2/** 189 protected function _prepare_js_or_css( $url, $type, $onpage, $priority ) { 190 $this->_add( 'js_or_css', compact( 'url', 'type', 'onpage', 'priority' ) ); 191 279 280 $item = compact( 'url', 'alias', 'onpage' ); 281 $this->_add( $type, $item ); 287 /** 288 * Action hook for enqueue style (for PHP <5.3 only) 289 * 318 /** 319 * Action hook for enqueue script (for PHP <5.3 only) 320 * 468 469 self::_sess_add( 'admin_notice', compact( 'text', 'class', 'screen', 'id' ) ); 470 $this->add_action( 'admin_notices', '_admin_notice_callback', 1 );shortcodes.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 375 lines
1<?php 2/** 65 if ( stristr( $content, '[album' )) { 66 $search = "@(?:<p>)*\s*\[album\s*=\s*(\w+|^\+)(|,extend|,compact)\]\s*(?:</p>)*@i"; 67 if (preg_match_all($search, $content, $matches, PREG_SET_ORDER)) {Form.php https://github.com/fabpot/framework-benchs.git | PHP | 353 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 21 * $post = Post::find(1); 22 * return compact('post'); 23 * 211 return $self->invokeMethod('_render', array( 212 $method, $template, compact('url', 'options') 213 )); 214 }; 215 return $this->_filter(__METHOD__, compact('binding', 'options'), $filter); 216 }update.php https://github.com/jao/jpcamargo.git | PHP | 334 lines
11 * 12 * The WordPress version, PHP version, and Locale is sent. Checks against the 13 * WordPress server at api.wordpress.org server. Will only check if WordPress 26 global $wp_version, $wpdb, $wp_local_package; 27 $php_version = phpversion(); 28 46 $local_package = isset( $wp_local_package )? $wp_local_package : ''; 47 $url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 48 89 * 90 * The WordPress version, PHP version, and Locale is sent along with a list of 91 * all plugins installed. Checks against the WordPress server at 117 $new_option->last_checked = time(); 118 $timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours 119 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );Scaffold.php https://gitlab.com/nghiep5890/bakery | PHP | 451 lines
1<?php 2/** 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 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 * @package Cake.Controller 17 * @since Cake v 0.10.0.1076 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 19 */ 137 138 $this->controller->set(compact( 139 'modelClass', 'primaryKey', 'displayField', 'singularVar', 'pluralVar', 330 if ($this->_validSession) { 331 $this->controller->Flash->set($message, compact('element')); 332 return $this->controller->redirect($this->redirect);DumpDataCollector.php https://gitlab.com/judielsm/Handora | PHP | 303 lines
1<?php 2 43 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 44 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 45 $this->requestStack = $requestStack; 72 $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS; 73 if (PHP_VERSION_ID >= 50400) { 74 $trace = debug_backtrace($trace, 7); 130 131 $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt'); 132 ++$this->dataCount; 154 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 155 $this->dumper = new HtmlDumper('php://output', $this->charset); 156 } else { 156 } else { 157 $this->dumper = new CliDumper('php://output', $this->charset); 158 }DbConfigTask.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 384 lines
1<?php 2/** 2/** 3 * The DbConfig Task handles creating and updating the database.php 4 * 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 1.2 15 * @since CakePHP(tm) v 1.2 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */paperclip.rb https://github.com/nilerbarcelos/crm.git | Ruby | 277 lines
8# Copyright:: Copyright (c) 2008 thoughtbot, inc. 9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php) 10# 56 def path_for_command command #:nodoc: 57 path = [options[:image_magick_path], command].compact 58 File.join(*path) 112 # geometry strings at the ImageMagick website 113 # (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip 114 # also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 128 # "-depth 8" to specify the bit depth of the resulting conversion. See ImageMagick 129 # convert documentation for more options: (http://www.imagemagick.org/script/convert.php) 130 # Note that this option takes a hash of options, each of which correspond to the stylevariables_fp.php https://github.com/facebook/pfff.git | PHP | 236 lines
1<?php 2 9function test_unused_var_ok_when_keyword_arguments() { 10 // no error for now even if $key appeared as unused. PHP has no 11 // keyword arguments so people use such assignation as a kind of 60 // checks for use of undefined variable are restricted to local vars 61 // not class variables of object members. See check_classes_php.ml for that. 62 echo TestClassVariable::$dbGetters; 78// this used to raise false positives when I was using the old visitor-based 79// variable checker. Switching to Ast_php_simple and an env-based recursive 80// approach solved the problem for free. 108function test_ok_undeclared_sscanf() { 109 sscanf(PHP_VERSION, '%d', $_PHP_MAJOR_VERSION); 110 echo $_PHP_MAJOR_VERSION; 231 //ERROR: please avoid dynamic code 232 $arr = compact('compacted'); 233Site.php https://gitlab.com/blueprintmrk/cli | PHP | 555 lines
1<?php 2 97 * @param [string] $env_id Environment name 98 * @param [boolean] $updatedb True to run update.php 99 * @param [boolean] $xoption True to automatically resolve merge conflicts 177 'POST', 178 compact('body') 179 ); 414 'upstream' => null, 415 'php_version' => null, 416 'holder_type' => null, 538 $method, 539 compact('body') 540 );update.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 449 lines
11 * 12 * The WordPress version, PHP version, and Locale is sent. Checks against the 13 * WordPress server at api.wordpress.org server. Will only check if WordPress 27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 68 'version' => $wp_version, 69 'php' => $php_version, 70 'locale' => $locale, 196 197 $to_send = (object) compact('plugins', 'active'); 198 233function wp_update_themes() { 234 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 235HtmlBuilder.php https://gitlab.com/milton2913/myBlog | PHP | 563 lines
1<?php 2 80 81 return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL); 82 } 100 101 return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL); 102 } 138 139 return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL); 140 } 502 { 503 $defaults = compact('name', 'content'); 504 521 $content = is_array($content) ? implode(PHP_EOL, $content) : $content; 522 return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL); 523 }base.css https://github.com/GerHobbelt/CompactCMS.git | CSS | 504 lines
1/* ***************************************************** 2Copyright (C) 2008 - 2010 by Xander Groesbeek (CompactCMS.nl) 3Revision: CompactCMS - v 1.4.2 4 5This file is part of CompactCMS. 6 6 7CompactCMS is free software: you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 11 12CompactCMS is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 16 17A reference to the original author of CompactCMS and its copyright 18should be clearly visible at all times for the user of the back-class.mimetype.php https://github.com/severnaya99/Sg-2010.git | PHP | 262 lines
1<?php 2/** 35/** 36 Name: PHP MimeType Class 37 40 41 Description: This class allows a PHP script to determine the mime type 42 a file based on the file extension. This class is handy for PHP versions 107 "hqx" => "application/mac-binhex40", 108 "cpt" => "application/mac-compactpro", 109 "doc" => "application/msword", 254 "movie" => "video/x-sgi-movie", 255 "php" => "text/php", 256 "php3" => "text/php3",Commands.md https://gitlab.com/itlboy/yii2-starter-installed | Markdown | 271 lines
9* `codecept dry-run acceptance checkout.feature` 10* `codecept dry-run tests/acceptance/MyCest.php` 11 61* `codecept generate:cept suite Login` 62* `codecept g:cept suite subdir/subdir/testnameCept.php` 63* `codecept g:cept suite LoginCept -c path/to/project` 74* `codecept run acceptance` - run all acceptance tests 75* `codecept run tests/acceptance/MyCept.php` - run only MyCept 76* `codecept run acceptance MyCept` - same as above 87 --config (-c) Use custom path for config 88 --report Show output in compact style 89 --html Generate html with results (default: "report.html") 123 124* `php codecept.phar self-update` 125customize-widgets.css https://gitlab.com/morganestes/wordpress-develop | CSS | 483 lines
20 21/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */ 22.customize-control-widget_form .widget-top { 237 238/* Keep rule that is no longer necessary on widgets.php. */ 239#available-widgets .widget-action { 439@media screen and (max-height: 700px) and (min-width: 981px) { 440 /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */ 441 .customize-control-widget_form { 474 475 /* Compact the move widget areas. */ 476 #customize-theme-controls .widget-area-select li {base.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 300 lines
1<?php 2 176 177 return compact( 'comment_author', 'comment_author_email', 'comment_author_url', 'user_id' ); 178 }ParameterTest.php https://github.com/tanduy/zf.git | PHP | 201 lines
1<?php 2/** 23// Call Zend_Server_Method_ParameterTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Server_Method_ParameterTest::main"); 27 28require_once dirname(__FILE__) . '/../../../TestHelper.php'; 29 30/** Zend_Server_Method_Parameter */ 31require_once 'Zend/Server/Method/Parameter.php'; 32 42 */ 43class Zend_Server_Method_ParameterTest extends PHPUnit_Framework_TestCase 44{ 51 { 52 $suite = new PHPUnit_Framework_TestSuite("Zend_Server_Method_ParameterTest"); 53 $result = PHPUnit_TextUI_TestRunner::run($suite);system.routing.yml https://gitlab.com/mohamed_hussein/prodt | YAML | 522 lines
137 138system.admin_compact_page: 139 path: '/admin/compact/{mode}' 140 defaults: 141 _controller: '\Drupal\system\Controller\SystemController::compactPage' 142 mode: 'off' 315 316system.php: 317 path: '/admin/reports/status/php' 318 defaults: 319 _controller: '\Drupal\system\Controller\SystemInfoController::php' 320 requirements: 491system.db_update: 492 path: '/update.php/{op}' 493 defaults:update.php https://bitbucket.org/nlyn/mr.-peacocks.git | PHP | 250 lines
1<?php 2/** 12/** WordPress Administration Bootstrap */ 13require_once('./admin.php'); 14 14 15include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 16 36 37 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins)); 38 $nonce = 'bulk-update-plugins'; 42 43 $upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) ); 44 $upgrader->bulk_upgrade( $plugins ); 54 $title = __('Update Plugin'); 55 $parent_file = 'plugins.php'; 56 $submenu_file = 'plugins.php';DocumentSet.php https://github.com/brtriver/sukonv.git | PHP | 211 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 13 /** 14 * PHP magic method used when setting properties on the `Document` instance, i.e. 15 * `$document->title = 'Lorem Ipsum'`. If `$value` is a complex data type (i.e. associative 54 /** 55 * PHP magic method used to check the presence of a field as document properties, i.e. 56 * `$document->_id`. 65 /** 66 * PHP magic method used when unset() is called on a `Document` instance. 67 * Use case for this would be when you wish to edit a document and remove a field, ie. :attempt.php https://bitbucket.org/moodle/moodle.git | PHP | 228 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 85 'duration' => '-', 86 'durationcompact' => '-', 87 'completion' => $attempt->get_completion(), 93 'scaled' => $attempt->get_scaled(), 94 'reporturl' => new moodle_url('/mod/h5pactivity/report.php', [ 95 'a' => $attempt->get_h5pactivityid(), 'attemptid' => $attempt->get_id() 101 $data->duration = $this->format_duration($duration); 102 $data->durationcompact = $this->format_duration_short($duration); 103 }documents.php https://github.com/bradymiller/openemr.git | PHP | 381 lines
1<?php 2 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;. 18 * 23 24require_once($GLOBALS['fileroot'] . "/controllers/C_Document.class.php"); 25 111 return '.hqx'; 112 case 'application/mac-compactpro': 113 return '.cpt';grade_scale.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 388 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 27 28require_once('grade_object.php'); 29 247 /** 248 * Compacts (implodes) the array of items in $scale_items into a comma-separated string, $scale. 249 * There are three ways to achieve this: 259 */ 260 public function compact_items($items=NULL) { 261 if (empty($items)) { 379 global $CFG; 380 require_once($CFG->libdir . '/filelib.php'); 381 384 $options->noclean = true; 385 $description = file_rewrite_pluginfile_urls($this->description, 'pluginfile.php', $systemcontext->id, 'grade', 'scale', $this->id); 386 return format_text($description, $this->descriptionformat, $options);posting_abbcode_buttons.html https://github.com/mssti/Advanced-BBCode-Box-3.git | HTML | 251 lines
1 2<!-- IF S_ABBC3_COMPACT --> 3<script type="text/javascript" src="{ROOT_PATH}adm/style/tooltip.js"></script> 42 <a href="{S_ABBC3_HELP_PAGE}" rel="external" onclick="window.open(this.href);return false;" title="{L_ABBC3_HELP_TITLE}"><img src="{S_ABBC3_PATH}/images/help.gif" alt="{L_ABBC3_HELP_TITLE}" title="{L_ABBC3_HELP_TITLE}" /></a> 43 <a href="http://www.mssti.com/phpbb3/" rel="external" onclick="window.open(this.href);return false;" title="{L_ABBC3_HELP_ALT}"><img src="{S_ABBC3_PATH}/images/info.gif" alt="{L_ABBC3_HELP_ALT}" title="{L_ABBC3_HELP_ALT}" /></a> 44 </span> 55 56<!-- IF S_ABBC3_COMPACT --> 57 <ul class="_selector"> 172 <!-- IF S_ABBC3_COLOR --> 173 <!-- IF S_ABBC3_COLOR_MODE eq 'phpbb' --> 174 187 <!-- ENDIF --> 188 <!-- IF S_ABBC3_TAB and S_ABBC3_COLOR_MODE != 'phpbb'--> 189 <img src="{S_ABBC3_PATH}/images/dots.gif" alt="" class="btnbbcode3 dot" />index.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 293 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * file index.php 19 * index page to view blogs. if no blog is specified then site wide entries are shown 22 23require_once(__DIR__ . '/../config.php'); 24require_once($CFG->dirroot .'/blog/lib.php'); 24require_once($CFG->dirroot .'/blog/lib.php'); 25require_once($CFG->dirroot .'/blog/locallib.php'); 26require_once($CFG->dirroot .'/course/lib.php'); 26require_once($CFG->dirroot .'/course/lib.php'); 27require_once($CFG->dirroot .'/comment/lib.php'); 28 41 42$urlparams = compact('id', 'start', 'tag', 'userid', 'tagid', 'modid', 'entryid', 'groupid', 'courseid', 'search'); 43foreach ($urlparams as $var => $val) {Local.php https://gitlab.com/Sigpot/AirSpot | PHP | 514 lines
1<?php 2 133 $type = 'file'; 134 $result = compact('contents', 'type', 'size', 'path'); 135 166 167 return compact('path', 'visibility'); 168 } 177 178 return compact('stream', 'path'); 179 } 201 202 return compact('path', 'size', 'contents', 'mimetype'); 203 } 216 217 return compact('contents', 'path'); 218 }indexed-string-map.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 253 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_VM_INDEXED_STRING_MAP_H_ 18#define incl_HPHP_VM_INDEXED_STRING_MAP_H_AssetFilterTest.php https://gitlab.com/vannh/portal_training | PHP | 254 lines
2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 11 * @since 2.2.0 11 * @since 2.2.0 12 * @license http://www.opensource.org/licenses/mit-license.php MIT License 13 */ 57 * @return void 58 * @triggers DispatcherTest $this, compact('request', 'response') 59 * @triggers DispatcherTest $this, compact('request', 'response') 94 /** 95 * Test that no exceptions are thrown for //index.php type URLs. 96 *HtmlBuilder.php https://gitlab.com/judielsm/Handora | PHP | 438 lines
1<?php namespace Collective\Html; 2 61 62 return '<script'.$this->attributes($attributes).'></script>'.PHP_EOL; 63 } 80 81 return '<link'.$this->attributes($attributes).'>'.PHP_EOL; 82 } 115 116 return '<link'.$this->attributes($attributes).'>'.PHP_EOL; 117 } 430 { 431 $defaults = compact('name', 'content'); 432 434 435 return '<meta'.$this->attributes($attributes).'>'.PHP_EOL; 436 }update.php https://gitlab.com/campus-academy/krowkaramel | PHP | 364 lines
1<?php 2/** 15/** WordPress Administration Bootstrap */ 16require_once __DIR__ . '/admin.php'; 17 17 18require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 19 43 44 $url = 'update.php?action=update-selected&plugins=' . urlencode( implode( ',', $plugins ) ); 45 $nonce = 'bulk-update-plugins'; 49 50 $upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) ); 51 $upgrader->bulk_upgrade( $plugins ); 63 $title = __( 'Update Plugin' ); 64 $parent_file = 'plugins.php'; 65 $submenu_file = 'plugins.php';AdminUsersController.php https://gitlab.com/jnettome/myproject | PHP | 307 lines
1<?php 2 51 // Show the page 52 return View::make('admin/users/index', compact('users', 'title')); 53 } 80 // Show the page 81 return View::make('admin/users/create_edit', compact('roles', 'permissions', 'selectedRoles', 'selectedPermissions', 'title', 'mode')); 82 } 154 155 return View::make('admin/users/create_edit', compact('user', 'roles', 'permissions', 'title', 'mode')); 156 } 238 // Show the page 239 return View::make('admin/users/delete', compact('user', 'title')); 240 }functions.php https://gitlab.com/endomorphosis/falkenstein | PHP | 437 lines
1<?php 2 104 $use_html = 0; 105 return compact( 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments', 'use_html' ); 106} 118 $use_html = 0; 119 return compact( 'active', 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments', 'use_html' ); 120} 374 foreach ( $mods as $mod ) { 375 $file = trailingslashit( $dir ) . $mod . '.php'; 376srcdb.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 324 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15*/ 16#ifndef incl_HPHP_SRCDB_H_ 17#define incl_HPHP_SRCDB_H_PageManagementController.php https://gitlab.com/buildcode/cms | PHP | 257 lines
1<?php 2 77 if (! $block->hasChildTemplate() && ! $request->has('template')) { 78 return view('cms::admin.page_management.pick_template', compact('block')); 79 } 85 86 return view('cms::admin.page_management.form', compact('form', 'block')); 87 } 101 102 return view('cms::admin.page_management.form', compact('form', 'block')); 103 } 116 117 return view('cms::admin.page_management.block_deleted', compact('block')); 118 } 145 146 return view('cms::admin.page_management.properties', compact('block', 'templates')); 147 }classdb_backup.tex https://gitlab.com/karl3/gs_libs | LaTeX | 234 lines
73 74Definition at line 18 of file db\-Backup.\-class.\-php. 75 84 85Definition at line 26 of file db\-Backup.\-class.\-php. 86 125 126Definition at line 122 of file db\-Backup.\-class.\-php. 127 162 163Definition at line 42 of file db\-Backup.\-class.\-php. 164 233\item 234/\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/db\-Backup.\-class.\-php\end{DoxyCompactItemize} 235ods.php https://bitbucket.org/onekit/mrhost.git | PHP | 307 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * OpenDocument Spreadsheet import plugin for phpMyAdmin 5 * 8 * @version 0.5-beta 9 * @package phpMyAdmin-Import 10 */ 11 12if (! defined('PHPMYADMIN')) { 13 exit; 77 * 78 * The option LIBXML_COMPACT is specified because it can 79 * result in increased performance without the need to 81 */ 82$xml = simplexml_load_string($buffer, "SimpleXMLElement", LIBXML_COMPACT); 83module.js https://github.com/andreev-artem/moodle.git | JavaScript | 263 lines
23 // Properties 24 api : M.cfg.wwwroot+'/mod/chat/chat_ajax.php?sesskey='+M.cfg.sesskey, // The path to the ajax callback script 25 cfg : {}, // A configuration variable 109 this.thememenu = new Y.Overlay({ 110 bodyContent : '<div class="menuitem"><a href="'+this.cfg.chaturl+'&theme=bubble">Bubble</a></div><div class="menuitem"><a href="'+this.cfg.chaturl+'&theme=compact">Compact</a></div>', 111 visible : false, 128 {text: "Bubble", url: this.cfg.chaturl+'&theme=bubble'}, 129 {text: "Compact", url: this.cfg.chaturl+'&theme=compact'} 130 ]);