public function __construct(IDb $api, UserOnlineMapper $userOnlineMapper, UserMapper $userMapper) { parent::__construct($api, 'chat_och_push_messages'); // tablename is news_feeds $this->userOnlineMapper = $userOnlineMapper; $this->userMapper = $userMapper; }
public function __construct($appName, $logger, $db, $userManager) { parent::__construct($db, 'users_mapping'); $this->appName = $appName; $this->logger = $logger; $this->db = $db; $this->userManager = $userManager; $this->logCtx = array('app' => $this->appName); }
protected function findEntities($sql, array $params = [], $limit = null, $offset = null) { if (isset($_GET['page']) && isset($_GET['per_page']) && !empty($_GET['page']) && !empty($_GET['per_page'])) { $limit = (int) $_GET['per_page']; $page = (int) $_GET['page']; if ($limit > 0 && $page > 0) { $offset = ($page - 1) * $limit; } else { $limit = null; } } return parent::findEntities($sql, $params, $limit, $offset); }
public function testFindEntitiesMultiple() { $sql = 'hi'; $rows = array(array('pre_name' => 'jo'), array('email' => 'ho')); $entity1 = new Example(); $entity1->setPreName('jo'); $entity1->resetUpdatedFields(); $entity2 = new Example(); $entity2->setEmail('ho'); $entity2->resetUpdatedFields(); $this->setMapperResult($sql, array(), $rows); $result = $this->mapper->findAllEntities($sql); $this->assertEquals(array($entity1, $entity2), $result); }
public function __construct(IDBConnection $db) { parent::__construct($db, 'maps_location_track_users', '\\OCA\\Maps\\Db\\Device'); }
public function __construct(IDb $db, ConversationStateMapper $cmapper) { parent::__construct($db, 'ocsms_smsdatas'); $this->convStateMapper = $cmapper; }
public function __construct(IDb $db) { parent::__construct($db, 'pilot_logbook', '\\OCA\\PilotLogbook\\Db\\Flight'); }
public function __construct(IDb $db) { parent::__construct($db, 'passwords', '\\OCA\\Passwords\\Db\\Password'); }
public function __construct(IDb $db, ILogger $logger) { parent::__construct($db, 'lucene_status', '\\OCA\\Search_Lucene\\Db\\Status'); $this->logger = $logger; }
public function __construct(IDBConnection $db) { parent::__construct($db, 'maps_locations', '\\OCA\\Maps\\Db\\Location'); }
public function __construct(IDb $db, $uid) { parent::__construct($db, $this->table, 'OCA\\secure_container\\Db\\Path'); $this->uid = $uid; }
/** * SQLStorageRepository constructor. * @param IDb $db */ public function __construct(IDb $db) { parent::__construct($db, 'uc_storageusage', null); }
public function __construct(IDb $db) { parent::__construct($db, 'files_avir_status', '\\OCA\\Files_Antivirus\\Db\\Rule'); }
public function __construct(IDb $api, $user, $crypto) { parent::__construct($api, 'chat_config'); $this->user = $user; $this->crypto = $crypto; }
public function __construct(IDb $db) { parent::__construct($db, 'music_artists', '\\OCA\\Music\\Db\\Artist'); }
public function __construct(IDb $db, $table, $entity) { parent::__construct($db, $table, $entity); }
/** * Constructor. * * @param IDBConnection $db Instance of the Db abstraction layer. */ public function __construct(IDBConnection $db) { parent::__construct($db, 'vcategory', 'OC\\Tagging\\Tag'); }
public function __construct(IDb $db) { parent::__construct($db, 'music_tracks', '\\OCA\\Music\\Db\\Track'); }
/** * @param IDb $db */ public function __construct(IDb $db) { $this->db = $db; parent::__construct($db, 'uc_chartconfig', '\OCA\ocUsageCharts\Entity\ChartConfig'); }
public function __construct(IDb $api) { parent::__construct($api, 'chat_och_conversations'); // tablename is news_feeds }
public function __construct(IDb $db) { parent::__construct($db, 'snanny_system'); }
public function __construct(IDb $api) { parent::__construct($api, 'chat_och_users_online'); // tablename is news_feeds }
public function __construct(IDb $db) { parent::__construct($db, 'files_antivirus', '\\OCA\\Files_Antivirus\\Db\\Item'); }
public function __construct(IDb $db) { parent::__construct($db, 'ownboard_category'); }
public function __construct(IDb $db) { parent::__construct($db, 'snanny_observation_index_history'); }
public function __construct(IDBConnection $db) { parent::__construct($db, 'authtoken'); }
public function __construct(IDBConnection $db) { parent::__construct($db, 'maps_favorites', '\\OCA\\Maps\\Db\\Favorite'); }
public function __construct(IDb $db) { parent::__construct($db, 'tasks_tasks', '\\OCA\\Tasks\\Db\\Tasks'); }
/** * @param IDb $db */ public function __construct(IDb $db) { $this->db = $db; parent::__construct($db, 'uc_storageusage', '\\OCA\\ocUsageCharts\\Entity\\StorageUsage'); }
/** * ObservationModelMapper constructor. * @param IDb $db database access */ public function __construct(IDb $db) { parent::__construct($db, 'snanny_observation_model'); }