54 $view =
"page/components/column/$name";
56 if (!is_string($heading)) {
58 $heading =
elgg_echo(
"table_columns:fromView:$name");
77 if (!is_string($heading)) {
79 $heading =
elgg_echo(
"table_columns:fromProperty:$name");
103 if (!is_string($heading)) {
105 $heading =
elgg_echo(
"table_columns:fromMethod:$name");
140 'arguments' => $arguments,
147 array_unshift($arguments,
$name);
148 return call_user_func_array([$this,
'fromView'], $arguments);
152 array_unshift($arguments,
$name);
153 return call_user_func_array([$this,
'fromProperty'], $arguments);
157 array_unshift($arguments,
$name);
158 return call_user_func_array([$this,
'fromMethod'], $arguments);
162 _elgg_services()->logger->error(__CLASS__ .
": No method defined '$name'");
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
fromView($name, $heading=null, $vars=[])
Make a column from one of the page/components/column/* views.
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
fromProperty($name, $heading=null)
Make a column by reading a property of the item.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
Table column rendered by a view.
Table column rendered by a function.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
__call($name, $arguments)
Provide additional methods via hook and specified language keys.
fromMethod($name, $heading=null, $args=[])
Make a column by calling a method on the item.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
Factory for table column objects.
A renderer for a column of table cells and a header.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
elgg_ucwords($str)
Wrapper for mb_convert_case($str, MB_CASE_TITLE)