diff --git a/modules/document/document.model.php b/modules/document/document.model.php index a4cf03e58..5d840e4f6 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -901,6 +901,16 @@ else return $output->data->document_srl; } + function getDocumentSrlByTitle($module_srl, $title) + { + if(!$module_srl || !$title) return null; + $args->module_srl = $module_srl; + $args->title = $title; + $output = executeQuery('document.getDocumentSrlByTitle', $args); + if(!$output->data) return null; + else return $output->data->document_srl; + } + function getAlias($document_srl){ if(!$document_srl) return null; $args->document_srl = $document_srl; diff --git a/modules/document/queries/getDocumentSrlByTitle.xml b/modules/document/queries/getDocumentSrlByTitle.xml new file mode 100644 index 000000000..ff2cb5512 --- /dev/null +++ b/modules/document/queries/getDocumentSrlByTitle.xml @@ -0,0 +1,14 @@ + + + +
+ + + + + + + + + +