/** * @param CM_Model_User $user */ public function __construct(CM_Model_User $user) { $source = new CM_PagingSource_Sql('id', 'cm_stream_publish', '`userId` = ' . $user->getId()); parent::__construct($source); }
/** * @param CM_Model_StreamChannel_Abstract $streamChannel */ public function __construct(CM_Model_StreamChannel_Abstract $streamChannel) { $source = new CM_PagingSource_Sql('id', 'cm_stream_publish', '`channelId` = ' . $streamChannel->getId()); $source->enableCache(); parent::__construct($source); }