mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@252 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9133108828
commit
2c67aa349a
7 changed files with 58 additions and 2 deletions
12
modules/trackback/queries/getTrackbackCountByIPAddress.xml
Normal file
12
modules/trackback/queries/getTrackbackCountByIPAddress.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getTrackbackCountByIPAddress" action="select">
|
||||
<tables>
|
||||
<table name="trackbacks" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -36,6 +36,22 @@
|
|||
return (int)$total_count;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 특정 document에 특정 ip로 기록된 트랙백의 갯수
|
||||
* spamfilter 에서 사용할 method임
|
||||
**/
|
||||
function getTrackbackCountByIPAddress($document_srl, $ipaddress) {
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
$args->document_srl = $document_srl;
|
||||
$args->ipaddress = $ipaddress;
|
||||
$output = $oDB->executeQuery('trackback.getTrackbackCountByIPAddress', $args);
|
||||
debugPrint($output);
|
||||
$total_count = $output->data->count;
|
||||
|
||||
return (int)$total_count;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 특정 문서에 속한 엮인글의 목록을 가져옴
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue