29 unset(
$vars[
'timestamp']);
32 unset(
$vars[
'format']);
51 $next_step_ts = (int) ceil(
$dt->getTimestamp() /
$step) *
$step;
52 $dt->setTimestamp($next_step_ts);
70 $dt =
new DateTime(
'now',
new DateTimeZone(
'UTC'));
73 $dt->setTimestamp($ts);
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
$ts
CSRF security token view for use with secure forms.
static normalizeTime($time)
Returns DateTime object based on time representation.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.