for textyle trash function

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6405 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-05-26 01:58:26 +00:00
parent acd9ed3f67
commit cdeb3f36cc
2 changed files with 16 additions and 1 deletions

View file

@ -469,7 +469,10 @@
function procDocumentAdminRestoreTrash() { function procDocumentAdminRestoreTrash() {
$trash_srl = Context::get('trash_srl'); $trash_srl = Context::get('trash_srl');
$this->restoreTrash($trash_srl);
}
function restoreTrash($trash_srl){
$oDB = &DB::getInstance(); $oDB = &DB::getInstance();
$trash_args->trash_srl = $trash_srl; $trash_args->trash_srl = $trash_srl;
@ -499,6 +502,7 @@
// commit // commit
$oDB->commit(); $oDB->commit();
return $output;
} }
} }

View file

@ -0,0 +1,11 @@
<query id="getTrashByDocumentSrl" action="select">
<tables>
<table name="document_trash" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="in" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
</conditions>
</query>