PageRenderTime 349ms queryFilters 0ms Sphinxql 285ms app.CodeModel.GetByIds 16ms findMatchingLines 10ms GetByIds 26ms meta 0ms repositoryFilters 3ms languageFilters 1ms sourceFilters 3ms

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

Source

Language

Repository

conditional_fields.module https://bitbucket.org/antisocnet/drupal.git | Unknown | 1,994 lines
141  // Create tabs for all possible bundles.
142  foreach (entity_get_info() as $entity_type => $entity_info) {
143    if ($entity_info['fieldable']) {
151
152      foreach ($entity_info['bundles'] as $bundle_name => $bundle_info) {
153        if (module_exists('field_ui') && isset($bundle_info['admin'])) {
187function conditional_fields_forms() {
188  foreach (entity_get_info() as $entity_type => $entity_info) {
189    if ($entity_info['fieldable']) {
189    if ($entity_info['fieldable']) {
190      foreach ($entity_info['bundles'] as $bundle_name => $bundle_info) {
191        $forms['conditional_fields_dependency_add_form_' . $entity_type . '_' . $bundle_name] = array(
219function conditional_fields_element_info_alter(&$types) {
220  foreach ($types as $type => $info) {
221    $types[$type]['#after_build'][] = 'conditional_fields_element_after_build';
field.attach.inc https://bitbucket.org/antisocnet/drupal.git | Pascal | 1,411 lines
195  $return = array();
196  foreach ($instances as $instance) {
197    // field_info_field() is not available for deleted fields, so use
206
207      foreach ($languages as $langcode) {
208        $items = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array();
300  // $entity->$field_name property.
301  foreach ($entities as $entity) {
302    // Determine the list of instances to iterate on.
305
306    foreach ($instances as $instance) {
307      $field_id = $instance['field_id'];
322        $languages = _field_language_suggestion($available_languages, $language, $field_name);
323        foreach ($languages as $langcode) {
324          $grouped_items[$field_id][$langcode][$id] = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array();
field_sql_storage.module https://bitbucket.org/antisocnet/drupal.git | Unknown | 759 lines
173  // Add field columns.
174  foreach ($field['columns'] as $column_name => $attributes) {
175    $real_name = _field_sql_storage_columnname($field['field_name'], $column_name);
179  // Add indexes.
180  foreach ($field['indexes'] as $index_name => $columns) {
181    $real_name = _field_sql_storage_indexname($field['field_name'], $index_name);
181    $real_name = _field_sql_storage_indexname($field['field_name'], $index_name);
182    foreach ($columns as $column_name) {
183      $current['indexes'][$real_name][] = _field_sql_storage_columnname($field['field_name'], $column_name);
187  // Add foreign keys.
188  foreach ($field['foreign keys'] as $specifier => $specification) {
189    $real_name = _field_sql_storage_indexname($field['field_name'], $specifier);
190    $current['foreign keys'][$real_name]['table'] = $specification['table'];
191    foreach ($specification['columns'] as $column => $referenced) {
192      $sql_storage_column = _field_sql_storage_columnname($field['field_name'], $column_name);
theme.inc https://bitbucket.org/antisocnet/drupal.git | Pascal | 2,906 lines
153  // Grab stylesheets from base theme
154  foreach ($base_theme as $base) {
155    if (!empty($base->stylesheets)) {
155    if (!empty($base->stylesheets)) {
156      foreach ($base->stylesheets as $media => $stylesheets) {
157        foreach ($stylesheets as $name => $stylesheet) {
165  if (!empty($theme->stylesheets)) {
166    foreach ($theme->stylesheets as $media => $stylesheets) {
167      foreach ($stylesheets as $name => $stylesheet) {
173  // And now add the stylesheets properly
174  foreach ($final_stylesheets as $media => $stylesheets) {
175    foreach ($stylesheets as $stylesheet) {
183  // Grab scripts from base theme
184  foreach ($base_theme as $base) {
185    if (!empty($base->scripts)) {
module.inc https://bitbucket.org/antisocnet/drupal.git | Pascal | 1,066 lines
22  if (isset($bootstrap)) {
23    foreach (module_list(TRUE, $bootstrap) as $module) {
24      drupal_load('module', $module);
72    if ($fixed_list) {
73      foreach ($fixed_list as $name => $module) {
74        drupal_get_filename('module', $name, $module['filename']);
141    // The rest is stored separately to keep the bootstrap module cache small.
142    foreach ($bootstrap_list as $module) {
143      drupal_get_filename('module', $module->name, $module->filename);
165      $result = db_query("SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC");
166      foreach ($result as $record) {
167        $record->info = unserialize($record->info);
180      }
181      foreach ($lists['theme'] as $key => $theme) {
182        if (!empty($theme->info['base theme'])) {
PHP5BasicPeerBuilder.php https://bitbucket.org/pandaos/kaltura.git | PHP | 1,473 lines
196	{
197		foreach ($this->getTable()->getColumns() as $col) {
198
202";
203		} // foreach
204	}
221		BasePeer::TYPE_PHPNAME => array (";
222		foreach ($tableColumns as $col) {
223			$script .= "'".$col->getPhpName()."', ";
226		BasePeer::TYPE_COLNAME => array (";
227		foreach ($tableColumns as $col) {
228			$script .= $this->getColumnConstant($col).", ";
231		BasePeer::TYPE_FIELDNAME => array (";
232		foreach ($tableColumns as $col) {
233			$script .= "'".$col->getName()."', ";
sfPropelDatabaseSchema.class.php https://bitbucket.org/pandaos/kaltura.git | PHP | 720 lines
56    // tables
57    foreach ($this->getChildren($this->database) as $tb_name => $table)
58    {
61      // columns
62      foreach ($this->getChildren($table) as $col_name => $column)
63      {
69      {
70        foreach ($table['_indexes'] as $index_name => $index)
71        {
72          $xml .= "    <index name=\"$index_name\">\n";
73          foreach ($index as $index_column)
74          {
83      {
84        foreach ($table['_uniques'] as $unique_name => $index)
85        {
CSharpClientGenerator.php https://bitbucket.org/pandaos/kaltura.git | PHP | 906 lines
27		$enumNodes = $xpath->query("/xml/enums/enum");
28		foreach($enumNodes as $enumNode)
29		{
33		$classNodes = $xpath->query("/xml/classes/class");
34		foreach($classNodes as $classNode)
35		{
43		$this->startNewTextBlock();
44		foreach($serviceNodes as $serviceNode)
45		{
65			
66			foreach($enumNode->childNodes as $constNode)
67			{
84			
85			foreach($enumNode->childNodes as $constNode)
86			{
HostnameTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 465 lines
80        );
81        foreach ($valuesExpected as $element) {
82            $validator = new Zend_Validate_Hostname($element[0]);
82            $validator = new Zend_Validate_Hostname($element[0]);
83            foreach ($element[2] as $input) {
84                $this->assertEquals($element[1], $validator->isValid($input), implode("\n", $validator->getMessages()) . $input);
96            );
97        foreach ($valuesExpected as $element) {
98            $validator = new Zend_Validate_Hostname($element[0]);
98            $validator = new Zend_Validate_Hostname($element[0]);
99            foreach ($element[2] as $input) {
100                $this->assertEquals($element[1], $validator->isValid($input), implode("\n", $validator->getMessages()) . $input);
114            );
115        foreach ($valuesExpected as $element) {
116            $validator = new Zend_Validate_Hostname($element[0]);
ProviderTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 1,645 lines
484            $res = array();
485            foreach (explode("\n", $ret) as $line) {
486                if (!empty($line)) {
496            $res = array();
497            foreach (explode("\n", $ret) as $line) {
498                if (!empty($line)) {
510            $res = array();
511            foreach (explode("\n", $ret) as $line) {
512                if (!empty($line)) {
522            $res = array();
523            foreach (explode("\n", $ret) as $line) {
524                if (!empty($line)) {
543            $res = array();
544            foreach (explode("\n", $ret) as $line) {
545                if (!empty($line)) {
controller.php https://bitbucket.org/pooshonk/esw.git | PHP | 1,499 lines
86				$sql = "INSERT INTO permission_group_associations (`permission`, `group` ) VALUES ";
87				foreach( $_POST['permission'] as $pid )
88				{
120			}
121			foreach( $inner as $code => $data )
122			{
145				$sql = "INSERT INTO permission_group_associations (`permission`, `group` ) VALUES ";
146				foreach( $_POST['permission'] as $pid )
147				{
184			}
185			foreach( $inner as $code => $data )
186			{
258				$sql = "INSERT INTO group_memberships (`user`, `group` ) VALUES ";
259				foreach( $_POST['group'] as $gid )
260				{
sessioncontroller.php https://bitbucket.org/pooshonk/esw.git | PHP | 1,370 lines
158				
159				foreach( $attendees as $attendee => $details )
160				{
160				{
161					foreach( $details as $record )
162					{
173				
174				foreach( $attendees as $attendee => $details )
175				{
175				{
176					foreach( $slots as $session => $details )
177					{
198				}
199				foreach( $attendees as $attendee => $data )
200				{
controller.php https://bitbucket.org/pooshonk/esw.git | PHP | 1,351 lines
103			$errors = array();
104			foreach( array_keys( $required ) as $r )
105			{
240					{
241						foreach( $_POST['interests'] as $interest => $details )
242						{
282					{
283						foreach( $_POST['interests'] as $interest => $details )
284						{
326				{
327					foreach( $_POST['areas'] as $area => $details )
328					{
424					//echo '<pre>' . print_r( $_POST['kind'], true ) . '</pre>'; exit();
425					foreach( $_POST['kind'] as $k => $v )
426					{
language-function-foreach.xml https://bitbucket.org/hallgrennetworks/smarty.git | XML | 204 lines
4		<sect1 id="language.function.foreach">
5			<title>foreach,foreachelse</title>
6            <informaltable frame="all">
106
107{foreach name=outer item=contact from=$contacts}
108  {foreach key=key item=item from=$contact}
128		Loop foreach também tem as suas próprias variáveis para manipilar as propriedades
129		foreach. Estas são indicadas assim: {$smarty.foreach.foreachname.varname} com
130		foreachname sendo o nome especificado no atributo
166        	<emphasis>show</emphasis> é um valor booleano, true ou false. Se
167        	false, o foreach não será mostrado. Se tiver um foreachelse
168        	presente, este será alternativamente mostrado.
175			<emphasis>total</emphasis> é usado para mostrar o número de interações do
176			foreach. Isto pode ser usado dentro ou depois do foreach.
177			</para>
language-function-foreach.xml https://bitbucket.org/hallgrennetworks/smarty.git | XML | 192 lines
3		<sect1 id="language.function.foreach">
4			<title>foreach,foreachelse</title>
5            <informaltable frame="all">
55			I cicli <emphasis>foreach</emphasis> sono un'alternativa ai cicli
56			<emphasis>section</emphasis>. <emphasis>foreach</emphasis> si usa
57			per ciclare su un singolo array associativo. La sintassi di
99
100{foreach name=outer item=contact from=$contacts}
101  {foreach key=key item=item from=$contact}
117		I cicli foreach hanno anche le proprie variabili che gestiscono le proprietà
118		del foreach. Queste vengono indicate così: {$smarty.foreach.foreachname.varname},
119		dove foreachname è il nome indicato come attributo <emphasis>name</emphasis>
162			<emphasis>total</emphasis> si usa per visualizzare il numero di iterazioni che il
163			ciclo foreach effettuerà. Può essere usato all'interno o dopo il foreach.
164			</para>
language-function-foreach.xml https://bitbucket.org/hallgrennetworks/smarty.git | XML | 248 lines
3		<sect1 id="language.function.foreach">
4   <title>{foreach},{foreachelse}</title>
5            <informaltable frame="all">
48                        <entry><emphasis>n/a</emphasis></entry>
49						<entry>El nombre del ciclo foreach para acessar a las propiedades del foreach</entry>
50                    </row>
56    <link linkend="language.function.section"><emphasis>{section}</emphasis></link>. 
57    <emphasis>foreach</emphasis> es usado para pegar cada elemento de una  
58    <emphasis role="bold">matriz asociativa simple</emphasis>.
58    <emphasis role="bold">matriz asociativa simple</emphasis>.
59    La sintaxis para <emphasis>foreach</emphasis> es mucho mas simple que 
60    <emphasis>section</emphasis>, pero tiene una desventaja de que solo puede ser 
171   Estas son indicadas así: 
172   <link linkend="language.variables.smarty.loops">{$smarty.foreach.foreachname.varname}</link> 
173   con foreachname siendo el nombre especificado del atributo
language-function-foreach.xml https://bitbucket.org/hallgrennetworks/smarty.git | XML | 236 lines
4<sect1 id="language.function.foreach">
5 <title>{foreach}, {foreachelse}</title>
6 <para>
12   <emphasis>foreach</emphasis>-Schleifen ist viel einfacher als die
13   von <emphasis>section</emphasis>. <emphasis>{foreach}</emphasis>
14   Tags müssen mit <emphasis>{/foreach}</emphasis> tags kombiniert
69      <entry><emphasis>n/a</emphasis></entry>
70      <entry>Name der 'foreach'-Schleife, für die Abfrage der 'foreach'-Eigenschaften.</entry>
71     </row>
169 <para>
170  Foreach-Loops haben auch eigene Variablen welche die Foreach
171  Eigenschaften enthalten. Diese werden wie folgt ausgewiesen:
171  Eigenschaften enthalten. Diese werden wie folgt ausgewiesen:
172  {$smarty.foreach.foreachname.varname}. foreachname ist der Name der
173  als <emphasis>name</emphasis> Attribut von Foreach übergeben wurden.
upgrade.php https://bitbucket.org/abnopanda/wordpress.git | PHP | 2,000 lines
423	if ($posts) {
424		foreach($posts as $post) {
425			if ('' == $post->post_name) {
432	$categories = $wpdb->get_results("SELECT cat_ID, cat_name, category_nicename FROM $wpdb->categories");
433	foreach ($categories as $category) {
434		if ('' == $category->category_nicename) {
445	if ($done_ids) :
446		foreach ($done_ids as $done_id) :
447			$done_posts[] = $done_id->post_id;
447			$done_posts[] = $done_id->post_id;
448		endforeach;
449		$catwhere = ' AND ID NOT IN (' . implode(',', $done_posts) . ')';
455	if ($allposts) :
456		foreach ($allposts as $post) {
457			// Check to see if it's already been imported
media.php https://bitbucket.org/abnopanda/wordpress.git | PHP | 2,345 lines
77
78		foreach ( $tabs as $callback => $text ) {
79			$class = '';
435
436	if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
437		$post = $_post = get_post($attachment_id, ARRAY_A);
475
476		foreach ( get_attachment_taxonomies($post) as $t ) {
477			if ( isset($attachment[$t]) )
700	$out = array();
701	foreach ( $alignments as $name => $label ) {
702		$name = esc_attr($name);
726
727		foreach ( $size_names as $size => $label ) {
728			$downsize = image_downsize($post->ID, $size);
theme.php https://bitbucket.org/helmespc/zina2.git | PHP | 2,627 lines
111				$options = array();
112				foreach ($zina['dir_edit_opts'] as $opt => $opts) {
113					$options[] = zl($lang[$opt],$opts['path'], $opts['query']);
197			$options = array();
198			foreach ($zina['dir_edit_opts'] as $opt => $opts) {
199				$options[] = zl($lang[$opt],$opts['path'], $opts['query']);
234				$output = '';
235				foreach($dirs as $letter => $items) {
236					if (strlen($letter) > 3) {
264			$first = true;
265			foreach($dirs as $letter => $dir) {
266				$count = count($dir) + $letter_height;
285
286				foreach($dir as $key => $opts) {
287					$title = ztheme('truncate', $opts['title'], $truncate);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21