Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/inc/class.dc.spamfilter.php

    r2322 r2566  
    2020     public $auto_delete = false; 
    2121     public $help = null; 
    22       
     22 
    2323     protected $has_gui = false; 
    2424     protected $gui_url = null; 
    25       
     25 
    2626     protected $core; 
    27       
     27 
    2828     /** 
    2929     Object constructor 
    30       
     30 
    3131     @param    core      <b>dcCore</b>       Dotclear core object 
    3232     */ 
     
    3535          $this->core =& $core; 
    3636          $this->setInfo(); 
    37            
     37 
    3838          if (!$this->name) { 
    3939               $this->name = get_class($this); 
    4040          } 
    41            
     41 
    4242          $this->gui_url = 'plugin.php?p=antispam&f='.get_class($this); 
    4343     } 
    44       
     44 
    4545     /** 
    4646     This method is called by the constructor and allows you to change some 
     
    5151          $this->description = __('No description'); 
    5252     } 
    53       
     53 
    5454     /** 
    5555     This method should return if a comment is a spam or not. If it returns true 
    5656     or false, execution of next filters will be stoped. If should return nothing 
    5757     to let next filters apply. 
    58       
     58 
    5959     Your filter should also fill $status variable with its own information if 
    6060     comment is a spam. 
    61       
     61 
    6262     @param         type      <b>string</b>       Comment type (comment or trackback) 
    6363     @param         author    <b>string</b>       Comment author 
     
    7373     { 
    7474     } 
    75       
     75 
    7676     /** 
    7777     This method is called when a non-spam (ham) comment becomes spam or when a 
    7878     spam becomes a ham. 
    79       
     79 
    8080     @param    type      <b>string</b>       Comment type (comment or trackback) 
    8181     @param    filter    <b>string</b>       Filter name 
     
    9292     { 
    9393     } 
    94       
     94 
    9595     /** 
    9696     This method returns filter status message. You can overload this method to 
    9797     return a custom message. Message is shown in comment details and in 
    9898     comments list. 
    99       
     99 
    100100     @param    status         <b>string</b>       Filter status. 
    101101     @param    comment_id     <b>record</b>       Comment record 
     
    106106          return sprintf(__('Filtered by %1$s (%2$s)'),$this->guiLink(),$status); 
    107107     } 
    108       
     108 
    109109     /** 
    110110     This method is called when you enter filter configuration. Your class should 
    111111     have $has_gui property set to "true" to enable GUI. 
    112       
     112 
    113113     In this method you should put everything related to filter configuration. 
    114114     $url variable is the URL of GUI <i>unescaped</i>. 
    115       
     115 
    116116     @param    url       <b>string</b>       GUI URL. 
    117117     */ 
     
    119119     { 
    120120     } 
    121       
     121 
    122122     public function hasGUI() 
    123123     { 
     
    125125               return false; 
    126126          } 
    127            
     127 
    128128          if (!$this->has_gui) { 
    129129               return false; 
    130130          } 
    131            
     131 
    132132          return true; 
    133133     } 
    134       
     134 
    135135     public function guiURL() 
    136136     { 
     
    138138               return false; 
    139139          } 
    140            
     140 
    141141          return $this->gui_url; 
    142142     } 
    143       
     143 
    144144     /** 
    145145     Returns a link to filter GUI if exists or only filter name if has_gui 
    146146     property is false. 
    147       
     147 
    148148     @return   <b>string</b> 
    149149     */ 
     
    156156               $link = '%1$s'; 
    157157          } 
    158            
     158 
    159159          return sprintf($link,$this->name,$url); 
    160160     } 
     
    164164     } 
    165165} 
    166 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map