Elgg  Version master
Data.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Export;
4 
6 use Elgg\Values;
7 
13 abstract class Data extends \ArrayObject {
14 
18  public function __construct($input = [], int $flags = \ArrayObject::ARRAY_AS_PROPS, string $iterator_class = \ArrayIterator::class) {
19  parent::__construct($input, $flags, $iterator_class);
20  }
21 
27  public function getTimeCreated() {
28  if (!$this->time_created) {
29  return null;
30  }
31 
32  return Values::normalizeTime($this->time_created);
33  }
34 }
Saves user notification settings.
__construct($input=[], int $flags=\ArrayObject::ARRAY_AS_PROPS, string $iterator_class=\ArrayIterator::class)
{}
Definition: Data.php:18
getTimeCreated()
Get time created.
Definition: Data.php:27
$input
Form field view.
Definition: field.php:13
static normalizeTime($time)
Returns DateTime object based on time representation.
Definition: Values.php:75