mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Clean up trash handling logic
This commit is contained in:
parent
10123a86a8
commit
565cfad15f
4 changed files with 25 additions and 61 deletions
|
|
@ -12,16 +12,13 @@ class trashAdminController extends trash
|
|||
{
|
||||
/**
|
||||
* object insert to trash
|
||||
* @param TrashVO $obj
|
||||
* @param TrashVO $oTrashVO
|
||||
* @return Object
|
||||
*/
|
||||
function insertTrash($obj)
|
||||
function insertTrash($oTrashVO)
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
$oTrashVO = new TrashVO();
|
||||
$oTrashVO = &$obj;
|
||||
|
||||
if(!$oTrashVO->getTrashSrl()) $oTrashVO->setTrashSrl(getNextSequence());
|
||||
if(!is_string($oTrashVO->getSerializedObject())) $oTrashVO->setSerializedObject(serialize($oTrashVO->getSerializedObject()));
|
||||
$oTrashVO->setIpaddress(\RX_CLIENT_IP);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue