diff options
Diffstat (limited to 'app/class/Medialist.php')
-rw-r--r-- | app/class/Medialist.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/class/Medialist.php b/app/class/Medialist.php index c597505..e716845 100644 --- a/app/class/Medialist.php +++ b/app/class/Medialist.php @@ -127,7 +127,20 @@ class Medialist extends Item if (array_diff(self::TYPES, $this->type) != []) { $query['type'] = $this->type; } - return '%MEDIA?' . urldecode(http_build_query($query)) . '%'; + return urldecode(http_build_query($query)); + } + + /** + * Get the code to insert directly + */ + public function getcode(): string + { + return '%MEDIA?' . $this->getquery() . '%'; + } + + public function getadress(): string + { + return '?' . $this->getquery(); } |