60 $view =
"page/components/column/$name";
62 if (!is_string($heading)) {
64 $heading =
elgg_echo(
"table_columns:fromView:$name");
83 if (!is_string($heading)) {
85 $heading =
elgg_echo(
"table_columns:fromProperty:$name");
109 if (!is_string($heading)) {
111 $heading =
elgg_echo(
"table_columns:fromMethod:$name");
146 'arguments' => $arguments,
153 array_unshift($arguments,
$name);
154 return call_user_func_array([$this,
'fromView'], $arguments);
158 array_unshift($arguments,
$name);
159 return call_user_func_array([$this,
'fromProperty'], $arguments);
163 array_unshift($arguments,
$name);
164 return call_user_func_array([$this,
'fromMethod'], $arguments);
168 _elgg_services()->logger->error(__CLASS__ .
": No method defined '$name'");
fromView($name, $heading=null, $vars=[])
Make a column from one of the page/components/column/* views.
Saves user notification settings.
if(!$user||!$user->canDelete()) $name
fromProperty($name, $heading=null)
Make a column by reading a property of the item.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
Table column rendered by a view.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
Table column rendered by a function.
__call($name, $arguments)
Provide additional methods via events and specified language keys.
fromMethod($name, $heading=null, $args=[])
Make a column by calling a method on the item.
Factory for table column objects.
A renderer for a column of table cells and a header.
_elgg_services()
Get the global service provider.
elgg_ucwords($str)
Wrapper for mb_convert_case($str, MB_CASE_TITLE)