]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
finished the conversion to initializeAttributes()
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 22:14:00 +0000 (22:14 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 22:14:00 +0000 (22:14 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7145 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggFile.php
engine/tests/objects/entities.php
mod/blog/classes/ElggBlog.php

index bf6732ca4fd4ec3d8ece15d802d05f8eaf943525..46cd0b6a0ddffca7fa4911678443fa5e6e0dbca7 100644 (file)
@@ -36,6 +36,7 @@ class ElggFile extends ElggObject {
         */
        protected function initialise_attributes() {
                elgg_deprecated_notice('ElggFile::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8);
+               $this->initializeAttributes();
        }
 
        /**
index b6b1b9b59c5c2a7a57f4ec9221ec2244e977a6fc..e147c0a3cc994aa3f118b91875131ec1f0b0fea6 100644 (file)
@@ -227,7 +227,7 @@ class ElggCoreEntityTest extends ElggCoreUnitTest {
 // ElggEntity is an abstract class with no abstact methods.
 class ElggEntityTest extends ElggEntity {
        public function __construct() {
-               $this->initialise_attributes();
+               $this->initializeAttributes();
        }
 
        public function expose_attributes() {
index 8dfe0585cb23cdd6788f31be18c84c04b9aaf235..7a64a17772321adb4354d36e899e3d57c021a9c1 100644 (file)
@@ -3,11 +3,14 @@
  * Extended class to override the time_created
  */
 class ElggBlog extends ElggObject {
-       protected function initialise_attributes() {
-               parent::initialise_attributes();
 
-               // override the default file subtype.
-               $this->attributes['subtype'] = 'blog';
+       /**
+        * Set subtype to blog.
+        */
+       protected function initializeAttributes() {
+               parent::initializeAttributes();
+
+               $this->attributes['subtype'] = "blog";
        }
 
        /**