Airship\Cabin\Bridge\Landing\Blog::processNewSeries PHP Method

processNewSeries() protected method

Create a new series
protected processNewSeries ( array $post = [], array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
return boolean
    protected function processNewSeries(array $post = [], array $authorsAllowed = []) : bool
    {
        if (!\Airship\all_keys_exist(['author', 'items'], $post)) {
            return false;
        }
        if (!\in_array($post['author'], $authorsAllowed)) {
            return false;
        }
        return $this->blog->createSeries($post);
    }