Elgg  Version master
ElggIcon.php
Go to the documentation of this file.
1 <?php
2 
4 
8 class ElggIcon extends ElggFile {
9 
13  protected function initializeAttributes() {
14  parent::initializeAttributes();
15 
16  $this->attributes['subtype'] = 'icon';
17  }
18 
24  public function save(): bool {
25  throw new ElggLogicException(__CLASS__ . ' instances exist as placeholders and can not be upgraded to entities');
26  }
27 }
save()
{}
Definition: ElggIcon.php:24
Entity icon class.
Definition: ElggIcon.php:8
initializeAttributes()
{}
Definition: ElggIcon.php:13