* Refactor getDateList method.
This commit is contained in:
@@ -4381,18 +4381,19 @@ class executionModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get no weekend date
|
||||
* 获取日期列表数据。
|
||||
* Get date list data.
|
||||
*
|
||||
* @param string $begin
|
||||
* @param string $end
|
||||
* @param string $type
|
||||
* @param string|int $interval
|
||||
* @param string $format
|
||||
* @param string $executionDeadline
|
||||
* @param string $begin
|
||||
* @param string $end
|
||||
* @param string $type
|
||||
* @param int $interval
|
||||
* @param string $format
|
||||
* @param string $executionDeadline
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getDateList($begin, $end, $type, $interval = '', $format = 'm/d/Y', $executionDeadline = '')
|
||||
public function getDateList(string $begin, string $end, string $type, int $interval = 0, string $format = 'm/d/Y', string $executionDeadline = ''): array
|
||||
{
|
||||
$this->app->loadClass('date', true);
|
||||
$dateList = date::getDateList($begin, $end, $format, $type, $this->config->execution->weekend);
|
||||
|
||||
Reference in New Issue
Block a user