/** * @param string $cabin * @param string $parent * @param array $post * @return bool */ protected function processNewDir(string $cabin, string $parent, array $post = []) : bool { if (!\Airship\all_keys_exist(['url', 'save_btn'], $post)) { return false; } if ($this->pg->createDir($cabin, $parent, $post)) { \Airship\redirect($this->airship_cabin_prefix . '/pages/' . $cabin, ['dir' => $parent]); } return true; }