100+ results for 'database file:content'

Not the results you expected?

Content_Model_Template_ServiceTest.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 357 lines

218 //

219 // $this->setExpectedException('NotFoundException');

220 // $result = $this->service->getObjectByUrl("testnotindatabase");

221 //

222 // }

Content_Library_Video.php (https://github.com/gogbuehi/BMCD.com.git) PHP · 152 lines

1 <?php

2 require_once 'models/database_object.php';

3 require_once 'models/Content_Library_Thumbnail.php';

4 require_once 'includes/amfphp/services/vo/Video.php';

122 $this->loadObjectByField($this->getTable(), 'id', $transientId, $this);

123 if (!$this->isPersistent){

124 $msg = 'AMFPHP is trying to save data for an object that is not in the database:'.$this->__toString();

125 $this->tLog->error($msg);

126 throw new Exception($msg);

ContentProviderNative.cs (https://bitbucket.org/festevezga/xobotos.git) C# · 183 lines

66 arg1, string arg2, android.os.Bundle arg3);

67

68 public abstract android.database.Cursor query(System.Uri arg1, string[] arg2, string

69 arg3, string[] arg4, string arg5);

70

91 [Sharpen.Stub]

92 [Sharpen.ImplementsInterface(@"android.content.IContentProvider")]

93 public android.database.Cursor query(System.Uri url, string[] projection, string

94 selection, string[] selectionArgs, string sortOrder)

95 {

ContentProviderAccessor.java (https://bitbucket.org/kavi707/fkf_resturent_app.git) Java · 333 lines

1 package com.fkf.resturent.database.dbprovider;

2

3 import android.app.Activity;

4 import android.content.ContentValues;

5 import android.content.Context;

6 import android.database.Cursor;

7 import android.net.Uri;

8 import android.util.Log;

9 import com.fkf.resturent.database.LocalDatabaseSQLiteOpenHelper;

10 import com.fkf.resturent.database.PopularOrLatestRecipe;

11 import com.fkf.resturent.database.Recipe;

12

13 import java.util.HashMap;

contentparser.py (https://gitlab.com/sunkistm/gitlab-web2py) Python · 132 lines

56 except:

57 path = 'contenttype.py'

58 vregex = re.compile('database version (?P<version>.+?)\.?\n')

59 sys.stdout.write('Checking contenttype.py database version:')

70 sys.stdout.write('\t[ERROR] %s\n' % e)

71 exit()

72 sys.stdout.write('Checking freedesktop.org database version:')

73 sys.stdout.flush()

74 try:

87 exit()

88 if cversion == nversion:

89 sys.stdout.write('\nContenttype.py database is up to date\n')

90 exit()

91 try:

92 raw_input('\nContenttype.py database updates are available from:\n%s (approx. 0.5MB)\nPress enter to continue or CTRL-C to quit now\nWARNING: this will replace contenttype.py file content IN PLACE' % url)

93 except:

94 exit()

Content.php (https://github.com/lillem4n/kohana-module-pajas.git) PHP · 343 lines

5

6 /**

7 * The database driver

8 *

9 * @var obj

44 public function __construct($id = FALSE)

45 {

46 parent::__construct(); // Connect to the database

47

48 if ($id)

305

306 /**

307 * Set the database driver

308 *

309 * @return boolean

contenthistory.php (https://github.com/elinw/joomla-cms.git) PHP · 183 lines

21 /**

22 * Array of object fields to unset from the data object before calculating SHA1 hash. This allows us to detect a meaningful change

23 * in the database row using the hash.

24 *

25 * @var array

31 * Constructor

32 *

33 * @param JDatabaseDriver $db A database connector object

34 *

35 * @since 3.1

content.php (https://github.com/raeldc/nooku-server.git) PHP · 191 lines

88

89 /**

90 * @param database A database connector object

91 */

92 function __construct( &$db ) {

ContentService.cs (https://bitbucket.org/festevezga/xobotos.git) C# · 356 lines

50 [Sharpen.ImplementsInterface(@"android.content.IContentService")]

51 public override void registerContentObserver(System.Uri uri, bool notifyForDescendents

52 , android.database.IContentObserver observer)

53 {

54 throw new System.NotImplementedException();

57 [Sharpen.Stub]

58 [Sharpen.ImplementsInterface(@"android.content.IContentService")]

59 public override void unregisterContentObserver(android.database.IContentObserver

60 observer)

61 {

65 [Sharpen.Stub]

66 [Sharpen.ImplementsInterface(@"android.content.IContentService")]

67 public override void notifyChange(System.Uri uri, android.database.IContentObserver

68 observer, bool observerWantsSelfNotifications, bool syncToNetwork)

69 {

ContentObserverTest.java (https://gitlab.com/chprasanna93/platform_cts) Java · 215 lines

15 */

16

17 package android.database.cts;

18

19

20 import android.database.ContentObserver;

21 import android.net.Uri;

22 import android.os.Handler;

ContentObserver.java (https://gitlab.com/AvayKumar/android_frameworks_base) Java · 239 lines

15 */

16

17 package android.database;

18

19 import android.net.Uri;

content_table_list.php (https://github.com/Int007/wowarmory.git) PHP · 80 lines

2 <div class="grid_16" id="content">

3 <div class="grid_9">

4 <h1 class="content_edit">Database</h1>

5 <?php

6 echo sprintf('<a href="?action=database&subaction=open&type=%s&name=%s&realm=%d">Go Back</a>', $_GET['type'], $_GET['name'], $_GET['realm']);

18 <?php

19 $page_count = round(Admin::GetDB()->selectCell("SELECT COUNT(*) FROM `%s`", $_GET['table']) / 20)+1;

20 $str = sprintf('action=database&subaction=open&type=%s&name=%s&realm=%d&table=%s', $_GET['type'], $_GET['name'], $_GET['realm'], $_GET['table']);

21 echo sprintf('%s%s%s%s',

22 Template::GetPageData('page') == 1 ? '<span class="active">First page</span>' : sprintf('<span class="active"><a href="?%s&page=1">First page</a></span>', $str),

ContentEngine.cs (https://github.com/lundbeck/n2cms.git) C# · 238 lines

93 }

94

95 /// <summary>Gets N2 persistence manager used for database persistence of content.</summary>

96 public IPersister Persister

97 {

content-update.sql (https://github.com/iuri/PWTI.git) SQL · 211 lines

179

180 dbms_output.put_line('Creating CR_SCHEDULED_RELEASE_JOB table ' ||

181 'for tracking database job for scheduled publishing...');

182

183 execute immediate '

ContentHasContent.php (https://github.com/jiiarra/site.git) PHP · 246 lines

1 <?php

2 /**

3 * ContentHasContent -> ContentHasContent database model for content has content link table.

4 *

5 * Copyright (c) <2009>, Markus Riihel�

ContentAwareGenerator.php (https://gitlab.com/reasonat/test8) PHP · 320 lines

64 * RouteReferrersReadInterface.

65 *

66 * @throws RouteNotFoundException If there is no such route in the database

67 */

68 public function generate($name, $parameters = array(), $absolute = false)

ContentResolver.java (https://github.com/JTroniks/CyanogenMod-7.git) Java · 62 lines

4 public ContentResolver(android.content.Context context) { throw new RuntimeException("Stub!"); }

5 public final java.lang.String getType(android.net.Uri url) { throw new RuntimeException("Stub!"); }

6 public final android.database.Cursor query(android.net.Uri uri, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder) { throw new RuntimeException("Stub!"); }

7 public final java.io.InputStream openInputStream(android.net.Uri uri) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }

8 public final java.io.OutputStream openOutputStream(android.net.Uri uri) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }

17 public final android.content.ContentProviderClient acquireContentProviderClient(android.net.Uri uri) { throw new RuntimeException("Stub!"); }

18 public final android.content.ContentProviderClient acquireContentProviderClient(java.lang.String name) { throw new RuntimeException("Stub!"); }

19 public final void registerContentObserver(android.net.Uri uri, boolean notifyForDescendents, android.database.ContentObserver observer) { throw new RuntimeException("Stub!"); }

20 public final void unregisterContentObserver(android.database.ContentObserver observer) { throw new RuntimeException("Stub!"); }

21 public void notifyChange(android.net.Uri uri, android.database.ContentObserver observer) { throw new RuntimeException("Stub!"); }

22 public void notifyChange(android.net.Uri uri, android.database.ContentObserver observer, boolean syncToNetwork) { throw new RuntimeException("Stub!"); }

Content.java (https://bitbucket.org/novelli/josser.git) Java · 365 lines

8 *

9 * Description: JOSSER - A Java Tool capable to parse DMOZ RDF dumps and export them to

10 * any JDBC compliant relational database

11 *

12 * Content.java

ContentMapBuilder.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 84 lines

6

7 /**

8 * This class adds structure of 'CONTENT' table to 'workflow' DatabaseMap object.

9 *

10 *

26

27 /**

28 * The database map.

29 */

30 private $dbMap;

31

32 /**

33 * Tells us if this DatabaseMapBuilder is built so that we

34 * don't have to re-build it every time.

35 *

content.asp (https://bitbucket.org/jlundstocholm/usedbooks.git) ASP · 78 lines

56 <div class="content-indent">

57 Der kan vre flere rsager til, at din sgning ikke gav noget resultat.

58 Det kan selvf�lgelig skyldes, at bogen ikke findes i vores database. Det

59 kan dog ogs skyldes, at din sgning er for specifik. Hvis du fx har sgt

60 efter &quot;Matematisk Analyse 3&quot;, kan du opn flere resultater, hvis

ContentResolverTestMock.java (https://github.com/zhangyongjiang/SORMA.git) Java · 374 lines

13

14 import android.content.ContentValues;

15 import android.database.Cursor;

16

17 import com.gaoshin.sorma.SormaContentResolver;

33 Connection connection = getConnection();

34 final Statement statement = connection.createStatement();

35 ormDefinition.createDatabase(new SqlExecutor() {

36 public void execute(String sql) throws Exception {

37 statement.execute(sql);

contents.html (https://github.com/ogen-project/ogen.git) HTML · 635 lines

100 <div class="treeNode">

101 <img src="treenodedot.gif" class="treeNoLinkImage" />

102 <a href="OGen.lib.datalayer.cDBConnection.Connectionstring_database.html" target="main" class="treeUnselected" onclick="clickAnchor(this)">Connectionstring_database Method</a>

103 </div>

104 <div class="treeNode">

ContentBlock.php (https://gitlab.com/RonLab1987/YupePlusClear) PHP · 240 lines

63

64 /**

65 * @return string the associated database table name

66 */

67 public function tableName()

ContentUIManagerLocal.java (https://github.com/ccrouch/rhq.git) Java · 268 lines

50 * This will return a composite object that tells you if the actual content (the "bits") for a particular package

51 * version is loaded into inventory or not, and, if the content is loaded, whether or not that content is stored in

52 * the database.

53 *

54 * @param packageVersionId the {@link org.rhq.core.domain.content.PackageVersion} identifier

59

60 /**

61 * Loads the installed package identified by the ID from the database.

62 *

63 * @param id identifies the installed package

69

70 /**

71 * Loads the package type identified by the ID from the database.

72 *

73 * @param id package type to load

rdataset.h (https://bitbucket.org/freebsd/freebsd-head/) C Header · 663 lines ✨ Summary

This is a C header file that defines an interface for working with DNS rdatasets, which are used to manage DNS records. It provides functions for creating, modifying, and deleting rdatasets, as well as accessing additional information such as cached values and trust levels. The code is part of the ISC (Internet Systems Consortium) DNS library.

146 * the counter provides the starting point in the "cyclic" order.

147 * The value ISC_UINT32_MAX has a special meaning of "picking up a

148 * random value." in order to take care of databases that do not

149 * increment the counter.

150 */

642 dns_rdataset_settrust(dns_rdataset_t *rdataset, dns_trust_t trust);

643 /*%<

644 * Set the trust of the 'rdataset' to trust in any in the backing database.

645 * The local trust level of 'rdataset' is also set.

646 */

649 dns_rdataset_expire(dns_rdataset_t *rdataset);

650 /*%<

651 * Mark the rdataset to be expired in the backing database.

652 */

653

ContentProviderClient.java (https://github.com/tezet/android_frameworks_base.git) Java · 265 lines

17 package android.content;

18

19 import android.database.Cursor;

20 import android.net.Uri;

21 import android.os.Bundle;

ContentProvider.cs (https://bitbucket.org/festevezga/xobotos.git) C# · 363 lines

60 [Sharpen.Stub]

61 [Sharpen.ImplementsInterface(@"android.content.IContentProvider")]

62 public override android.database.Cursor query(System.Uri uri, string[] projection

63 , string selection, string[] selectionArgs, string sortOrder)

64 {

247

248 [Sharpen.Stub]

249 public abstract android.database.Cursor query(System.Uri uri, string[] projection

250 , string selection, string[] selectionArgs, string sortOrder);

251

ContentTypesTable.php (git://github.com/QuickAppsCMS/QuickApps-CMS.git) PHP · 132 lines

19

20 /**

21 * Represents "content_types" database table.

22 *

23 * @property \User\Model\Table\RolesTable $Roles

ContentObservableTest.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 156 lines

15 */

16

17 package android.database.cts;

18

19

20 import android.database.ContentObservable;

21 import android.database.ContentObserver;

content_index_database.h (https://github.com/chromium/chromium.git) C Header · 191 lines

3 // found in the LICENSE file.

4

5 #ifndef CONTENT_BROWSER_CONTENT_INDEX_CONTENT_INDEX_DATABASE_H_

6 #define CONTENT_BROWSER_CONTENT_INDEX_CONTENT_INDEX_DATABASE_H_

31 class BrowserContext;

32

33 // Handles interacting with the Service Worker Database for Content Index

34 // entries. This is owned by the ContentIndexContext.

35 class CONTENT_EXPORT ContentIndexDatabase {

36 public:

37 ContentIndexDatabase(

38 BrowserContext* browser_context,

39 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context);

40

41 ContentIndexDatabase(const ContentIndexDatabase&) = delete;

42 ContentIndexDatabase& operator=(const ContentIndexDatabase&) = delete;

content_settings_observer.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 113 lines

45

46 // These correspond to WebKit::WebPermissionClient methods.

47 bool AllowDatabase(WebKit::WebFrame* frame,

48 const WebKit::WebString& name,

49 const WebKit::WebString& display_name,

content.php (https://github.com/Shigaru/shigaru.git) PHP · 138 lines

43 * Retrieves all content elements of choosen type

44 * @param object cpContentElement $content_element Content elements

45 * @return array Array of objects containing the data from the database

46 */

47 function getList($content_element) {

51 global $mainframe;

52

53 $database = JFactory::getDBO();

54

55 if (!empty ($this->_list)) {

108 "ORDER BY $orderstr";

109

110 $database->setQuery($query, $limitstart, $limit);

111 $this->_list = $database->loadObjectList();

112

113 // If there is a db query error, throw a HTTP 500 and exit

114 if ($database->getErrorNum()) {

115 JError::raiseError(500, $database->stderr());

ContentAwareGenerator.php (https://gitlab.com/guillaumev/alkarama) PHP · 321 lines

65 * RouteReferrersReadInterface.

66 *

67 * @throws RouteNotFoundException If there is no such route in the database

68 */

69 public function generate($name, $parameters = array(), $absolute = UrlGeneratorInterface::ABSOLUTE_PATH)

content.php (https://bitbucket.org/adatux_/uakami.git) PHP · 1139 lines

369 array( __( 'Before You Begin', $this->hook ), 'databasebackup_content_1' ), //information to prevent the user from getting in trouble

370 array( __( 'Backup Your WordPress Database', $this->hook ), 'databasebackup_content_2' ), //backup switch

371 array( __( 'Schedule Automated Backups', $this->hook ), 'databasebackup_content_3' ), //scheduled backup options

390 array( __( 'Before You Begin', $this->hook ), 'databaseprefix_content_1' ), //information to prevent the user from getting in trouble

391 array( __( 'Change The Database Prefix', $this->hook ), 'databaseprefix_content_2' ) //databaseprefix options

392 ),

393 BWPS_PU . 'images/shield-large.png',

524 array(

525 array( __( 'Before You Begin', $this->hook ), 'logs_content_1' ), //information to prevent the user from getting in trouble

526 array( __( 'Clean Database', $this->hook ), 'logs_content_2' ), //Clean Database

527 array( __( 'Current Lockouts', $this->hook ), 'logs_content_3' ), //Current Lockouts log

528 array( __( '404 Errors', $this->hook ), 'logs_content_4' ), //404 Errors

674 <span style="color: green;"><?php _e( 'You have scheduled regular backups of your WordPress database.', $this->hook ); ?></span>

675 <?php } else { ?>

676 <span style="color: blue;"><?php _e( 'You are not scheduling regular backups of your WordPress database.', $this->hook ); ?> <a href="admin.php?page=better-wp-security-databasebackup"><?php _e( 'Click here to fix.', $this->hook ); ?></a></span>

677 <?php } ?>

678 </li>

exim_08_nonpart_rename.q.out (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

30 POSTHOOK: Input: default@exim_department

31 POSTHOOK: Output: default@exim_department

32 PREHOOK: query: create database importer

33 PREHOOK: type: CREATEDATABASE

34 POSTHOOK: query: create database importer

35 POSTHOOK: type: CREATEDATABASE

36 PREHOOK: query: use importer

37 PREHOOK: type: SWITCHDATABASE

38 POSTHOOK: query: use importer

39 POSTHOOK: type: SWITCHDATABASE

98 POSTHOOK: Input: importer@exim_department

99 POSTHOOK: Output: importer@exim_department

100 PREHOOK: query: drop database importer

101 PREHOOK: type: DROPDATABASE

content.php (https://github.com/ProjectBenelux/Website.git) PHP · 206 lines

94 * Constructs the content item.

95 * The id passed will usually be the primary key of the model data in the

96 * database but as this is model specific it can be interpreted in other ways.

97 *

98 * @param mixed $itemid - The id of the item

ContentQueryMapTest.java (https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk) Java · 373 lines

21 import android.content.ContentResolver;

22 import android.content.ContentValues;

23 import android.database.Cursor;

24 import android.os.Handler;

25 import android.os.HandlerThread;

content_model_spec.rb (https://github.com/mafei198/Webiva.git) Ruby · 143 lines

13 before(:each) do

14 DataCache.reset_local_cache

15 connect_to_migrator_database

16 ContentModel.connection.execute('DROP TABLE IF EXISTS cms_spec_tests')

17 end

18

19 it "should be able to create a database table and a content type" do

20 cm = ContentModel.create(:name => 'spec_test')

21 cm.create_table # Should create a table

72 before(:each) do

73 DataCache.reset_local_cache

74 connect_to_migrator_database

75 ContentModel.connection.execute('DROP TABLE IF EXISTS cms_spec_tests')

76 end

ContentImporter.php (https://github.com/lloc/Multisite-Language-Switcher.git) PHP · 371 lines

351 * Filters whether the post should be considered empty or not.

352 *

353 * Empty posts would not be saved to database but it's fine if in

354 * the context of a content import as it will be populated.

355 *

content_message_generator.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 74 lines

14 #include "content/common/cc_messages.h"

15 #include "content/common/clipboard_messages.h"

16 #include "content/common/database_messages.h"

17 #include "content/common/device_sensors/device_light_messages.h"

18 #include "content/common/device_sensors/device_motion_messages.h"

ContentCest.php (https://github.com/Hackwar/joomla-cms.git) PHP · 148 lines

32 // TODO: Improve this to retrieve a specific ID to replace with a known ID

33 $desiredUserId = 3;

34 $I->updateInDatabase('users', ['id' => 3], []);

35 $I->updateInDatabase('user_usergroup_map', ['user_id' => 3], []);

36 $enabledData = ['user_id' => $desiredUserId, 'profile_key' => 'joomlatoken.enabled', 'profile_value' => 1];

37 $tokenData = ['user_id' => $desiredUserId, 'profile_key' => 'joomlatoken.token', 'profile_value' => 'dOi2m1NRrnBHlhaWK/WWxh3B5tqq1INbdf4DhUmYTI4='];

38 $I->haveInDatabase('user_profiles', $enabledData);

39 $I->haveInDatabase('user_profiles', $tokenData);

73 'title' => 'Just for you',

74 'catid' => 2,

75 'articletext' => 'A dummy article to save to the database',

76 'language' => '*',

77 'alias' => 'tobias'

Content.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 142 lines

121 protected function delete($conCategory, $conParent, $conId, $conLang)

122 {

123 $conn = Propel::getConnection(ContentPeer::DATABASE_NAME);

124

125 try {

ContentController.spec.js (https://github.com/popcorn-official/popcorn-api.git) JavaScript · 326 lines

9 import {

10 ContentService,

11 Database,

12 PopApi

13 } from 'pop-api'

26

27 /**

28 * Test suite for fetching content from the database.

29 * @param {!string} content - The content to test.

30 * @param {!Model} Model - The model object of the content to fetch.

61 * @type {Database}

62 */

63 let database: Database

64

65 /**

88 contentController.registerRoutes(app)

89

90 database = new Database(PopApi, {

91 database: name

content.md (https://gitlab.com/apachipa/docs) Markdown · 102 lines

29 ```

30

31 4. If this is a new database, you'll need to run `upgrade`

32

33 ```console

76 ### `SENTRY_POSTGRES_HOST`, `SENTRY_POSTGRES_PORT`, `SENTRY_DB_NAME`, `SENTRY_DB_USER`, `SENTRY_DB_PASSWORD`

77

78 Database credentials for your Postgres server. These values aren't needed if a linked `postgres` container exists.

79

80 ### `SENTRY_REDIS_HOST`, `SENTRY_REDIS_PORT`, `SENTRY_REDIS_DB`

ContentItem.class.php (https://github.com/quinta/quintacms.git) PHP · 140 lines

6 * customized code for the ContentItem class in the

7 * Object Relational Model. It represents the "content_item" table

8 * in the database, and extends from the code generated abstract ContentItemGen

9 * class, which contains all the basic CRUD-type functionality as well as

10 * basic methods to handle relationships and index-based loading.

71 // Get the Database Object for this Class

72 $objDatabase = ContentItem::GetDatabase();

73

74 // Properly Escape All Input Parameters using Database->SqlVariable()

75 $strParam1 = $objDatabase->SqlVariable($strParam1);

76 $intParam2 = $objDatabase->SqlVariable($intParam2);

88

89 // Perform the Query and Instantiate the Result

90 $objDbResult = $objDatabase->Query($strQuery);

91 return ContentItem::InstantiateDbResult($objDbResult);

92 }

content_types_controller_spec.rb (https://github.com/next-l/enju_leaf.git) Ruby · 174 lines

110 it 'updates the requested content_type' do

111 content_type = ContentType.create! valid_attributes

112 # Assuming there are no other content_types in the database, this

113 # specifies that the ContentType created on the previous line

114 # receives the :update message with whatever params are

content-provider.ftl (https://github.com/greenrobot/greenDAO.git) Freemarker Template · 221 lines

13

14 import org.greenrobot.greendao.DaoLog;

15 import org.greenrobot.greendao.database.StandardDatabase;

16 import org.greenrobot.greendao.database.Database;

66 }

67

68 protected Database getDatabase() {

69 if(daoSession == null) {

70 throw new IllegalStateException("${schema.prefix}DaoSession must be set during content provider is active");

111 <#else>

112 int uriType = sURIMatcher.match(uri);

113 Database db = getDatabase();

114 int rowsDeleted = 0;

115 String id;

147 <#else>

148 int uriType = sURIMatcher.match(uri);

149 Database db = getDatabase();

150 int rowsUpdated = 0;

151 String id;

content.hxx (https://bitbucket.org/jorgenio/libreoffice.git) C++ Header · 154 lines

55 //=========================================================================

56

57 class Databases;

58

59 struct ContentProperties

79 const ::com::sun::star::uno::Reference<

80 ::com::sun::star::ucb::XContentIdentifier >& Identifier,

81 Databases* pDatabases );

82

83 virtual ~Content();

124 ContentProperties m_aProps;

125 URLParameter m_aURLParameter;

126 Databases* m_pDatabases;

127

128

ContentManagerRemote.java (https://github.com/metlos/RHQ-old.git) Java · 230 lines

126 *

127 * @param subject The logged in subject

128 * @return list of all architectures in the database

129 */

130 List<Architecture> findArchitectures(Subject subject);

ContentType.php (https://gitlab.com/mktcode/widget-management-system) PHP · 203 lines

52 *

53 * @param Config $config

54 * @param Database $database

55 * @param Routing $routing

56 */

57 public function setServices(Config $config, Database $database, Routing $routing, Translator $translator)

58 {

59 $this->config = $config;

60 $this->database = $database;

61 $this->routing = $routing;

62 $this->translator = $translator;

content.php (https://github.com/michaelchisari/appleseed.git) PHP · 341 lines

138 $this->PageContext = $pDEFAULTCONTEXT;

139

140 // Grab the fields from the database.

141 $this->Fields();

142

251 $this->PageContext = $pDEFAULTCONTEXT;

252

253 // Grab the fields from the database.

254 $this->Fields();

255

333 $this->PageContext = $pDEFAULTCONTEXT;

334

335 // Grab the fields from the database.

336 $this->Fields();

337

ContentChangeTracker.cs (https://github.com/lundbeck/n2cms.git) C# · 114 lines

22 public bool IsMonitoring { get; private set; }

23

24 public ContentChangeTracker(IAsyncIndexer indexer, IPersister persister, ConnectionMonitor connection, DatabaseSection config)

25 {

26 this.indexer = indexer;

ContentQueryMap.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 182 lines

17 package android.content;

18

19 import android.database.ContentObserver;

20 import android.database.Cursor;

28 * Caches the contents of a cursor into a Map of String->ContentValues and optionally

29 * keeps the cache fresh by registering for updates on the content backing the cursor. The column of

30 * the database that is to be used as the key of the map is user-configurable, and the

31 * ContentValues contains all columns other than the one that is designated the key.

32 * <p>

Contents.swift (https://github.com/pointfreeco/episode-code-samples.git) Swift · 435 lines

53

54 let compactWitness = Describing<PostgresConnInfo> { conn in

55 return "PostgresConnInfo(database: \"\(conn.database)\", hostname: \"\(conn.hostname)\", password: \"\(conn.password)\", port: \"\(conn.port)\", user: \"\(conn.user)\")"

56 }

57

59 """

60 PostgresConnInfo(

61 database: \"\($0.database)\",

62 hostname: \"\($0.hostname)\",

63 password: \"\($0.password)\",

142

143 static let compact = Describing { conn in

144 return "PostgresConnInfo(database: \"\(conn.database)\", hostname: \"\(conn.hostname)\", password: \"\(conn.password)\", port: \"\(conn.port)\", user: \"\(conn.user)\")"

145 }

146

content_spec_helper.rb (https://github.com/jjuglans/Webiva.git) Ruby · 100 lines

3 module ContentSpecHelper

4

5 def connect_to_migrator_database

6 # Switch to migrator

7 @defaults_config_file = YAML.load_file("#{Rails.root}/config/defaults.yml")

8

9 dmn = Domain.find(@defaults_config_file['testing_domain']).get_info

10 DomainModel.activate_database(dmn,'migrator',false)

11

12 # Kill the spec test table if no-go

ContentProviderNative.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 221 lines

2

3 import android.content.res.AssetFileDescriptor;

4 import android.database.BulkCursorDescriptor;

5 import android.database.Cursor;

6 import android.database.CursorToBulkCursorAdaptor;

7 import android.database.DatabaseUtils;

8 import android.database.IContentObserver;

9 import android.database.IContentObserver.Stub;

10 import android.net.Uri;

11 import android.os.Binder;

97 return true;

98 } catch (Exception e) {

99 DatabaseUtils.writeExceptionToParcel(reply, e);

100 return true;

101 }

ContentmapField.php (https://github.com/Hackwar/joomla-cms.git) PHP · 127 lines

44 $groups = array();

45

46 // Get the database object and a new query object.

47 $db = Factory::getDbo();

48

ContentUploader.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 150 lines

7

8 use Magento\MediaStorage\Helper\File\Storage;

9 use Magento\MediaStorage\Helper\File\Storage\Database;

10 use Magento\MediaStorage\Model\File\Uploader;

11 use Magento\MediaStorage\Model\File\Validator\NotProtectedExtension;

51

52 /**

53 * @param Database $coreFileStorageDb

54 * @param Storage $coreFileStorage

55 * @param NotProtectedExtension $validator

59 */

60 public function __construct(

61 Database $coreFileStorageDb,

62 Storage $coreFileStorage,

63 NotProtectedExtension $validator,

ContentResolverTest.java (https://github.com/davesims/robolectric.git) Java · 127 lines

4 import android.content.ContentResolver;

5 import android.content.ContentValues;

6 import android.database.Cursor;

7 import android.net.Uri;

8 import com.xtremelabs.robolectric.WithTestDefaultsRunner;

9 import com.xtremelabs.robolectric.tester.android.database.TestCursor;

10 import org.hamcrest.CoreMatchers;

11 import org.junit.Before;

41 @Test

42 public void insert_shouldReturnIncreasingUris() throws Exception {

43 shadowContentResolver.setNextDatabaseIdForInserts(21);

44

45 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21));

content-type-procs.tcl (https://github.com/iuri/PWTI.git) TCL · 399 lines

89 @param default_value

90 @param column_spec Specification for column to pass to the

91 database. Not optional if the column does not already exist in the table.

92

93 @return attribute_id for created attribute

ContentProviderNative.java (https://bitbucket.org/chaos_rom/miui_frameworks.git) Java · 240 lines

2

3 import android.content.res.AssetFileDescriptor;

4 import android.database.BulkCursorDescriptor;

5 import android.database.Cursor;

6 import android.database.CursorToBulkCursorAdaptor;

7 import android.database.DatabaseUtils;

8 import android.database.IContentObserver;

9 import android.database.IContentObserver.Stub;

10 import android.net.Uri;

11 import android.os.Binder;

124 catch (Exception localException)

125 {

126 DatabaseUtils.writeExceptionToParcel(paramParcel2, localException);

127 bool = true;

128 }

ContentResolver.java (https://github.com/sefirot/androidStuff.git) Java · 115 lines

6 import java.util.Observable;

7

8 import android.database.ContentObserver;

9 import android.database.Cursor;

content.html (https://github.com/darrenkuo/SICP.git) HTML · 127 lines

114

115 <div class="p"><!----></div>

116 If you're <i>really </i> ambitious, you could maintain a database of

117 inferred argument types and use it when a procedure you've seen is

118 invoked by another procedure you're examining!

Contents.m (https://bitbucket.org/stepan-a/rise-toolbox.git) Objective C · 36 lines

34 % m\utilities\vech - (No help available)

35 % <a href="matlab:help m\utilities\write_function_to_disk">m\utilities\write_function_to_disk</a> - outstring=[outstring,',res',int2str(ii)]; %#ok<AGROW>

36 % <a href="matlab:help m\utilities\xl2databases">m\utilities\xl2databases</a> - {

37

ContentContextMenuTest.java (https://github.com/rillian/firefox.git) Java · 135 lines

131 mSolo.clickOnText(bookmarkOption);

132 mAsserter.ok(waitForText("Bookmark added"), "Waiting for the Bookmark added toaster notification", "The notification has been displayed");

133 mAsserter.ok(mDatabaseHelper.isBookmark(link), "Checking if the link has been added as a bookmark", "The link has been bookmarked");

134 }

135 }

contentmap.php (https://gitlab.com/ricardosanchez/prueba) PHP · 123 lines

41 $groups = array();

42

43 // Get the database object and a new query object.

44 $db = JFactory::getDbo();

45

ContentProviderTransform.kt (https://github.com/Tencent/Shadow.git) Kotlin · 149 lines

70 val stringClass = classPool["java.lang.String"]

71 val bundleClass = classPool["android.os.Bundle"]

72 val observerClass = classPool["android.database.ContentObserver"]

73

74 val callMethod = resolverClass.getMethod("call", Descriptor.ofMethod(bundleClass,

content.searchbot.php (https://github.com/doctorgrif/Joostina-1.2.1.git) PHP · 156 lines

100 " OR a.publish_up <= " . $database->Quote($now) . " )" . "\n AND ( a.publish_down = " .

101 $database->Quote($nullDate) . " OR a.publish_down >= " . $database->Quote($now) .

102 " )" . "\n GROUP BY a.id" . "\n ORDER BY $order";

103 $database->setQuery($query, 0, $limit);

108 "\n '2' AS browsernav," . "\n a.id" . "\n FROM #__content AS a" . "\n LEFT JOIN #__menu AS m ON m.componentid = a.id" .

109 "\n WHERE ($where)" . "\n AND a.state = 1" . "\n AND a.access <= " . (int) $my->gid . "\n AND m.type = 'content_typed'" .

110 "\n AND ( a.publish_up = " . $database->Quote($nullDate) . " OR a.publish_up <= " . $database->Quote($now) .

111 " )" . "\n AND ( a.publish_down = " . $database->Quote($nullDate) .

122 "\n AND u.published = 1" . "\n AND b.published = 1" . "\n AND a.access <= " . (int) $my->gid .

123 "\n AND b.access <= " . (int) $my->gid . "\n AND u.access <= " . (int) $my->gid . "\n AND ( a.publish_up = " .

124 $database->Quote($nullDate) . " OR a.publish_up <= " . $database->Quote($now) . " )" .

125 "\n AND ( a.publish_down = " . $database->Quote($nullDate) .

143 "\n a.id" . "\n FROM #__content AS a" . "\n WHERE ($where)" . (($ids) ? "\n AND ( $ids )" :

144 '') . "\n AND a.state = 1" . "\n AND a.access <= " . (int) $my->gid . "\n AND a.sectionid = 0" .

145 "\n AND ( a.publish_up = " . $database->Quote($nullDate) . " OR a.publish_up <= " . $database->Quote($now) .

146 " )" . "\n AND ( a.publish_down = " . $database->Quote($nullDate) .

contents_spec.rb (https://gitlab.com/minuto/media_choice) Ruby · 118 lines

15

16 before do

17 # There's no way to retrieve the column names from the database, as the connection is not allowed on test environment

18 # Therefore, we use an OpenStruct with the attributes method (or mock) to retrieve the attributes

19 content_to_be_migrated.class.send(:define_method, 'attributes') do

26

27 context 'without errors' do

28 it 'correctly saves the contents on the database' do

29 expect(described_class).to receive(:save_records).with(columns, values, ::Content, false).and_return true

30 Migration::Content.migrate

33

34 context 'with errors' do

35 it 'doesn\'t save the contents on the database' do

36 expect(described_class).to receive(:save_records).with(columns, values, ::Content, false).and_return false

37 Migration::Content.migrate

ContentLoader.java (https://github.com/integralnd/android_frameworks_base.git) Java · 126 lines

89 return false;

90 } catch (RuntimeException ex) {

91 // readExceptionWithFileNotFoundExceptionFromParcel in DatabaseUtils

92 // can throw a serial of RuntimeException. Catch them all here.

93 mHandler.error(

ContentRepository.Parser.cs (https://github.com/siteserver/cms.git) C# · 537 lines

147 }

148

149 private async Task<List<ContentSummary>> GetContentsDataSourceAsync(IDatabaseManager databaseManager, Site site, int channelId, int contentId, string groupContent, string groupContentNot, string tags, bool isImageExists, bool isImage, bool isVideoExists, bool isVideo, bool isFileExists, bool isFile, bool isRelatedContents, int startNum, int totalNum, string orderByString, bool isTopExists, bool isTop, bool isRecommendExists, bool isRecommend, bool isHotExists, bool isHot, bool isColorExists, bool isColor, ScopeType scopeType, string groupChannel, string groupChannelNot, NameValueCollection others)

150 {

151 if (!await _channelRepository.IsExistsAsync(channelId)) return null;

169 }

170

171 public async Task<List<ContentSummary>> GetSummariesAsync(IDatabaseManager databaseManager, Site site, int channelId, int contentId, string groupContent, string groupContentNot, string tags, bool isImageExists, bool isImage, bool isVideoExists, bool isVideo, bool isFileExists, bool isFile, bool isRelatedContents, int startNum, int totalNum, string orderByString, bool isTopExists, bool isTop, bool isRecommendExists, bool isRecommend, bool isHotExists, bool isHot, bool isColorExists, bool isColor, ScopeType scopeType, string groupChannel, string groupChannelNot, NameValueCollection others)

172 {

173 var dataSource = await GetContentsDataSourceAsync(databaseManager, site, channelId, contentId, groupContent, groupContentNot, tags,

244 query

245 .WhereNot(nameof(Content.GroupNames), groupContent)

246 .WhereNotInStr(repository.Database.DatabaseType, nameof(Content.GroupNames), $",{groupContent}")

247 .WhereNotInStr(repository.Database.DatabaseType, nameof(Content.GroupNames), $",{groupContent},")

259 .OrWhereInStr(repository.Database.DatabaseType, nameof(Content.TagNames), $",{tagName},")

260 .OrWhereInStr(repository.Database.DatabaseType, nameof(Content.TagNames), $"{tagName},"));

261 }

262 }

ContentStateTests.cs (https://github.com/lundbeck/n2cms.git) C# · 192 lines

27 public override void SetUp()

28 {

29 CreateDatabaseSchema();

30 base.SetUp();

31

ContentProviderProxy.java (https://github.com/dstmath/HWFramework.git) Java · 379 lines

5 import android.database.BulkCursorDescriptor;

6 import android.database.BulkCursorToCursorAdaptor;

7 import android.database.Cursor;

8 import android.database.DatabaseUtils;

9 import android.net.Uri;

10 import android.os.Binder;

190 data.writeStringArray(selectionArgs);

191 this.mRemote.transact(10, data, reply, 0);

192 DatabaseUtils.readExceptionFromParcel(reply);

193 return reply.readInt();

194 } finally {

211 data.writeStrongBinder(token);

212 this.mRemote.transact(14, data, reply, 0);

213 DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(reply);

214 if (reply.readInt() != 0) {

215 fd = ParcelFileDescriptor.CREATOR.createFromParcel(reply);

cli.xconf (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

115 <!--+

116 | Load classes at startup. This is necessary for generating

117 | from sites that use SQL databases and JDBC.

118 | The <load-class> element can be repeated if multiple classes

119 | are needed.

ContentViews.php (https://github.com/manubamba/site.git) PHP · 229 lines

1 <?php

2 /**

3 * ContentViews -> ContentViews database model for content views table.

4 *

5 * Copyright (c) <2009>, Joel Peltonen

ContentTranslationConfigImportTest.php (https://gitlab.com/reasonat/test8) PHP · 106 lines

99 $entity_type = $this->container->get('entity.manager')->getDefinition($entity_type_id);

100 $table = $entity_type->getDataTable();

101 $db_schema = $this->container->get('database')->schema();

102 $result = $db_schema->fieldExists($table, 'content_translation_source') && $db_schema->fieldExists($table, 'content_translation_outdated');

103 $this->assertTrue($result, 'Content translation updates were successfully performed during config import.');

content.ajaxreorder.php (https://github.com/builders/sym-bootstrap.git) PHP · 63 lines

29 case self::kREORDER_PAGES:

30 foreach($items as $id => $position) {

31 if(!Symphony::Database()->query("UPDATE `tbl_pages` SET `sortorder` = '$position' WHERE `id` = '$id' LIMIT 1")){

32 $this->_status = self::STATUS_ERROR;

33 $this->_Result->setValue(__('A database error occurred while attempting to reorder.'));

40 case self::kREORDER_SECTIONS:

41 foreach($items as $id => $position) {

42 if(!Symphony::Database()->query("UPDATE `tbl_sections` SET `sortorder` = '$position' WHERE `id` = '$id' LIMIT 1")){

43 $this->_status = self::STATUS_ERROR;

44 $this->_Result->setValue(__('A database error occurred while attempting to reorder.'));

Content.java (https://github.com/entando/entando-core-engine.git) Java · 114 lines

19

20 import com.j256.ormlite.field.DataType;

21 import com.j256.ormlite.field.DatabaseField;

22 import com.j256.ormlite.table.DatabaseTable;

25 * @author E.Santoboni

26 */

27 @DatabaseTable(tableName = Content.TABLE_NAME)

28 public class Content {

29

30 public Content() {}

31

32 @DatabaseField(columnName = "contentid",

33 dataType = DataType.STRING,

34 width = 16,

36 private String _contentId;

37

38 @DatabaseField(columnName = "contenttype",

39 dataType = DataType.STRING,

40 width = 30,

ContentHasRelatedCompany.php (https://github.com/jiiarra/site.git) PHP · 190 lines

1 <?php

2 /**

3 * ContentHasRelatedCompany -> ContentHasRelatedCompany database model for table cnt_has_rec

4 *

5 * Copyright (c) <2009>, Pekka Piispanen

66 $row->id_rec = $id_rec;

67

68 // Add row to database

69 $row->save();

70 } // end if

166 // If some of the existing related companies aren't found in sent

167 // related companies, that related company is deleted from the

168 // content and maybe even from thedatabase

169 if(!in_array($existingRec['name_rec'], $companies)) {

170 // Removing rec from content

content_pages_controller_spec.rb (https://github.com/chsh/facebook-wiki-app.git) Ruby · 157 lines

100 it "updates the requested content_page" do

101 content_page = ContentPage.create! valid_attributes

102 # Assuming there are no other content_pages in the database, this

103 # specifies that the ContentPage created on the previous line

104 # receives the :update_attributes message with whatever params are

content.js (https://github.com/FredericHeem/starhackit.git) JavaScript · 161 lines

22 },

23 {

24 img: require("./img/database.svg").default,

25 title: "Relational SQL Database",

contenttype.php (https://github.com/dextercowley/joomla-cms.git) PHP · 140 lines

22 * Constructor

23 *

24 * @param JDatabaseDriver $db A database connector object

25 *

26 * @since 3.1

ContentIe.cs (https://github.com/siteserver/cms.git) C# · 484 lines

16 {

17 private readonly IPathManager _pathManager;

18 private readonly IDatabaseManager _databaseManager;

19 private readonly CacheUtils _caching;

20 private readonly Site _site;

21 private readonly string _siteContentDirectoryPath;

22

23 public ContentIe(IPathManager pathManager, IDatabaseManager databaseManager, CacheUtils caching, Site site, string siteContentDirectoryPath)

24 {

25 _pathManager = pathManager;

26 _databaseManager = databaseManager;

27 _caching = caching;

28 _siteContentDirectoryPath = siteContentDirectoryPath;

ContentProviderClient.cs (git://github.com/koush/androidmono.git) C# · 131 lines

49 }

50 internal static global::MonoJavaBridge.MethodId _query1161;

51 public virtual global::android.database.Cursor query(android.net.Uri arg0, java.lang.String[] arg1, java.lang.String arg2, java.lang.String[] arg3, java.lang.String arg4)

52 {

53 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

54 if (!IsClrObject)

55 return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::android.database.Cursor>(@__env.CallObjectMethod(this.JvmHandle, global::android.content.ContentProviderClient._query1161, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4))) as android.database.Cursor;

56 else

57 return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::android.database.Cursor>(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::android.content.ContentProviderClient.staticClass, global::android.content.ContentProviderClient._query1161, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4))) as android.database.Cursor;

119 global::android.content.ContentProviderClient._insert1159 = @__env.GetMethodIDNoThrow(global::android.content.ContentProviderClient.staticClass, "insert", "(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;");

120 global::android.content.ContentProviderClient._release1160 = @__env.GetMethodIDNoThrow(global::android.content.ContentProviderClient.staticClass, "release", "()Z");

121 global::android.content.ContentProviderClient._query1161 = @__env.GetMethodIDNoThrow(global::android.content.ContentProviderClient.staticClass, "query", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;");

122 global::android.content.ContentProviderClient._update1162 = @__env.GetMethodIDNoThrow(global::android.content.ContentProviderClient.staticClass, "update", "(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I");

123 global::android.content.ContentProviderClient._applyBatch1163 = @__env.GetMethodIDNoThrow(global::android.content.ContentProviderClient.staticClass, "applyBatch", "(Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult;");

ChromeClientGtk.h (git://github.com/CyanogenMod/android_external_webkit.git) C++ Header · 127 lines ✨ Summary

This is a C++ header file for a web browser’s client-side functionality, specifically designed to work with the GTK+ library. It defines a class ChromeClient that inherits from WebCore::ChromeClient, providing an interface for handling various events and interactions such as window management, focus, toolbars, status bar, and more.

101

102 virtual void print(WebCore::Frame*);

103 #if ENABLE(DATABASE)

104 virtual void exceededDatabaseQuota(WebCore::Frame*, const WebCore::String&);

ContentParserComponent.php (https://gitlab.com/potiev/machine-learning) PHP · 265 lines

14 * Call setXMLFile(filename) - set the filename of our XML file

15 * Call startParse - starts parsing the document and inserting the data in our

16 * MySQL database.

17 * PROPERTIES

18 * The basic properties to get this class going:

97 //Print out that it is finished!

98 $this->printToConsole("Finished processing content RDF file!");

99 $this->printToConsole("Inserted rows into the database: $this->count_rows");

100 }

101

ContentItemController.class.php (https://github.com/quinta/quintacms.git) PHP · 179 lines

5 /**

6 * Class ContentItemController - provids display of a content item

7 * This class provides display of a ContentItem from the database - it is rendered

8 * by a ContentBlockController template, which must always exist as a parent. The content

9 * block view creates this with a reference to itself and a ContentItem ORM object drawn

content_typed.class.php (https://github.com/doctorgrif/Joostina-1.2.1.git) PHP · 105 lines

18

19 function edit(&$uid,$menutype,$option) {

20 global $database,$my,$mainframe;

21 global $mosConfig_absolute_path;

22

23 $menu = new mosMenu($database);

24 $menu->load((int)$uid);

25

45 $query = "SELECT a.title, a.title_alias, a.id"."\n FROM #__content AS a"."\n WHERE a.id = ".(int)

46 $temp[1];

47 $database->setQuery($query);

48 $content = $database->loadObjectlist();

61 "\n FROM #__content AS a"."\n WHERE a.state = 1"."\n AND a.sectionid = 0"."\n AND a.catid = 0".

62 "\n ORDER BY a.title, a.id";

63 $database->setQuery($query);

64 $contents = $database->loadObjectList();

ContentsController.List.cs (https://github.com/siteserver/cms.git) C# · 115 lines

39 if (channel == null) return this.Error("无法确定内容对应的栏目");

40

41 var columnsManager = new ColumnsManager(_databaseManager, _pathManager);

42 var columns = await columnsManager.GetContentListColumnsAsync(site, channel, ColumnsManager.PageType.Contents);

43

ContentTranslationConfigImportTest.php (https://gitlab.com/andecode/theme-spark) PHP · 113 lines

106 $entity_type = $this->container->get('entity_type.manager')->getDefinition($entity_type_id);

107 $table = $entity_type->getDataTable();

108 $db_schema = $this->container->get('database')->schema();

109 $result = $db_schema->fieldExists($table, 'content_translation_source') && $db_schema->fieldExists($table, 'content_translation_outdated');

110 $this->assertTrue($result, 'Content translation updates were successfully performed during config import.');

ContentProviderProxy.java (https://github.com/dstmath/HWFramework.git) Java · 361 lines

4 import android.database.BulkCursorDescriptor;

5 import android.database.BulkCursorToCursorAdaptor;

6 import android.database.Cursor;

7 import android.database.DatabaseUtils;

8 import android.net.Uri;

9 import android.os.Bundle;

145 }

146 this.mRemote.transact(20, data, reply, 0);

147 DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(reply);

148 ContentProviderResult[] results = (ContentProviderResult[]) reply.createTypedArray(ContentProviderResult.CREATOR);

149 return results;

209 data.writeStrongBinder(token);

210 this.mRemote.transact(14, data, reply, 0);

211 DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(reply);

212 if (reply.readInt() != 0) {

213 parcelFileDescriptor = (ParcelFileDescriptor) ParcelFileDescriptor.CREATOR.createFromParcel(reply);

ContentProviderOperationBuilderTest.java (https://github.com/majasb/robolectric.git) Java · 93 lines

11 import android.content.ContentProviderOperation.Builder;

12 import android.content.ContentValues;

13 import android.database.Cursor;

14 import android.net.Uri;

15

ContentHasIndustries.php (https://github.com/jiiarra/site.git) PHP · 129 lines

1 <?php

2 /**

3 * ContentHasIndustries -> ContentHasIndustries database model for content has industries link table.

4 *

5 * Copyright (c) <2009>, Markus Riihelä

67 $row->id_ind = $id_ind;

68

69 // Add row to database

70 $row->save();

71 } // end if

ContentDAOFactory.php (https://github.com/GunioRobot/eglooframework.git) PHP · 114 lines

70 } else {

71 // If we didn't match a proper request for a non-DB ContentDAOFactory, we assume DB ContentDAOFactory

72 $connection_info = eGlooConfiguration::getDatabaseConnectionInfo($connection_name);

73

74 if ( $connection_info['engine'] === eGlooConfiguration::POSTGRESQL ) {

Content.php (https://github.com/roycocup/Tests.git) PHP · 304 lines

116 $this->_deleteFile($this->_image);

117 $result['post'] = $this->_post;

118 $result['Error'][] = 'There was a problem saving to the database. Please try again later.';

119 return $result;

120 } else {

ContentElementTable.php (https://bitbucket.org/stager94/skmz-joomla.git) PHP · 92 lines

7 * the content management system Joomla!. It enables Joomla!

8 * to manage multi lingual sites especially in all dynamic information

9 * which are stored in the database.

10 *

11 * This program is free software; you can redistribute it and/or

ContentsModel.php (https://github.com/Xirt/XirtCMS.git) PHP · 106 lines

19

20 /**

21 * The ordering column of the list (for database loading)

22 * @var String

23 */

47

48 /**

49 * Loads list information from the database

50 *

51 * @param $iso The language to load (e.g. "en-GB")

58

59 /**

60 * Loads all content items from the database and adds them to the list

61 *

62 * @param $iso The language to load (e.g. "en-GB")

ContentListCest.php (https://github.com/Kunena/Kunena-Forum.git) PHP · 173 lines

79 'state' => 1,

80 ];

81 $I->haveInDatabase('content', $testArticle);

82

83 $I->amOnPage(ContentListPage::$url);

113 * 'featured' => 0

114 * ];

115 * $I->haveInDatabase('content', $testArticle);

116 *

117 * $I->amOnPage(ContentListPage::$url);

ContentServiceSql.java (https://github.com/sakaiproject/sakai.git) Java · 209 lines

23

24 /**

25 * database methods.

26 */

27 public interface ContentServiceSql

ContentObserver.java (https://github.com/LordManta/sm_android_frameworks_base.git) Java · 168 lines

15 */

16

17 package android.database;

18

19 import android.os.Handler;

ContentChangedEvent.java (https://github.com/sleuthkit/autopsy.git) Java · 114 lines

78 * a network. Doing a lazy load of the ModuleContentEvent object

79 * bypasses the issues related to the serialization and de-serialization

80 * of Content objects and may also save database round trips from other

81 * nodes since subscribers to this event are often not interested in the

82 * event data.

ContentHelper.php (https://github.com/joomla/joomla-cms.git) PHP · 183 lines

16 use Joomla\CMS\Table\Category;

17 use Joomla\CMS\Workflow\WorkflowServiceInterface;

18 use Joomla\Database\ParameterType;

19 use Joomla\Registry\Registry;

20

content.md (https://gitlab.com/apachipa/docs) Markdown · 80 lines

1 # Aerospike

2

3 Aerospike is an open source distributed database. Aerospike is built on a "shared nothing" architecture designed to reliably store terabytes of data with automatic fail-over, replication and cross data-center synchronization.

4

5 %%LOGO%%

78 ## Sending Performance Data to Aerospike

79

80 Aerospike Telemetry is a feature that allows us to collect certain use data – not the database data – on your Aerospike Community Edition server use. We'd like to know when clusters are created and destroyed, cluster size, cluster workload, how often queries are run, whether instances are deployed purely in-memory or with Flash. Aerospike Telemetry collects information from running Community Edition server instances every 10 minutes. The data helps us to understand how the product is being used, identify issues, and create a better experience for the end user. [More Info](http://www.aerospike.com/aerospike-telemetry/)

81

ContentController.php (https://gitlab.com/uralgenc/bourdon-haenni.com) PHP · 135 lines

95 public function downloadCenterAction()

96 {

97 /** @var \TYPO3\CMS\Core\Database\DatabaseConnection $db */

98 $db = $GLOBALS['TYPO3_DB'];

99 $currentContentElement = $this->getRecord();

118 public function distributorMapAction()

119 {

120 /** @var \TYPO3\CMS\Core\Database\DatabaseConnection $db */

121 $db = $GLOBALS['TYPO3_DB'];

122 $currentContentElement = $this->getRecord();

ContentDatabase.h (https://github.com/u-voelkel/fuppes.git) C Header · 96 lines

8 */

9

10 #ifndef _CONTENTDATABASE_CONTENTDATABASE_H

11 #define _CONTENTDATABASE_CONTENTDATABASE_H

24 #include "../Fam/EventHandler.h"

25

26 #include "../Database/ObjectManager.h"

27

28 namespace ContentDatabase

29 {

30 class ContentDatabase: public Fam::EventHandler

31 {

32 public:

94 }

95

96 #endif // _CONTENTDATABASE_CONTENTDATABASE_H

97

content.php (https://bitbucket.org/paullik/dotophp.git) PHP · 55 lines

39 case A_ERR_CODE: printf('Invalid activation code! (#%d)', A_ERR_CODE);

40 break;

41 case A_ERR_DB_CONNECTION: printf('Error connecting to the database! (#%d)', A_ERR_DB_CONNECTION);

42 break;

43 case A_ERR_SECURITY_DATA: printf('The question and the answer bust be between 8 and 255 valid characters long! (#%d)', A_ERR_SECURITY_DATA);

44 break;

45 case A_ERR_DB: printf('A database related error occured, please contact the administrator! (#%d)', A_ERR_DB);

46 break;

47 }

ContentProducer.java (https://bitbucket.org/gustavoasoares/saferefactor.git) Java · 78 lines

26 * a FieldContentProducer could be declined to get its contents from variables in

27 * an in-memory object, a setting from a configuration file, or even a field in

28 * a database record.</li>

29 *

30 * @author Eduardo Francos - InContext

ContentTest.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 174 lines

10 require_once("Rest/RestMessage.php");

11

12 class ContentTest extends PHPUnit_Extensions_Database_TestCase

13 {

14 public function setup()

22

23 /**

24 * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection

25 */

26

27 // only instantiate pdo once for test clean-up/fixture load

28 static private $pdo = null;

29 // only instantiate PHPUnit_Extensions_Database_DB_IDatabaseConnection once per test

30 private $conn = null;

31

ContentProvider.h (https://github.com/scapix-com/scapix.git) C Header · 143 lines

18 namespace android::content::res { class AssetFileDescriptor; }

19 namespace android::content::res { class Configuration; }

20 namespace android::database { class Cursor; }

21 namespace android::net { class Uri; }

22 namespace android::os { class Bundle; }

48 void onLowMemory();

49 void onTrimMemory(jint level);

50 ref<android::database::Cursor> query(ref<android::net::Uri> p1, ref<link::java::array<java::lang::String>> p2, ref<java::lang::String> p3, ref<link::java::array<java::lang::String>> p4, ref<java::lang::String> p5);

51 ref<android::database::Cursor> query(ref<android::net::Uri> uri, ref<link::java::array<java::lang::String>> projection, ref<java::lang::String> selection, ref<link::java::array<java::lang::String>> selectionArgs, ref<java::lang::String> sortOrder, ref<android::os::CancellationSignal> cancellationSignal);

113 inline void ContentProvider::onLowMemory() { return call_method<SCAPIX_META_STRING("onLowMemory"), void>(); }

114 inline void ContentProvider::onTrimMemory(jint level) { return call_method<SCAPIX_META_STRING("onTrimMemory"), void>(level); }

115 inline ref<android::database::Cursor> ContentProvider::query(ref<android::net::Uri> p1, ref<link::java::array<java::lang::String>> p2, ref<java::lang::String> p3, ref<link::java::array<java::lang::String>> p4, ref<java::lang::String> p5) { return call_method<SCAPIX_META_STRING("query"), ref<android::database::Cursor>>(p1, p2, p3, p4, p5); }

116 inline ref<android::database::Cursor> ContentProvider::query(ref<android::net::Uri> uri, ref<link::java::array<java::lang::String>> projection, ref<java::lang::String> selection, ref<link::java::array<java::lang::String>> selectionArgs, ref<java::lang::String> sortOrder, ref<android::os::CancellationSignal> cancellationSignal) { return call_method<SCAPIX_META_STRING("query"), ref<android::database::Cursor>>(uri, projection, selection, selectionArgs, sortOrder, cancellationSignal); }

117 inline ref<android::database::Cursor> ContentProvider::query(ref<android::net::Uri> uri, ref<link::java::array<java::lang::String>> projection, ref<android::os::Bundle> queryArgs, ref<android::os::CancellationSignal> cancellationSignal) { return call_method<SCAPIX_META_STRING("query"), ref<android::database::Cursor>>(uri, projection, queryArgs, cancellationSignal); }

118 inline ref<java::lang::String> ContentProvider::getType(ref<android::net::Uri> p1) { return call_method<SCAPIX_META_STRING("getType"), ref<java::lang::String>>(p1); }

119 inline ref<android::net::Uri> ContentProvider::canonicalize(ref<android::net::Uri> url) { return call_method<SCAPIX_META_STRING("canonicalize"), ref<android::net::Uri>>(url); }

ContentUriUtils.java (https://gitlab.com/0072016/Facebook-SDK-) Java · 160 lines

7 import android.content.ContentResolver;

8 import android.content.Context;

9 import android.database.Cursor;

10 import android.net.Uri;

11 import android.os.ParcelFileDescriptor;

134 * @param contentResolver the content resolver to query.

135 * @param columnField the column field to query.

136 * @return the display name of the @code uri if present in the database

137 * or an empty string otherwise.

138 */

ContentObserver.java (https://bitbucket.org/chaos_rom/miui_frameworks.git) Java · 118 lines

1 package android.database;

2

3 import android.net.Uri;

114

115 /* Location: /home/lithium/miui/chameleon/2.11.16/framework_dex2jar.jar

116 * Qualified Name: android.database.ContentObserver

117 * JD-Core Version: 0.6.2

118 */

ContentProviderProxy.java (https://github.com/Qihoo360/Lipland.git) Java · 288 lines

29 import android.content.OperationApplicationException;

30 import android.content.res.AssetFileDescriptor;

31 import android.database.Cursor;

32 import android.net.Uri;

33 import android.os.Bundle;

ContentRepository.StlCache.cs (https://github.com/siteserver/cms.git) C# · 411 lines

58 }

59

60 var databaseType = _settingsManager.Database.DatabaseType;

61

62 if (!string.IsNullOrEmpty(group))

72

73 whereBuilder.Append(

74 $" ({nameof(Content.GroupNames)} = '{AttackUtils.FilterSql(trimGroup)}' OR {SqlUtils.GetInStr(databaseType, nameof(Content.GroupNames), trimGroup + ",")} OR {SqlUtils.GetInStr(databaseType, nameof(Content.GroupNames), "," + trimGroup + ",")} OR {SqlUtils.GetInStr(databaseType, nameof(Content.GroupNames), "," + trimGroup)}) OR ");

75 }

76 whereBuilder.Length -= 3;

93

94 whereBuilder.Append(

95 $" ({nameof(Content.GroupNames)} <> '{trimGroup}' AND {SqlUtils.GetNotInStr(databaseType, nameof(Content.GroupNames), trimGroup + ",")} AND {SqlUtils.GetNotInStr(databaseType, nameof(Content.GroupNames), "," + trimGroup + ",")} AND {SqlUtils.GetNotInStr(databaseType, nameof(Content.GroupNames), "," + trimGroup)}) AND ");

96 }

97 whereBuilder.Length -= 4;

contents.html (https://github.com/gzorin/RSXGL.git) HTML · 105 lines

46 <ul>

47 <li><a href="lists.html" target="MainFrame">Mailing Lists</a>

48 <li><a href="bugs.html" target="MainFrame">Bug Database</a>

49 <li><a href="webmaster.html" target="MainFrame">Webmaster</a>

50 <li><a href="http://dri.freedesktop.org/" target="_parent">Mesa/DRI Wiki</a>

ContentProviderAdapter.java (https://bitbucket.org/penkzhou/android.git) Java · 59 lines

18 import android.content.ContentProvider;

19 import android.content.ContentValues;

20 import android.database.Cursor;

21 import android.net.Uri;

22

ContentType.php (https://github.com/fastslack/joomla-cms.git) PHP · 149 lines

21 * Constructor

22 *

23 * @param \JDatabaseDriver $db A database connector object

24 *

25 * @since 3.1

contents.md (https://bitbucket.org/deringer/laravel.git) Markdown · 118 lines

78 - [Unit Testing](/docs/testing)

79

80 ### Database

81

82 - [Configuration](/docs/database/config)

83 - [Raw Queries](/docs/database/raw)

84 - [Fluent Query Builder](/docs/database/fluent)

85 - [Eloquent ORM](/docs/database/eloquent)

86 - [Schema Builder](/docs/database/schema)

87 - [Migrations](/docs/database/migrations)

88 - [Redis](/docs/database/redis)

contentManagerMessages_en.properties (https://github.com/cdemagneval/Silverpeas-Core.git) Properties File · 52 lines

42 # Generic errors on database

43 contentManager.EX_CANT_QUERY_DATABASE = Impossible to execute a select on the database

44 contentManager.EX_UNKNOWN_CONTENT_PEAS = Content Peas unknown for this componant

45 contentManager.EX_CANT_LOAD_ASSO_CACHE = Impossible to load the cache

content.html (https://gitlab.com/ricoru21/py_incidencia) HTML · 236 lines

141 </pre>

142

143 You can also retrieve auto complete data from a remote database:

144 <pre data-language="javascript">

145 //auto complete's data is dynamically retrieved from server

content.inc.php (https://gitlab.com/mucill/sman7) PHP · 136 lines

2 /**

3 * Content class

4 * Class for showing content from database

5 *

6 * Copyright (C) 2007,2008 Arie Nugraha (dicarve@yahoo.com), Hendro Wicaksono (hendrowicaksono@yahoo.com)

ContentSourceTests.cs (https://github.com/lundbeck/n2cms.git) C# · 223 lines

13 {

14 [Test]

15 public void DatabaseSource_IsOrderedLast()

16 {

17 ContentSource cs = new ContentSource(new Fakes.FakeSecurityManager(), new SourceBase[] { new DatabaseSource(null, null), new ActiveContentSource() });

18

19 Assert.That(cs.Sources.Last(), Is.TypeOf<DatabaseSource>());

20 }

21

22 [Test]

23 public void DatabaseSource_IsOrdered_AfterInterfaceSource()

24 {

25 ContentSource cs = new ContentSource(new Fakes.FakeSecurityManager(), new SourceBase[] {

Content.php (https://github.com/friendica/friendica.git) PHP · 143 lines

24 use \BadMethodCallException;

25 use Friendica\Core\Protocol;

26 use Friendica\Database\Database;

27 use Friendica\Database\DBA;

28 use Friendica\Database\DBStructure;

29 use Friendica\DI;

30 use Friendica\Model\Post;

51 $fields['uri-id'] = $uri_id;

52

53 return DBA::insert('post-content', $fields, Database::INSERT_IGNORE);

54 }

55

ContentBlockController.class.php (https://github.com/quinta/quintacms.git) PHP · 229 lines

16 *

17 * This class is created by PageController which passes a reference to the main parent

18 * object and the ContentBlock object from the content_block table in the database.

19 *

20 *@author Erik Winn <sidewalksoftware@gmail.com>

ContentProducer.java (https://github.com/RoDaniel/featurehouse.git) Java · 81 lines

25 * a FieldContentProducer could be declined to get its contents from variables in

26 * an in-memory object, a setting from a configuration file, or even a field in

27 * a database record.</li>

28 *

29 * @author Eduardo Francos - InContext

CabinetFileMultiDelete.java (http://aipo.googlecode.com/svn/) Java · 153 lines

33 import com.aimluck.eip.cayenne.om.portlet.EipTCabinetFile;

34 import com.aimluck.eip.common.ALAbstractCheckList;

35 import com.aimluck.eip.orm.Database;

36 import com.aimluck.eip.orm.query.SelectQuery;

37 import com.aimluck.eip.services.accessctl.ALAccessControlConstants;

65

66 SelectQuery<EipTCabinetFile> query =

67 Database.query(EipTCabinetFile.class);

68 Expression exp =

69 ExpressionFactory.inDbExp(EipTCabinetFile.FILE_ID_PK_COLUMN, values);

102

103 // file???

104 Database.delete(file);

105 Database.commit();

114 if (fpathSize > 0) {

115 // ??????????????????????????

116 String orgId = Database.getDomainName();

117 for (i = 0; i < fpathSize; i++) {

118 ALStorageService.deleteFile(CabinetUtils.getSaveDirPath(orgId)

sqliteAdapter.php (http://swx-format.googlecode.com/svn/trunk/) PHP · 50 lines ✨ Summary

This PHP code defines a class sqliteAdapter that extends RecordSetAdapter. It creates an adapter for interacting with SQLite databases, allowing data to be retrieved and translated into specific local variables. The adapter sets up properties such as column names and rows from the database, making it easier to work with the data in other parts of the application.

1 <?php

2 /**

3 * This Adapter translates the specific Database type links to the data and pulls the data into very

4 * specific local variables to later be retrieved by the gateway and returned to the client.

5 *