mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#19705602 getDocument method's parameter refactoring. required column specify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8330 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aee86c90ab
commit
50e2e2f0d9
2 changed files with 6 additions and 6 deletions
|
|
@ -12,10 +12,10 @@
|
|||
|
||||
var $allow_trackback_status = null;
|
||||
|
||||
function documentItem($document_srl = 0, $load_extra_vars = true) {
|
||||
function documentItem($document_srl = 0, $load_extra_vars = true, $columnList = array()) {
|
||||
$this->document_srl = $document_srl;
|
||||
|
||||
$this->_loadFromDB($load_extra_vars);
|
||||
$this->_loadFromDB($load_extra_vars, $columnList);
|
||||
}
|
||||
|
||||
function setDocument($document_srl, $load_extra_vars = true) {
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
$this->_loadFromDB($load_extra_vars);
|
||||
}
|
||||
|
||||
function _loadFromDB($load_extra_vars=true) {
|
||||
function _loadFromDB($load_extra_vars = true, $columnList = array()) {
|
||||
if(!$this->document_srl) return;
|
||||
|
||||
$args->document_srl = $this->document_srl;
|
||||
$output = executeQuery('document.getDocument', $args);
|
||||
$output = executeQuery('document.getDocument', $args, $columnList);
|
||||
|
||||
$this->setAttribute($output->data,$load_extra_vars);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue