Page MenuHomeGitPull.it

D108.1772611943.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D108.1772611943.diff

diff --git a/include/wb/StatementLocalMedia.php b/include/wb/StatementLocalMedia.php
new file mode 100644
--- /dev/null
+++ b/include/wb/StatementLocalMedia.php
@@ -0,0 +1,44 @@
+<?php
+# Boz-MW - Another MediaWiki API handler in PHP
+# Copyright (C) 2017, 2018 Valerio Bozzolan
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Wikibase
+namespace wb;
+
+/**
+ * A StatementString is a Statement that contains a SnakString.
+ */
+class StatementLocalMedia extends Statement
+{
+
+ /**
+ * @param $property string Property as 'P123'
+ * @param $filename string File name as 'File:Example.png'
+ */
+ public function __construct($property, $filename)
+ {
+ parent::__construct(new SnakLocalMedia($property, $filename));
+ }
+
+ /**
+ * @param $property string Property as 'P123'
+ * @param $filename string File name as 'File:Example.png'
+ */
+ public static function factory($property, $filename)
+ {
+ return new self($property, $filename);
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 4, 09:12 (14 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1711478
Default Alt Text
D108.1772611943.diff (1 KB)

Event Timeline