Blog posts, categories, series, tags.
Inheritance: extends BlueprintGear, use trait Common, use trait Orderable, use trait Slug, use trait Airship\Engine\Bolt\Cache
Beispiel #1
0
 /**
  * Create a new series
  *
  * @param array $post
  * @param array $authorsAllowed
  * @return bool
  */
 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);
 }