aboutsummaryrefslogtreecommitdiff
path: root/lib/Videolist/PlatformInterface.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-09 17:05:57 -0400
committerSteve Clay <steve@mrclay.org>2012-04-09 17:05:57 -0400
commitf399afdd2e3cc072efaca069b7a874c7801b31f6 (patch)
treea2f5d4fb13f5d2b142953451f37294d4b8981598 /lib/Videolist/PlatformInterface.php
parente80bb29671b7887d5749a9eb147be38e6f0401f4 (diff)
downloadelgg-f399afdd2e3cc072efaca069b7a874c7801b31f6.tar.gz
elgg-f399afdd2e3cc072efaca069b7a874c7801b31f6.tar.bz2
switched to platform classes. see https://github.com/Elgg/videolist/issues/4
Diffstat (limited to 'lib/Videolist/PlatformInterface.php')
-rw-r--r--lib/Videolist/PlatformInterface.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Videolist/PlatformInterface.php b/lib/Videolist/PlatformInterface.php
new file mode 100644
index 000000000..25ca019e9
--- /dev/null
+++ b/lib/Videolist/PlatformInterface.php
@@ -0,0 +1,23 @@
+<?php
+
+interface Videolist_PlatformInterface {
+ /**
+ * @abstract
+ * @return string
+ */
+ public function getType();
+
+ /**
+ * @abstract
+ * @param string $url
+ * @return array
+ */
+ public function parseUrl($url);
+
+ /**
+ * @abstract
+ * @param array $parsed
+ * @return array
+ */
+ public function getData($parsed);
+}