Elgg  Version master
ElggObject.php
Go to the documentation of this file.
1 <?php
15 class ElggObject extends \ElggEntity {
16 
20  public function getType(): string {
21  return 'object';
22  }
23 
27  protected function prepareObject(\Elgg\Export\Entity $object) {
28  $object = parent::prepareObject($object);
29  $object->title = $this->getDisplayName();
30  $object->description = $this->description;
31  $object->tags = $this->tags ? $this->tags : [];
32  return $object;
33  }
34 
38  public function getDisplayName(): string {
39  return (string) $this->title;
40  }
41 
45  public function setDisplayName(string $display_name): void {
46  $this->title = $display_name;
47  }
48 }
getType()
{}
Definition: ElggObject.php:20
$title
Definition: generic.php:50
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
Definition: LICENSE.txt:215
prepareObject(\Elgg\Export\Entity $object)
{}
Definition: ElggObject.php:27
$description
Definition: record.php:15
setDisplayName(string $display_name)
{}
Definition: ElggObject.php:45
if($email instanceof\Elgg\Email) $object
Definition: body.php:24
getDisplayName()
{}
Definition: ElggObject.php:38
if(!$new_container instanceof\ElggEntity) if(!$new_container->canWriteToContainer(0, $entity->type, $entity->subtype)) $display_name