PageRenderTime 513ms queryTime 34ms sortTime 15ms getByIdsTime 267ms findMatchingLines 95ms

100+ results results for 'php compact repo:zachisit/zachis.it-m' (513 ms)

Not the results you expected?
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)
                    
                
mejoramiento_adecuaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2class MejoramientoAdecuacionesController extends AppController {
                    
37		
                    
38		$this->set(compact('zonas','registros'));		
                    
39	}
                    
103		
                    
104		$this->set(compact('zona', 'nombre_iem2'));
                    
105	}
                    
141		$registros = $this->MejoramientoAdecuacione->find('all',array('conditions'=>array('MejoramientoAdecuacione.fecha'=>$fecha, 'AND'=>array('MejoramientoAdecuacione.zona_id'=>$zona))));
                    
142		$this->set(compact('registros'));
                    
143	}
                    
165		$zona_id = $this->Zona->find('all');
                    
166		$this->set(compact('zona_id'));
                    
167	}
                    
176		$zona_id = $this->Zona->find('all');
                    
177		$this->set(compact('zona_id'));
                    
178	}
                    
                
paperclip.rb git://github.com/stevenbristol/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 maximally 
                    
                
SystemController.php git://github.com/drupal/drupal.git | PHP | 330 lines
                    
1<?php
                    
2
                    
155  /**
                    
156   * Sets whether the admin menu is in compact mode or not.
                    
157   *
                    
162   */
                    
163  public function compactPage($mode) {
                    
164    user_cookie_save(['admin_compact_mode' => ($mode == 'on')]);
                    
228        $theme->incompatible_region = !isset($theme->info['regions']['content']);
                    
229        $theme->incompatible_php = version_compare(phpversion(), $theme->info['php']) < 0;
                    
230        // Confirm that all base themes are available.
                    
235      $theme->operations = [];
                    
236      if (!empty($theme->status) || !$theme->info['core_incompatible'] && !$theme->incompatible_php && !$theme->incompatible_base && !$theme->incompatible_engine) {
                    
237        // Create the operations links.
                    
                
comites_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2class ComitesController extends AppController {
                    
31			
                    
32		$this->set(compact('comites','mes', 'zona'));	
                    
33				
                    
75		
                    
76		$this->set(compact('mes','zona'));
                    
77	}
                    
101		$zonas = $this->Comite->Zona->find('list');
                    
102		$this->set(compact('zonas'));
                    
103	}
                    
138		
                    
139		$this->set(compact('zona_id'));	
                    
140	}
                    
149		$zona_id = $this->Zona->find('all');
                    
150		$this->set(compact('zona_id'));	
                    
151	}
                    
                
elgg.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 353 lines
                    
1<?php
                    
2/**
                    
10define('DOKU_AUTH', dirname(__FILE__));
                    
11require_once(DOKU_AUTH.'/basic.class.php');
                    
12
                    
12
                    
13//define('AUTH_USERFILE',DOKU_CONF.'users.auth.php');
                    
14
                    
136      if (io_saveFile(AUTH_USERFILE,$userline,true)) {
                    
137        $this->users[$user] = compact('pass','name','mail','grps');
                    
138        return $pwd;
                    
269        $acl = array();
                    
270	$acl[] = "# acl.auth.php";
                    
271        $acl[] = '# <?php exit()?\>';
                    
                
system.admin.inc git://github.com/drupal/drupal.git | Pascal | 388 lines
                    
1<?php
                    
2
                    
25  if (!empty($variables['content'])) {
                    
26    $variables['compact'] = system_admin_compact_mode();
                    
27    foreach ($variables['content'] as $key => $item) {
                    
28      $variables['content'][$key]['link'] = \Drupal::l($item['title'], $item['url']);
                    
29      if (!$variables['compact'] && isset($item['description'])) {
                    
30        $variables['content'][$key]['description'] = ['#markup' => $item['description']];
                    
51function template_preprocess_admin_page(&$variables) {
                    
52  $variables['system_compact_link'] = array(
                    
53    '#type' => 'system_compact_link',
                    
80function template_preprocess_system_admin_index(&$variables) {
                    
81  $variables['system_compact_link'] = array(
                    
82    '#type' => 'system_compact_link',
                    
364        }
                    
365        $current_theme['incompatible'] = t('This theme requires PHP version @php_required and is incompatible with PHP version @php_version.', array('@php_required' => $theme->info['php'], '@php_version' => phpversion()));
                    
366      }
                    
                
acp_email.php git://github.com/phpbb/phpbb.git | PHP | 351 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
28		global $config, $db, $user, $template, $phpbb_log, $request;
                    
29		global $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_dispatcher;
                    
30
                    
235				);
                    
236				extract($phpbb_dispatcher->trigger_event('core.acp_email_send_before', compact($vars)));
                    
237
                    
329			'USERNAMES'				=> implode("\n", $usernames),
                    
330			'U_FIND_USERNAME'		=> append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&amp;form=acp_email&amp;field=usernames'),
                    
331			'SUBJECT'				=> $subject,
                    
346		$vars = array('template_data', 'exclude', 'usernames');
                    
347		extract($phpbb_dispatcher->trigger_event('core.acp_email_display', compact($vars)));
                    
348
                    
                
ExtensionsLocalesController.php git://github.com/croogo/croogo.git | PHP | 244 lines
                    
1<?php
                    
2
                    
13 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
14 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
15 * @link     http://www.croogo.org
                    
63
                    
64		$this->set(compact('content', 'locales'));
                    
65	}
                    
197
                    
198		$this->set(compact('locale', 'content'));
                    
199	}
                    
                
XmlUtils.php git://github.com/spotweb/spotweb.git | PHP | 269 lines
                    
1<?php
                    
2
                    
58        $dom->validateOnParse = true;
                    
59        if (!$dom->loadXML($content, LIBXML_NONET | (\defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0))) {
                    
60            libxml_disable_entity_loader($disableEntities);
                    
137    /**
                    
138     * Converts a \DOMElement object to a PHP array.
                    
139     *
                    
165            }
                    
166            $config[$name] = static::phpize($node->value);
                    
167            $empty = false;
                    
196        if (false !== $nodeValue) {
                    
197            $value = static::phpize($nodeValue);
                    
198            if (\count($config)) {
                    
208    /**
                    
209     * Converts an xml value to a PHP type.
                    
210     *
                    
                
application_controller.rb git://github.com/fatfreecrm/fat_free_crm.git | Ruby | 261 lines
                    
5# Fat Free CRM is freely distributable under the terms of MIT license.
                    
6# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
                    
7#------------------------------------------------------------------------------
                    
81    return [] if related.blank?
                    
82    return [related.to_i].compact unless related.index('/')
                    
83
                    
                
labels.inc git://pkgs.fedoraproject.org/roundcubemail | PHP | 484 lines
                    
1<?php
                    
2
                    
181$labels['folderactions'] = '????...';
                    
182$labels['compact'] = '??';
                    
183$labels['empty'] = '??';
                    
372$labels['logoutclear'] = '????????';
                    
373$labels['logoutcompact'] = '????????';
                    
374$labels['uisettings'] = '????';
                    
                
txplib_head.php http://textpattern.googlecode.com/svn/development/4.x/ | PHP | 355 lines
                    
1<?php
                    
2
                    
91?><!DOCTYPE html>
                    
92<html lang="<?php echo LANG; ?>" dir="<?php echo $lang_direction; ?>">
                    
93<head>
                    
95<meta name="robots" content="noindex, nofollow">
                    
96<title><?php echo admin_title($pagetitle)?></title><?php echo
                    
97    script_js('vendors/jquery/jquery/jquery.js', TEXTPATTERN_SCRIPT_URL).
                    
125</style>
                    
126<?php
                    
127echo $theme->html_head();
                    
130</head>
                    
131<body id="<?php echo $body_id; ?>" class="not-ready <?php echo $area; ?>">
                    
132<header role="banner" class="txp-header">
                    
132<header role="banner" class="txp-header">
                    
133<?php callback_event('admin_side', 'pagetop');
                    
134    $theme->set_state($area, $event, $bm, $message);
                    
                
plain.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 325 lines
                    
1<?php
                    
2/**
                    
10define('DOKU_AUTH', dirname(__FILE__));
                    
11require_once(DOKU_AUTH.'/basic.class.php');
                    
12
                    
12
                    
13define('AUTH_USERFILE',DOKU_CONF.'users.auth.php');
                    
14
                    
108      if (io_saveFile(AUTH_USERFILE,$userline,true)) {
                    
109        $this->users[$user] = compact('pass','name','mail','grps');
                    
110        return $pwd;
                    
                
Service.php https://gitlab.com/BGCX262/zym-svn-to-git.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12195 2008-10-30 13:34:35Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2010 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)));
                    
                
XmlFileLoader.php git://github.com/pmjones/php-framework-benchmarks.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        }
                    
                
cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
                    
3/**
                    
4 * Caching for CakePHP.
                    
5 *
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs
                    
20 * @since         CakePHP(tm) v 1.2.0.4933
                    
21 * @version       $Revision: 7847 $
                    
                
comment_model.php http://emlog.googlecode.com/svn/trunk/ | PHP | 315 lines
                    
1<?php
                    
2/**
                    
4 * @copyright (c) Emlog All Rights Reserved
                    
5 * $Id: comment_model.php 2030 2011-09-13 15:49:40Z qiyuuu@gmail.com $
                    
6 */
                    
