- Refactors sending queue worker by breaking it into smaller tasks

- Adds arrayUnique method to Helpers for multidimensional arrays
This commit is contained in:
Vlad
2016-06-17 07:27:06 -04:00
parent 6daecd6466
commit 999a0b3ede
13 changed files with 556 additions and 417 deletions

View File

@ -2,6 +2,8 @@
namespace MailPoet\Util;
class Helpers {
const DIVIDER = '***MailPoet***';
static function getMaxPostSize($bytes = false) {
$maxPostSize = ini_get('post_max_size');
if(!$bytes) return $maxPostSize;
@ -122,4 +124,12 @@ class Helpers {
)
);
}
static function joinObject($object = array()) {
return implode(self::DIVIDER, $object);
}
static function splitObject($object = array()) {
return explode(self::DIVIDER, $object);
}
}