'Select type', 1 => 'Page content', 2 => 'Side block']; } return []; } public function delete(): bool { if (self::query( "DELETE FROM `page_has_{$this->table}` WHERE `{$this->table}_$this->primaryKey` = :id", [ [':id', $this->{$this->primaryKey}], ] ) === null) { return false; } return $this->deleteLog(); } }