87            }
                    
88            $comments = compact('comments','commentStacks','commentPageUrl');
                    
89		} elseif($spot == 2) {
                    
100            }
                    
101            $comments = compact('comments','commentStacks','commentPageUrl');
                    
102		}
                    
                
update.php git://github.com/wordpress/wordpress.git | PHP | 306 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
                    
41
                    
42		$url   = 'update.php?action=update-selected&amp;plugins=' . urlencode( implode( ',', $plugins ) );
                    
43		$nonce = 'bulk-update-plugins';
                    
47
                    
48		$upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) );
                    
49		$upgrader->bulk_upgrade( $plugins );
                    
60		$title        = __( 'Update Plugin' );
                    
61		$parent_file  = 'plugins.php';
                    
62		$submenu_file = 'plugins.php';
                    
                
eiffel.php git://github.com/josegonzalez/git-php.git | PHP | 395 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * eiffel.php
                    
4 * ----------
                    
253            'COMPARABLE',
                    
254            'COMPACT_TREE_CURSOR',
                    
255            'COMPACT_CURSOR_TREE',
                    
                
QueryTest.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 393 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 */
                    
225		$entity->id = 12;
                    
226		$query = new Query(compact('entity') + array(
                    
227			'model' => $this->_model,
                    
322		$data = array('foo' => 1, 'bar' => 2, 'baz' => 3);
                    
323		$query = new Query(compact('data'));
                    
324		$this->assertEqual($data, $query->data());
                    
325
                    
326		$query = new Query(compact('data') + array('whitelist' => array('foo', 'bar')));
                    
327		$this->assertEqual(array('foo' => 1, 'bar' => 2), $query->data());
                    
                
OneTimePasswordVerifyTrait.php git://github.com/CakeDC/users.git | PHP | 197 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
10 * @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com)
                    
11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
12 */
                    
57            );
                    
58            $this->set(compact('secretDataUri'));
                    
59        }
                    
                
extrafield.php http://getk2.googlecode.com/svn/trunk/ | PHP | 375 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: extrafield.php 1554 2012-04-19 12:22:40Z lefteris.kavadas $
                    
4 * @package		K2
                    
35		{
                    
36			$mainframe->redirect('index.php?option=com_k2&view=extrafields', $row->getError(), 'error');
                    
37		}
                    
97				{
                    
98					require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
99					$json = new Services_JSON;
                    
120
                    
121		require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
122		$json = new Services_JSON;
                    
126		{
                    
127			$mainframe->redirect('index.php?option=com_k2&view=extrafield&cid='.$row->id, $row->getError(), 'error');
                    
128		}
                    
                
shopCore.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
33
                    
34        if(file_exists(BASE_DIR.'/upgrade.php')){ //review: ????
                    
35            header('HTTP/1.1 503 Service Unavailable',true,503);
                    
35            header('HTTP/1.1 503 Service Unavailable',true,503);
                    
36            require(CORE_DIR.'/func_ext.php');
                    
37            $smarty = &$this->loadModel('system/frontend');
                    
63            if($url=$urlTools->oldVersionShopEx($_GET)){
                    
64                $this->compactUrl($url);
                    
65            }
                    
95            if(!function_exists('shop_match_network')){
                    
96                require(CORE_INCLUDE_DIR.'/shop/core.match_network.php');
                    
97            }
                    
152            $cookieLife = $this->getConf('system.cookie.life');
                    
153            $this->_cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
154            $this->_cookieLife = $cookieLife;
                    
                
doc.php https://gitlab.com/BillRocha/plim.git | PHP | 438 lines
                    
1<?php
                    
2/**
                    
148
                    
149    /* Produção dos links ou arquivos compactados.
                    
150     * para Style e Javascript
                    
152     * Em modo 'dev' gera somente os links;
                    
153     * Em modo 'pro' compacta e obfusca os arquivos e insere diretamente no HTML.
                    
154     */
                    
223    */
                    
224    function produce($php = false, $brade = false, $sTag = true){
                    
225        //With blade ???
                    
252        //Eval PHP in HTML
                    
253        if($php) $this->evalPHP();
                    
254
                    
                
messages.inc git://pkgs.fedoraproject.org/roundcubemail | PHP | 163 lines
                    
1<?php
                    
2
                    
92$messages['folderpurged'] = 'Folder has successfully been emptied.';
                    
93$messages['folderexpunged'] = 'Folder has successfully been compacted.';
                    
94$messages['deletedsuccessfully'] = 'Successfully deleted.';
                    
                
PlaceHelper.php git://github.com/CakeDC/utils.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
84		$url = $this->_imageUrl($width, $height);
                    
85		$options = array_merge($options, compact('width', 'height'));
                    
86		$options['alt'] = isset($options['alt']) ? $options['alt'] : "$width x $height";
                    
126				}
                    
127				return implode(PHP_EOL, $content);
                    
128		}
                    
144		$start = (string)$start;
                    
145		return implode('_', compact('name', 'type', 'amount', 'start'));
                    
146	}
                    
162			$eol = '__EOL__';
                    
163			$result = json_decode(str_replace(PHP_EOL, $eol, $response->body));
                    
