The Model class of the spamfilter module. More...
Public Member Functions | |
init () | |
Initialization. More... | |
getConfig () | |
Return the user setting values of the Spam filter module. More... | |
getDeniedIPList () | |
Return the list of registered IP addresses which were banned. More... | |
isDeniedIP () | |
Check if the ipaddress is in the list of banned IP addresses. More... | |
getDeniedWordList () | |
Return the list of registered Words which were banned. More... | |
isDeniedWord ($text) | |
Check if the text, received as a parameter, is banned or not. More... | |
checkLimited ($isMessage=FALSE) | |
Check the specified time. More... | |
isInsertedTrackback ($document_srl) | |
Check if the trackbacks have already been registered to a particular article. More... | |
getLogCount ($time=60, $ipaddress='') | |
Return the number of logs recorded within the interval for the specified IPaddress. More... | |
Public Member Functions inherited from spamfilter | |
moduleInstall () | |
Additional tasks required to accomplish during the installation. More... | |
checkUpdate () | |
A method to check if the installation has been successful. More... | |
moduleUpdate () | |
Execute update. More... | |
recompileCache () | |
Re-generate the cache file. More... | |
Public Member Functions inherited from ModuleObject | |
setModule ($module) | |
setModulePath ($path) | |
setRedirectUrl ($url= './', $output=NULL) | |
getRedirectUrl () | |
setMessage ($message= 'success', $type=NULL) | |
setMessageType ($type) | |
getMessageType () | |
setRefreshPage () | |
setAct ($act) | |
setModuleInfo ($module_info, $xml_info) | |
stop ($msg_code) | |
setTemplateFile ($filename) | |
getTemplateFile () | |
setTemplatePath ($path) | |
getTemplatePath () | |
setEditedLayoutFile ($filename) | |
getEditedLayoutFile () | |
setLayoutFile ($filename) | |
getLayoutFile () | |
setLayoutPath ($path) | |
getLayoutPath ($layout_name="", $layout_type="P") | |
proc () | |
Public Member Functions inherited from BaseObject | |
__construct ($error=0, $message= 'success') | |
setError ($error=0) | |
getError () | |
setHttpStatusCode ($code= '200') | |
getHttpStatusCode () | |
setMessage ($message= 'success', $type=NULL) | |
getMessage () | |
add ($key, $val) | |
adds ($object) | |
get ($key) | |
gets () | |
getVariables () | |
getObjectVars () | |
toBool () | |
toBoolean () | |
Additional Inherited Members | |
Public Attributes inherited from ModuleObject | |
$mid = NULL | |
string to represent run-time instance of Module (XE Module) More... | |
$module = NULL | |
Class name of Xe Module that is identified by mid. More... | |
$module_srl = NULL | |
integer value to represent a run-time instance of Module (XE Module) More... | |
$module_info = NULL | |
an object containing the module information More... | |
$origin_module_info = NULL | |
$xml_info = NULL | |
an object containing the module description extracted from XML file More... | |
$module_path = NULL | |
a path to directory where module source code resides More... | |
$act = NULL | |
a string value to contain the action name More... | |
$template_path = NULL | |
a path of directory where template files reside More... | |
$template_file = NULL | |
name of template file More... | |
$layout_path = '' | |
a path of directory where layout files reside More... | |
$layout_file = '' | |
name of layout file More... | |
$edited_layout_file = '' | |
name of temporary layout files that is modified in an admin mode More... | |
$stop_proc = FALSE | |
a flag to indicating whether to stop the execution of code. More... | |
$module_config = NULL | |
$ajaxRequestMethod = array('XMLRPC', 'JSON') | |
$gzhandler_enable = TRUE | |
Public Attributes inherited from BaseObject | |
$error = 0 | |
$message = 'success' | |
$variables = array() | |
$httpStatusCode = NULL | |
The Model class of the spamfilter module.
Definition at line 8 of file spamfilter.model.php.
spamfilterModel::checkLimited | ( | $isMessage = FALSE | ) |
Check the specified time.
Definition at line 100 of file spamfilter.model.php.
spamfilterModel::getConfig | ( | ) |
Return the user setting values of the Spam filter module.
Definition at line 20 of file spamfilter.model.php.
spamfilterModel::getDeniedIPList | ( | ) |
Return the list of registered IP addresses which were banned.
Definition at line 30 of file spamfilter.model.php.
spamfilterModel::getDeniedWordList | ( | ) |
Return the list of registered Words which were banned.
Definition at line 64 of file spamfilter.model.php.
spamfilterModel::getLogCount | ( | $time = 60 , |
|
$ipaddress = '' |
|||
) |
Return the number of logs recorded within the interval for the specified IPaddress.
Definition at line 153 of file spamfilter.model.php.
spamfilterModel::init | ( | ) |
Initialization.
Definition at line 13 of file spamfilter.model.php.
spamfilterModel::isDeniedIP | ( | ) |
Check if the ipaddress is in the list of banned IP addresses.
Definition at line 44 of file spamfilter.model.php.
spamfilterModel::isDeniedWord | ( | $text | ) |
Check if the text, received as a parameter, is banned or not.
Definition at line 77 of file spamfilter.model.php.
spamfilterModel::isInsertedTrackback | ( | $document_srl | ) |
Check if the trackbacks have already been registered to a particular article.
Definition at line 141 of file spamfilter.model.php.