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'");
if(! $user||! $user->canDelete()) $name
if(!empty($avatar) &&! $avatar->isValid()) elseif(empty($avatar)) if(! $owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
Functions for use as event handlers or other situations where you need a globally accessible callable...
Table column rendered by a function.
Factory for table column objects.
fromMethod($name, $heading=null, $args=[])
Make a column by calling a method on the item.
fromView($name, $heading=null, $vars=[])
Make a column from one of the page/components/column/* views.
fromProperty($name, $heading=null)
Make a column by reading a property of the item.
__call($name, $arguments)
Provide additional methods via events and specified language keys.
Table column rendered by a view.
_elgg_services()
Get the global service provider.
A renderer for a column of table cells and a header.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
elgg_language_key_exists(string $key, string $language='en')
Check if a given language key exists.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_ucwords($str)
Wrapper for mb_convert_case($str, MB_CASE_TITLE)