Exemplo n.º 1
0
 public function __construct(CM_Model_StreamChannel_Abstract $streamChannel)
 {
     $source = new CM_PagingSource_Sql('DISTINCT `userId`', 'cm_stream_publish', '`channelId` = ' . $streamChannel->getId());
     $source->enableCache();
     parent::__construct($source);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $source = new CM_PagingSource_Sql('userId', 'cm_user_online');
     parent::__construct($source);
 }
Exemplo n.º 3
0
 public function __construct(CM_Model_StreamChannel_Abstract $streamChannel)
 {
     $pagings = array($streamChannel->getPublishers(), $streamChannel->getSubscribers());
     $source = new CM_PagingSource_Pagings($pagings, true);
     parent::__construct($source);
 }
Exemplo n.º 4
0
 public function __construct()
 {
     $source = new CM_PagingSource_Sql('userId', 'cm_user_online');
     $source->enableCacheLocal(1);
     parent::__construct($source);
 }