164			if (!empty($result->feed->lipsum)) {
                    
                
tiny_mce_gzip.php http://core.svn.wordpress.org/ | PHP | 331 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $RCSfile: tiny_mce_gzip.php,v $
                    
4 * $Revision: $
                    
15
                    
16@require_once('../../../wp-config.php');
                    
17
                    
60
                    
61function wp_compact_tinymce_js($text) {
                    
62	// This function was custom-made for TinyMCE 2.0, not expected to work with any other JS.
                    
99
                    
100// Patch older versions of PHP < 4.3.0
                    
101if (!function_exists('file_get_contents')) {
                    
148	if ($index == 0) {
                    
149		TinyMCE_echo(wp_compact_tinymce_js(file_get_contents(realpath("tiny_mce" . $suffix . ".js")))); // WP
                    
150		TinyMCE_echo('TinyMCE.prototype.orgLoadScript = TinyMCE.prototype.loadScript;');
                    
                
AbstractTagAwareAdapter.php git://github.com/fabpot/symfony.git | PHP | 323 lines
                    
1<?php
                    
2
                    
60                if (isset($value['meta'])) {
                    
61                    // For compactness these values are packed, & expiry is offset to reduce size
                    
62                    $v = unpack('Ve/Nc', $value['meta']);
                    
96                    if ($metadata) {
                    
97                        // For compactness, expiry and creation duration are packed, using magic numbers as separators
                    
98                        $value['meta'] = pack('VN', (int) (0.1 + $metadata[self::METADATA_EXPIRY] - self::METADATA_EXPIRY_OFFSET), $metadata[self::METADATA_CTIME]);
                    
                
paginator.php git://github.com/ericbarnes/Status-Board.git | PHP | 424 lines
                    
1<?php namespace Laravel;
                    
2
                    
375
                    
376		return HTML::link(URI::current().$query, $text, compact('class'), Request::secure());
                    
377	}
                    
                
ManageController.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 375 lines
                    
1<?php
                    
2/**
                    
143        $this->title(__d('content', 'Create New Content <small>({0})</small>', $type->slug));
                    
144        $this->set(compact('content', 'type', 'languages', 'roles'));
                    
145        $this->Breadcrumb
                    
241        $this->title(__d('content', 'Editing Content: {0} <small>({1})</small>', $content->title, $content->content_type_slug));
                    
242        $this->set(compact('content', 'languages', 'roles'));
                    
243        $this->Breadcrumb
                    
316        $this->title(__d('content', 'Translate Content'));
                    
317        $this->set(compact('content', 'translations', 'languages'));
                    
318        $this->Breadcrumb
                    
                
ISO14496_Box_STSS.html http://xepec.googlecode.com/svn/trunk/ | HTML | 236 lines
                    
23	<div class="info-box-body">
                    
24        		<!-- ========== Info from phpDoc block ========= -->
                    
25<p class="short-description">The <em>Sync Sample Box</em> provides a compact marking of the random access  points within the stream. The table is arranged in strictly increasing order  of sample number. If the sync sample box is not present, every sample is a  random access point.</p>
                    
28				<li><span class="field">version:</span> $Rev: 92 $</li>
                    
29				<li><span class="field">copyright:</span> Copyright (c) 2008 The PHP Reader Project Workgroup</li>
                    
30				<li><span class="field">license:</span> <a href="http://code.google.com/p/php-reader/wiki/License">New BSD License</a></li>
                    
32		<p class="notes">
                    
33			Located in <a class="field" href="_ISO14496---Box---STSS.php.html">/ISO14496/Box/STSS.php</a> (line <span class="field">55</span>)
                    
34		</p>
                    
36				
                    
37		<pre><a href="../../php-reader/ISO/ISO14496_Box.html">ISO14496_Box</a>
                    
38   |
                    
232	<p class="notes" id="credit">
                    
233		Documentation generated on Thu, 01 Jan 2009 14:59:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
                    
234	</p>
                    
                
s3rl.php https://code.google.com/p/s3db/ | PHP | 455 lines
                    
1<?php
                    
2#this script accepts inputs of url,public key and, in case an update is attemtped, an encripted message as well
                    
15else {
                    
16	echo 's3rl.php is a function to retrieve the url of a specific Did. For documentation and usage please refer to  <a href="http://s3db.org/">s3db.org</a>';
                    
17
                    
32
                    
33list($regValid, $msg) = registerURL(compact('url', 'publicKey', 'Did', 's3rl', 'newUrl', 'case', 'message','name','format'));
                    
34
                    
48	$format =($_REQUEST['format']=='')?'html':$_REQUEST['format'];
                    
49	$z = compact('data','cols', 'format');
                    
50	
                    
68
                    
69include_once('config.inc.php');
                    
70$key=$GLOBALS['deployment_project']['key'];
                    
70$key=$GLOBALS['deployment_project']['key'];
                    
71include 'core.header.php';
                    
72#include (S3DB_SERVER_ROOT.'/webActions.php');
                    
                
04_Create_a_GridField_ActionProvider.md git://github.com/silverstripe/sapphire.git | Markdown | 286 lines
                    
29
                    
30A basic outline of our new `GridFieldCustomAction.php` will look like something
                    
31below:
                    
33
                    
34```php
                    
35use SilverStripe\Forms\GridField\GridField_ColumnProvider;
                    
52    {
                    
53        return ['class' => 'grid-field__col-compact'];
                    
54    }
                    
113
                    
114```php
                    
115// option 1: creating a new GridField with the CustomAction
                    
178
                    
179```php
                    
180use SilverStripe\Forms\GridField\GridField_ColumnProvider;
                    
                
lightbox.Manage.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 220 lines
                    
106				<table border="0" cellspacing="5" cellpadding="5">
                    
107						<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?><th class="span-1">&#160;</th><?php } ?>
                    
108						<th class="span-7">Album</th>
                    
123							<?php } ?>
                    
124							<td><span class="ss_sprite ss_folder_picture"><a href="lightbox.Manage.php?album=<?php echo $value;?>"><?php echo $value;?></a></span></td>
                    
125							<td><span class="ss_sprite ss_pictures"><?php echo ($count[$i]>0?$count[$i]:'0'); ?></span></td>
                    
149					<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) {?>
                    
150					<a href="lightbox.Process.php?album=<?php echo $_GET['album']; ?>&amp;image=<?php echo $key; ?>&amp;action=del-image"><img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" /></a>
                    
151					<?php } else { ?>
                    
151					<?php } else { ?>
                    
152						<img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" />
                    
153					<?php } ?>
                    
180				<?php foreach ($albums as $value) { ?>
                    
181					<option <?php echo (isset($_GET['album'])&&$_GET['album']===$value?"selected":null); ?> value="<?php echo $value; ?>"><?php echo $value; ?></option>
                    
182				<?php } ?>
                    
                
system.routing.yml git://github.com/drupal/drupal.git | YAML | 515 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:
                    
484system.db_update:
                    
485  path: '/update.php/{op}'
                    
486  defaults:
                    
                
legacy.cpp git://pkgs.fedoraproject.org/task | C++ | 215 lines
                    
23//
                    
24// http://www.opensource.org/licenses/mit-license.php
                    
25//
                    
56    legacyMap["countdown"]            = "due.countdown";        // Deprecated.
                    
57    legacyMap["countdown_compact"]    = "due.countdown";        // Deprecated.
                    
58    legacyMap["age"]                  = "entry.age";            // Deprecated.
                    
58    legacyMap["age"]                  = "entry.age";            // Deprecated.
                    
59    legacyMap["age_compact"]          = "entry.age";            // Deprecated.
                    
60    legacyMap["active"]               = "start.active";         // Deprecated.
                    
86    legacyMap["countdown"]            = "due";                  // Deprecated
                    
87    legacyMap["countdown_compact"]    = "due";                  // Deprecated
                    
88    legacyMap["age"]                  = "entry";                // Deprecated
                    
88    legacyMap["age"]                  = "entry";                // Deprecated
                    
89    legacyMap["age_compact"]          = "entry";                // Deprecated
                    
90    legacyMap["active"]               = "start";                // Deprecated
                    
                
LayoutHelper.php git://github.com/croogo/croogo.git | PHP | 575 lines
                    
1<?php
                    
2
                    
11 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
12 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
13 * @link     http://www.croogo.org
                    
41	public $coreHelpers = array(
                    
42		// CakePHP
                    
43		'Ajax',
                    
223		if (method_exists($this->Html, 'icon')) {
                    
224			return $this->Html->icon($icon, compact('class'));
                    
225		} else {
                    
228			}
                    
229			return $this->_View->CroogoHtml->icon($icon, compact('class'));
                    
230		}
                    
400 *
                    
401 * Original post by Stefan Zollinger: http://bakery.cakephp.org/articles/view/element-helper
                    
402 * [element:element_name] or [e:element_name]
                    
                
extrafield.php http://joomlaworks.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: extrafield.php 1172 2011-10-17 11:42:15Z lefteris.kavadas $
                    
4 * @package		K2
                    
32		if (!$row->bind(JRequest::get('post'))) {
                    
33			$mainframe->redirect('index.php?option=com_k2&view=extraFields', $row->getError(), 'error');
                    
34		}
                    
80					else {
                    
81						require_once(JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
82						$json=new Services_JSON;
                    
103
                    
104		require_once(JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
105		$json=new Services_JSON;
                    
108		if (!$row->check()) {
                    
109			$mainframe->redirect('index.php?option=com_k2&view=extraField&cid='.$row->id, $row->getError(), 'error');
                    
110		}
                    
                
index.php git://github.com/phpbb/phpbb.git | PHP | 252 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
20define('IN_PHPBB', true);
                    
21$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
22$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
66			$vars = array('mark_notification', 'notification');
                    
67			extract($phpbb_dispatcher->trigger_event('core.index_mark_notification_after', compact($vars)));
                    
68
                    
229	'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&amp;mark=forums&amp;mark_time=' . time()) : '',
                    
230	'U_MCP'				=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=front', true, $user->session_id) : '')
                    
231);
                    
242$vars = array('page_title');
                    
243extract($phpbb_dispatcher->trigger_event('core.index_modify_page_title', compact($vars)));
                    
244
                    
                
fck_startup.js https://SplendidCRM.svn.codeplex.com/svn | JavaScript | 25 lines
                    
5 * Licensed under the terms of the GNU Lesser General Public License:
                    
6 * 		http://www.opensource.org/licenses/lgpl-license.php
                    
7 * 
                    
12 * 
                    
13 * This file has been compacted for best loading performance.
                    
14 */
                    
                
SelectChannelEndPointTest.java git://pkgs.fedoraproject.org/jetty | Java | 452 lines
                    
10//The Apache License v2.0 is available at
                    
11//http://www.opensource.org/licenses/apache2.0.php
                    
12//You may elect to redistribute this code under either of these licenses.
                    
135                progress=false;
                    
136                _in.compact();
                    
137                if (_in.space()>0 && _endp.fill(_in)>0)
                    
152
                    
153                _out.compact();
                    
154
                    
                
zip.class.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 493 lines
                    
1<?php
                    
2class zip
                    
33
                    
34	function Add($files,$compact)
                    
35	{
                    
48			{
                    
49				$ret[basename($fn[0])]=$this->add_File($fn[1],$fn[0],$compact);
                    
50			}
                    
167
                    
168	function add_File($data, $name, $compact = 1)
                    
169	{
                    
175		eval('$hexdtime = "' . $hexdtime . '";');
                    
176		if($compact)
                    
177		$fr = "\x50\x4b\x03\x04\x14\x00\x00\x00\x08\x00".$hexdtime;
                    
182		$unc_len = strlen($data); $crc = crc32($data);
                    
183		if($compact)
                    
184		{
                    
                
wp-trackback.php git://github.com/wordpress/wordpress.git | PHP | 152 lines
                    
1<?php
                    
2/**
                    
11if ( empty( $wp ) ) {
                    
12	require_once __DIR__ . '/wp-load.php';
                    
13	wp( array( 'tb' => '1' ) );
                    
132
                    
133	$commentdata = compact( 'comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type' );
                    
134
                    
                
upload.php git://github.com/phpbb/phpbb.git | PHP | 378 lines
                    
5 *
                    
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7 * @license GNU General Public License, version 2 (GPL-2.0)
                    
21use \phpbb\mimetype\guesser;
                    
22use \phpbb\plupload\plupload;
                    
23use \phpbb\storage\storage;
                    
90	 */
                    
91	public function __construct(auth $auth, service $cache, config $config, \phpbb\files\upload $files_upload, language $language, guesser $mimetype_guesser, dispatcher $phpbb_dispatcher, plupload $plupload, storage $storage, temp $temp, user $user)
                    
92	{
                    
98		$this->mimetype_guesser = $mimetype_guesser;
                    
99		$this->phpbb_dispatcher = $phpbb_dispatcher;
                    
100		$this->plupload = $plupload;
                    
195		);
                    
196		extract($this->phpbb_dispatcher->trigger_event('core.modify_uploaded_file', compact($vars)));
                    
197		$this->file_data = $filedata;
                    
                
fx_config.php http://comet.googlecode.com/svn/trunk/ | PHP | 506 lines
                    
1<?php
                    
2	
                    
123			if (!$useNS) {
                    
124				$config_document = simplexml_load_file($file, 'SimpleXMLElement', LIBXML_NOBLANKS | LIBXML_COMPACT);
                    
125			} else {
                    
125			} else {
                    
126				$config_document = simplexml_load_file($file, 'SimpleXMLElement', LIBXML_NOBLANKS | LIBXML_COMPACT, self::XML_NAMESPACE, FALSE);
                    
127			}
                    
                
insertall.php https://code.google.com/p/s3db/ | PHP | 345 lines
                    
1<?php
                    
2#insertall.php is a form for inserting the values of rules in a single instance at once
                    
12	
                    
13	if(file_exists('../config.inc.php'))
                    
14	{
                    
14	{
                    
15		include('../config.inc.php');
                    
16	}
                    
32
                    
33include_once('../core.header.php');
                    
34
                    
63	#include all the javascript functions for the menus...
                    
64	include('../S3DBjavascript.php');
                    
65
                    
73		
                    
74	include('../action.header.php');
                    
75	
                    
                
focalizaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 128 lines
                    
1<?php
                    
2class FocalizacionesController extends AppController {
                    
24		$registros=$this->Focalizacione->find('all',array('conditions'=>array('Focalizacione.zona_id'=>$zonas), 'order'=>'Focalizacione.fecha DESC'));				
                    
25		$this->set(compact('zonas','registros'));
                    
26	}
                    
66		}		
                    
67		$this->set(compact('zona_id'));
                    
68	}
                    
100		
                    
101		$this->set(compact('fecha'));
                    
102	}
                    
124		$zona_id = $this->Zona->find('all');
                    
125		$this->set(compact('zona_id'));
                    
126	}
                    
                
trabajos_articulados_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 118 lines
                    
1<?php
                    
2class TrabajosArticuladosController extends AppController {
                    
66		$group_id = $this->Access->getMy('group_id');	
                    
67		$this->set(compact('zona','bimestre','year','criterios','group_id'));
                    
68	}
                    
101		$group_id = $this->Access->getMy('group_id');	
                    
102		$this->set(compact('criterios','bimestre','year','zona','group_id'));
                    
103	}
                    
                
RecaptchaHelper.php git://github.com/CakeDC/recaptcha.git | PHP | 272 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009-2014, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
12/**
                    
13 * CakePHP Recaptcha helper
                    
14 *
                    
129
                    
130			$output = $this->Html->tag('div', '', compact('id'));
                    
131		} else {
                    
193		if (!function_exists('mcrypt_encrypt')) {
                    
194			throw new Exception(__d('recaptcha', 'To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.', true));
                    
195		}
                    
                
users_controller.php http://croogo.googlecode.com/svn/trunk/ | PHP | 264 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
10 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
11 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
12 * @link     http://www.croogo.org
                    
64        $roles = $this->User->Role->find('list');
                    
65        $this->set(compact('roles'));
                    
66    }
                    
84        $roles = $this->User->Role->find('list');
                    
85        $this->set(compact('roles'));
                    
86    }
                    
192            $this->User->saveField('activation_key', $activationKey);
                    
193            $this->set(compact('user', 'activationKey'));
                    
194
                    
                
main.php https://bitbucket.org/Crisu83/yii-bootstrap/ | PHP | 195 lines
                    
2<html>
                    
3<head prefix="og: http://ogp.me/ns# <?php echo Yii::app()->fb->appNamespace; ?>: http://ogp.me/ns/apps/<?php echo Yii::app()->fb->appNamespace; ?>#">
                    
4	<?php Yii::app()->controller->widget('ext.seo.widgets.SeoHead', array(
                    
10	<?php Yii::app()->bootstrap->registerAllCss(); ?>
                    
11	<?php Yii::app()->bootstrap->registerCoreScripts(); ?>
                    
12	<?php Yii::app()->clientScript->registerCssFile(Yii::app()->request->baseUrl.'/css/styles.css'); ?>
                    
100				<p>
                    
101					Bringing together the <?php echo CHtml::link('Yii PHP framework', 'http://www.yiiframework.com'); ?> and
                    
102					<?php echo CHtml::link('Twitter Bootstrap', 'http://twitter.github.com/bootstrap/'); ?>.
                    
104				<p>
                    
105					<?php echo CHtml::link('Yii-Bootstrap', 'http://www.yiiframework.com/extension/bootstrap/'); ?>
                    
106					is an extension for Yii that provides a wide range of widgets that allow developers to easily use Bootstrap with Yii.
                    
171					<?php echo CHtml::link('jQuery', 'http://www.jquery.com', array('target'=>'_blank')); ?> /
                    
172					<?php echo CHtml::link('LESS', 'http://www.lesscss.org', array('target'=>'_blank')); ?>
                    
173				</p>
                    
                
category.php http://getk2.googlecode.com/svn/trunk/ | PHP | 157 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: category.php 1492 2012-02-22 17:40:09Z joomlaworks@gmail.com $
                    
4 * @package		K2
                    
31		jimport('joomla.filesystem.file');
                    
32		require_once (JPATH_COMPONENT.DS.'lib'.DS.'class.upload.php');
                    
33		$row = & JTable::getInstance('K2Category', 'Table');
                    
36		if (!$row->bind(JRequest::get('post'))) {
                    
37			$mainframe->redirect('index.php?option=com_k2&view=categories', $row->getError(), 'error');
                    
38		}
                    
57		if (!$row->check()) {
                    
58			$mainframe->redirect('index.php?option=com_k2&view=category&cid='.$row->id, $row->getError(), 'error');
                    
59		}
                    
61		if (!$row->store()) {
                    
62			$mainframe->redirect('index.php?option=com_k2&view=categories', $row->getError(), 'error');
                    
63		}
                    
                
ImageField.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
57
                    
58        return $view->element('Field.ImageField/display', compact('field'));
                    
59    }
                    
65    {
                    
66        return $view->element('Field.ImageField/edit', compact('field'));
                    
67    }
                    
250    {
                    
251        return $view->element('Field.ImageField/settings_form', compact('instance'));
                    
252    }
                    
281    {
                    
282        return $view->element('Field.ImageField/view_mode_form', compact('instance', 'viewMode'));
                    
283    }
                    
                
class-wp-stream-connector-acf.php https://gitlab.com/wp-stream/stream.git | PHP | 542 lines
                    
1<?php
                    
2
                    
478	public static function callback_acf_update_value( $value, $post_id, $field ) {
                    
479		self::$cached_field_values_updates[ $post_id ][ $field['name'] ] = compact( 'field', 'value', 'post_id' );
                    
480		return $value;
                    
                
insertstatement.php https://code.google.com/p/s3db/ | PHP | 222 lines
                    
1<?php
                    
2#insertstatement.php is the interface for inserting a statement (instance, value, notes and file)
                    
13	
                    
14	if(file_exists('../config.inc.php'))
                    
15	{
                    
15	{
                    
16		include('../config.inc.php');
                    
17	}
                    
25
                    
26include_once('../core.header.php');
                    
27
                    
32#$instance_info = get_info('instance', $instance_id, $db);
                    
33#$instanceAcl = dataAcl(compact('instance_info', 'user_id', 'db', 'project_id'));
                    
34$instance_info = URIinfo('I'.$instance_id, $user_id, $key, $db);
                    
46
                    
47#include('../webActions.php');
                    
48
                    
                
AbstractAdapter.php git://github.com/fabpot/symfony.git | PHP | 198 lines
                    
1<?php
                    
2
                    
37    private static $apcuSupported;
                    
38    private static $phpFilesSupported;
                    
39
                    
53                // Detect wrapped values that encode for their expiry and creation duration
                    
54                // For compactness, these values are packed in the key of an array using
                    
55                // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
                    
85                    }
                    
86                    // For compactness, expiry and creation duration are packed in the key of an array, using magic numbers as separators
                    
87                    $byLifetime[$ttl][$getId($key)] = $metadata ? ["\x9D".pack('VN', (int) (0.1 + $metadata[self::METADATA_EXPIRY] - self::METADATA_EXPIRY_OFFSET), $metadata[self::METADATA_CTIME])."\x5F" => $item->value] : $item->value;
                    
105    {
                    
106        $opcache = new PhpFilesAdapter($namespace, $defaultLifetime, $directory, true);
                    
107        if (null !== $logger) {
                    
115        $apcu = new ApcuAdapter($namespace, $defaultLifetime / 5, $version);
                    
116        if ('cli' === \PHP_SAPI && !filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
                    
117            $apcu->setLogger(new NullLogger());
                    
                
customize-widgets-rtl.css git://github.com/wordpress/wordpress.git | CSS | 484 lines
                    
21
                    
22/* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
                    
23.customize-control-widget_form .widget-top {
                    
238
                    
239/* Keep rule that is no longer necessary on widgets.php. */
                    
240#available-widgets .widget-action {
                    
440@media screen and (max-height: 700px) and (min-width: 981px) {
                    
441	/* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
                    
442	.customize-control-widget_form {
                    
475
                    
476	/* Compact the move widget areas. */
                    
477	#customize-theme-controls .widget-area-select li {
                    
                
CareerController.php https://gitlab.com/kidaa/ffxivcrafting.git | PHP | 398 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
31
                    
32		return view('career.index', compact('crafting_job_list', 'gathering_job_list', 'job_ids', 'previous_ccp', 'previous_ccr', 'previous_gc', 'previous_bc'));
                    
33	}
                    
115
                    
116		return view('career.production', compact('recipies', 'show_quests', 'jobs', 'job', 'min_level', 'max_level'));
                    
117	}
                    
191
                    
192		return view('career.receiver', compact('recipies', 'show_quests', 'jobs', 'job', 'min_level', 'max_level'));
                    
193	}
                    
394
                    
395		return view('career.items', compact('items', 'show_quests', 'jobs', 'job', 'min_level', 'max_level'));
                    
396	}
                    
                
datamatrix.php https://code.google.com/p/s3db/ | PHP | 317 lines
                    
1<?php
                    
2#datamatrix is a generic file of functions that generates the table of statements for several outputs
                    
141						
                    
142			$s3ql = compact('db', 'user_id');
                    
143			$s3ql['select'] = '*';
                    
                
AclActionsController.php git://github.com/croogo/croogo.git | PHP | 189 lines
                    
1<?php
                    
2
                    
11 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
12 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
13 * @link     http://www.croogo.org
                    
56		$acos = $this->AclAco->getChildren($root['Aco']['id']);
                    
57		$this->set(compact('acos'));
                    
58	}
                    
