Elgg  Version 2.3
ElggIcon.php
Go to the documentation of this file.
1 <?php
2 
6 class ElggIcon extends ElggFile {
7 
11  protected function initializeAttributes() {
12  parent::initializeAttributes();
13 
14  $this->attributes['subtype'] = 'icon';
15  }
16 
20  public function save() {
21  throw new \LogicException(__CLASS__ . ' instances exist as placeholders and can not be upgraded to entities');
22  }
23 }
Entity icon class.
Definition: ElggIcon.php:6
initializeAttributes()
{Set subtype to 'file'.void}
Definition: ElggIcon.php:11
save()
{Save the file.Write the file's data to the filestore and save the corresponding entity....
Definition: ElggIcon.php:20