Review Updates
Remove unused function. Add function headers.
This commit is contained in:
parent
510e0dbb2e
commit
1f1a16b6b2
1 changed files with 10 additions and 22 deletions
|
@ -38,28 +38,11 @@ class ContactSelector
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function contact_reputation($current)
|
/**
|
||||||
{
|
* @param string $current current
|
||||||
$o = '';
|
* @param boolean $disabled optional, default false
|
||||||
$o .= "<select id=\"contact-reputation-selector\" name=\"reputation\" />\r\n";
|
* @return object
|
||||||
|
*/
|
||||||
$rep = array(
|
|
||||||
0 => t('Unknown | Not categorised'),
|
|
||||||
1 => t('Block immediately'),
|
|
||||||
2 => t('Shady, spammer, self-marketer'),
|
|
||||||
3 => t('Known to me, but no opinion'),
|
|
||||||
4 => t('OK, probably harmless'),
|
|
||||||
5 => t('Reputable, has my trust')
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($rep as $k => $v) {
|
|
||||||
$selected = (($k == $current) ? " selected=\"selected\" " : "");
|
|
||||||
$o .= "<option value=\"$k\" $selected >$v</option>\r\n";
|
|
||||||
}
|
|
||||||
$o .= "</select>\r\n";
|
|
||||||
return $o;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function pollInterval($current, $disabled = false)
|
public static function pollInterval($current, $disabled = false)
|
||||||
{
|
{
|
||||||
$dis = (($disabled) ? ' disabled="disabled" ' : '');
|
$dis = (($disabled) ? ' disabled="disabled" ' : '');
|
||||||
|
@ -83,6 +66,11 @@ class ContactSelector
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $s network
|
||||||
|
* @param string $profile optional, default empty
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
public static function networkToName($s, $profile = "")
|
public static function networkToName($s, $profile = "")
|
||||||
{
|
{
|
||||||
$nets = array(
|
$nets = array(
|
||||||
|
|
Loading…
Reference in a new issue