85		$acos = $this->Acl->Aco->generateTreeList(null, '{n}.Aco.id', '{n}.Aco.alias');
                    
86		$this->set(compact('acos'));
                    
87	}
                    
113		$acos = $this->Acl->Aco->generateTreeList(null, '{n}.Aco.id', '{n}.Aco.alias');
                    
114		$this->set(compact('acos'));
                    
115	}
                    
                
TermsController.php git://github.com/croogo/croogo.git | PHP | 306 lines
                    
1<?php
                    
2
                    
11 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
12 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
13 * @link     http://www.croogo.org
                    
69		$terms = $this->Term->find('byVocabulary', array('vocabulary_id' => $vocabularyId));
                    
70		$this->set(compact('vocabulary', 'terms', 'defaultType'));
                    
71
                    
102		$parentTree = $this->Term->Taxonomy->getTree($vocabulary['Vocabulary']['alias'], array('taxonomyId' => true));
                    
103		$this->set(compact('vocabulary', 'parentTree', 'vocabularyId'));
                    
104	}
                    
152		$parentTree = $this->Term->Taxonomy->getTree($vocabulary['Vocabulary']['alias'], array('taxonomyId' => true));
                    
153		$this->set(compact('vocabulary', 'parentTree', 'term', 'taxonomy', 'vocabularyId'));
                    
