mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 26 Document status change with config.
old version coding with hard coding git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8448 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0ba04bb1f7
commit
e3376c3c3a
8 changed files with 45 additions and 20 deletions
|
|
@ -539,7 +539,7 @@
|
|||
$obj->member_srl = 0;
|
||||
|
||||
$obj->is_notice = base64_decode($xmlDoc->post->is_notice->body)=='Y'?'Y':'N';
|
||||
$obj->status = base64_decode($xmlDoc->post->is_secret->body)=='Y'?'SECRET':'PUBLIC';
|
||||
$obj->status = base64_decode($xmlDoc->post->is_secret->body)=='Y'?$oDocumentModel->getConfigStatus('secret'):$oDocumentModel->getConfigStatus('public');
|
||||
$obj->title = base64_decode($xmlDoc->post->title->body);
|
||||
$obj->content = base64_decode($xmlDoc->post->content->body);
|
||||
$obj->readed_count = base64_decode($xmlDoc->post->readed_count->body);
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@
|
|||
}
|
||||
|
||||
$obj->is_notice = 'N';
|
||||
$obj->status = in_array($xmlDoc->post->visibility->body, array('public','syndicated'))?'PUBLIC':'SECRET';
|
||||
$obj->status = in_array($xmlDoc->post->visibility->body, array('public','syndicated'))?$oDocumentModel->getConfigStatus('public'):$oDocumentModel->('secret');
|
||||
$obj->title = $xmlDoc->post->title->body;
|
||||
$obj->content = $xmlDoc->post->content->body;
|
||||
$obj->password = md5($xmlDoc->post->password->body);
|
||||
|
|
@ -275,7 +275,7 @@
|
|||
$obj->document_srl = getNextSequence();
|
||||
$obj->uploaded_count = 0;
|
||||
$obj->is_notice = 'N';
|
||||
$obj->status = $val->secret->body=='1'?'SECRET':'PUBLIC';
|
||||
$obj->status = $val->secret->body=='1'?$oDocumentModel->getConfigStatus('secret'):$oDocumentModel->getConfigStatus('public');
|
||||
$obj->content = nl2br($val->content->body);
|
||||
|
||||
// Extract a title form the bocy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue