File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
library/Notifications/Model Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1111use ipl \Orm \Model ;
1212use ipl \Orm \Query ;
1313use ipl \Orm \Relations ;
14- use ipl \Sql \Connection ;
1514use ipl \Web \Widget \Icon ;
1615
1716/**
@@ -107,24 +106,4 @@ public function getIcon(): Icon
107106
108107 return $ icon ;
109108 }
110-
111- /**
112- * Fetch and map all the configured channel names to a key => value array
113- *
114- * @param Connection $conn
115- *
116- * @return string[] All the channel names mapped as id => name
117- */
118- public static function fetchChannelNames (Connection $ conn ): array
119- {
120- $ channels = [];
121- $ query = Channel::on ($ conn );
122- /** @var Channel $channel */
123- foreach ($ query as $ channel ) {
124- $ name = $ channel ->name ;
125- $ channels [$ channel ->id ] = $ name ;
126- }
127-
128- return $ channels ;
129- }
130109}
You can’t perform that action at this time.
0 commit comments