PageRenderTime 33ms queryFilters 0ms Sphinxql 233ms app.CodeModel.GetByIds 15ms findMatchingLines 11ms GetByIds 26ms meta 0ms repositoryFilters 1ms languageFilters 1ms sourceFilters 2ms

4,916,907 results for 'foreach' (33 ms)

Source

Language

Repository

blocklayered.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 4,230 lines
290
291		foreach ($filters as $filter)
292			switch ($filter['type'])
307					WHERE a.id_attribute_group = '.(int)$filter['id_value'].' AND agl.id_lang = al.id_lang AND agl.id_lang = '.(int)$filter['id_lang']);
308					foreach ($attributes as $attribute)
309					{
337					WHERE fl.id_feature = '.(int)$filter['id_value'].' AND fvl.id_lang = fl.id_lang AND fvl.id_lang = '.(int)$filter['id_lang']);
338					foreach ($features as $feature)
339					{
360					WHERE cl.id_lang = '.(int)$filter['id_lang']);
361					foreach ($categories as $category)
362					{
378				
379					foreach ($manufacturers as $manufacturer)
380					{
AdminTranslationsController.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 2,594 lines
188			if ($lang_packs != '' && $lang_packs = Tools::jsonDecode($lang_packs, true))
189				foreach ($lang_packs as $key => $lang_pack)
190				{
301			$to_insert = array();
302			foreach ($_POST as $key => $value)
303				if (!empty($value))
309			fwrite($fd, "<?php\n\nglobal \$".$tab.";\n\$".$tab." = array();\n");
310			foreach ($to_insert as $key => $value)
311				fwrite($fd, '$'.$tab.'[\''.pSQL($key, true).'\'] = \''.pSQL($value, true).'\';'."\n");
339		$items = Language::getFilesList($from_lang, $from_theme, $to_lang, $to_theme, false, false, true);
340		foreach ($items as $source => $dest)
341		{
367		{
368			foreach ($matches[1] as $key => $value)
369				$arr_replace[$value] = str_replace($theme_from, $theme_to, $value);
AdminCartRulesController.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 585 lines
63				if (is_array($rule_group_array = Tools::getValue('product_rule_group')) && count($rule_group_array) && Tools::getValue('product_restriction'))
64					foreach ($rule_group_array as $rule_group_id)
65						if (is_array($rule_array = Tools::getValue('product_rule_'.$rule_group_id)) && count($rule_array))
65						if (is_array($rule_array = Tools::getValue('product_rule_'.$rule_group_id)) && count($rule_array))
66							foreach ($rule_array as $rule_id)
67								if (Tools::getValue('product_rule_'.$rule_group_id.'_'.$rule_id.'_type') == 'products'
102			// These are checkboxes (which aren't sent through POST when they are not check), so they are forced to 0
103			foreach (array('country', 'carrier', 'group', 'cart_rule', 'product', 'shop') as $type)
104				if (!Tools::getValue($type.'_restriction'))
132		$id_cart_rule = Tools::getValue('id_cart_rule');
133		foreach (array('country', 'carrier', 'group', 'product_rule_group', 'shop') as $type)
134			Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'cart_rule_'.$type.'` WHERE `id_cart_rule` = '.(int)$id_cart_rule);
154		// Add restrictions for generic entities like country, carrier and group
155		foreach (array('country', 'carrier', 'group', 'shop') as $type)
156			if (Tools::getValue($type.'_restriction') && is_array($array = Tools::getValue($type.'_select')) && count($array))
ObjectModel.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 1,532 lines
220				$this->id = (int)$id;
221				foreach ($result as $key => $value)
222					if (array_key_exists($key, $this))
231					if ($result)
232						foreach ($result as $row)
233							foreach ($row as $key => $value)
249			if ($fields)
250				foreach ($fields as $row)
251					self::$fieldsRequiredDatabase[$row['object_name']][(int)$row['id_required_field']] = pSQL($row['field_name']);
310		if ($this->id_lang === null)
311			foreach (Language::getLanguages(false) as $language)
312			{
342
343		foreach ($this->def['fields'] as $field => $data)
344		{
Language.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 787 lines
115			mkdir(_PS_TRANSLATIONS_DIR_.$iso_code);
116		foreach ($this->translationsFilesAndVars as $file => $var)
117		{
149		$modulesList = Module::getModulesDirOnDisk();
150		foreach ($modulesList as $moduleDir)
151		{
158
159		foreach (Theme::getThemes() as $theme)
160		{
167
168			foreach ($modulesList as $module)
169				if (file_exists(_PS_ALL_THEMES_DIR_.$theme_dir.'/modules/'.$module.'/'.$this->iso_code.'.php'))
187			$installed_themes = Theme::getThemes();
188			foreach ($installed_themes as $theme)
189				$themes[$theme->directory] = array('name' => $theme->name);
AdminTab.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 2,436 lines
321		$required_class_fields = array($this->identifier);
322		foreach ($rules['required'] as $required)
323			$required_class_fields[] = $required;
340		$required_fields = array();
341		foreach ($res as $row)
342			$required_fields[(int)$row['id_required_field']] = $row['field_name'];
346		$irow = 0;
347		foreach ($table_fields as $field)
348		{
366		$inc = false;
367		foreach ($this->_includeTab as $subtab => $extraVars)
368		{
381			if (!empty($extraVars) && is_array($extraVars))
382				foreach ($extraVars as $varKey => $varValue)
383					$adminTab->$varKey = $varValue;
Module.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 1,980 lines
159				$result = Db::getInstance()->executeS($sql);
160				foreach ($result as $row)
161				{
171					$this->id = self::$modules_cache[$this->name]['id_module'];
172				foreach (self::$modules_cache[$this->name] as $key => $value)
173					if (key_exists($key, $this))
198		if (count($this->dependencies) > 0)
199			foreach ($this->dependencies as $dependency)
200				if (!Db::getInstance()->getRow('SELECT `id_module` FROM `'._DB_PREFIX_.'module` WHERE `name` = \''.pSQL($dependency).'\''))
202					$error = $this->l('Before installing this module, you have to installed these/this module(s) first :').'<br />';
203					foreach ($this->dependencies as $d)
204						$error .= '- '.$d.'<br />';
330		$upgrade = &self::$modules_cache[$this->name]['upgrade'];
331		foreach ($upgrade['upgrade_file_left'] as $num => $file_detail)
332		{
form.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 452 lines
37	{/if}
38	{foreach $fields as $f => $fieldset}
39		<fieldset id="fieldset_{$f}">
39		<fieldset id="fieldset_{$f}">
40			{foreach $fieldset.form as $key => $field}
41				{if $key == 'legend'}
48				{elseif $key == 'input'}
49					{foreach $field as $input}
50						{if $input.type == 'hidden'}
64										<div class="translatable">
65											{foreach $languages as $language}
66												<div class="lang_{$language.id_lang}" style="display:{if $language.id_lang == $defaultFormLanguage}block{else}none{/if}; float: left;">
92												</div>
93											{/foreach}
94										</div>
main.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 205 lines
38		{
39			var list_type_for_theme = [{foreach $translations_type_for_theme as $type}'{$type}', {/foreach}];
40			var type = el.value;
66					<option value="{$type}">{$array.name} &nbsp;</option>
67				{/foreach}
68			</select>
69			<select name="theme" style="float:left; margin-right:10px;">
70				{foreach $themes as $theme}
71
72					<option value="{$theme->directory}" {if $id_theme_current == $theme->id}selected=selected{/if}>{$theme->name} &nbsp;</option>
73				{/foreach}
74			</select>
133							<option value="{$theme->directory}" selected="selected">{$theme->name} &nbsp;</option>
134						{/foreach}
135					</select>
view.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 795 lines
51	var statesShipped = new Array();
52	{foreach from=$states item=state}
53		{if (!$currentState->shipped && $state['shipped'])}
55		{/if}
56	{/foreach}
57	</script>
113				<select id="id_order_state" name="id_order_state">
114				{foreach from=$states item=state}
115					{if $state['id_order_state'] != $currentState->id}
117					{/if}
118				{/foreach}
119				</select>
132				</colgroup>
133			{foreach from=$history item=row key=key}
134				{if ($key == 0)}
tester.tcl https://bitbucket.org/eumario/csharp-sqlite.git | TCL | 1,519 lines
172  set leftover [list]
173  foreach a $argv {
174    switch -regexp -- $a {
182      {^-+soft-heap-limit=.+$} {
183        foreach {dummy cmdlinearg(soft-heap-limit)} [split $a =] break
184      }
185      {^-+maxerror=.+$} {
186        foreach {dummy cmdlinearg(maxerror)} [split $a =] break
187      }
188      {^-+malloctrace=.+$} {
189        foreach {dummy cmdlinearg(malloctrace)} [split $a =] break
190        if {$cmdlinearg(malloctrace)} {
194      {^-+backtrace=.+$} {
195        foreach {dummy cmdlinearg(backtrace)} [split $a =] break
196        sqlite3_memdebug_backtrace $value
e_expr.test https://bitbucket.org/eumario/csharp-sqlite.git | Unknown | 1,869 lines
41#
42foreach {op opn} {
43      ||   cat     *   mul       /  div       %     mod       +      add
52set oplist [list]
53foreach {prec opl} {
54  1   ||
62} {
63  foreach op $opl { 
64    set ::opprec($op) $prec 
92unset -nocomplain untested
93foreach op1 $oplist {
94  foreach op2 $oplist {
95    set untested($op1,$op2) 1
96    foreach {tn A B C} {
97       1     22   45    66
Align.pm https://bitbucket.org/tiedemann/uplug.git | Perl | 650 lines
145    my @idx=();
146    foreach my $p (0..$#{$phraseNodes}){
147	my $lastIdx=0;
147	my $lastIdx=0;
148	foreach my $t ($lastIdx..$#{$tokenNodes}){
149	    if ($$phraseNodes[$p]==$$tokenNodes[$t]){
198    my @trgIdx=();
199    foreach (0..$#srcPhr){
200	push (@srcIdx,$self->getPhrasePos($$srcNodes[$_],\@srcTokNodes));
201    }
202    foreach (0..$#trgPhr){
203	push (@trgIdx,$self->getPhrasePos($$trgNodes[$_],\@trgTokNodes));
208    $self->makeParameter($param,'source');  #    get source feature
209    foreach (0..$#{$srcNodes}){
210	$$src{$srcIdx[$_]}=
Giza.pm https://bitbucket.org/tiedemann/uplug.git | Perl | 795 lines
105
106    foreach my $s (keys %lex){
107	my $total;
107	my $total;
108	foreach my $t (keys %{$lex{$s}}){
109	    my $score=$lex{$s}{$t};
212	}
213	foreach (sort keys %align){
214	    my @s;my @t;
224	    my @src=();my @trg=();
225	    foreach (@s){push (@src,$SrcTokens[$_-1]);}
226	    foreach (@t){push (@trg,$TrgTokens[$_-1]);}
227	    my @srcId=();my @trgId=();
228	    foreach (@s){push (@srcId,$SrcIds[$_-1]);}
229	    foreach (@t){push (@trgId,$TrgIds[$_-1]);}
uplug-giza https://bitbucket.org/tiedemann/uplug.git | Perl | 744 lines
113
114#foreach my $d (@align){
115#    chdir $TmpDir.$d;
212
213    foreach my $s (keys %lex){
214	my $total;
214	my $total;
215	foreach my $t (keys %{$lex{$s}}){
216	    my $score=$lex{$s}{$t};
308	}
309	foreach (sort keys %align){
310	    my @s;my @t;
320	    my @src=();my @trg=();
321	    foreach (@s){push (@src,$SrcTokens[$_-1]);}
322	    foreach (@t){push (@trg,$TrgTokens[$_-1]);}
LIB_Document.inc https://bitbucket.org/joaoborsoi/avalanche.git | PHP | 2,492 lines
55				$this->nodeTable->LoadFieldsDef($disableFileReq));
56    foreach($this->folderTables as $table)
57    {
89
90    foreach($this->docTable as $table)
91      $table->Insert($fields, array('docId'=>$docId));
118    $oldValues = array();
119    foreach($this->docTable as $table)
120    {
155
156    foreach($this->docTable as $table)
157      $table->Duplicate($sourceKey,$fields);
242      $tables = array();
243      foreach($returnFields as $key=>$field)
244      {
FORM_DynTable.inc https://bitbucket.org/joaoborsoi/avalanche.git | PHP | 2,707 lines
69    // prepare fieldsDef
70    foreach($fieldsDef as & $fieldDef) 
71      $this->ParseFieldDef($fieldDef,$disableFileRequired,$disableRequired);
81
82    foreach($this->fieldsDef as $field)
83    {
129
130    foreach($extraFields as $key => $field)
131    {
150  
151    foreach($this->fieldsDef as $field)
152    {
190
191    foreach($this->fieldsDef as $field)
192    {
lessc.inc.php https://bitbucket.org/tikapot/tikapot.git | PHP | 3,358 lines
68	protected function findImport($url) {
69		foreach ((array)$this->importDir as $dir) {
70			$full = $dir.(substr($dir, -1) != '/' ? '/' : '').$url;
116		// set the parents of all the block props
117		foreach ($root->props as $prop) {
118			if ($prop[0] == "block") {
125		// TODO: need to mark the source parser	these came from this file
126		foreach ($root->children as $childName => $child) {
127			if (isset($parentBlock->children[$childName])) {
153
154		foreach ($props as $prop) {
155			$this->compileProp($prop, $block, $out);
275	protected function compileProps($block, $out) {
276		foreach ($this->sortProps($block->props) as $prop) {
277			$this->compileProp($prop, $block, $out);
dbext_dbi.vim https://bitbucket.org/nextreamlabs/slice-official-repository.git | Vim Script | 1,692 lines
364
365    foreach my $line (@lines) {
366        if ( $printed_lines > 0 ) {
429    db_set_vim_var("g:dbext_dbi_msg", '');
430    foreach my $row2 ( @headers ) {
431        db_debug('db_list_connections:R'.Dumper($row2));
431        db_debug('db_list_connections:R'.Dumper($row2));
432        foreach my $col2 ( @{$row2} ) {
433            my $temp_length = length((defined($col2)?$col2:""));
445    {
446        foreach my $bufnr ( keys %connections ) {
447            @row = ($bufnr
455            $i = 0;
456            foreach my $col ( @row ) {
457                my $temp_length = length((defined($col)?$col:""));
MultiSearcher.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 973 lines
53
54        foreach ($this->_indices as $index) {
55            if (!$index instanceof Zend_Search_Lucene_Interface) {
120    {
121        foreach ($this->_indices as $index) {
122            $index->setFormatVersion($formatVersion);
145
146        foreach ($this->_indices as $index) {
147            $count += $index->count();
173
174        foreach ($this->_indices as $index) {
175            $docs += $index->numDocs();
189    {
190        foreach ($this->_indices as $index) {
191            $indexCount = $index->count();
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21