/**
  * The constructor.
  *
  * Load a entry type by the file.
  *
  * @param string $file_path
  */
 public function __construct($file_path = '')
 {
     // Try to load the file if the file path is empty.
     if (empty($file_path)) {
         $page_type = papi_get_entry_type_id();
         $file_path = papi_get_file_path($page_type);
     }
     parent::__construct($file_path);
 }
 /**
  * The constructor.
  *
  * Load a page type by the file.
  *
  * @param string $file_path
  */
 public function __construct($file_path = '')
 {
     parent::__construct($file_path);
     $this->setup_page_type();
     $this->setup_post_types();
 }