PageRenderTime 380ms queryFilters 0ms Sphinxql 316ms app.CodeModel.GetByIds 11ms findMatchingLines 13ms GetByIds 24ms meta 0ms repositoryFilters 9ms languageFilters 19ms sourceFilters 6ms

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

Source

Language

Repository

ditto.class.inc.php https://github.com/dreeman/modx106.git | PHP | 1,179 lines
83		}
84		foreach ($fields as $field) {
85			if (is_array($field)) {
157
158		foreach ($orderBy['parsed'] as $item) {
159			$this->addFields($item[0],'backend');
162		
163		foreach ($orderBy['custom'] as $item) {
164			$this->addFields($item[0],'backend');
169			$inputs = explode(',',$orderBy['unparsed']);
170			foreach ($inputs as $input) {
171				$input = trim($input);
223		if ($filter && count($filters) > 0) {
224			foreach ($filters AS $filter) {
225				if (!empty($filter)) {
Helper.php https://github.com/KNXSebastian/taf.git | PHP | 1,474 lines
83
84            foreach ($attributes as $attributeTitle) {
85                $this->addParameter('attributeTitle', $attributeTitle);
118
119        foreach ($productData as $key => $value) {
120            if (preg_match('/^' . $tabName . '/', $key)) {
143                if (array_key_exists($arrayKey, $tabData) && is_array($tabData[$arrayKey])) {
144                    foreach ($tabData[$arrayKey] as $value) {
145                        $this->addTierPrice($value);
153                $websites = array_map('trim', $websites);
154                foreach ($websites as $value) {
155                    $this->selectWebsite($value);
160                $categories = array_map('trim', $categories);
161                foreach ($categories as $value) {
162                    $this->categoryHelper()->selectCategory($value);
function_delete.php https://github.com/jinbo51/DiscuzX.git | PHP | 1,025 lines
33	$numdeleted = count($arruids);
34	foreach(array('common_member_field_forum', 'common_member_field_home', 'common_member_count',
35		'common_member_profile', 'common_member_status',) as $table) {
38
39	foreach(array( 'common_member_log', 'common_member_verify', 'common_member_validate', 'common_member_magic') as $table) {
40		C::t($table)->delete($arruids, true);
49	$query = C::t('home_doing')->fetch_all_by_uid_doid($arruids);
50	foreach($query as $value) {
51		$doids[$value['doid']] = $value['doid'];
68
69	foreach(C::t('forum_collectionfollow')->fetch_all_by_uid($arruids) as $follow) {
70		C::t('forum_collection')->update_by_ctid($follow['ctid'], 0, -1);
72
73	foreach(C::t('forum_collectioncomment')->fetch_all_by_uid($arruids) as $comment) {
74		C::t('forum_collection')->update_by_ctid($comment['ctid'], 0, 0, -1);
cache_setting.php https://github.com/jinbo51/DiscuzX.git | PHP | 1,049 lines
31
32	foreach(C::t('common_setting')->fetch_all_not_key($skipkeys) as $setting) {
33		if($setting['skey'] == 'extcredits') {
34			if(is_array($setting['svalue'] = dunserialize($setting['svalue']))) {
35				foreach($setting['svalue'] as $key => $value) {
36					if($value['available']) {
63			if($setting['skey'] == 'search') {
64				foreach($setting['svalue'] as $key => $val) {
65					foreach($val as $k => $v) {
74				$profile_settings = C::t('common_member_profile_setting')->fetch_all_by_available(1);
75				foreach($setting['svalue'] as $key => $val) {
76					$temp = array();
76					$temp = array();
77					foreach($profile_settings as $pval) {
78						if(in_array($pval['fieldid'], $val['field'])) {
admincp_forums.php https://github.com/jinbo51/DiscuzX.git | PHP | 2,193 lines
47		$groups = $forums = $subs = $fids = $showed = array();
48		foreach($query as $forum) {
49			if($forum['type'] == 'group') {
58
59		foreach ($groups as $id => $gforum) {
60			$toggle = $forumcount > 50 && count($forums[$id]) > 2;
62			if(!empty($forums[$id])) {
63				foreach ($forums[$id] as $forum) {
64					$showed[] = showforum($forum);
66					if(!empty($subs[$forum['fid']])) {
67						foreach ($subs[$forum['fid']] as $sub) {
68							$showed[] = showforum($sub, 'sub');
78		if(count($fids) != count($showed)) {
79			foreach($fids as $fid) {
80				if(!in_array($fid, $showed)) {
pgfmanual-en-pgffor.tex https://github.com/joetait/texmf.git | Unknown | 390 lines
19  particularly well together with \pgfname\ and \tikzname. It defines
20  two new commands: |\foreach| and |\breakforeach|.
21\end{package}
130
131  |\foreach \x in {0,0.1,...,0.5} {\x, }| yields \foreach \x in {0,0.1,...,0.5} {\x, }
132
167	
168	|\foreach \x in {A_1,..._1,H_1} {$\x$, }| yields \foreach \x in {A_1,..._1,H_1} {$\x$, }
169	
295  The keys described below can be used in the \meta{options} argument
296  to the |\foreach| command. They all have the path |/pgf/foreach/|,
297  however, the path is set automatically when \meta{options} are
301  This key provides an alternative way to specify variables:
302  |\foreach [var=\x,var=\y]| is the same as |\foreach \x/\y|.
303  If used, this key should be used before the other keys.
Makefile https://github.com/abrauchli/shotwell.git | Makefile | 739 lines
312# Process the units
313UNIT_MKS := $(foreach unit,$(UNITS),src/$(unit)/mk/$(notdir $(unit)).mk)
314include $(UNIT_MKS)
316UNITIZE_DIR := src/.unitize
317UNITIZE_ENTRIES := $(foreach unit,$(APP_UNITS),$(UNITIZE_DIR)/_$(unit)_unitize_entry.vala)
318UNITIZE_INITS := $(foreach nm,$(UNIT_NAMESPACES),$(UNITIZE_DIR)/_$(nm)Internals.vala)
322INSTALL_PLUGINS = $(filter-out common,$(PLUGINS))
323PLUGINS_SO := $(foreach plugin,$(INSTALL_PLUGINS),$(PLUGINS_DIR)/$(plugin)/$(plugin).so)
324EXTRA_PLUGINS_SO := $(foreach plugin,$(EXTRA_PLUGINS),$(PLUGINS_DIR)/$(plugin)/$(plugin).so)
328THUMBNAILER_BIN := $(THUMBNAILER_DIR)/$(PROGRAM_THUMBNAILER)
329EXPANDED_THUMBNAILER_SRC_FILES := $(foreach file, $(THUMBNAILER_SRC_FILES), $(THUMBNAILER_DIR)/$(file))
330
333
334EXPANDED_CORE_PO_FILES := $(foreach po,$(CORE_SUPPORTED_LANGUAGES),po/$(po).po)
335
BasicDecimal.php https://github.com/codeactual/hashmark.git | PHP | 1,161 lines
460
461        foreach (array('', array(), 1) as $sql) {
462            try {
490
491        foreach ($sampleProvider['samples'] as $sample) {
492            list($end, $value, , $isInRange) = $sample;
504
505        foreach ($actValues as $actual) {
506            $this->assertDecimalEquals($expValues[$actual['x']], $actual['y']);
526        
527        foreach ($intervalProviders as $sampleProvider) {
528            $this->assertFalse(empty($sampleProvider));
531
532            foreach ($sampleSets as $samples) {
533                $scalarFields = array('name' => self::randomString(), 'type' => 'decimal');
prolog.pm https://github.com/gitpan/go-perl.git | Perl | 667 lines
26    }
27    foreach ($hdr->get_subsetdef) {
28        my $id = $_->sget_id;
32    }
33    foreach ($hdr->get_synonymtypedef) {
34        my $id = $_->sget_id;
38    }
39    foreach ($hdr->get_import) {
40        $self->factq('ontol_db:import_directive'=>[$_]);
41    }
42    foreach ($hdr->subnodes) {
43        my $n = $_->name;
70    my @is_as = $typedef->get_is_a;
71    foreach my $is_a (@is_as) {
72        if (ref($is_a)) {
APIBuilder.pm https://github.com/gitpan/perfSONAR_PS-Services-PingER.git | Perl | 1,118 lines
70     my ($fharr, $msg) = @_;
71     foreach my $fh (@{$fharr}) {
72        print $fh $msg;
119       }
120       foreach my $el (@{$element->{elements}}) {
121           if(ref($el) eq 'ARRAY') {
128           
129             foreach my $sub_el (@{$el->[1]}) {
130                 if(ref($sub_el) eq 'HASH' && $sub_el->{attrs}) {  
179   if($parent &&  ref($parent) eq 'HASH' && $parent->{sql}) {
180       foreach my $table (keys %{$parent->{sql}}) {
181           foreach my $field (keys %{$parent->{sql}->{$table}}) {
183           $value = [$value]  if ref($value) ne 'ARRAY';
184           foreach my   $possible (@{$value}) {
185              $parent_sql{$table}{$field}{$possible}++;
smtm https://github.com/gitpan/smtm.git | Perl | 1,811 lines
170		       );
171  foreach (qw/s n l a  r V p v h R d e P D m f/) {
172    $CasX->checkbutton(-label => $colbutton_text{$ARG},
190			 'f' => '~FilePosition');
191  foreach (qw/n r a p v V h R d e P D m f/) {
192    $CasS->radiobutton(-label => $sortbutton_text{$ARG},
221			  'm' => '~Max years');
222  foreach (qw/t b w 3 6 1 2 5 m/) {
223    $CasC->radiobutton(-label => $radiobutton_text{$ARG},
229			'l'  => '~Large');
230  foreach (qw/s m l/) {
231    $CasPS->radiobutton(-label => $radiobutton_ps{$ARG},
237 			'c'  => '~Candle chart');
238  foreach (qw/l b c/) {
239    $CasPT->radiobutton(-label => $radiobutton_pt{$ARG},
Passport.pm https://github.com/gitpan/SNMP-Info.git | Perl | 1,435 lines
119    my %if_index;
120    foreach my $iid ( keys %$i_index ) {
121        my $index = $i_index->{$iid};
137
138        foreach my $vid ( keys %$vlan_index ) {
139            my $v_index = $vlan_index->{$vid};
153        # Get CPU Ethernet Interfaces
154        foreach my $cid ( keys %$cpu_index ) {
155            my $c_index = $cpu_index->{$cid};
196    my %if;
197    foreach my $iid ( keys %$i_index ) {
198        my $index = $i_index->{$iid};
248    my %if_mac;
249    foreach my $iid ( keys %$i_mac ) {
250        my $mac = $i_mac->{$iid};
foreachtest.tmpl https://github.com/gitpan/Text-Templar.git | Unknown | 203 lines
3----------------------------------------------------------------------
4<% FOREACH testList %>
5	>>> <% METHOD testList %>
5	>>> <% METHOD testList %>
6<% END FOREACH %>
7----------------------------------------------------------------------
11----------------------------------------------------------------------
12<% FOREACH value IN testSugarList %>
13<% IF { $ITERATION % 2 } %>
17<% END IF %>
18<% END FOREACH %>
19----------------------------------------------------------------------
23----------------------------------------------------------------------
24<% FOREACH value IN DEREF derefList %>
25	>>> <% METHOD value %>
ColumnFamilyTest.php https://github.com/thobbs/phpcassa.git | PHP | 663 lines
26            $exists = False;
27            foreach ($ksdefs as $ksdef)
28                $exists = $exists || $ksdef->name == self::$KS;
61        if ($this->cf) {
62            foreach(self::$KEYS as $key)
63                $this->cf->remove($key);
91        $row = $this->cf->get(self::$KEYS[0]);
92        foreach($row as $column){
93            $this->assertEquals($column->ttl,7);
121            $keys[] = "key" + (string)$i;
122        foreach ($keys as $key) {
123            $this->cf->insert($key, $columns1);
129        $i = 0;
130        foreach ($rows as $key => $cols) {
131            $this->assertEquals($key, $keys[$i]);
repeat-expression.php https://bitbucket.org/andrewbevitt/every-calendar-1.git | PHP | 1,583 lines
313		if ( is_array( $this->when_sets['DoM']['repeat'] ) ) {
314			foreach ( $this->when_sets['DoM']['repeat'] as $v ) {
315				if ( ! is_numeric( $v ) || $v < -31 || $v > 31 )
367		if ( is_array( $this->when_sets['MoY']['repeat'] ) ) {
368			foreach ( $this->when_sets['MoY']['repeat'] as $v )
369				if ( ! is_numeric( $v ) || $v < 1 || $v > 12 )
374		if ( is_array( $this->when_sets['MoY']['period'] ) ) {
375			foreach ( $this->when_sets['MoY']['period'] as $v )
376				if ( ! is_numeric( $v ) || $v < 1 || $v > 12 )
432		if ( is_array( $this->when_sets['DoW']['repeat'] ) ) {
433			foreach( $this->when_sets['DoW']['repeat'] as $v )
434				if ( ! is_numeric( $v ) || abs( $v ) > 7 || abs( $v ) < 1 )
439		if ( is_array( $this->when_sets['DoW']['filter'] ) ) {
440			foreach( $this->when_sets['DoW']['filter'] as $v )
441				if ( ! is_numeric( $v ) || $v == 0 || abs( $v ) > 5 ) // can't be 0 and never more than 5 of a day in a month
AbstractModelCollection.php https://bitbucket.org/sdvpartnership/questpc-framework.git | PHP | 925 lines
12 *
13 * foreach() iteration of models in collection.
14 *
165	protected function applyModelMixins( AbstractModel $model ) {
166		foreach ( array_keys( $this->modelMixinClassNames ) as $mixinClassName ) {
167			$model->addMixin( new $mixinClassName() );
183		$model = $this->applyModelMixins( $this->createSeparateModel() );
184		foreach ( $this->modelInitHook as $method => $hook ) {
185			$this->setFixedHook( $method, $hook );
234	public function loadPkTableRows( array $rows ) {
235		foreach ( $rows as $row ) {
236			$model = $this->newSeparateModel();
246	public function setPkTableRows( array $rows ) {
247		foreach ( $rows as $row ) {
248			$model = $this->newSeparateModel();
DboSource.php https://bitbucket.org/tlorens/cakefoundation.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) {
cleaner.pl https://bitbucket.org/vps/videoscripts.git | Perl | 1,386 lines
150    log_data("Process repository directories");
151    foreach my $directory (@directories) {
152        # Build repository directory path
160        # Process files
161        foreach my $file (@files_array) {
162        	log_data("Processing file: " . $file);
184        # Process day directories
185        foreach my $day_directory (@day_directories_array) {
186        	log_data("Processing day directory: " . $day_directory);
211        # Process month directories
212        foreach my $month_directory (@month_directories_array) {
213        	log_data("Processing month directory: " . $month_directory);
235        # Process year directories
236        foreach my $year_directory (@year_directories_array) {
237        	log_data("Processing year directory: " . $year_directory);
CldrCommand.php https://bitbucket.org/penkoh/yii.git | PHP | 509 lines
126		$sourceFiles=array();
127		foreach($files as $file)
128			$sourceFiles[basename($file)]=$file;
138
139			foreach($sourceFiles as $sourceFile)
140				$this->process($sourceFile);
227	{
228		foreach($xml->xpath('/ldml/numbers/symbols/*') as $symbol)
229		{
254		$currencies=$xml->xpath('/ldml/numbers/currencies/currency');
255		foreach($currencies as $currency)
256		{
264		$languages=$xml->xpath('/ldml/localeDisplayNames/languages/language');
265		foreach($languages as $language)
266		{
Application.php https://bitbucket.org/bekromer/lange-naechte.git | PHP | 1,116 lines
76
77        foreach ($this->getDefaultCommands() as $command) {
78            $this->add($command);
246
247        foreach ($this->getDefinition()->getOptions() as $option) {
248            $messages[] = sprintf('  %-29s %s %s',
368    {
369        foreach ($commands as $command) {
370            $this->add($command);
396
397        foreach ($command->getAliases() as $alias) {
398            $this->commands[$alias] = $command;
458        $namespaces = array();
459        foreach ($this->commands as $command) {
460            $namespaces[] = $this->extractNamespace($command->getName());
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21