154	}
                    
                
ezSQL_oracleTNSTest_.php git://github.com/jv2222/ezSQL.git | PHP | 262 lines
                    
1<?php
                    
2require_once('ez_sql_loader.php');
                    
3
                    
4require 'vendor/autoload.php';
                    
5use PHPUnit\Framework\TestCase;
                    
27    function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
                    
28        $this->errors[] = compact("errno", "errstr", "errfile",
                    
29            "errline", "errcontext");
                    
                
Hessian2Writer.php http://hessianphp.googlecode.com/svn/trunk/ | PHP | 368 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the HessianPHP package.
                    
4 * (c) 2004-2011 Manuel Gómez
                    
222			$stream .= pack('N', $ts);
                    
223		} else { // compact date, only minutes
                    
224			$ts = intval($ts / 60);
                    
                
mimes.php git://github.com/pyrocms/pyrocms.git | PHP | 139 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/*
                    
11$mimes = array('hqx'	=>	array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
                    
12				'cpt'	=>	'application/mac-compactpro',
                    
13				'csv'	=>	array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
                    
42				'gzip'  =>	'application/x-gzip',
                    
43				'php'	=>	'application/x-httpd-php',
                    
44				'php4'	=>	'application/x-httpd-php',
                    
44				'php4'	=>	'application/x-httpd-php',
                    
45				'php3'	=>	'application/x-httpd-php',
                    
46				'phtml'	=>	'application/x-httpd-php',
                    
46				'phtml'	=>	'application/x-httpd-php',
                    
47				'phps'	=>	'application/x-httpd-php-source',
                    
48				'js'	=>	'application/x-javascript',
                    
138
                    
139/* End of file mimes.php */
                    
                
classwso2wsf_1_1ICallback.html git://pkgs.fedoraproject.org/wso2-wsf-cpp | HTML | 140 lines
                    
17    <li>
                    
18      <form action="search.php" method="get">
                    
19        <table cellspacing="0" cellpadding="0" border="0">
                    
98<p>
                    
99Handler to be invoked in a Complete Event. <dl compact><dt><b>Parameters:</b></dt><dd>
                    
100  <table border="0" cellspacing="2" cellpadding="0">
                    
123<p>
                    
124Handler to be invoked in a Fault Event. <dl compact><dt><b>Parameters:</b></dt><dd>
                    
125  <table border="0" cellspacing="2" cellpadding="0">
                    
                
RedisTest.php git://github.com/UnionOfRAD/lithium.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2012, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
74
                    
75		$params = compact('key', 'data', 'expiry');
                    
76		$result = $closure($this->redis, $params, null);
                    
96
                    
97		$params = compact('key', 'data', 'expiry');
                    
98		$result = $closure($this->redis, $params, null);
                    
120
                    
121		$params = compact('key', 'data');
                    
122		$result = $closure($redis, $params, null);
                    
                
GalleryImageIndexBuilderProvider.cs https://hg.codeplex.com/mojoportal | C# | 232 lines
                    
5/// The use and distribution terms for this software are covered by the 
                    
6/// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)  
                    
7/// which can be found in the file CPL.TXT at the root of this distribution.
                    
73                    // TODO: it would be good to check the module settings and if not
                    
74                    // in compact mode use the GalleryBrowse.aspx page
                    
75                    //indexItem.ViewPage = "GalleryBrowse.aspx";
                    
                
pts_VerticalBarGraph.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 138 lines
                    
1<?php
                    
2
                    
7	Copyright (C) 2008 - 2012, Michael Larabel
                    
8	pts_VerticalBarGraph.php: The vertical bar graph object that extends pts_Graph.php
                    
9
                    
121				{
                    
122					// Make things more compact
                    
123					$this->svg_dom->add_text_element($value, array('x' => $x, 'y' => ($value_plot_top + 2), 'font-size' => floor(self::$c['size']['bars'] * 0.6), 'fill' => self::$c['color']['body_text'], 'text-anchor' => 'middle', 'dominant-baseline' => 'text-before-edge'));
                    
                
sets.php git://github.com/concrete5/concrete5.git | PHP | 266 lines
                    
64
                    
65                    <?php foreach ($files as $f) {
                    
66                        ?>
                    
205                    <tbody>
                    
206                    <?php foreach ($fileSets as $fs) { ?>
                    
207
                    
214
                    
215                        <?php
                    
216                    }
                    
246                <option
                    
247                    value="<?= FileSet::TYPE_PUBLIC ?>" <?php if ($fsType != FileSet::TYPE_PRIVATE) { ?> selected <?php } ?>><?= t('Public Sets') ?></option>
                    
248                <option
                    
248                <option
                    
249                    value="<?= FileSet::TYPE_PRIVATE ?>" <?php if ($fsType == FileSet::TYPE_PRIVATE) { ?> selected <?php } ?>><?= t('My Sets') ?></option>
                    
250            </select>
                    
                
CacheContextsManager.php git://github.com/drupal/drupal.git | PHP | 325 lines
                    
1<?php
                    
2
                    
132   *
                    
133   * Hence a minimal representative subset is the most compact representation
                    
134   * possible of a set of cache context tokens, that still captures the entire
                    
                
ColUDA.cpp git://pkgs.fedoraproject.org/task | C++ | 163 lines
                    
23//
                    
24// http://www.opensource.org/licenses/mit-license.php
                    
25//
                    
88      {
                    
89        minimum = maximum = Duration (value).formatCompact ().length ();
                    
90      }
                    
141            rightJustify (
                    
142              Duration (value).formatCompact (),
                    
143              width)));
                    
                
SignalIndexCache.java https://TimeSeriesFramework.svn.codeplex.com/svn | Java | 129 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
33 * Represents a cache used to map 16-bit indexes to {@link MeasurementKey}s
                    
34 * in order to compact measurement IDs for the compact measurement format.
                    
35 */
                    
                
category.php http://bedita.googlecode.com/svn/trunk/ | PHP | 507 lines
                    
1<?php
                    
2/*-----8<--------------------------------------------------------------------
                    
28 * 
                    
29 * $Id: category.php 3905 2012-08-08 16:21:17Z ste $
                    
30 */
                    
32	var $actsAs = array(
                    
33			'CompactResult' 		=> array()
                    
34	);
                    
408		
                    
409		// don't compact find result
                    
410		$this->bviorCompactResults = false;
                    
417		
                    
418		// reset to default compact result
                    
419		$this->bviorCompactResults = true;
                    
490			$n = trim($n);
                    
491			$this->bviorCompactResults = false;
                    
492			$idCat = $this->field('id', array('name' => $n, 'object_type_id' => $objTypeId));
                    
                
deleteclass.php https://code.google.com/p/s3db/ | PHP | 150 lines
                    
1<?php
                    
2#deleterule.php is a form for changing rules, classes or not
                    
10	else $def = $_SERVER['HTTP_HOST'];
                    
11	if(file_exists('../config.inc.php')) {
                    
12		include('../config.inc.php');}
                    
21#Get the key, send it to check validity
                    
22include_once('../core.header.php');
                    
23
                    
36# echo '<pre>';print_r($resource_info);
                    
37$uni = compact('db', 'user_id');
                    
38if($class_id=='')
                    
81#include all the javascript functions for the menus...
                    
82include('../S3DBjavascript.php');
                    
83
                    
99			<tr class="odd">
                    
100				<?php
                    
101				echo '<td class="message" colspan="8">'.$message.'</b><br /><br /></td>';
                    
                
instance.php https://code.google.com/p/s3db/ | PHP | 251 lines
                    
1<?php
                    
2	#instance.php displays all statements in a certain instance and links to create more
                    
12	
                    
13	if(file_exists('../config.inc.php'))
                    
14	{
                    
14	{
                    
15		include('../config.inc.php');
                    
16	}
                    
32
                    
33include_once('../core.header.php');
                    
34
                    
62	
                    
63	include('../action.header.php');
                    
64	
                    
71	#include the header for the instance
                    
72	include('instance.header.php');
                    
73
                    
                
ResResource.php https://code.google.com/p/s3db/ | PHP | 212 lines
                    
1<?php
                    
2/**
                    
12* range of methods, such as getProperty() and addProperty() which will access or modify 
                    
13* that model. This enables the programmer to write code in a compact and easy style.
                    
14*
                    
14*
                    
15* @version  $Id: ResResource.php,v 1.8 2006/11/21 09:38:50 tgauss Exp $
                    
16* @author Daniel Westphal <mail at d-westphal dot de>
                    
                
asset.php git://github.com/ericbarnes/Status-Board.git | PHP | 356 lines
                    
1<?php namespace Laravel; defined('DS') or die('No direct script access.');
                    
2
                    
194
                    
195		$this->assets[$type][$name] = compact('source', 'dependencies', 'attributes');
                    
196	}
                    
                
SerializableBehavior.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 195 lines
                    
1<?php
                    
2/**
                    
69     *
                    
70     * ```php
                    
71     * [
                    
79     *
                    
80     * ```php
                    
81     * [
                    
105                    $columnData = (array)$dataArray[$column];
                    
106                    $this->_table->dispatchEvent($eventName, compact('columnData', 'options'));
                    
107                }
                    
128     *
                    
129     *   ```php
                    
130     *   object(Cake\Datasource\EntityInterface) {
                    
140     *
                    
141     *   ```php
                    
142     *   object(Cake\Datasource\EntityInterface) {
                    
                
string_data.h https://bitbucket.org/asuhan/happy/ | C Header | 388 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 __HPHP_STRING_DATA_H__
                    
18#define __HPHP_STRING_DATA_H__
                    
                
admin-db.php http://core.svn.wordpress.org/ | PHP | 350 lines
                    
1<?php
                    
2
                    
180function wp_create_category($cat_name) {
                    
181	$cat_array = compact('cat_name');
                    
182	return wp_insert_category($cat_array);
                    
                
ca.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 182 lines
                    
1<?php
                    
2
                    
28	 'groups:widget:size'  =>  "Mida" , 
                    
29	 'groups:widget:small'  =>  "Vista compacta" , 
                    
30	 'groups:widget:normal'  =>  "Vista normal" , 
                    
                
compact-vector.h git://github.com/facebook/hiphop-php.git | C Header | 477 lines
                    
158template <typename T, typename A>
                    
159CompactVector<T, A>::CompactVector(CompactVector&& other) noexcept
                    
160  : m_data(other.m_data) {
                    
164template <typename T, typename A>
                    
165CompactVector<T, A>::CompactVector(const CompactVector& other)
                    
166  : m_data(nullptr) {
                    
179template <typename T, typename A>
                    
180CompactVector<T, A>::CompactVector(std::initializer_list<T> init) :
                    
181    m_data(nullptr) {
                    
199template <typename T, typename A>
                    
200CompactVector<T, A>& CompactVector<T, A>::operator=(CompactVector&& other) {
                    
201  std::swap(m_data, other.m_data);
                    
249template <typename T, typename A>
                    
250typename CompactVector<T, A>::size_type CompactVector<T, A>::size() const {
                    
251  return m_data ? m_data->m_len : 0;
                    
                
validate_HTML401TRANSITIONAL.inc.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 894 lines
                    
1<?php
                    
2
                    
273		'%attrs',
                    
274		'compact'
                    
275		),
                    
280		'type',
                    
281		'compact',
                    
282		'start'
                    
286		'type',
                    
287		'compact'
                    
288		),
                    
290		'%attrs',
                    
291		'compact'
                    
292		),
                    
294		'%attrs',
                    
295		'compact'
                    
296		),
                    
                
sparqlForm.php https://code.google.com/p/s3db/ | PHP | 272 lines
                    
25
                    
26#include(S3DB_SERVER_ROOT.'/dbstruct.php');
                    
27include_once(S3DB_SERVER_ROOT.'/core.header.php');
                    
27include_once(S3DB_SERVER_ROOT.'/core.header.php');
                    
28include_once(S3DB_SERVER_ROOT.'/rdfheader.inc.php');
                    
29include_once(S3DB_SERVER_ROOT.'/s3dbcore/sparql_read.php');
                    
179		$newLeaf[$key][2] = '[ "Collections", "../frames/sparqlForm.php?query=select distinct ?collection_id where { ?collection_id a s3db:s3dbCollection . ?collection_id rdfs:subClassOf :'.$forJS.' . }&callback=?collection_id&leadInd='.$key.'"];';
                    
180		$newLeaf[$key][3] = '[ "Rules", "../frames/sparqlForm.php?query=select distinct ?rule_id where { ?rule_id a s3db:s3dbRule . ?rule_id rdfs:subClassOf :'.$forJS.' . }&callback=?rule_id&leadInd='.$key.'"];';
                    
181		
                    
186		$nextVar = ereg_replace('^\?','',$nextCallback);
                    
187		$newLeaf[$key][1] = '[ "'.$forJS.'", "../frames/sparqlForm.php?query='.urlencode('select * where { '.$nextCallback.' a s3db:s3db'.$GLOBALS['COREidsInv'][$nextVar].' .  }').'&callback='.$nextCallback.'&leadInd='.$key.'" ]';
                    
188		$newLeaf[$key][2] = '[ "Items", "../frames/sparqlForm.php?query=select distinct ?item_id where { ?item_id a s3db:s3dbItem . ?item_id rdf:type :'.$forJS.' . }&callback=?item_id&leadInd='.$key.'"];';
                    
261//echo '<script type="text/javascript">parent.sparqltrial.location = (\'../tigre_tree/sparqlTrial.php?newTree=sparqlNewTree.js\')</script>';
                    
262#echo '<script type="text/javascript">var php=js2php (TREE_ITEMS); </script>';
                    
263#echo '<script type="text/javascript">setCookie("treePHP",php,7);</script>';
                    
                
update.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 254 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once('./admin.php');
                    
11
                    
11
                    
12include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
                    
13
                    
33
                    
34		$url = 'update.php?action=update-selected&amp;plugins=' . urlencode(implode(',', $plugins));
                    
35		$nonce = 'bulk-update-plugins';
                    
36
                    
37		require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
                    
38		wp_enqueue_script('jquery');
                    
40
                    
41		$upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) );
                    
42		$upgrader->bulk_upgrade( $plugins );
                    
                
AssetFilterTest.php git://github.com/cakephp/cakephp.git | PHP | 260 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 */
                    
54     * @return void
                    
55     * @triggers DispatcherTest $this, compact('request', 'response')
                    
56     * @triggers DispatcherTest $this, compact('request', 'response')
                    
95    /**
                    
96     * Test that no exceptions are thrown for //index.php type URLs.
                    
97     *
                    
                
atenciones_integrales_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 107 lines
                    
1<?php
                    
2class AtencionesIntegralesController extends AppController {
                    
23		}		
                    
24		$this->set(compact('zona_id'));
                    
25		
                    
59		$bimestre=$year."-".$bimestre;		
                    
60		$this->set(compact('zona', 'bimestre'));
                    
61	}
                    
84											'AND'=>array('AtencionesIntegrale.bimestre'=>$year."-".$bimestre))));
                    
85		$this->set(compact('datos'));
                    
86	}
                    
                
PublishDateField.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 215 lines
                    
1<?php
                    
2/**
                    
56
                    
57        return $view->element('Field.PublishDateField/display', compact('field'));
                    
58    }
                    
64    {
                    
65        return $view->element('Field.PublishDateField/edit', compact('field'));
                    
66    }
                    
166    {
                    
167        return $view->element('Field.PublishDateField/settings_form', compact('instance'));
                    
168    }
                    
200    {
                    
201        return $view->element('Field.PublishDateField/view_mode_form', compact('instance', 'viewMode'));
                    
202    }
                    
                
FileField.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
56
                    
57        return $view->element('Field.FileField/display', compact('field'));
                    
58    }
                    
64    {
                    
65        return $view->element('Field.FileField/edit', compact('field'));
                    
66    }
                    
235    {
                    
236        return $view->element('Field.FileField/settings_form', compact('instance'));
                    
237    }
                    
257    {
                    
258        return $view->element('Field.FileField/view_mode_form', compact('instance', 'viewMode'));
                    
259    }
                    
                
Mailer.php https://gitlab.com/barrel/framework.git | PHP | 468 lines
                    
1<?php namespace Illuminate\Mail;
                    
2
                    
84	{
                    
85		$this->from = compact('address', 'name');
                    
86	}
                    
142
                    
143		$this->queue->push('mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue);
                    
144	}
                    
173
                    
174		$this->queue->later($delay, 'mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue);
                    
175	}
                    
                
mimes.php https://code.google.com/p/osclass/ | PHP | 114 lines
                    
1<?php
                    
2
                    
20    $mimes = array(	'hqx'	=>	'application/mac-binhex40',
                    
21                    'cpt'	=>	'application/mac-compactpro',
                    
22                    'csv'	=>	array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
                    
50                    'gz'	=>	'application/x-gzip',
                    
51                    'php'	=>	'application/x-httpd-php',
                    
52                    'php4'	=>	'application/x-httpd-php',
                    
52                    'php4'	=>	'application/x-httpd-php',
                    
53                    'php3'	=>	'application/x-httpd-php',
                    
54                    'phtml'	=>	'application/x-httpd-php',
                    
54                    'phtml'	=>	'application/x-httpd-php',
                    
55                    'phps'	=>	'application/x-httpd-php-source',
                    
56                    'js'	=>	'application/x-javascript',
                    
                
Bootstrap.php git://github.com/AntonShevchuk/Bluz.git | PHP | 141 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Copyright (c) 2012 by Bluz PHP Team
                    
4 *
                    
76
                    
77                /*$version = shell_exec('hg tip --style compact');
                    
78                if ($version) {
                    
87                                Debug Panel
                    
88                                <span class="badge pull-right"><?php printf("%f :: %s kb", microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], ceil((memory_get_usage()/1024)))?></span>
                    
89                            </h3>
                    
89                            </h3>
                    
90                            <?php if ($version) :?>
                    
91                            <code class="debug-panel-version">
                    
97                            </code>
                    
98                            <?php endif ?>
                    
99                        </section>
                    
                
DbConfigTask.php git://github.com/cakephp/cakephp.git | 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-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, 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 */
                    
                
classYahooApplication.html git://github.com/petewarden/findbyemail.git | HTML | 158 lines
                    
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
                    
3<title>Yahoo! OS SDK - PHP: YahooApplication Class Reference</title>
                    
4<link href="tabs.css" rel="stylesheet" type="text/css">
                    
67Executes the given YQL query.<p>
                    
68<dl compact><dt><b>Parameters:</b></dt><dd>
                    
69  <table border="0" cellspacing="2" cellpadding="0">
                    
73</dl>
                    
74<dl class="return" compact><dt><b>Returns:</b></dt><dd>The response or NULL if the request fails.. </dd></dl>
                    
75
                    
104Sets the small view for the user given by the GUID.<p>
                    
105<dl compact><dt><b>Parameters:</b></dt><dd>
                    
106  <table border="0" cellspacing="2" cellpadding="0">
                    
110</dl>
                    
111<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success, false otherwise. </dd></dl>
                    
112
                    
                
ezSQL_cubridTest.php git://github.com/jv2222/ezSQL.git | PHP | 281 lines
                    
1<?php
                    
2require_once('ez_sql_loader.php');
                    
3
                    
4require 'vendor/autoload.php';
                    
5use PHPUnit\Framework\TestCase;
                    
7/**
                    
8 * Generated by PHPUnit_SkeletonGenerator on 2018-03-08 at 03:16:41.
                    
9 */
                    
43    function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
                    
44        $this->errors[] = compact("errno", "errstr", "errfile",
                    
45            "errline", "errcontext");
                    
                
deserciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 196 lines
                    
1<?php
                    
2class DesercionesController extends AppController {
                    
33		
                    
34		$this->set(compact('deserciones', 'circulo', 'circulo_nombre', 'group_id'));		
                    
35	}
                    
68		$this->set('circulos', $circulos_aprendizajes);	
                    
69		$this->set(compact('user_id','group_id'));
                    
70	}	
                    
89		$group_id = $this->Access->getMy('group_id');
                    
90		$this->set(compact('user_id','group_id'));
                    
91		$this->set(compact('estudiantes', 'circulo'));
                    
136		$users = $this->Desercione->User->find('first',array('conditions'=>array('User.id'=>$user_id)));		
                    
137		$this->set(compact('estudiantes', 'users', 'user_id', 'group_id'));
                    
138	}
                    
173		$estudiantes = $this->Desercione->Estudiante->find('list');		
                    
174		$this->set(compact('estudiantes', 'users', 'user_id', 'group_id'));
                    
175	}
                    
                
FieldHook.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 111 lines
                    
