Improvements:

- Fix API-select
- Introduce OTYPE-constants
- Rename `IntroductionFactory` methods
This commit is contained in:
nupplaPhil 2020-01-26 14:30:32 +01:00
parent 74f3a2f90c
commit b85511b00d
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
5 changed files with 14 additions and 8 deletions

View file

@ -63,7 +63,7 @@ class IntroductionFactory extends BaseFactory
*
* @return Introduction[]
*/
public function getIntroList(bool $all = false, int $start = 0, int $limit = BaseNotifications::DEFAULT_PAGE_LIMIT, int $id = 0)
public function getList(bool $all = false, int $start = 0, int $limit = BaseNotifications::DEFAULT_PAGE_LIMIT, int $id = 0)
{
$sql_extra = "";
@ -128,7 +128,7 @@ class IntroductionFactory extends BaseFactory
// Normal connection requests
} else {
$notification = $this->getMissingIntroData($notification);
$notification = $this->getMissingData($notification);
if (empty($notification['url'])) {
continue;
@ -182,7 +182,7 @@ class IntroductionFactory extends BaseFactory
*
* @throws InternalServerErrorException
*/
private function getMissingIntroData(array $intro)
private function getMissingData(array $intro)
{
// If the network and the addr isn't available from the gcontact
// table entry, take the one of the contact table entry