Update document.model.php

현재 페이지 구하는 함수에 regdate 순 정렬로도 구하도록 추가
This commit is contained in:
howtoxe 2017-02-05 11:01:37 +09:00 committed by Kijin Sung
parent 29bdbce5c4
commit 16483ced2e

View file

@ -650,6 +650,19 @@ class documentModel extends document
$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
}
}
elseif($sort_check->sort_index === 'regdate')
{
if($args->order_type === 'asc')
{
$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
}
else
{
$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
}
}
else
{
return 1;