Ingo_Basic_Spam::url PHP Метод

url() публичный статический Метод

public static url ( array $opts = [] )
$opts array
    public static function url(array $opts = array())
    {
        if (empty($opts['append_session'])) {
            $opts['append_session'] = 0;
        }
        return Horde::url('basic.php', true, array('append_session' => $opts['append_session']))->add('page', 'spam');
    }

Usage Example

Пример #1
0
 /**
  */
 protected function _content()
 {
     global $injector, $session;
     /* Get list of filters */
     $filters = Ingo_Storage_FilterIterator_Match::create($injector->getInstance('Ingo_Factory_Storage')->create(), $session->get('ingo', 'script_categories'));
     $html = '<table class="ingoBlockSummary">';
     foreach ($filters as $rule) {
         $active = $rule->disable ? _("inactive") : _("active");
         switch (get_class($rule)) {
             case 'Ingo_Rule_System_Vacation':
                 $html .= '<tr><td>' . '<span class="iconImg vacationImg"></span>' . '</td><td>' . Ingo_Basic_Vacation::url()->link(array('title' => _("Edit"))) . _("Vacation") . '</a> ' . $active . '</td></tr>';
                 break;
             case 'Ingo_Rule_System_Forward':
                 $html .= '<tr><td>' . '<span class="iconImg forwardImg"></span>' . '</td><td>' . Ingo_Basic_Forward::url()->link(array('title' => _("Edit"))) . _("Forward") . '</a> ' . $active;
                 $addr = $rule->addresses;
                 if (!empty($addr)) {
                     $html .= ':<br />' . implode('<br />', $addr);
                 }
                 $html .= '</td></tr>';
                 break;
             case 'Ingo_Rule_System_Whitelist':
                 $html .= '<tr><td>' . '<span class="iconImg whitelistImg"></span>' . '</td><td>' . Ingo_Basic_Whitelist::url()->link(array('title' => _("Edit"))) . _("Whitelist") . '</a> ' . $active . '</td></tr>';
                 break;
             case 'Ingo_Rule_System_Blacklist':
                 $html .= '<tr><td>' . '<span class="iconImg blacklistImg"></span>' . '</td><td>' . Ingo_Basic_Blacklist::url()->link(array('title' => _("Edit"))) . _("Blacklist") . '</a> ' . $active . '</td></tr>';
                 break;
             case 'Ingo_Rule_Spam Filter':
                 $html .= '<tr><td>' . '<span class="iconImg spamImg"></span>' . '</td><td>' . Ingo_Basic_Spam::url()->link(array('title' => _("Edit"))) . _("Spam Filter") . '</a> ' . $active . '</td></tr>';
                 break;
         }
     }
     return $html . '</table>';
 }
All Usage Examples Of Ingo_Basic_Spam::url
Ingo_Basic_Spam