]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moved the file class into a class file
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 14:10:57 +0000 (14:10 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 14:10:57 +0000 (14:10 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7742 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/file/classes/FilePluginFile.php [new file with mode: 0644]
mod/file/start.php

diff --git a/mod/file/classes/FilePluginFile.php b/mod/file/classes/FilePluginFile.php
new file mode 100644 (file)
index 0000000..7397bfa
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * Override the ElggFile
+ */
+class FilePluginFile extends ElggFile {
+       protected function  initializeAttributes() {
+               parent::initializeAttributes();
+
+               $this->attributes['subtype'] = "file";
+       }
+
+       public function __construct($guid = null) {
+               parent::__construct($guid);
+       }
+}
index 64533616cf660223596123eb4ebd33e9fb506282..ff0dcbc48efb4eb8c6d0744c7b76089fbee25139 100644 (file)
@@ -5,21 +5,6 @@
  * @package ElggFile
  */
 
-/**
- * Override the ElggFile so that
- */
-class FilePluginFile extends ElggFile {
-       protected function initialise_attributes() {
-               parent::initialise_attributes();
-
-               $this->attributes['subtype'] = "file";
-       }
-
-       public function __construct($guid = null) {
-               parent::__construct($guid);
-       }
-}
-
 
 /**
  * File plugin initialisation functions.