const VIDEO = 'video';
const AUDIO = 'audio';
const LANGUAGE = 'language';
-
- public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
- {
- parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
- }
}
{
const LOCAL = 'local';
const GLOBAL = 'global';
-
- public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
- {
- parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
- }
}
const RECEIVED = 'received';
const COMMENTED = 'commented';
const CREATED = 'created';
-
- public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
- {
- parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
- }
}
class UserDefinedChannel extends Channel
{
- public function __construct(string $code = null, string $label = null, string $description = null, string $accessKey = null, string $path = null, int $uid = null, string $includeTags = null, string $excludeTags = null, string $fullTextSearch = null, int $mediaType = null, int $circle = null)
- {
- parent::__construct($code, $label, $description, $accessKey, $path, $uid, $includeTags, $excludeTags, $fullTextSearch, $mediaType, $circle);
- }
}
use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Channel as ChannelEntity;
use Friendica\Model\User;
-use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
-use Friendica\Core\Config\Capability\IManageConfigValues;
-use Friendica\Core\L10n;
-use Psr\Log\LoggerInterface;
final class Channel extends Timeline
{
- public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
- {
- parent::__construct($channel, $l10n, $logger, $config);
- }
-
/**
* List of available channels
*
use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Community as CommunityEntity;
-use Friendica\Content\Conversation\Repository\Channel;
-use Friendica\Core\Config\Capability\IManageConfigValues;
-use Friendica\Core\L10n;
use Friendica\Module\Conversation\Community as CommunityModule;
-use Psr\Log\LoggerInterface;
final class Community extends Timeline
{
- public function __construct(Channel $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
- {
- parent::__construct($channel, $l10n, $logger, $config);
- }
-
/**
* List of available communities
*
use Friendica\Content\Conversation\Collection\Timelines;
use Friendica\Content\Conversation\Entity\Network as NetworkEntity;
-use Friendica\Content\Conversation\Repository\Channel;
-use Friendica\Core\Config\Capability\IManageConfigValues;
-use Friendica\Core\L10n;
-use Psr\Log\LoggerInterface;
final class Network extends Timeline
{
- public function __construct(Channel $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
- {
- parent::__construct($channel, $l10n, $logger, $config);
- }
-
/**
* List of available network timelines
*
namespace Friendica\Content\Conversation\Factory;
use Friendica\Content\Conversation\Collection\Timelines;
-use Friendica\Content\Conversation\Repository\Channel as ChannelRepository;
-use Friendica\Core\Config\Capability\IManageConfigValues;
-use Friendica\Core\L10n;
-use Psr\Log\LoggerInterface;
final class UserDefinedChannel extends Timeline
{
- public function __construct(ChannelRepository $channel, L10n $l10n, LoggerInterface $logger, IManageConfigValues $config)
- {
- parent::__construct($channel, $l10n, $logger, $config);
- }
-
/**
* List of available user defined channels
*
*/
public function getForUser(int $uid): Timelines
{
+ $tabs = [];
foreach ($this->channelRepository->selectByUid($uid) as $channel) {
$tabs[] = $channel;
}