PageRenderTime 370ms queryFilters 0ms Sphinxql 255ms app.CodeModel.GetByIds 21ms findMatchingLines 29ms GetByIds 50ms meta 0ms repositoryFilters 13ms languageFilters 8ms sourceFilters 5ms

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

Source

Language

Repository

auth.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 1,285 lines
144				$hold_ary[$userdata['user_id']] = array();
145				foreach ($forum_ids as $f_id)
146				{
147					$hold_ary[$userdata['user_id']][$f_id] = array();
148					foreach ($compare_options as $option)
149					{
159
160		foreach ($ug_id as $_id)
161		{
166
167			foreach ($forum_ids as $f_id)
168			{
189		{
190			foreach ($hold_ary as $ug_id => $row)
191			{
acp_styles.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 3,951 lines
408							$imageset_definitions = array();
409							foreach ($this->imageset_keys as $topic => $key_array)
410							{
421
422							foreach ($cfg_data_imageset as $image_name => $value)
423							{
467									$cfg_data_imageset_data = parse_cfg_file("{$phpbb_root_path}styles/{$imageset_row['imageset_path']}/imageset/{$row['lang_dir']}/imageset.cfg");
468									foreach ($cfg_data_imageset_data as $image_name => $value)
469									{
610			$s_options = array();
611			foreach ($options as $option)
612			{
616			$s_actions = array();
617			foreach ($actions as $option)
618			{
acp_profile.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 1,626 lines
90		{
91			foreach ($this->lang_defs['entry'] as $field_id => $field_ary)
92			{
145
146							foreach ($old_table_cols as $declaration)
147							{
413
414				foreach ($visibility_ary as $val)
415				{
453				// step 2
454				foreach ($exclude[2] as $key)
455				{
559
560				foreach ($exclude[3] as $key)
561				{
context.inc https://bitbucket.org/luksak/ctools.git | Pascal | 1,584 lines
145    // See which of these contexts are valid
146    foreach ((array) $contexts as $cid => $context) {
147      if ($context->is_type($this->keywords)) {
149        if (!empty($this->restrictions) && !empty($context->restrictions)) {
150          foreach ($this->restrictions as $key => $values) {
151            // If we have a restriction, the context must either not have that
262    $result = array();
263    foreach ($required as $r) {
264      $result = array_merge($result, _ctools_context_filter($contexts, $r));
303    $count = 1;
304    foreach ($required as $id => $r) {
305      $result[] = _ctools_context_selector($contexts, $r, isset($default[$id]) ? $default[$id] : '', $count++);
320    // If there's more than one to choose from, create a select widget.
321    foreach ($filtered as $cid => $context) {
322      $options[$cid] = $context->get_identifier();
view.inc https://bitbucket.org/edutrul/sanitation.git | Pascal | 2,650 lines
261    // Make sure all of our sub objects are arrays.
262    foreach ($this->db_objects() as $object) {
263      $this->$object = array();
418      // unset items that are definitely not our input:
419      foreach (array('page', 'q') as $key) {
420        if (isset($this->exposed_input[$key])) {
450    // Instantiate all displays
451    foreach (array_keys($this->display) as $id) {
452      // Correct for shallow cloning
495
496    foreach ($displays as $display_id) {
497      if ($this->display[$display_id]->handler->access()) {
602    // available.
603    foreach ($this->display_handler->get_option('relationships') as $id => $options) {
604      $options['table'] = views_move_table($options['table']);
SqlWalker.php https://bitbucket.org/chives/doctrine2.git | PHP | 2,307 lines
341        // INNER JOIN parent class tables
342        foreach ($class->parentClasses as $parentClassName) {
343            $parentClass = $this->em->getClassMetadata($parentClassName);
351
352            foreach ($this->quoteStrategy->getIdentifierColumnNames($class, $this->platform) as $columnName) {
353                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
369        // LEFT JOIN child class tables
370        foreach ($class->subClasses as $subClassName) {
371            $subClass   = $this->em->getClassMetadata($subClassName);
377
378            foreach ($this->quoteStrategy->getIdentifierColumnNames($subClass, $this->platform) as $columnName) {
379                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
391
392        foreach ($this->selectedClasses as $selectedClass) {
393            $dqlAlias = $selectedClass['dqlAlias'];
SqlWalker.php https://bitbucket.org/ecelis/lml.git | PHP | 2,206 lines
306        // INNER JOIN parent class tables
307        foreach ($class->parentClasses as $parentClassName) {
308            $parentClass = $this->em->getClassMetadata($parentClassName);
316
317            foreach ($this->quoteStrategy->getIdentifierColumnNames($class, $this->platform) as $columnName) {
318                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
334        // LEFT JOIN child class tables
335        foreach ($class->subClasses as $subClassName) {
336            $subClass   = $this->em->getClassMetadata($subClassName);
342
343            foreach ($this->quoteStrategy->getIdentifierColumnNames($subClass, $this->platform) as $columnName) {
344                $sqlParts[] = $baseTableAlias . '.' . $columnName . ' = ' . $tableAlias . '.' . $columnName;
356
357        foreach ($this->selectedClasses as $selectedClass) {
358            $dqlAlias = $selectedClass['dqlAlias'];
ForEachImpl.java https://bitbucket.org/openesb/openesb-components.git | Java | 667 lines
60 */
61public class ForEachImpl extends BPELElementImpl implements ForEach {
62
233        } else if (c instanceof ForEach) {
234            addForEach((ForEach) c);
235        } else if (c instanceof Choose) {
460    public synchronized void removeForEach(int i) {
461        removeForEach(getForEach(i));
462    }
486     */
487    public synchronized boolean removeForEach(ForEach f) {
488        super.removeChild(f);
541    public int indexOfForEach(XMLNode forEach) {
542        return forEachs.indexOf(forEach);
543    }
ForEachUnitSerialImpl.java https://bitbucket.org/openesb/openesb-components.git | Java | 506 lines
161			//Check whether foreach was terminated (true could be returned when the
162			//foreach is completed or when the foreach was terminated, so we need to
163			//check again).
350	private boolean initialize(ICallFrame frame, RequiredObjects rObjs) {
351	    ForEach lForEach = (ForEach) mAct;
352
427	private void initCompletionCondition() {
428		ForEach lForEach = (ForEach) mAct;
429
440			RequiredObjects rObjs, ICallFrame frame) {
441		ForEach lForEach = (ForEach) mAct;
442		RVariable var = (RVariable) lForEach.getCounterVariable();
442		RVariable var = (RVariable) lForEach.getCounterVariable();
443		// ForEach counter variable belongs to the child scope of the ForEach construct.
444		// and hence is not delegated to the scopeUnit to create the variable.
Validator.java https://bitbucket.org/openesb/netbeans-soa.git | Java | 1,063 lines
115            @Override
116            public void visit(ForEach forEach) {
117//out();
162
163            private void checkReceive(ForEach forEach) {
164                if (forEach.getParallel() != TBoolean.YES) {
167                if (hasReceive(forEach)) {
168                    addError("FIX_Parallel_ForEach", forEach, forEach.getName()); // NOI18N
169                }
188
189            private void checkCounters(ForEach forEach) {
190                StartCounterValue startCounterValue = forEach.getStartCounterValue();
218
219            private void checkNegativeCounter(ForEach forEach) {
220                // start
fields-post.php https://bitbucket.org/JacobTyler/fame4good-wp.git | PHP | 1,502 lines
54    $wpcf_active = false;
55    foreach ($groups as $key => $group) {
56        if (!empty($group['fields'])) {
113        }
114        foreach ($group['args']['fields'] as $field_slug => $field) {
115            if (empty($field)) {
176    $all_fields = array();
177    foreach ($groups as $group) {
178        // Process fields
198    if (!empty($_POST['wpcf'])) {
199        foreach ($_POST['wpcf'] as $field_slug => $field_value) {
200            // Skip copied fields
215                delete_post_meta($post_ID, $meta_key);
216                foreach ($field_value as $temp_id => $repetitive_data) {
217                    // Skype specific
acf.php https://bitbucket.org/JacobTyler/fame4good-wp.git | PHP | 1,615 lines
157		
158		foreach( $scripts as $k => $v )
159		{
172		
173		foreach( $styles as $k => $v )
174		{
312		{
313			foreach($custom as $v)
314			{
486		{
487			foreach($result as $acf)
488			{
539		{
540			foreach( $rows as $row )
541			{
DboSource.php https://bitbucket.org/misdghealth/cakephp-training.git | PHP | 3,280 lines
572
573			foreach ($field as $f) {
574				$conditions[$args[2]->alias . '.' . $f] = $params[$c++];
713		if (isset($result[0]) && is_array($result[0])) {
714			foreach ($result[0] as $field => $value) {
715				if (strpos($field, $this->virtualFieldSeparator) === false) {
806		if (is_array($data)) {
807			foreach ($data as $i => $dataItem) {
808				$data[$i] = $this->name($dataItem);
906		} else {
907			foreach ($log['log'] as $k => $i) {
908				print (($k + 1) . ". {$i['query']}\n");
1060
1061		foreach ($_associations as $type) {
1062			foreach ($model->{$type} as $assoc => $assocData) {
Cpdf.php https://bitbucket.org/1blankz7/bibioteka.git | PHP | 4,612 lines
424		case	'add':
425			foreach($options as	$k=>$v) {
426				switch	($k) {
441			$res = "\n$id 0 obj\n<< ";
442			foreach($o['info'] as	$k=>$v) {
443				$res.= "\n/$k $v";
486
487			foreach($o['info'] as	$k=>$v) {
488				switch ($k) {
593				$res = "\n$id 0 obj\n<< /Type /Pages\n/Kids [";
594				foreach($o['info']['pages'] as	$v) {
595					$res.= "$v 0 R\n";
610						$res.= "\n/Font << ";
611						foreach($o['info']['fonts'] as	$finfo) {
612							$res.= "\n/F".$finfo['fontNum']." ".$finfo['objNum']." 0 R";
angular-1.1.1.js https://bitbucket.org/yamert/wada.git | JavaScript | 14,652 lines
74 * @ngdoc function
75 * @name angular.forEach
76 * @function
88     var log = [];
89     angular.forEach(values, function(value, key){
90       this.push(key + ': ' + value);
99 */
100function forEach(obj, iterator, context) {
101  var key;
108      }
109    } else if (obj.forEach && obj.forEach !== forEach) {
110      obj.forEach(iterator, context);
1264    'element': jqLite,
1265    'forEach': forEach,
1266    'injector': createInjector,
Excel2007.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 1,999 lines
249			if ($rels !== false) {
250				foreach ($rels->Relationship as $rel) {
251					switch ($rel["Type"]) {
286		$rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels")); //~ http://schemas.openxmlformats.org/package/2006/relationships");
287		foreach ($rels->Relationship as $rel) {
288			if ($rel["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument") {
293				$worksheets = array();
294				foreach ($relsWorkbook->Relationship as $ele) {
295					if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
302					$dir = dirname($rel["Target"]);
303					foreach ($xmlWorkbook->sheets->sheet as $eleSheet) {
304						$tmpInfo = array();
313						if ($xmlSheet && $xmlSheet->sheetData && $xmlSheet->sheetData->row) {
314							foreach ($xmlSheet->sheetData->row as $row) {
315								foreach ($row->c as $c) {
MathTrig.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 1,362 lines
350		// Loop through arguments
351		foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
352			if (!is_numeric($value)) {
375		} elseif ($mergedArrayValues > 1) {
376			foreach($mergedArray as $mergedKey => $mergedValue) {
377				foreach($allValuesFactors as $highestPowerTest) {
377				foreach($allValuesFactors as $highestPowerTest) {
378					foreach($highestPowerTest as $testKey => $testValue) {
379						if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
387			$returnValue = 1;
388			foreach($mergedArray as $key => $value) {
389				$returnValue *= pow($key,$value);
395			$value = $mergedArray[$key];
396			foreach($allValuesFactors as $testValue) {
397				foreach($testValue as $mergedKey => $mergedValue) {
order-detail.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 424 lines
66		{foreach from=$order_history item=state name="orderStates"}
67			<tr class="{if $smarty.foreach.orderStates.first}first_item{elseif $smarty.foreach.orderStates.last}last_item{/if} {if $smarty.foreach.orderStates.index % 2}alternate_item{else}item{/if}">
68				<td>{dateFormat date=$state.date_add full=1}</td>
91				{assign var=address_words value=" "|explode:$field_item}
92				<li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li>
93		{/if}
94
95	{/foreach}
96</ul>
104				{assign var=address_words value=" "|explode:$field_item} 
105				<li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li>
106		{/if}
371			{foreach from=$messages item=message name="messageList"}
372				<tr class="{if $smarty.foreach.messageList.first}first_item{elseif $smarty.foreach.messageList.last}last_item{/if} {if $smarty.foreach.messageList.index % 2}alternate_item{else}item{/if}">
373					<td>
authentication.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 583 lines
36{if isset($countries)}
37	{foreach from=$countries item='country'}
38		{if isset($country.states) && $country.contains_states}
39			countries[{$country.id_country|intval}] = new Array();
40			{foreach from=$country.states item='state' name='states'}
41				countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state|intval}', 'name' : '{$state.name|addslashes}'{rdelim});
41				countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state|intval}', 'name' : '{$state.name|addslashes}'{rdelim});
42			{/foreach}
43		{/if}
49		{/if}
50	{/foreach}
51{/if}
147		<ol>
148			{foreach from=$authentification_error item=v}
149				<li>{$v}</li>
order-detail.tpl https://bitbucket.org/marcenuc/prestashop.git | Unknown | 299 lines
69<ul data-role="listview" >
70	{foreach from=$order_history item=state name="orderStates"}
71	<li>
120				{assign var=address_words value=" "|explode:$field_item}
121				<p>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item}">{$invoiceAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}</span>{/foreach}</p>
122		{/if}
122		{/if}
123	{/foreach}
124	</li>
133				{assign var=address_words value=" "|explode:$field_item} 
134				<p>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item}">{$deliveryAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}</span>{/foreach}</p>
135		{/if}
246			{foreach from=$messages item=message name="messageList"}
247				<tr class="{if $smarty.foreach.messageList.first}first_item{elseif $smarty.foreach.messageList.last}last_item{/if} {if $smarty.foreach.messageList.index % 2}alternate_item{else}item{/if}">
248					<td>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21