#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

@ -8,9 +8,11 @@
class commentItem extends Object {
var $comment_srl = 0;
var $columnList = array();
function commentItem($comment_srl = 0) {
function commentItem($comment_srl = 0, $columnList = array()) {
$this->comment_srl = $comment_srl;
$this->columnList = $columnList;
$this->_loadFromDB();
}
@ -23,7 +25,7 @@
if(!$this->comment_srl) return;
$args->comment_srl = $this->comment_srl;
$output = executeQuery('comment.getComment', $args);
$output = executeQuery('comment.getComment', $args, $this->columnList);
$this->setAttribute($output->data);
}
@ -121,7 +123,7 @@
$oCommunicationController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false);
}
function getIpaddress() {
function getIpAddress() {
if($this->isGranted()) return $this->get('ipaddress');
return preg_replace('/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/','*.$2.$3.$4', $this->get('ipaddress'));
}