public function create(DB $db) { try { parent::create($db); } catch (\Exception $e) { return false; } return true; }
public function create(DB $db) { try { parent::create($db); $stmntInsert = $db->prepare("\n\t\t\t\tINSERT mod_border_layout SET\n\t\t\t\t\tmod_instance_IDFK = ?,\n\t\t\t\t\tpage_IDFK = ?,\n\t\t\t\t\teast_grid_size = ?,\n\t\t\t\t\tcenter_grid_size = ?,\n\t\t\t\t\twest_grid_size = ?,\n\t\t\t\t\tnorth_mod_IDFK = ?,\n\t\t\t\t\tsouth_mod_IDFK = ?,\n\t\t\t\t\teast_mod_IDFK = ?,\n\t\t\t\t\twest_mod_IDFK = ?,\n\t\t\t\t\tcenter_mod_IDFK = ?\n\t\t\t"); $db->insert($stmntInsert, array($this->ID, $this->pageID, $this->settings->east_grid_size, $this->settings->center_grid_size, $this->settings->west_grid_size, $this->settings->north_mod_IDFK, $this->settings->south_mod_IDFK, $this->settings->east_mod_IDFK, $this->settings->west_mod_IDFK, $this->settings->center_mod_IDFK)); } catch (\Exception $e) { return false; } return true; }