Elgg  Version 4.x
ElggObject.php
Go to the documentation of this file.
1 <?php
15 class ElggObject extends \ElggEntity {
16 
20  public function getType() {
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() {
39  return (string) $this->title;
40  }
41 
45  public function setDisplayName($display_name) {
46  $this->title = $display_name;
47  }
48 }
$display_name
Definition: delete.php:19
getType()
{}
Definition: ElggObject.php:20
setDisplayName($display_name)
{}
Definition: ElggObject.php:45
$title
Definition: generic.php:50
prepareObject(\Elgg\Export\Entity $object)
{}
Definition: ElggObject.php:27
$description
Definition: record.php:15
if($email instanceof\Elgg\Email) $object
Definition: body.php:24
getDisplayName()
{}
Definition: ElggObject.php:38