/**
  * Static function to load a Gallery instance by post id
  *
  * @param $post_id
  *
  * @return FooGallery
  */
 public static function get_by_id($post_id)
 {
     $gallery = new self();
     $gallery->load_by_id($post_id);
     if (!$gallery->does_exist()) {
         return false;
     }
     return $gallery;
 }
 /**
  * Static function to load an Album instance by post id
  *
  * @param $post_id
  *
  * @return FooGalleryAlbum
  */
 public static function get_by_id($post_id)
 {
     $album = new self();
     $album->load_by_id($post_id);
     if (!$album->does_exist()) {
         return false;
     }
     return $album;
 }