Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db, 'maps_location_track_users', '\\OCA\\Maps\\Db\\Device');
 }
Ejemplo n.º 6
0
 public function __construct(IDb $db, ConversationStateMapper $cmapper)
 {
     parent::__construct($db, 'ocsms_smsdatas');
     $this->convStateMapper = $cmapper;
 }
Ejemplo n.º 7
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'pilot_logbook', '\\OCA\\PilotLogbook\\Db\\Flight');
 }
Ejemplo n.º 8
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'passwords', '\\OCA\\Passwords\\Db\\Password');
 }
Ejemplo n.º 9
0
 public function __construct(IDb $db, ILogger $logger)
 {
     parent::__construct($db, 'lucene_status', '\\OCA\\Search_Lucene\\Db\\Status');
     $this->logger = $logger;
 }
Ejemplo n.º 10
0
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db, 'maps_locations', '\\OCA\\Maps\\Db\\Location');
 }
Ejemplo n.º 11
0
 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);
 }
Ejemplo n.º 13
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'files_avir_status', '\\OCA\\Files_Antivirus\\Db\\Rule');
 }
Ejemplo n.º 14
0
 public function __construct(IDb $api, $user, $crypto)
 {
     parent::__construct($api, 'chat_config');
     $this->user = $user;
     $this->crypto = $crypto;
 }
Ejemplo n.º 15
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'music_artists', '\\OCA\\Music\\Db\\Artist');
 }
Ejemplo n.º 16
0
 public function __construct(IDb $db, $table, $entity) {
     parent::__construct($db, $table, $entity);
 }
Ejemplo n.º 17
0
 /**
  * Constructor.
  *
  * @param IDBConnection $db Instance of the Db abstraction layer.
  */
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db, 'vcategory', 'OC\\Tagging\\Tag');
 }
Ejemplo n.º 18
0
 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');
 }
Ejemplo n.º 20
0
 public function __construct(IDb $api)
 {
     parent::__construct($api, 'chat_och_conversations');
     // tablename is news_feeds
 }
Ejemplo n.º 21
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'snanny_system');
 }
Ejemplo n.º 22
0
 public function __construct(IDb $api)
 {
     parent::__construct($api, 'chat_och_users_online');
     // tablename is news_feeds
 }
Ejemplo n.º 23
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'files_antivirus', '\\OCA\\Files_Antivirus\\Db\\Item');
 }
Ejemplo n.º 24
0
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'ownboard_category');
 }
 public function __construct(IDb $db)
 {
     parent::__construct($db, 'snanny_observation_index_history');
 }
Ejemplo n.º 26
0
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db, 'authtoken');
 }
Ejemplo n.º 27
0
 public function __construct(IDBConnection $db)
 {
     parent::__construct($db, 'maps_favorites', '\\OCA\\Maps\\Db\\Favorite');
 }
Ejemplo n.º 28
0
 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');
 }