#19705602 document column parameter modify.

comment column parameter modify.


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8336 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-04-26 07:03:05 +00:00
parent ef9f94e0da
commit de414300a8
6 changed files with 35 additions and 23 deletions

View file

@ -11,11 +11,13 @@
var $lang_code = null;
var $allow_trackback_status = null;
var $columnList = array();
function documentItem($document_srl = 0, $load_extra_vars = true, $columnList = array()) {
$this->document_srl = $document_srl;
$this->columnList = $columnList;
$this->_loadFromDB($load_extra_vars, $columnList);
$this->_loadFromDB($load_extra_vars);
}
function setDocument($document_srl, $load_extra_vars = true) {
@ -23,11 +25,11 @@
$this->_loadFromDB($load_extra_vars);
}
function _loadFromDB($load_extra_vars = true, $columnList = array()) {
function _loadFromDB($load_extra_vars = true) {
if(!$this->document_srl) return;
$args->document_srl = $this->document_srl;
$output = executeQuery('document.getDocument', $args, $columnList);
$output = executeQuery('document.getDocument', $args, $this->columnList);
$this->setAttribute($output->data,$load_extra_vars);
}