Airship\Cabin\Bridge\Landing\Blog::processNewSeries PHP 메소드

processNewSeries() 보호된 메소드

Create a new series
protected processNewSeries ( array $post = [], array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
리턴 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);
    }