2014-07-08 07:51:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Helper\Toolkit;
|
|
|
|
|
2014-10-13 18:50:37 +02:00
|
|
|
use Carbon\Carbon;
|
2014-09-12 17:34:54 +02:00
|
|
|
use Illuminate\Support\Collection;
|
2014-07-29 19:37:52 +02:00
|
|
|
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
|
|
|
* Interface ToolkitInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Helper\Toolkit
|
|
|
|
*/
|
2014-07-15 22:16:29 +02:00
|
|
|
interface ToolkitInterface
|
|
|
|
{
|
2014-07-25 13:02:01 +02:00
|
|
|
/**
|
2014-08-10 15:01:46 +02:00
|
|
|
*
|
2014-09-10 22:22:44 +02:00
|
|
|
* @return null
|
2014-07-25 13:02:01 +02:00
|
|
|
*/
|
2014-09-10 22:22:44 +02:00
|
|
|
public function getDateRange();
|
2014-07-08 07:51:25 +02:00
|
|
|
|
2014-09-12 17:34:54 +02:00
|
|
|
/**
|
|
|
|
* Takes any collection and tries to make a sensible select list compatible array of it.
|
|
|
|
*
|
|
|
|
* @param Collection $set
|
2014-10-13 17:54:20 +02:00
|
|
|
* @param null $titleField
|
2014-09-12 17:34:54 +02:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function makeSelectList(Collection $set, $titleField = null);
|
|
|
|
|
2014-09-14 21:09:52 +02:00
|
|
|
public function next();
|
2014-09-22 07:25:23 +02:00
|
|
|
|
2014-09-14 21:09:52 +02:00
|
|
|
public function prev();
|
|
|
|
|
2014-09-22 07:25:23 +02:00
|
|
|
public function checkImportJobs();
|
2014-09-14 21:09:52 +02:00
|
|
|
|
2014-10-13 17:54:20 +02:00
|
|
|
/**
|
|
|
|
* @param string $start
|
|
|
|
* @param string $end
|
|
|
|
* @param int $steps
|
|
|
|
*/
|
|
|
|
public function colorRange($start, $end, $steps = 5);
|
|
|
|
|
2014-10-13 18:50:37 +02:00
|
|
|
/**
|
|
|
|
* @param Carbon $date
|
|
|
|
* @param $repeatFreq
|
|
|
|
* @param $skip
|
|
|
|
* @return Carbon
|
|
|
|
*/
|
|
|
|
public function addPeriod(Carbon $date, $repeatFreq, $skip);
|
|
|
|
|
2014-09-10 22:22:44 +02:00
|
|
|
}
|