mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
for textyle
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6347 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
563389144d
commit
2ae51eca34
4 changed files with 27 additions and 3 deletions
9
modules/tag/queries/deleteTagByTag.xml
Normal file
9
modules/tag/queries/deleteTagByTag.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
<query id="deleteTagByTag" action="delete">
|
||||||
|
<tables>
|
||||||
|
<table name="tags" />
|
||||||
|
</tables>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||||
|
<condition operation="equal" column="tag" var="tag" notnull="notnull" pipe="and" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
12
modules/tag/queries/getAllTagList.xml
Normal file
12
modules/tag/queries/getAllTagList.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<query id="getDocumentsTagList" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="tags" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="document_srl" />
|
||||||
|
<column name="tag" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="in" column="document_srl" var="document_srl" filter="number" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<query id="getTagWithUsedList" action="select">
|
<query id="getDocumentsTagList" action="select">
|
||||||
<tables>
|
<tables>
|
||||||
<table name="tags" />
|
<table name="tags" />
|
||||||
</tables>
|
</tables>
|
||||||
|
|
@ -7,10 +7,11 @@
|
||||||
<column name="count(*)" alias="count" />
|
<column name="count(*)" alias="count" />
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="in" column="document_srl" var="document_srl" />
|
<condition operation="in" column="document_srl" var="document_srl" filter="number" />
|
||||||
</conditions>
|
</conditions>
|
||||||
<navigation>
|
<navigation>
|
||||||
<index var="count" default="count" order="desc" />
|
<index var="count" default="count" order="desc" />
|
||||||
|
<list_count var="list_count" default="100" />
|
||||||
</navigation>
|
</navigation>
|
||||||
<groups>
|
<groups>
|
||||||
<group column="tag" />
|
<group column="tag" />
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,9 @@
|
||||||
$output = $this->getDocumentSrlByTag($args);
|
$output = $this->getDocumentSrlByTag($args);
|
||||||
$document_srl = array();
|
$document_srl = array();
|
||||||
|
|
||||||
foreach($output->data as $k => $v) $document_srl[] = $v->document_srl;
|
if($output->data){
|
||||||
|
foreach($output->data as $k => $v) $document_srl[] = $v->document_srl;
|
||||||
|
}
|
||||||
unset($args);
|
unset($args);
|
||||||
$args->document_srl = $document_srl;
|
$args->document_srl = $document_srl;
|
||||||
$output = $this->getDocumentsTagList($args);
|
$output = $this->getDocumentsTagList($args);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue