- new cronjob for history/map/x.log file truncate, closed #734

This commit is contained in:
Mark Friedrich
2018-12-25 22:38:08 +01:00
parent eb9c5b068f
commit 58db5962fb
9 changed files with 249 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
<?php
/**
* Created by PhpStorm.
* User: Exodus 4D
* Date: 24.12.2018
* Time: 00:55
*/
namespace data\mapper;
class SortingIterator extends \ArrayIterator {
public function __construct(\Traversable $iterator, callable $callback){
parent::__construct(iterator_to_array($iterator));
// sort by custom function
$this->uasort($callback);
}
}