1<?php
                    
2/**
                    
33 *
                    
34 * ```php
                    
35 * public function display(Event $event, $field, $options) {
                    
45 *
                    
46 * ```php
                    
47 * public function display(Event $event, $field, $options) {
                    
49 *         ->subject()
                    
50 *         ->element('MyPlugin.text_field_display', compact('field', 'options'));
                    
51 * }
                    
                
Smd.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
130        if (!in_array($transport, $this->_transportTypes)) {
                    
131            require_once 'Zend/Json/Server/Exception.php';
                    
132            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s" specified', $transport));
                    
156        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
157            require_once 'Zend/Json/Server/Exception.php';
                    
158            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"', $envelopeType));
                    
183        if (!preg_match($this->_contentTypeRegex, $type)) {
                    
184            require_once 'Zend/Json/Server/Exception.php';
                    
185            throw new Zend_Json_Server_Exception(sprintf('Invalid content type "%s" specified', $type));
                    
296    {
                    
297        require_once 'Zend/Json/Server/Smd/Service.php';
                    
298
                    
304        } else {
                    
305            require_once 'Zend/Json/Server/Exception.php';
                    
306            throw new Zend_Json_Server_Exception('Invalid service passed to addService()');
                    
                
ISO14496_Box_STSC.html http://xepec.googlecode.com/svn/trunk/ | HTML | 244 lines
                    
23	<div class="info-box-body">
                    
24        		<!-- ========== Info from phpDoc block ========= -->
                    
25<p class="short-description">Samples within the media data are grouped into chunks. Chunks can be of  different sizes, and the samples within a chunk can have different sizes.</p>
                    
25<p class="short-description">Samples within the media data are grouped into chunks. Chunks can be of  different sizes, and the samples within a chunk can have different sizes.</p>
                    
26<p class="description"><p>The <em>Sample To Chunk Box</em> table can be used to find the chunk that  contains a sample, its position, and the associated sample description.</p><p>The table is compactly coded. Each entry gives the index of the first chunk  of a run of chunks with the same characteristics. By subtracting one entry  here from the previous one, you can compute how many chunks are in this run.  You can convert this to a sample count by multiplying by the appropriate  samplesPerChunk.</p></p>
                    
27	<ul class="tags">
                    
29				<li><span class="field">version:</span> $Rev: 92 $</li>
                    
30				<li><span class="field">copyright:</span> Copyright (c) 2008 The PHP Reader Project Workgroup</li>
                    
31				<li><span class="field">license:</span> <a href="http://code.google.com/p/php-reader/wiki/License">New BSD License</a></li>
                    
33		<p class="notes">
                    
34			Located in <a class="field" href="_ISO14496---Box---STSC.php.html">/ISO14496/Box/STSC.php</a> (line <span class="field">61</span>)
                    
35		</p>
                    
240	<p class="notes" id="credit">
                    
241		Documentation generated on Thu, 01 Jan 2009 14:59:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
                    
242	</p>
                    
                
remote.php git://github.com/phpbb/phpbb.git | PHP | 236 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\avatar\driver;
                    
15
                    
69		{
                    
70			require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);
                    
71		}
                    
99		$vars = array('url', 'width', 'height', 'error');
                    
100		extract($phpbb_dispatcher->trigger_event('core.ucp_profile_avatar_upload_validation', compact($vars)));
                    
101
                    
                
file.h git://github.com/vpj/PHP-Extension-API.git | C Header | 441 lines
                    
46#endif
                    
47#ifdef PHP_WIN32
                    
48#include "win32/php_stdint.h"
                    
50
                    
51#include "php.h"
                    
52#include "ext/standard/php_string.h"
                    
52#include "ext/standard/php_string.h"
                    
53#include "ext/pcre/php_pcre.h"
                    
54
                    
55#include <sys/types.h>
                    
56#ifdef PHP_WIN32
                    
57#include "win32/param.h"
                    
70
                    
71#if defined(__EMX__) || defined(PHP_WIN32)
                    
72#define PATHSEP	';'
                    
                
cake_test_fixture.test.php git://github.com/abalonepaul/eav_behavior.git | PHP | 504 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.tests.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.4667
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
181	function insertMulti($table, $fields, $values) {
                    
182		$this->insertMulti = compact('table', 'fields', 'values');
                    
183		return true;
                    
                
 

Source

Language