*/
protected function initialise_attributes() {
elgg_deprecated_notice('ElggFile::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8);
+ $this->initializeAttributes();
}
/**
// 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() {
* 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";
}
/**