Revize 2a205303
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/helpers/callback.php | ||
---|---|---|
echo ' ';
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Callback field for member name and member ID. Leaves blank name if needed.
|
||
*
|
||
* @author Ondřej Fibich
|
||
* @param object $item
|
||
* @param string $name
|
||
*/
|
||
public static function member_field_with_id($item, $name, $args = array())
|
||
{
|
||
if ($item->member_id)
|
||
{
|
||
if ($item->member_name)
|
||
{
|
||
$title = $item->member_name . ' (' . $item->member_id . ')';
|
||
}
|
||
else
|
||
{
|
||
$title = $item->member_id;
|
||
}
|
||
echo html::anchor("members/show/$item->member_id", $title);
|
||
}
|
||
else
|
||
{
|
||
echo ' ';
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Callback function to print type of member
|
||
... | ... | |
public static function member_type_field ($item, $name)
|
||
{
|
||
echo Member_Model::get_type($item->$name);
|
||
// redirection flag
|
||
if (property_exists($item, 'interrupt') && $item->interrupt)
|
||
{
|
||
echo ' (' . __('I') . ')';
|
||
}
|
||
}
|
||
|
||
/**
|
Také k dispozici: Unified diff
Release 1.1.10